@layers-app/shared 0.0.44 → 0.1.0

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.
Files changed (98) hide show
  1. package/dist/{KanbanLayout-DrevX3Ow.js → KanbanLayout-CkCywhDz.js} +3 -3
  2. package/dist/components/AppContainer/AppContainer.d.ts +2 -3
  3. package/dist/components/AppContainer/Header.d.ts +8 -0
  4. package/dist/components/AppContainer/Main.d.ts +2 -0
  5. package/dist/components/AppContainer/components/AppSidebarButton.d.ts +9 -0
  6. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts +1 -0
  7. package/dist/components/AppContainer/components/AppsSidebar/AppsSidebar.d.ts +4 -0
  8. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts +1 -0
  9. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts +4 -0
  10. package/dist/components/AppContainer/components/MobileNavbar.d.ts +2 -2
  11. package/dist/components/AppContainer/components/RightSidebar.d.ts +2 -0
  12. package/dist/components/AppContainer/components/SidebarToggleButton.d.ts +3 -0
  13. package/dist/components/AppContainer/components/SlideAnimation.d.ts +6 -0
  14. package/dist/components/AppContainer/components/ToolSidebar.d.ts +3 -0
  15. package/dist/components/AppContainer/components/ToolbarNewButton.d.ts +2 -0
  16. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts +1 -0
  17. package/dist/components/AppContainer/components/menus/HelpMenu/WhatsNew.d.ts +7 -0
  18. package/dist/components/AppContainer/components/menus/MoreMenu.d.ts +1 -0
  19. package/dist/components/AppContainer/components/{MenuUserDropdown.d.ts → menus/UserMenu/MenuUserDropdown.d.ts} +1 -1
  20. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  21. package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts +30 -12
  22. package/dist/components/AppContainer/types.d.ts +15 -11
  23. package/dist/components/AppShell/AppShell.d.ts +12 -0
  24. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +22 -0
  25. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts +9 -0
  26. package/dist/components/AttachmentsGalleryModal/components/ErrorSection.d.ts +1 -0
  27. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +9 -0
  28. package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts +4 -0
  29. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts +7 -0
  30. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +7 -0
  31. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +9 -0
  32. package/dist/components/AttachmentsGalleryModal/constants.d.ts +19 -0
  33. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts +8 -0
  34. package/dist/components/AttachmentsGalleryModal/hooks/useEmblaCarousel.d.ts +8 -0
  35. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +8 -0
  36. package/dist/components/AttachmentsGalleryModal/hooks/useZoomReset.d.ts +1 -0
  37. package/dist/components/AttachmentsGalleryModal/types.d.ts +0 -8
  38. package/dist/components/CommentComposer/index.d.ts +1 -1
  39. package/dist/components/CommentsPanel/components/CommentsListItemMenu.d.ts +1 -1
  40. package/dist/components/EntityIcon.d.ts +7 -0
  41. package/dist/components/FormViewer/helpers/conditions.d.ts +1 -1
  42. package/dist/components/FormViewer/helpers/helpers.d.ts +1 -1
  43. package/dist/components/FormViewer/helpers/steps.d.ts +1 -1
  44. package/dist/components/FormViewer/hooks/useActiveStep.d.ts +1 -1
  45. package/dist/components/FormViewer/store/formStore.d.ts +30 -30
  46. package/dist/components/FormViewer/store/formStoreApi.d.ts +3 -3
  47. package/dist/components/FormViewer/store/selectors.d.ts +342 -342
  48. package/dist/components/FormViewer/types/schemes.d.ts +22 -22
  49. package/dist/components/Loaders/BaseLoader.d.ts +3 -0
  50. package/dist/components/NavMenu/NavMenu.d.ts +21 -0
  51. package/dist/components/NavMenu/components/DnDItem.d.ts +8 -0
  52. package/dist/components/NavMenu/components/DnDProvider.d.ts +8 -0
  53. package/dist/components/NavMenu/components/DraggableOverlay.d.ts +1 -0
  54. package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts +2 -0
  55. package/dist/components/NavMenu/components/NavMenuItem.d.ts +7 -0
  56. package/dist/components/NavMenu/components/NavMenuLabel.d.ts +3 -0
  57. package/dist/components/NavMenu/index.d.ts +5 -0
  58. package/dist/components/NavMenu/store.d.ts +37 -0
  59. package/dist/components/NavMenu/types.d.ts +29 -0
  60. package/dist/components/NavbarResizer/NavbarResizer.d.ts +5 -2
  61. package/dist/components/Notification/Notification.d.ts +1 -0
  62. package/dist/components/Notification/NotificationCard.d.ts +1 -1
  63. package/dist/components/ProjectIcon/ProjectIcon.d.ts +8 -3
  64. package/dist/components/RichText/index.d.ts +3 -3
  65. package/dist/components/SubmitModal/index.d.ts +2 -2
  66. package/dist/components/UserAvatar/index.d.ts +1 -1
  67. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +6 -10
  68. package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts +2 -14
  69. package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts +9 -8
  70. package/dist/components/modals/RemoveConfirmModal.d.ts +2 -0
  71. package/dist/constants.d.ts +0 -1
  72. package/dist/helpers/download.d.ts +2 -2
  73. package/dist/hooks/useDateUtils.d.ts +1 -0
  74. package/dist/hooks/useMenu.d.ts +0 -3
  75. package/dist/{index-B6qa0aiu.js → index-rY9riqpK.js} +26238 -23539
  76. package/dist/index.d.ts +11 -11
  77. package/dist/index.js +245 -248
  78. package/dist/index.umd.cjs +59 -59
  79. package/dist/lang/index.d.ts +4 -0
  80. package/dist/lang/locales/ui_en.json.d.ts +80 -0
  81. package/dist/lang/locales/ui_es.json.d.ts +77 -0
  82. package/dist/lang/locales/ui_ru.json.d.ts +81 -0
  83. package/dist/types/files.d.ts +18 -0
  84. package/package.json +2 -3
  85. package/dist/components/AppContainer/components/AllAppsMenu.d.ts +0 -5
  86. package/dist/components/AppContainer/components/DesktopNavbar.d.ts +0 -7
  87. package/dist/components/AppContainer/components/NavbarFooter.d.ts +0 -3
  88. package/dist/components/AppContainer/components/NavbarHeader.d.ts +0 -3
  89. package/dist/components/AttachmentsGalleryModal/ShakaPlayer.d.ts +0 -15
  90. package/dist/components/AttachmentsGalleryModal/index.d.ts +0 -2
  91. package/dist/components/InfoMenu/index.d.ts +0 -1
  92. package/dist/components/InviteModal/InviteModal.d.ts +0 -2
  93. package/dist/components/InviteModal/slice.d.ts +0 -13
  94. package/dist/components/Notification/index.d.ts +0 -6
  95. package/dist/components/modals/openRemoveConfirmModal.d.ts +0 -4
  96. package/dist/store/aboutModal.d.ts +0 -7
  97. package/dist/store/trashModal.d.ts +0 -7
  98. /package/dist/components/{AttachmentsGalleryModal → ImageModal}/ImageModal.d.ts +0 -0
