@layers-app/shared 0.0.44 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{KanbanLayout-DrevX3Ow.js → KanbanLayout-oWz6EhPt.js} +5 -5
- package/dist/assets/jsons/icons.min.json.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.d.ts +2 -3
- package/dist/components/AppContainer/Header.d.ts +8 -0
- package/dist/components/AppContainer/Main.d.ts +2 -0
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts +9 -0
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts +1 -0
- package/dist/components/AppContainer/components/AppsSidebar/AppsSidebar.d.ts +4 -0
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts +1 -0
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts +4 -0
- package/dist/components/AppContainer/components/MobileNavbar.d.ts +2 -2
- package/dist/components/AppContainer/components/RightSidebar.d.ts +2 -0
- package/dist/components/AppContainer/components/SidebarToggleButton.d.ts +3 -0
- package/dist/components/AppContainer/components/SlideAnimation.d.ts +6 -0
- package/dist/components/AppContainer/components/ToolSidebar.d.ts +3 -0
- package/dist/components/AppContainer/components/ToolbarNewButton.d.ts +2 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts +1 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/WhatsNew.d.ts +7 -0
- package/dist/components/AppContainer/components/menus/MoreMenu.d.ts +1 -0
- package/dist/components/AppContainer/components/{MenuUserDropdown.d.ts → menus/UserMenu/MenuUserDropdown.d.ts} +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts +30 -12
- package/dist/components/AppContainer/types.d.ts +16 -11
- package/dist/components/AppShell/AppShell.d.ts +12 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +24 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts +9 -0
- package/dist/components/AttachmentsGalleryModal/components/ErrorSection.d.ts +1 -0
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +9 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts +4 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts +7 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +10 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +9 -0
- package/dist/components/AttachmentsGalleryModal/constants.d.ts +20 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts +22 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useEmblaCarousel.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/hooks/usePanning.d.ts +10 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useZoomReset.d.ts +1 -0
- package/dist/components/AttachmentsGalleryModal/types.d.ts +0 -8
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts +9 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +1 -0
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +16 -11
- package/dist/components/CommentComposer/index.d.ts +2 -55
- package/dist/components/CommentComposer/types.d.ts +96 -0
- package/dist/components/CommentsPanel/index.d.ts +1 -26
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
- package/dist/components/EmojiPicker/getIconsList.d.ts +11 -0
- package/dist/components/EmojiPicker/getRandomIcon.d.ts +1 -0
- package/dist/components/EntityIcon.d.ts +7 -0
- package/dist/components/FilePicker/FilePicker.d.ts +2 -1
- package/dist/components/FilePicker/types.d.ts +1 -0
- package/dist/components/FormViewer/helpers/conditions.d.ts +2 -2
- package/dist/components/FormViewer/helpers/helpers.d.ts +2 -2
- package/dist/components/FormViewer/helpers/steps.d.ts +2 -2
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +2 -2
- package/dist/components/FormViewer/store/formStore.d.ts +36 -36
- package/dist/components/FormViewer/store/formStoreApi.d.ts +6 -6
- package/dist/components/FormViewer/store/selectors.d.ts +684 -684
- package/dist/components/FormViewer/types/schemes.d.ts +44 -44
- package/dist/components/Loaders/BaseLoader.d.ts +3 -0
- package/dist/components/NavMenu/NavMenu.d.ts +21 -0
- package/dist/components/NavMenu/components/DnDItem.d.ts +8 -0
- package/dist/components/NavMenu/components/DnDProvider.d.ts +8 -0
- package/dist/components/NavMenu/components/DraggableOverlay.d.ts +1 -0
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts +2 -0
- package/dist/components/NavMenu/components/NavMenuItem.d.ts +7 -0
- package/dist/components/NavMenu/components/NavMenuLabel.d.ts +3 -0
- package/dist/components/NavMenu/index.d.ts +5 -0
- package/dist/components/NavMenu/store.d.ts +37 -0
- package/dist/components/NavMenu/types.d.ts +29 -0
- package/dist/components/NavbarResizer/NavbarResizer.d.ts +5 -2
- package/dist/components/Notification/Notification.d.ts +1 -0
- package/dist/components/Notification/NotificationCard.d.ts +1 -1
- package/dist/components/ProjectIcon/ProjectIcon.d.ts +8 -3
- package/dist/components/RichText/index.d.ts +3 -3
- package/dist/components/SubmitModal/index.d.ts +2 -2
- package/dist/components/UserAvatar/index.d.ts +1 -1
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +6 -10
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts +2 -14
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts +9 -8
- package/dist/components/modals/RemoveConfirmModal.d.ts +7 -0
- package/dist/constants.d.ts +0 -1
- package/dist/helpers/download.d.ts +2 -2
- package/dist/helpers/hotjar.d.ts +9 -0
- package/dist/helpers/pickRandomEmoji.d.ts +1 -0
- package/dist/hooks/useDateUtils.d.ts +1 -0
- package/dist/hooks/useMenu.d.ts +0 -3
- package/dist/icons.min-43tm8BtD.js +4 -0
- package/dist/{index-B6qa0aiu.js → index-tn5CWDGz.js} +23985 -22644
- package/dist/index.d.ts +14 -13
- package/dist/index.js +247 -249
- package/dist/index.umd.cjs +59 -59
- package/dist/lang/index.d.ts +4 -0
- package/dist/lang/locales/ui_en.json.d.ts +81 -0
- package/dist/lang/locales/ui_es.json.d.ts +78 -0
- package/dist/lang/locales/ui_ru.json.d.ts +82 -0
- package/dist/types/files.d.ts +18 -0
- package/package.json +2 -3
- package/dist/components/AppContainer/components/AllAppsMenu.d.ts +0 -5
- package/dist/components/AppContainer/components/DesktopNavbar.d.ts +0 -7
- package/dist/components/AppContainer/components/NavbarFooter.d.ts +0 -3
- package/dist/components/AppContainer/components/NavbarHeader.d.ts +0 -3
- package/dist/components/AttachmentsGalleryModal/ShakaPlayer.d.ts +0 -15
- package/dist/components/AttachmentsGalleryModal/index.d.ts +0 -2
- package/dist/components/CommentFilterMenu/index.d.ts +0 -9
- package/dist/components/CommentsPanel/components/CommentActionMenu.d.ts +0 -10
- package/dist/components/CommentsPanel/components/CommentActions.d.ts +0 -16
- package/dist/components/CommentsPanel/components/CommentPanelListItem.d.ts +0 -21
- package/dist/components/CommentsPanel/components/CommentTabFilter.d.ts +0 -7
- package/dist/components/CommentsPanel/components/CommentsEmptyPlaceholder.d.ts +0 -6
- package/dist/components/CommentsPanel/components/CommentsFilterHeader.d.ts +0 -3
- package/dist/components/CommentsPanel/components/CommentsListItemMenu.d.ts +0 -7
- package/dist/components/CommentsPanel/components/CommentsPanelList.d.ts +0 -18
- package/dist/components/CommentsPanel/components/CommentsThreadReplyControls.d.ts +0 -15
- package/dist/components/CommentsPanel/components/CommentsUploadFilesPreview.d.ts +0 -10
- package/dist/components/CommentsPanel/components/Icon.d.ts +0 -8
- package/dist/components/CommentsPanel/store.d.ts +0 -25
- package/dist/components/CommentsPanel/types.d.ts +0 -339
- package/dist/components/CommentsPanel/utils.d.ts +0 -14
- package/dist/components/InfoMenu/index.d.ts +0 -1
- package/dist/components/InviteModal/InviteModal.d.ts +0 -2
- package/dist/components/InviteModal/slice.d.ts +0 -13
- package/dist/components/Notification/index.d.ts +0 -6
- package/dist/components/modals/openRemoveConfirmModal.d.ts +0 -4
- package/dist/helpers/pickRandomIcon.d.ts +0 -1
- package/dist/icons.min-wo13YUY4.js +0 -4
- package/dist/store/aboutModal.d.ts +0 -7
- package/dist/store/trashModal.d.ts +0 -7
- /package/dist/components/{AttachmentsGalleryModal → ImageModal}/ImageModal.d.ts +0 -0
|
@@ -1,27 +1,2 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
|
|
3
|
-
import { Comment, Comments, CommentsFilter, CommentsLocales, GeneralComment, GetEditorFn, ICommentFile, StoreOptions, Thread, UpdateCommentTextArgs, SharedCommentProps } from './types.ts';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
interface CommentsPanelProps extends Omit<SharedCommentProps, 'commentOrThread'> {
|
|
6
|
-
comments: Comments;
|
|
7
|
-
activeIDs: string[];
|
|
8
|
-
restoreComment?: (commentId: string, threadId?: string) => void;
|
|
9
|
-
storeOptions: StoreOptions;
|
|
10
|
-
updateThreadId: (tempId: string, realId: string, updatedAt: string, commentType: string, files: ICommentFile[], thread?: Thread) => void;
|
|
11
|
-
deleteCommentImage: (photoToRemove: string, threadOrGeneralId: string, commentId?: string) => void;
|
|
12
|
-
removeCommentReactions: (reaction: string, threatOrGeneral: Thread | GeneralComment | Comment, comment?: Thread | GeneralComment) => void;
|
|
13
|
-
addCommentReaction: (reaction: string, comment: Thread | GeneralComment | Comment, threatOrGeneral?: Thread | GeneralComment) => void;
|
|
14
|
-
updateCommentTextOrImage: UpdateCommentTextArgs;
|
|
15
|
-
markNodeMap?: Map<string, Set<NodeKey>>;
|
|
16
|
-
submitAddComment: (commentOrThread: Comment | Thread | GeneralComment, isInlineComment: boolean, thread?: Thread | GeneralComment, selection?: RangeSelection | null, files?: File[]) => void;
|
|
17
|
-
listRef: React.RefObject<HTMLElement>;
|
|
18
|
-
getEditor: GetEditorFn;
|
|
19
|
-
clipPath?: string;
|
|
20
|
-
isSidebar?: boolean;
|
|
21
|
-
locales: CommentsLocales;
|
|
22
|
-
commentsFilter: CommentsFilter;
|
|
23
|
-
setCommentsFilter: React.Dispatch<React.SetStateAction<CommentsFilter>>;
|
|
24
|
-
isLoading: boolean;
|
|
25
|
-
}
|
|
26
|
-
export declare function CommentsPanel({ activeIDs, deleteCommentOrThread, comments, submitAddComment, markNodeMap, storeOptions, deleteCommentImage, addCommentReaction, removeCommentReactions, restoreComment, updateCommentTextOrImage, listRef, resolveThreat, updateThreadId, locales, getEditor, setCommentsFilter, commentsFilter, clipPath, isLoading, isSidebar, }: CommentsPanelProps): ReactElement;
|
|
27
|
-
export {};
|
|
2
|
+
export declare function CommentsPanel(): ReactElement;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type IconMinified = {
|
|
2
|
+
n: string;
|
|
3
|
+
c: string;
|
|
4
|
+
t: string;
|
|
5
|
+
s: 'outline' | 'filled' | 'unknown';
|
|
6
|
+
}[];
|
|
7
|
+
/**
|
|
8
|
+
* Load and prepare icons list.
|
|
9
|
+
* If project === 'PROJECT' applies special grouping rules and includes custom icons.
|
|
10
|
+
*/
|
|
11
|
+
export declare const getIconsList: (project?: string) => Promise<IconMinified>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getRandomIcon(project?: string): Promise<string | undefined>;
|
|
@@ -23,6 +23,7 @@ export type FilePickerProps = PropsWithChildren<{
|
|
|
23
23
|
type?: FileType;
|
|
24
24
|
isValidMediaUrl?: (url: string) => boolean;
|
|
25
25
|
targetProps?: FlexProps;
|
|
26
|
+
onOpenedChange?: (opened: boolean) => void;
|
|
26
27
|
}>;
|
|
27
|
-
export declare const FilePicker: ({ onChange, onRemove, onUpload, uploading, showTabs, children, width, position, readOnly, hasImage, giphyToken, unsplashClientId, type, galleryCollection, isValidMediaUrl, popoverProps, dropZoneProps, targetProps, locales, }: PropsWithChildren<FilePickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const FilePicker: ({ onChange, onRemove, onUpload, uploading, showTabs, children, width, position, readOnly, hasImage, giphyToken, unsplashClientId, type, galleryCollection, isValidMediaUrl, popoverProps, dropZoneProps, targetProps, onOpenedChange, locales, }: PropsWithChildren<FilePickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
28
29
|
export {};
|
|
@@ -243,6 +243,8 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
|
|
|
243
243
|
fontFamily?: string | undefined;
|
|
244
244
|
} | undefined;
|
|
245
245
|
align?: "center" | "end" | "start" | undefined;
|
|
246
|
+
primaryColor?: string | undefined;
|
|
247
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
246
248
|
background?: {
|
|
247
249
|
image?: string | undefined;
|
|
248
250
|
color?: string | undefined;
|
|
@@ -260,7 +262,6 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
|
|
|
260
262
|
shadowSize?: number | undefined;
|
|
261
263
|
shadowColor?: string | undefined;
|
|
262
264
|
} | undefined;
|
|
263
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
264
265
|
font?: {
|
|
265
266
|
color?: string | undefined;
|
|
266
267
|
fontSize?: number | undefined;
|
|
@@ -268,7 +269,6 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
|
|
|
268
269
|
fontFamily?: string | undefined;
|
|
269
270
|
} | undefined;
|
|
270
271
|
listStyle?: string | undefined;
|
|
271
|
-
primaryColor?: string | undefined;
|
|
272
272
|
customCSS?: string | undefined;
|
|
273
273
|
} | undefined;
|
|
274
274
|
isStart?: boolean | undefined;
|
|
@@ -242,6 +242,8 @@ export declare const sortSteps: (steps: StepData[]) => {
|
|
|
242
242
|
fontFamily?: string | undefined;
|
|
243
243
|
} | undefined;
|
|
244
244
|
align?: "center" | "end" | "start" | undefined;
|
|
245
|
+
primaryColor?: string | undefined;
|
|
246
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
245
247
|
background?: {
|
|
246
248
|
image?: string | undefined;
|
|
247
249
|
color?: string | undefined;
|
|
@@ -259,7 +261,6 @@ export declare const sortSteps: (steps: StepData[]) => {
|
|
|
259
261
|
shadowSize?: number | undefined;
|
|
260
262
|
shadowColor?: string | undefined;
|
|
261
263
|
} | undefined;
|
|
262
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
263
264
|
font?: {
|
|
264
265
|
color?: string | undefined;
|
|
265
266
|
fontSize?: number | undefined;
|
|
@@ -267,7 +268,6 @@ export declare const sortSteps: (steps: StepData[]) => {
|
|
|
267
268
|
fontFamily?: string | undefined;
|
|
268
269
|
} | undefined;
|
|
269
270
|
listStyle?: string | undefined;
|
|
270
|
-
primaryColor?: string | undefined;
|
|
271
271
|
customCSS?: string | undefined;
|
|
272
272
|
} | undefined;
|
|
273
273
|
isStart?: boolean | undefined;
|
|
@@ -242,6 +242,8 @@ export declare const getFirstStep: (steps: StepData[]) => {
|
|
|
242
242
|
fontFamily?: string | undefined;
|
|
243
243
|
} | undefined;
|
|
244
244
|
align?: "center" | "end" | "start" | undefined;
|
|
245
|
+
primaryColor?: string | undefined;
|
|
246
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
245
247
|
background?: {
|
|
246
248
|
image?: string | undefined;
|
|
247
249
|
color?: string | undefined;
|
|
@@ -259,7 +261,6 @@ export declare const getFirstStep: (steps: StepData[]) => {
|
|
|
259
261
|
shadowSize?: number | undefined;
|
|
260
262
|
shadowColor?: string | undefined;
|
|
261
263
|
} | undefined;
|
|
262
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
263
264
|
font?: {
|
|
264
265
|
color?: string | undefined;
|
|
265
266
|
fontSize?: number | undefined;
|
|
@@ -267,7 +268,6 @@ export declare const getFirstStep: (steps: StepData[]) => {
|
|
|
267
268
|
fontFamily?: string | undefined;
|
|
268
269
|
} | undefined;
|
|
269
270
|
listStyle?: string | undefined;
|
|
270
|
-
primaryColor?: string | undefined;
|
|
271
271
|
customCSS?: string | undefined;
|
|
272
272
|
} | undefined;
|
|
273
273
|
isStart?: boolean | undefined;
|
|
@@ -240,6 +240,8 @@ export declare const useActiveStep: () => {
|
|
|
240
240
|
fontFamily?: string | undefined;
|
|
241
241
|
} | undefined;
|
|
242
242
|
align?: "center" | "end" | "start" | undefined;
|
|
243
|
+
primaryColor?: string | undefined;
|
|
244
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
243
245
|
background?: {
|
|
244
246
|
image?: string | undefined;
|
|
245
247
|
color?: string | undefined;
|
|
@@ -257,7 +259,6 @@ export declare const useActiveStep: () => {
|
|
|
257
259
|
shadowSize?: number | undefined;
|
|
258
260
|
shadowColor?: string | undefined;
|
|
259
261
|
} | undefined;
|
|
260
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
261
262
|
font?: {
|
|
262
263
|
color?: string | undefined;
|
|
263
264
|
fontSize?: number | undefined;
|
|
@@ -265,7 +266,6 @@ export declare const useActiveStep: () => {
|
|
|
265
266
|
fontFamily?: string | undefined;
|
|
266
267
|
} | undefined;
|
|
267
268
|
listStyle?: string | undefined;
|
|
268
|
-
primaryColor?: string | undefined;
|
|
269
269
|
customCSS?: string | undefined;
|
|
270
270
|
} | undefined;
|
|
271
271
|
isStart?: boolean | undefined;
|
|
@@ -21,32 +21,32 @@ export type FormStoreState = {
|
|
|
21
21
|
export declare const createFormStore: () => {
|
|
22
22
|
useStore: import('zustand').UseBoundStore<import('zustand').StoreApi<FormStoreState>>;
|
|
23
23
|
api: {
|
|
24
|
-
applyTheme: (theme: import('
|
|
24
|
+
applyTheme: (theme: import('..').ThemeData) => void;
|
|
25
25
|
setLayout: (layout: FormViewLayout) => void;
|
|
26
|
-
patchSettingsData: (v: Partial<import('
|
|
27
|
-
patchThemeData: (v: Partial<import('
|
|
28
|
-
patchContainerTheme: (v: Partial<import('
|
|
29
|
-
patchTitleProperties: (v: Partial<import('
|
|
30
|
-
patchDescriptionProperties: (v: Partial<import('
|
|
31
|
-
patchCommonFontProperties: (v: Partial<import('
|
|
26
|
+
patchSettingsData: (v: Partial<import('..').SettingsData>) => void;
|
|
27
|
+
patchThemeData: (v: Partial<import('..').ThemeData>) => void;
|
|
28
|
+
patchContainerTheme: (v: Partial<import('..').ContainerProperties>) => void;
|
|
29
|
+
patchTitleProperties: (v: Partial<import('..').TextProperties>) => void;
|
|
30
|
+
patchDescriptionProperties: (v: Partial<import('..').TextProperties>) => void;
|
|
31
|
+
patchCommonFontProperties: (v: Partial<import('..').TextProperties>) => void;
|
|
32
32
|
setSteps: (steps: StepData[]) => void;
|
|
33
33
|
addStep: (step: StepData, index?: number) => void;
|
|
34
34
|
removeStep: (stepId: string) => void;
|
|
35
35
|
updateStep: (stepId: string, updatedStep: Partial<StepData>) => void;
|
|
36
|
-
updateControl: <CONTROL extends import('
|
|
36
|
+
updateControl: <CONTROL extends import('..').Control>(stepId: string, controlId: string, updatedControl: Partial<CONTROL>) => void;
|
|
37
37
|
reorderSteps: (fromId: string, toId: string) => void;
|
|
38
38
|
reorderControls: (stepId: string, activeId: string, overId: string) => void;
|
|
39
|
-
addControl: (stepId: string, newControl: import('
|
|
39
|
+
addControl: (stepId: string, newControl: import('..').Control) => void;
|
|
40
40
|
removeControl: (stepId: string, controlId: string) => void;
|
|
41
|
-
addCondition: (stepId: string, newCondition: import('
|
|
42
|
-
updateCondition: (stepId: string, conditionIndex: number, updatedCondition: Partial<import('
|
|
41
|
+
addCondition: (stepId: string, newCondition: import('..').Condition) => void;
|
|
42
|
+
updateCondition: (stepId: string, conditionIndex: number, updatedCondition: Partial<import('..').Condition>) => void;
|
|
43
43
|
removeCondition: (stepId: string, conditionIndex: number) => void;
|
|
44
44
|
setIsMobile: (isMobile: boolean) => void;
|
|
45
45
|
setConfig: (config: ParsedFormConfig | null, { silent }?: {
|
|
46
46
|
silent?: boolean;
|
|
47
47
|
}) => void;
|
|
48
48
|
setActiveStepId: (stepId: string) => void;
|
|
49
|
-
setFormLayout: (layout: import('
|
|
49
|
+
setFormLayout: (layout: import('..').FormLayout) => void;
|
|
50
50
|
scrollToControl: (controlId: string) => void;
|
|
51
51
|
getConfig: () => Required<{
|
|
52
52
|
theme?: {
|
|
@@ -68,6 +68,8 @@ export declare const createFormStore: () => {
|
|
|
68
68
|
fontFamily?: string | undefined;
|
|
69
69
|
} | undefined;
|
|
70
70
|
align?: "center" | "end" | "start" | undefined;
|
|
71
|
+
primaryColor?: string | undefined;
|
|
72
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
71
73
|
background?: {
|
|
72
74
|
image?: string | undefined;
|
|
73
75
|
color?: string | undefined;
|
|
@@ -85,7 +87,6 @@ export declare const createFormStore: () => {
|
|
|
85
87
|
shadowSize?: number | undefined;
|
|
86
88
|
shadowColor?: string | undefined;
|
|
87
89
|
} | undefined;
|
|
88
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
89
90
|
font?: {
|
|
90
91
|
color?: string | undefined;
|
|
91
92
|
fontSize?: number | undefined;
|
|
@@ -93,7 +94,6 @@ export declare const createFormStore: () => {
|
|
|
93
94
|
fontFamily?: string | undefined;
|
|
94
95
|
} | undefined;
|
|
95
96
|
listStyle?: string | undefined;
|
|
96
|
-
primaryColor?: string | undefined;
|
|
97
97
|
customCSS?: string | undefined;
|
|
98
98
|
} | undefined;
|
|
99
99
|
settings?: {
|
|
@@ -350,6 +350,8 @@ export declare const createFormStore: () => {
|
|
|
350
350
|
fontFamily?: string | undefined;
|
|
351
351
|
} | undefined;
|
|
352
352
|
align?: "center" | "end" | "start" | undefined;
|
|
353
|
+
primaryColor?: string | undefined;
|
|
354
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
353
355
|
background?: {
|
|
354
356
|
image?: string | undefined;
|
|
355
357
|
color?: string | undefined;
|
|
@@ -367,7 +369,6 @@ export declare const createFormStore: () => {
|
|
|
367
369
|
shadowSize?: number | undefined;
|
|
368
370
|
shadowColor?: string | undefined;
|
|
369
371
|
} | undefined;
|
|
370
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
371
372
|
font?: {
|
|
372
373
|
color?: string | undefined;
|
|
373
374
|
fontSize?: number | undefined;
|
|
@@ -375,7 +376,6 @@ export declare const createFormStore: () => {
|
|
|
375
376
|
fontFamily?: string | undefined;
|
|
376
377
|
} | undefined;
|
|
377
378
|
listStyle?: string | undefined;
|
|
378
|
-
primaryColor?: string | undefined;
|
|
379
379
|
customCSS?: string | undefined;
|
|
380
380
|
} | undefined;
|
|
381
381
|
isStart?: boolean | undefined;
|
|
@@ -631,6 +631,8 @@ export declare const createFormStore: () => {
|
|
|
631
631
|
fontFamily?: string | undefined;
|
|
632
632
|
} | undefined;
|
|
633
633
|
align?: "center" | "end" | "start" | undefined;
|
|
634
|
+
primaryColor?: string | undefined;
|
|
635
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
634
636
|
background?: {
|
|
635
637
|
image?: string | undefined;
|
|
636
638
|
color?: string | undefined;
|
|
@@ -648,7 +650,6 @@ export declare const createFormStore: () => {
|
|
|
648
650
|
shadowSize?: number | undefined;
|
|
649
651
|
shadowColor?: string | undefined;
|
|
650
652
|
} | undefined;
|
|
651
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
652
653
|
font?: {
|
|
653
654
|
color?: string | undefined;
|
|
654
655
|
fontSize?: number | undefined;
|
|
@@ -656,7 +657,6 @@ export declare const createFormStore: () => {
|
|
|
656
657
|
fontFamily?: string | undefined;
|
|
657
658
|
} | undefined;
|
|
658
659
|
listStyle?: string | undefined;
|
|
659
|
-
primaryColor?: string | undefined;
|
|
660
660
|
customCSS?: string | undefined;
|
|
661
661
|
} | undefined;
|
|
662
662
|
isStart?: boolean | undefined;
|
|
@@ -699,32 +699,32 @@ export declare const FormStoreProvider: ({ children, editing, preview, store, ad
|
|
|
699
699
|
export declare const useFormViewerStore: () => {
|
|
700
700
|
useStore: import('zustand').UseBoundStore<import('zustand').StoreApi<FormStoreState>>;
|
|
701
701
|
api: {
|
|
702
|
-
applyTheme: (theme: import('
|
|
702
|
+
applyTheme: (theme: import('..').ThemeData) => void;
|
|
703
703
|
setLayout: (layout: FormViewLayout) => void;
|
|
704
|
-
patchSettingsData: (v: Partial<import('
|
|
705
|
-
patchThemeData: (v: Partial<import('
|
|
706
|
-
patchContainerTheme: (v: Partial<import('
|
|
707
|
-
patchTitleProperties: (v: Partial<import('
|
|
708
|
-
patchDescriptionProperties: (v: Partial<import('
|
|
709
|
-
patchCommonFontProperties: (v: Partial<import('
|
|
704
|
+
patchSettingsData: (v: Partial<import('..').SettingsData>) => void;
|
|
705
|
+
patchThemeData: (v: Partial<import('..').ThemeData>) => void;
|
|
706
|
+
patchContainerTheme: (v: Partial<import('..').ContainerProperties>) => void;
|
|
707
|
+
patchTitleProperties: (v: Partial<import('..').TextProperties>) => void;
|
|
708
|
+
patchDescriptionProperties: (v: Partial<import('..').TextProperties>) => void;
|
|
709
|
+
patchCommonFontProperties: (v: Partial<import('..').TextProperties>) => void;
|
|
710
710
|
setSteps: (steps: StepData[]) => void;
|
|
711
711
|
addStep: (step: StepData, index?: number) => void;
|
|
712
712
|
removeStep: (stepId: string) => void;
|
|
713
713
|
updateStep: (stepId: string, updatedStep: Partial<StepData>) => void;
|
|
714
|
-
updateControl: <CONTROL extends import('
|
|
714
|
+
updateControl: <CONTROL extends import('..').Control>(stepId: string, controlId: string, updatedControl: Partial<CONTROL>) => void;
|
|
715
715
|
reorderSteps: (fromId: string, toId: string) => void;
|
|
716
716
|
reorderControls: (stepId: string, activeId: string, overId: string) => void;
|
|
717
|
-
addControl: (stepId: string, newControl: import('
|
|
717
|
+
addControl: (stepId: string, newControl: import('..').Control) => void;
|
|
718
718
|
removeControl: (stepId: string, controlId: string) => void;
|
|
719
|
-
addCondition: (stepId: string, newCondition: import('
|
|
720
|
-
updateCondition: (stepId: string, conditionIndex: number, updatedCondition: Partial<import('
|
|
719
|
+
addCondition: (stepId: string, newCondition: import('..').Condition) => void;
|
|
720
|
+
updateCondition: (stepId: string, conditionIndex: number, updatedCondition: Partial<import('..').Condition>) => void;
|
|
721
721
|
removeCondition: (stepId: string, conditionIndex: number) => void;
|
|
722
722
|
setIsMobile: (isMobile: boolean) => void;
|
|
723
723
|
setConfig: (config: ParsedFormConfig | null, { silent }?: {
|
|
724
724
|
silent?: boolean;
|
|
725
725
|
}) => void;
|
|
726
726
|
setActiveStepId: (stepId: string) => void;
|
|
727
|
-
setFormLayout: (layout: import('
|
|
727
|
+
setFormLayout: (layout: import('..').FormLayout) => void;
|
|
728
728
|
scrollToControl: (controlId: string) => void;
|
|
729
729
|
getConfig: () => Required<{
|
|
730
730
|
theme?: {
|
|
@@ -746,6 +746,8 @@ export declare const useFormViewerStore: () => {
|
|
|
746
746
|
fontFamily?: string | undefined;
|
|
747
747
|
} | undefined;
|
|
748
748
|
align?: "center" | "end" | "start" | undefined;
|
|
749
|
+
primaryColor?: string | undefined;
|
|
750
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
749
751
|
background?: {
|
|
750
752
|
image?: string | undefined;
|
|
751
753
|
color?: string | undefined;
|
|
@@ -763,7 +765,6 @@ export declare const useFormViewerStore: () => {
|
|
|
763
765
|
shadowSize?: number | undefined;
|
|
764
766
|
shadowColor?: string | undefined;
|
|
765
767
|
} | undefined;
|
|
766
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
767
768
|
font?: {
|
|
768
769
|
color?: string | undefined;
|
|
769
770
|
fontSize?: number | undefined;
|
|
@@ -771,7 +772,6 @@ export declare const useFormViewerStore: () => {
|
|
|
771
772
|
fontFamily?: string | undefined;
|
|
772
773
|
} | undefined;
|
|
773
774
|
listStyle?: string | undefined;
|
|
774
|
-
primaryColor?: string | undefined;
|
|
775
775
|
customCSS?: string | undefined;
|
|
776
776
|
} | undefined;
|
|
777
777
|
settings?: {
|
|
@@ -1028,6 +1028,8 @@ export declare const useFormViewerStore: () => {
|
|
|
1028
1028
|
fontFamily?: string | undefined;
|
|
1029
1029
|
} | undefined;
|
|
1030
1030
|
align?: "center" | "end" | "start" | undefined;
|
|
1031
|
+
primaryColor?: string | undefined;
|
|
1032
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
1031
1033
|
background?: {
|
|
1032
1034
|
image?: string | undefined;
|
|
1033
1035
|
color?: string | undefined;
|
|
@@ -1045,7 +1047,6 @@ export declare const useFormViewerStore: () => {
|
|
|
1045
1047
|
shadowSize?: number | undefined;
|
|
1046
1048
|
shadowColor?: string | undefined;
|
|
1047
1049
|
} | undefined;
|
|
1048
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
1049
1050
|
font?: {
|
|
1050
1051
|
color?: string | undefined;
|
|
1051
1052
|
fontSize?: number | undefined;
|
|
@@ -1053,7 +1054,6 @@ export declare const useFormViewerStore: () => {
|
|
|
1053
1054
|
fontFamily?: string | undefined;
|
|
1054
1055
|
} | undefined;
|
|
1055
1056
|
listStyle?: string | undefined;
|
|
1056
|
-
primaryColor?: string | undefined;
|
|
1057
1057
|
customCSS?: string | undefined;
|
|
1058
1058
|
} | undefined;
|
|
1059
1059
|
isStart?: boolean | undefined;
|
|
@@ -1309,6 +1309,8 @@ export declare const useFormViewerStore: () => {
|
|
|
1309
1309
|
fontFamily?: string | undefined;
|
|
1310
1310
|
} | undefined;
|
|
1311
1311
|
align?: "center" | "end" | "start" | undefined;
|
|
1312
|
+
primaryColor?: string | undefined;
|
|
1313
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
1312
1314
|
background?: {
|
|
1313
1315
|
image?: string | undefined;
|
|
1314
1316
|
color?: string | undefined;
|
|
@@ -1326,7 +1328,6 @@ export declare const useFormViewerStore: () => {
|
|
|
1326
1328
|
shadowSize?: number | undefined;
|
|
1327
1329
|
shadowColor?: string | undefined;
|
|
1328
1330
|
} | undefined;
|
|
1329
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
1330
1331
|
font?: {
|
|
1331
1332
|
color?: string | undefined;
|
|
1332
1333
|
fontSize?: number | undefined;
|
|
@@ -1334,7 +1335,6 @@ export declare const useFormViewerStore: () => {
|
|
|
1334
1335
|
fontFamily?: string | undefined;
|
|
1335
1336
|
} | undefined;
|
|
1336
1337
|
listStyle?: string | undefined;
|
|
1337
|
-
primaryColor?: string | undefined;
|
|
1338
1338
|
customCSS?: string | undefined;
|
|
1339
1339
|
} | undefined;
|
|
1340
1340
|
isStart?: boolean | undefined;
|
|
@@ -49,6 +49,8 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
|
|
|
49
49
|
fontFamily?: string | undefined;
|
|
50
50
|
} | undefined;
|
|
51
51
|
align?: "center" | "end" | "start" | undefined;
|
|
52
|
+
primaryColor?: string | undefined;
|
|
53
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
52
54
|
background?: {
|
|
53
55
|
image?: string | undefined;
|
|
54
56
|
color?: string | undefined;
|
|
@@ -66,7 +68,6 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
|
|
|
66
68
|
shadowSize?: number | undefined;
|
|
67
69
|
shadowColor?: string | undefined;
|
|
68
70
|
} | undefined;
|
|
69
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
70
71
|
font?: {
|
|
71
72
|
color?: string | undefined;
|
|
72
73
|
fontSize?: number | undefined;
|
|
@@ -74,7 +75,6 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
|
|
|
74
75
|
fontFamily?: string | undefined;
|
|
75
76
|
} | undefined;
|
|
76
77
|
listStyle?: string | undefined;
|
|
77
|
-
primaryColor?: string | undefined;
|
|
78
78
|
customCSS?: string | undefined;
|
|
79
79
|
} | undefined;
|
|
80
80
|
settings?: {
|
|
@@ -331,6 +331,8 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
|
|
|
331
331
|
fontFamily?: string | undefined;
|
|
332
332
|
} | undefined;
|
|
333
333
|
align?: "center" | "end" | "start" | undefined;
|
|
334
|
+
primaryColor?: string | undefined;
|
|
335
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
334
336
|
background?: {
|
|
335
337
|
image?: string | undefined;
|
|
336
338
|
color?: string | undefined;
|
|
@@ -348,7 +350,6 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
|
|
|
348
350
|
shadowSize?: number | undefined;
|
|
349
351
|
shadowColor?: string | undefined;
|
|
350
352
|
} | undefined;
|
|
351
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
352
353
|
font?: {
|
|
353
354
|
color?: string | undefined;
|
|
354
355
|
fontSize?: number | undefined;
|
|
@@ -356,7 +357,6 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
|
|
|
356
357
|
fontFamily?: string | undefined;
|
|
357
358
|
} | undefined;
|
|
358
359
|
listStyle?: string | undefined;
|
|
359
|
-
primaryColor?: string | undefined;
|
|
360
360
|
customCSS?: string | undefined;
|
|
361
361
|
} | undefined;
|
|
362
362
|
isStart?: boolean | undefined;
|
|
@@ -612,6 +612,8 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
|
|
|
612
612
|
fontFamily?: string | undefined;
|
|
613
613
|
} | undefined;
|
|
614
614
|
align?: "center" | "end" | "start" | undefined;
|
|
615
|
+
primaryColor?: string | undefined;
|
|
616
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
615
617
|
background?: {
|
|
616
618
|
image?: string | undefined;
|
|
617
619
|
color?: string | undefined;
|
|
@@ -629,7 +631,6 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
|
|
|
629
631
|
shadowSize?: number | undefined;
|
|
630
632
|
shadowColor?: string | undefined;
|
|
631
633
|
} | undefined;
|
|
632
|
-
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
633
634
|
font?: {
|
|
634
635
|
color?: string | undefined;
|
|
635
636
|
fontSize?: number | undefined;
|
|
@@ -637,7 +638,6 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
|
|
|
637
638
|
fontFamily?: string | undefined;
|
|
638
639
|
} | undefined;
|
|
639
640
|
listStyle?: string | undefined;
|
|
640
|
-
primaryColor?: string | undefined;
|
|
641
641
|
customCSS?: string | undefined;
|
|
642
642
|
} | undefined;
|
|
643
643
|
isStart?: boolean | undefined;
|