node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import * as React from 'react';
import { FlexProps } from '@strapi/design-system';
import type { Struct } from '@strapi/types';
interface ComponentIconProps extends FlexProps {
showBackground?: boolean;
icon?: Struct.ContentTypeSchemaInfo['icon'];
}
declare const ComponentIcon: ({ showBackground, icon, ...props }: ComponentIconProps) => import("react/jsx-runtime").JSX.Element;
declare const COMPONENT_ICONS: Record<string, React.ComponentType<any>>;
export { ComponentIcon, COMPONENT_ICONS };
export type { ComponentIconProps };

View File

@@ -0,0 +1,9 @@
import type { Schema } from '@strapi/types';
interface EditFieldFormProps {
attribute?: Schema.Attribute.AnyAttribute;
name: string;
onClose: () => void;
}
declare const EditFieldForm: ({ attribute, name, onClose }: EditFieldFormProps) => import("react/jsx-runtime").JSX.Element | null;
export { EditFieldForm };
export type { EditFieldFormProps };

View File

@@ -0,0 +1,21 @@
import * as React from 'react';
import { type UseDragAndDropOptions } from '../../hooks/useDragAndDrop';
import { EditFieldFormProps } from './EditFieldForm';
import type { EditLayout } from '../../hooks/useDocumentLayout';
interface FieldsProps extends Pick<EditLayout, 'metadatas'>, Pick<FieldProps, 'components'> {
attributes: {
[key: string]: FieldProps['attribute'];
};
fieldSizes: Record<string, number>;
components: EditLayout['components'];
}
declare const Fields: ({ attributes, fieldSizes, components, metadatas }: FieldsProps) => import("react/jsx-runtime").JSX.Element;
interface FieldProps extends Pick<EditFieldFormProps, 'name' | 'attribute'> {
components: EditLayout['components'];
index: [row: number, index: number];
onMoveField: UseDragAndDropOptions<number[]>['onMoveItem'];
onRemoveField: React.MouseEventHandler<HTMLButtonElement>;
}
declare const TEMP_FIELD_NAME = "_TEMP_";
export { Fields, TEMP_FIELD_NAME };
export type { FieldsProps };

View File

@@ -0,0 +1,32 @@
import { FormProps } from '@strapi/admin/strapi-admin';
import { FieldsProps } from './Fields';
import type { EditFieldLayout, EditLayout } from '../../hooks/useDocumentLayout';
interface ConfigurationFormProps extends Pick<FieldsProps, 'attributes' | 'fieldSizes'> {
layout: EditLayout;
onSubmit: FormProps<ConfigurationFormData>['onSubmit'];
}
/**
* Every key in EditFieldLayout is turned to optional never and then we overwrite the ones we are using.
*/
type EditFieldSpacerLayout = {
[key in keyof Omit<EditFieldLayout, 'name' | 'size'>]?: never;
} & {
description?: never;
editable?: never;
name: '_TEMP_';
size: number;
__temp_key__: string;
};
interface ConfigurationFormData extends Pick<EditLayout, 'settings'> {
layout: Array<{
__temp_key__: string;
children: Array<(Pick<EditFieldLayout, 'label' | 'size' | 'name' | 'placeholder' | 'mainField'> & {
description: EditFieldLayout['hint'];
editable: EditFieldLayout['disabled'];
__temp_key__: string;
}) | EditFieldSpacerLayout>;
}>;
}
declare const ConfigurationForm: ({ attributes, fieldSizes, layout: editLayout, onSubmit, }: ConfigurationFormProps) => import("react/jsx-runtime").JSX.Element;
export { ConfigurationForm };
export type { ConfigurationFormProps, ConfigurationFormData, EditFieldSpacerLayout };

View File

@@ -0,0 +1,13 @@
import * as React from 'react';
import { DragLayerMonitor } from 'react-dnd';
export interface DragLayerProps {
renderItem: (item: {
/**
* TODO: it'd be great if we could make this a union where the type infers the item.
*/
item: any;
type: ReturnType<DragLayerMonitor['getItemType']>;
}) => React.ReactNode;
}
declare const DragLayer: ({ renderItem }: DragLayerProps) => import("react/jsx-runtime").JSX.Element | null;
export { DragLayer };

View File

@@ -0,0 +1,7 @@
interface CardDragPreviewProps {
label: string;
isSibling?: boolean;
}
declare const CardDragPreview: ({ label, isSibling }: CardDragPreviewProps) => import("react/jsx-runtime").JSX.Element;
export { CardDragPreview };
export type { CardDragPreviewProps };

View File

@@ -0,0 +1,6 @@
interface ComponentDragPreviewProps {
displayedValue: string;
}
declare const ComponentDragPreview: ({ displayedValue }: ComponentDragPreviewProps) => import("react/jsx-runtime").JSX.Element;
export { ComponentDragPreview };
export type { ComponentDragPreviewProps };