@@ -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('../types/form').ThemeData) => void;
24
+ applyTheme: (theme: import('..').ThemeData) => void;
25
25
  setLayout: (layout: FormViewLayout) => void;
26
- patchSettingsData: (v: Partial<import('../types/form').SettingsData>) => void;
27
- patchThemeData: (v: Partial<import('../types/form').ThemeData>) => void;
28
- patchContainerTheme: (v: Partial<import('../types/form').ContainerProperties>) => void;
29
- patchTitleProperties: (v: Partial<import('../types/form').TextProperties>) => void;
30
- patchDescriptionProperties: (v: Partial<import('../types/form').TextProperties>) => void;
31
- patchCommonFontProperties: (v: Partial<import('../types/form').TextProperties>) => void;
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('../types/form').Control>(stepId: string, controlId: string, updatedControl: Partial<CONTROL>) => void;
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('../types/form').Control) => void;
39
+ addControl: (stepId: string, newControl: import('..').Control) => void;
40
40
  removeControl: (stepId: string, controlId: string) => void;
41
- addCondition: (stepId: string, newCondition: import('../types/form').Condition) => void;
42
- updateCondition: (stepId: string, conditionIndex: number, updatedCondition: Partial<import('../types/form').Condition>) => void;
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('../types/form').FormLayout) => void;
49
+ setFormLayout: (layout: import('..').FormLayout) => void;
50
50
  scrollToControl: (controlId: string) => void;
