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,13 @@
import * as React from 'react';
import { Modal } from '@strapi/design-system';
export type LimitsModalProps = Pick<Modal.Props, 'open' | 'onOpenChange'>;
declare const LimitsModal: {
Title: React.FC<{
children?: React.ReactNode;
}>;
Body: React.FC<{
children?: React.ReactNode;
}>;
Root: React.FC<React.PropsWithChildren<LimitsModalProps>>;
};
export { LimitsModal };

View File

@@ -0,0 +1,9 @@
declare const PLUGIN_ID = "review-workflows";
/**
* The name of the feature in the license.
*/
declare const FEATURE_ID = "review-workflows";
export declare const CHARGEBEE_WORKFLOW_ENTITLEMENT_NAME = "numberOfWorkflows";
export declare const CHARGEBEE_STAGES_PER_WORKFLOW_ENTITLEMENT_NAME = "stagesPerWorkflow";
export declare const STAGE_COLOR_DEFAULT: string;
export { FEATURE_ID, PLUGIN_ID };

View File

@@ -0,0 +1,3 @@
import type { Plugin } from '@strapi/types';
declare const admin: Plugin.Config.AdminInput;
export default admin;

View File

@@ -0,0 +1,7 @@
import { Dispatch } from '@reduxjs/toolkit';
import { TypedUseSelectorHook } from 'react-redux';
import type { Store } from '@strapi/admin/strapi-admin';
type RootState = ReturnType<Store['getState']>;
declare const useTypedDispatch: () => Dispatch;
declare const useTypedSelector: TypedUseSelectorHook<RootState>;
export { useTypedSelector, useTypedDispatch };

View File

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

View File

@@ -0,0 +1,7 @@
import { type Filters } from '@strapi/admin/strapi-admin';
import { ComboboxProps } from '@strapi/design-system';
interface AssigneeFilterProps extends Pick<ComboboxProps, 'value' | 'onChange'> {
}
declare const AssigneeFilter: ({ name }: Filters.ValueInputProps) => import("react/jsx-runtime").JSX.Element;
export { AssigneeFilter };
export type { AssigneeFilterProps };

View File

@@ -0,0 +1,8 @@
import { type Filters } from '@strapi/admin/strapi-admin';
import { SingleSelectProps } from '@strapi/design-system';
interface StageFilterProps extends Pick<SingleSelectProps, 'value' | 'onChange'> {
uid?: string;
}
declare const StageFilter: (props: Filters.ValueInputProps) => import("react/jsx-runtime").JSX.Element;
export { StageFilter };
export type { StageFilterProps };

View File

@@ -0,0 +1,18 @@
import { SanitizedAdminUser } from '@strapi/admin/strapi-admin';
interface StageColumnProps {
documentId?: string;
id?: number;
strapi_stage?: {
color?: string;
name: string;
};
}
declare const StageColumn: (props: StageColumnProps) => import("react/jsx-runtime").JSX.Element;
interface AssigneeColumnProps {
documentId?: string;
id?: number;
strapi_assignee?: Pick<SanitizedAdminUser, 'firstname' | 'lastname' | 'username' | 'email'> | null;
}
declare const AssigneeColumn: (props: AssigneeColumnProps) => import("react/jsx-runtime").JSX.Element;
export { StageColumn, AssigneeColumn };
export type { StageColumnProps, AssigneeColumnProps };

View File

@@ -0,0 +1,7 @@
export declare const REVIEW_WORKFLOW_STAGE_SORT_OPTION_NAME: {
value: string;
label: {
id: string;
defaultMessage: string;
};
};

View File

@@ -0,0 +1,71 @@
import type { Filters } from '@strapi/admin/strapi-admin';
export declare const REVIEW_WORKFLOW_COLUMNS: ({
name: string;
attribute: {
type: "relation";
relation: "oneToMany";
target: "admin::review-workflow-stage";
};
label: {
id: string;
defaultMessage: string;
};
searchable: false;
sortable: true;
mainField: {
name: string;
type: "string";
};
cellFormatter: (props: import("@strapi/types/dist/modules/documents").AnyDocument) => import("react/jsx-runtime").JSX.Element;
} | {
name: string;
attribute: {
type: "relation";
target: "admin::user";
relation: "oneToMany";
};
label: {
id: string;
defaultMessage: string;
};
searchable: false;
sortable: true;
mainField: {
name: string;
type: "string";
};
cellFormatter: (props: import("@strapi/types/dist/modules/documents").AnyDocument) => import("react/jsx-runtime").JSX.Element;
})[];
export declare const REVIEW_WORKFLOW_FILTERS: ({
mainField: {
name: string;
type: "string";
};
input: (props: Filters.ValueInputProps) => import("react/jsx-runtime").JSX.Element;
label: {
id: string;
defaultMessage: string;
};
name: string;
type: "relation";
operators?: undefined;
} | {
type: "relation";
mainField: {
name: string;
type: "integer";
};
input: ({ name }: Filters.ValueInputProps) => import("react/jsx-runtime").JSX.Element;
operators: {
label: {
id: string;
defaultMessage: string;
};
value: string;
}[];
label: {
id: string;
defaultMessage: string;
};
name: string;
})[];