View File

@@ -0,0 +1,11 @@
import type { Data } from '@strapi/types';
interface RelationDragPreviewProps {
status?: string;
displayedValue: string;
id: Data.ID;
index: number;
width: number;
}
declare const RelationDragPreview: ({ status, displayedValue, width }: RelationDragPreviewProps) => import("react/jsx-runtime").JSX.Element;
export { RelationDragPreview };
export type { RelationDragPreviewProps };

View File

@@ -0,0 +1,9 @@
import * as React from 'react';
import type { Schema } from '@strapi/types';
declare const iconByTypes: Record<Schema.Attribute.Kind, React.ReactElement>;
interface FieldTypeIconProps {
type?: keyof typeof iconByTypes;
customFieldUid?: string;
}
declare const FieldTypeIcon: ({ type, customFieldUid }: FieldTypeIconProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
export { FieldTypeIcon };

View File

@@ -0,0 +1,51 @@
/// <reference types="react" />
import { InjectionZoneComponent } from '@strapi/admin/strapi-admin';
declare const INJECTION_ZONES: {
editView: {
informations: never[];
'right-links': never[];
};
listView: {
actions: never[];
deleteModalAdditionalInfos: never[];
publishModalAdditionalInfos: never[];
unpublishModalAdditionalInfos: never[];
};
preview: {
actions: never[];
};
};
interface InjectionZones {
editView: {
informations: InjectionZoneComponent[];
'right-links': InjectionZoneComponent[];
};
listView: {
actions: InjectionZoneComponent[];
deleteModalAdditionalInfos: InjectionZoneComponent[];
publishModalAdditionalInfos: InjectionZoneComponent[];
unpublishModalAdditionalInfos: InjectionZoneComponent[];
};
preview: {
actions: InjectionZoneComponent[];
};
}
type InjectionZoneArea = 'editView.informations' | 'editView.right-links' | 'listView.actions' | 'listView.unpublishModalAdditionalInfos' | 'listView.deleteModalAdditionalInfos' | 'listView.publishModalAdditionalInfos' | 'listView.deleteModalAdditionalInfos' | 'preview.actions';
type InjectionZoneModule = InjectionZoneArea extends `${infer Word}.${string}` ? Word : never;
type InjectionZoneContainer = InjectionZoneArea extends `${string}.${infer Word}.${string}` ? Word : never;
type InjectionZoneBlock = InjectionZoneArea extends `${string}.${string}.${infer Word}` ? Word : never;
/**
* You can't know what this component props will be because it's generic and used everywhere
* e.g. content-manager edit view, we just send the slug but we might not in the listView,
* therefore, people should type it themselves on the components they render.
*/
declare const InjectionZone: ({ area, ...props }: {
area: InjectionZoneArea;
[key: string]: unknown;
}) => import("react/jsx-runtime").JSX.Element;
export declare const useInjectionZone: (area: InjectionZoneArea) => {
name: string;
Component: import("react").ComponentType<{}>;
}[];
export { InjectionZone, INJECTION_ZONES };
export type { InjectionZoneArea, InjectionZoneComponent, InjectionZones, InjectionZoneModule, InjectionZoneContainer, InjectionZoneBlock, };

View File

@@ -0,0 +1,2 @@
declare const LeftMenu: () => import("react/jsx-runtime").JSX.Element;
export { LeftMenu };

View File

@@ -0,0 +1,28 @@
import * as React from 'react';
import { Duration } from 'date-fns';
interface CustomInterval {
unit: keyof Duration;
text: string;
threshold: number;
}
interface RelativeTimeProps extends React.ComponentPropsWithoutRef<'time'> {
timestamp: Date;
customIntervals?: CustomInterval[];
}
/**
* Displays the relative time between a given timestamp and the current time.
* You can display a custom message for given time intervals by passing an array of custom intervals.
*
* @example
* ```jsx
* <caption>Display "last hour" if the timestamp is less than an hour ago</caption>
* <RelativeTime
* timestamp={new Date('2021-01-01')}
* customIntervals={[
* { unit: 'hours', threshold: 1, text: 'last hour' },
* ]}
* ```
*/
declare const RelativeTime: React.ForwardRefExoticComponent<RelativeTimeProps & React.RefAttributes<HTMLTimeElement>>;
export { RelativeTime };
export type { CustomInterval, RelativeTimeProps };

View File

@@ -0,0 +1,3 @@
declare const LastEditedWidget: () => import("react/jsx-runtime").JSX.Element;
declare const LastPublishedWidget: () => import("react/jsx-runtime").JSX.Element;
export { LastEditedWidget, LastPublishedWidget };