51
51
  getConfig: () => Required<{
52
52
  theme?: {
@@ -68,6 +68,7 @@ export declare const createFormStore: () => {
68
68
  fontFamily?: string | undefined;
69
69
  } | undefined;
70
70
  align?: "center" | "end" | "start" | undefined;
71
+ primaryColor?: string | undefined;
71
72
  background?: {
72
73
  image?: string | undefined;
73
74
  color?: string | 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,7 @@ export declare const createFormStore: () => {
350
350
  fontFamily?: string | undefined;
351
351
  } | undefined;
352
352
  align?: "center" | "end" | "start" | undefined;
353
+ primaryColor?: string | undefined;
353
354
  background?: {
354
355
  image?: string | undefined;
355
356
  color?: string | 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,7 @@ export declare const createFormStore: () => {
631
631
  fontFamily?: string | undefined;
632
632
  } | undefined;
633
633
  align?: "center" | "end" | "start" | undefined;
634
+ primaryColor?: string | undefined;
634
635
  background?: {
635
636
  image?: string | undefined;
636
637
  color?: string | 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('../types/form').ThemeData) => void;
702
+ applyTheme: (theme: import('..').ThemeData) => void;
703
703
  setLayout: (layout: FormViewLayout) => void;
704
- patchSettingsData: (v: Partial<import('../types/form').SettingsData>) => void;
705
- patchThemeData: (v: Partial<import('../types/form').ThemeData>) => void;
706
- patchContainerTheme: (v: Partial<import('../types/form').ContainerProperties>) => void;
707
- patchTitleProperties: (v: Partial<import('../types/form').TextProperties>) => void;
708
- patchDescriptionProperties: (v: Partial<import('../types/form').TextProperties>) => void;
709
- patchCommonFontProperties: (v: Partial<import('../types/form').TextProperties>) => void;
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('../types/form').Control>(stepId: string, controlId: string, updatedControl: Partial<CONTROL>) => void;
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('../types/form').Control) => void;
717
+ addControl: (stepId: string, newControl: import('..').Control) => void;
718
718
  removeControl: (stepId: string, controlId: string) => void;
719
- addCondition: (stepId: string, newCondition: import('../types/form').Condition) => void;
720
- updateCondition: (stepId: string, conditionIndex: number, updatedCondition: Partial<import('../types/form').Condition>) => void;
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('../types/form').FormLayout) => void;
727
+ setFormLayout: (layout: import('..').FormLayout) => void;
728
728
  scrollToControl: (controlId: string) => void;
729
729
  getConfig: () => Required<{
730
730
  theme?: {
@@ -746,6 +746,7 @@ export declare const useFormViewerStore: () => {
746
746
  fontFamily?: string | undefined;
747
747
  } | undefined;
748
748
  align?: "center" | "end" | "start" | undefined;
749
+ primaryColor?: string | undefined;
749
750
  background?: {
750
751
  image?: string | undefined;
751
752
  color?: string | 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,7 @@ export declare const useFormViewerStore: () => {
1028
1028
  fontFamily?: string | undefined;
1029
1029
  } | undefined;
1030
1030
  align?: "center" | "end" | "start" | undefined;
1031
+ primaryColor?: string | undefined;
1031
1032
  background?: {
1032
1033
  image?: string | undefined;
1033
1034
  color?: string | 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,7 @@ export declare const useFormViewerStore: () => {
1309
1309
  fontFamily?: string | undefined;
1310
1310
  } | undefined;
1311
1311
  align?: "center" | "end" | "start" | undefined;
1312
+ primaryColor?: string | undefined;
1312
1313
  background?: {
1313
1314
  image?: string | undefined;
1314
1315
  color?: string | 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,7 @@ 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;
52
53
  background?: {
53
54
  image?: string | undefined;
54
55
  color?: string | 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,7 @@ 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;
334
335
  background?: {
335
336
  image?: string | undefined;
336
337
  color?: string | 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,7 @@ 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;
615
616
  background?: {
616
617
  image?: string | undefined;
617
618
  color?: string | 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;