View File

@@ -0,0 +1,4 @@
declare const AssigneeSelect: ({ isCompact }: {
isCompact?: boolean;
}) => import("react/jsx-runtime").JSX.Element | null;
export { AssigneeSelect };

View File

@@ -0,0 +1,5 @@
declare const Header: {
(): import("react/jsx-runtime").JSX.Element | null;
type: string;
};
export { Header };

View File

@@ -0,0 +1,3 @@
import type { PanelComponent } from '@strapi/content-manager/strapi-admin';
declare const Panel: PanelComponent;
export { Panel };

View File

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

View File

@@ -0,0 +1,2 @@
export declare const STAGE_ATTRIBUTE_NAME = "strapi_stage";
export declare const ASSIGNEE_ATTRIBUTE_NAME = "strapi_assignee";

View File

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

View File

@@ -0,0 +1,2 @@
import { ButtonProps } from '@strapi/design-system';
export declare const AddStage: ({ children, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;

View File

@@ -0,0 +1,12 @@
import * as React from 'react';
declare const DragLayerRendered: () => import("react/jsx-runtime").JSX.Element | null;
declare const Root: React.FC<React.PropsWithChildren>;
interface HeaderProps {
title: string;
navigationAction?: React.ReactNode;
primaryAction?: React.ReactNode;
secondaryAction?: React.ReactNode;
subtitle?: React.ReactNode;
}
declare const Header: React.FC<HeaderProps>;
export { DragLayerRendered, Header, Root };

View File

@@ -0,0 +1,6 @@
interface StageDragPreviewType {
name: string | null;
}
declare const StageDragPreview: ({ name }: StageDragPreviewType) => import("react/jsx-runtime").JSX.Element;
export { StageDragPreview };
export type { StageDragPreviewType };

View File

@@ -0,0 +1,12 @@
import { Stage as IStage } from '../../../../../shared/contracts/review-workflows';
interface WorkflowStage extends Pick<IStage, 'id' | 'name' | 'permissions' | 'color'> {
__temp_key__: string;
}
interface StagesProps {
canDelete?: boolean;
canUpdate?: boolean;
isCreating?: boolean;
}
declare const Stages: ({ canDelete, canUpdate, isCreating }: StagesProps) => import("react/jsx-runtime").JSX.Element;
export { Stages };
export type { StagesProps, WorkflowStage };

View File

@@ -0,0 +1,6 @@
interface WorkflowAttributesProps {
canUpdate?: boolean;
}
declare const WorkflowAttributes: ({ canUpdate }: WorkflowAttributesProps) => import("react/jsx-runtime").JSX.Element;
export { WorkflowAttributes };
export type { WorkflowAttributesProps };

View File

@@ -0,0 +1,2 @@
export type DragDropTypes = 'stage';
export declare const DRAG_DROP_TYPES: Record<Uppercase<DragDropTypes>, DragDropTypes>;

View File

@@ -0,0 +1,51 @@
import * as React from 'react';
import { type HandlerManager, type ConnectDragSource, type ConnectDropTarget, type ConnectDragPreview } from 'react-dnd';
import { type UseKeyboardDragAndDropCallbacks } from './useKeyboardDragAndDrop';
import type { Data } from '@strapi/types';
declare const DIRECTIONS: {
readonly UPWARD: "upward";
readonly DOWNWARD: "downward";
};
declare const DROP_SENSITIVITY: {
readonly REGULAR: "regular";
readonly IMMEDIATE: "immediate";
};
interface UseDragAndDropOptions<TIndex extends number | Array<number> = number, TItem extends {
index: TIndex;
} = {
index: TIndex;
}> extends UseKeyboardDragAndDropCallbacks<TIndex> {
type?: string;
index: TIndex;
item?: TItem;
onStart?: () => void;
onEnd?: () => void;
dropSensitivity?: (typeof DROP_SENSITIVITY)[keyof typeof DROP_SENSITIVITY];
}
type Identifier = ReturnType<HandlerManager['getHandlerId']>;
type UseDragAndDropReturn<E extends Element = HTMLElement> = [
props: {
handlerId: Identifier;
isDragging: boolean;
handleKeyDown: <E extends Element>(event: React.KeyboardEvent<E>) => void;
isOverDropTarget: boolean;
direction: (typeof DIRECTIONS)[keyof typeof DIRECTIONS] | null;
},
objectRef: React.RefObject<E>,
dropRef: ConnectDropTarget,
dragRef: ConnectDragSource,
dragPreviewRef: ConnectDragPreview
];
/**
* A utility hook abstracting the general drag and drop hooks from react-dnd.
* Centralising the same behaviours and by default offering keyboard support.
*/
declare const useDragAndDrop: <TIndex extends number | number[], TItem extends {
[key: string]: unknown;
index: TIndex;
id?: Data.ID | undefined;
} = {
[key: string]: unknown;
index: TIndex;
}, E extends Element = HTMLElement>(active: boolean, { type, index, item, onStart, onEnd, onGrabItem, onDropItem, onCancel, onMoveItem, dropSensitivity, }: UseDragAndDropOptions<TIndex, TItem>) => UseDragAndDropReturn<E>;
export { useDragAndDrop, UseDragAndDropReturn, UseDragAndDropOptions, DIRECTIONS, DROP_SENSITIVITY, };

View File

@@ -0,0 +1,14 @@
import * as React from 'react';
export type UseKeyboardDragAndDropCallbacks<TIndex extends number | Array<number> = number> = {
onCancel?: (index: TIndex) => void;
onDropItem?: (currentIndex: TIndex, newIndex?: TIndex) => void;
onGrabItem?: (index: TIndex) => void;
onMoveItem?: (newIndex: TIndex, currentIndex: TIndex) => void;
};
/**
* Utility hook designed to implement keyboard accessibile drag and drop by
* returning an onKeyDown handler to be passed to the drag icon button.
*
* @internal - You should use `useDragAndDrop` instead.
*/
export declare const useKeyboardDragAndDrop: <TIndex extends number | number[] = number>(active: boolean, index: TIndex, { onCancel, onDropItem, onGrabItem, onMoveItem }: UseKeyboardDragAndDropCallbacks<TIndex>) => <E extends Element>(e: React.KeyboardEvent<E>) => void;

View File

@@ -0,0 +1,25 @@
import { GetWorkflowsParams } from '../../../services/settings';
import type { Create, Update } from '../../../../../shared/contracts/review-workflows';
type UseReviewWorkflowsArgs = GetWorkflowsParams & {
skip?: boolean;
};
declare const useReviewWorkflows: (params?: UseReviewWorkflowsArgs) => {
meta: {
workflowCount: number;
} | undefined;
workflows: import("../../../../../shared/contracts/review-workflows").Workflow[];
isLoading: boolean;
error: import("@strapi/admin/strapi-admin").BaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
create: (data: Create.Request['body']['data']) => Promise<{
data: import("../../../../../shared/contracts/review-workflows").Workflow;
} | {
error: import("@strapi/admin/strapi-admin").BaseQueryError | import("@reduxjs/toolkit").SerializedError;
}>;
delete: (id: string) => Promise<import("../../../../../shared/contracts/review-workflows").Workflow | undefined>;
update: (id: string, data: Update.Request['body']['data']) => Promise<{
data: import("../../../../../shared/contracts/review-workflows").Workflow;
} | {
error: import("@strapi/admin/strapi-admin").BaseQueryError | import("@reduxjs/toolkit").SerializedError;
}>;
};
export { useReviewWorkflows };

View File

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

View File

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

View File

@@ -0,0 +1,5 @@
import { SanitizedAdminUser } from '@strapi/admin/strapi-admin';
type Roles = SanitizedAdminUser['roles'];
declare const useGetAdminRolesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ReviewWorkflow" | "ReviewWorkflowStages" | "Document" | "ContentTypeSettings", import("@strapi/admin/strapi-admin").SanitizedAdminRole[], "adminApi">>;
export { useGetAdminRolesQuery };
export type { SanitizedAdminUser, Roles };

View File

@@ -0,0 +1,2 @@
declare const reviewWorkflowsApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, import("@reduxjs/toolkit/dist/query/endpointDefinitions").UpdateDefinitions<{}, "ReviewWorkflow" | "ReviewWorkflowStages" | "Document" | "ContentTypeSettings", never>, "adminApi", "ReviewWorkflow" | "ReviewWorkflowStages" | "Document" | "ContentTypeSettings", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react").reactHooksModuleName>;
export { reviewWorkflowsApi };

View File

@@ -0,0 +1,38 @@
import type { GetStages, UpdateStage, UpdateAssignee } from '../../../shared/contracts/review-workflows';
import type { Contracts } from '@strapi/content-manager/_internal/shared';
type ContentType = Contracts.ContentTypes.ContentType;
interface ContentTypes {
collectionType: ContentType[];
singleType: ContentType[];
}
declare const useGetStagesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<GetStages.Params & {
slug: string;
params?: object | undefined;
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ReviewWorkflow" | "ReviewWorkflowStages" | "Document" | "ContentTypeSettings", {
stages: NonNullable<GetStages.Response['data']>;
meta: NonNullable<GetStages.Response['meta']>;
}, "adminApi">>, useUpdateStageMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<{
data: {
id: import("@strapi/types/dist/data").ID;
};
} & UpdateStage.Params & {
slug: string;
params?: object | undefined;
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ReviewWorkflow" | "ReviewWorkflowStages" | "Document" | "ContentTypeSettings", {
id: import("@strapi/types/dist/data").ID;
} & {
[key: string]: any;
}, "adminApi">>, useUpdateAssigneeMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<{
data: {
id: import("@strapi/types/dist/data").ID | null;
};
} & UpdateAssignee.Params & {
slug: string;
params?: object | undefined;
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ReviewWorkflow" | "ReviewWorkflowStages" | "Document" | "ContentTypeSettings", {
id: import("@strapi/types/dist/data").ID;
} & {
[key: string]: any;
}, "adminApi">>, useGetContentTypesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ReviewWorkflow" | "ReviewWorkflowStages" | "Document" | "ContentTypeSettings", ContentTypes, "adminApi">>;
export { useGetStagesQuery, useUpdateStageMutation, useUpdateAssigneeMutation, useGetContentTypesQuery, };
export type { ContentTypes, ContentType };

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,23 @@
import { SerializedError } from '@reduxjs/toolkit';
import { type UnknownApiError, type ApiError } from '@strapi/admin/strapi-admin';
export type BaseQueryError = ApiError | UnknownApiError | SerializedError;
declare const isBaseQueryError: (error: BaseQueryError) => error is ApiError | UnknownApiError;
interface Query {
plugins?: Record<string, unknown>;
_q?: string;
[key: string]: any;
}
/**
* This type extracts the plugin options from the query
* and appends them to the root of the query
*/
type TransformedQuery<TQuery extends Query> = Omit<TQuery, 'plugins'> & {
[key: string]: string;
};
/**
* @description
* Creates a valid query params object for get requests
* ie. plugins[18n][locale]=en becomes locale=en
*/
declare const buildValidParams: <TQuery extends Query>(query: TQuery) => TransformedQuery<TQuery>;
export { isBaseQueryError, buildValidParams };

View File

@@ -0,0 +1,46 @@
import type { ListFieldLayout, ListLayout } from '@strapi/content-manager/strapi-admin';
interface AddColumnToTableHookArgs {
layout: ListLayout;
displayedHeaders: ListFieldLayout[];
}
declare const addColumnToTableHook: ({ displayedHeaders, layout }: AddColumnToTableHookArgs) => {
displayedHeaders: (ListFieldLayout | {
name: string;
attribute: {
type: "relation";
relation: "oneToMany";
target: "admin::review-workflow-stage";
};
label: {
id: string;
defaultMessage: string;
};
searchable: false;
sortable: true;
mainField: {
name: string;
type: "string";
};
cellFormatter: (props: import("@strapi/types/dist/modules/documents").AnyDocument) => import("react/jsx-runtime").JSX.Element;
} | {
name: string;
attribute: {
type: "relation";
target: "admin::user";
relation: "oneToMany";
};
label: {
id: string;
defaultMessage: string;
};
searchable: false;
sortable: true;
mainField: {
name: string;
type: "string";
};
cellFormatter: (props: import("@strapi/types/dist/modules/documents").AnyDocument) => import("react/jsx-runtime").JSX.Element;
})[];
layout: ListLayout;
};
export { addColumnToTableHook };

View File

@@ -0,0 +1,9 @@
declare const getStageColorByHex: (hex?: string) => {
themeColorName: string;
name: string;
} | null;
declare const AVAILABLE_COLORS: {
hex: string;
name: string;
}[];
export { AVAILABLE_COLORS, getStageColorByHex };

View File

@@ -0,0 +1,3 @@
type TradOptions = Record<string, string>;
declare const prefixPluginTranslations: (trad: TradOptions, pluginId: string) => TradOptions;
export { prefixPluginTranslations };

View File

@@ -0,0 +1,6 @@
import type { SanitizedAdminUser } from '@strapi/admin/strapi-admin';
/**
* Retrieves the display name of an admin panel user
*/
declare const getDisplayName: ({ firstname, lastname, username, email, }?: Partial<Pick<SanitizedAdminUser, 'firstname' | 'lastname' | 'username' | 'email'>>) => string;
export { getDisplayName };