@layers-app/shared 0.4.0 → 0.4.2

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 (156) hide show
  1. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
  2. package/dist/components/AnimatedFigurePage/useParallax.d.ts +2 -2
  3. package/dist/components/AppContainer/AppContainer.d.ts +6 -1
  4. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  5. package/dist/components/AppContainer/components/AppSidebarButton.d.ts +4 -1
  6. package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
  7. package/dist/components/AppContainer/components/AppSidebarButton.js +22 -15
  8. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
  9. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +22 -21
  10. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  11. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +48 -91
  12. package/dist/components/AppContainer/components/ToolbarNewButton.d.ts +7 -2
  13. package/dist/components/AppContainer/components/ToolbarNewButton.d.ts.map +1 -1
  14. package/dist/components/AppContainer/components/ToolbarNewButton.js +14 -14
  15. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +3 -1
  16. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
  17. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +96 -64
  18. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  19. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +76 -67
  20. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +1 -1
  21. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
  22. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +35 -26
  23. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +1 -1
  24. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
  25. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +43 -36
  26. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +7 -0
  27. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +1 -0
  28. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +17 -0
  29. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +4 -0
  30. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  31. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +59 -20
  32. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +34 -22
  33. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  34. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +22 -18
  35. package/dist/components/ColorPicker/ColorPicker.d.ts +12 -11
  36. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  37. package/dist/components/ColorPicker/ColorPicker.js +109 -83
  38. package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
  39. package/dist/components/ColorPicker/ColorPickerList.js +62 -63
  40. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  41. package/dist/components/ColorPicker/ColorPickerToolbar.js +128 -120
  42. package/dist/components/ColorPicker/icons.js +3 -3
  43. package/dist/components/ColorPicker/types.d.ts +3 -1
  44. package/dist/components/ColorPicker/types.d.ts.map +1 -1
  45. package/dist/components/ColorPicker/types.js +11 -5
  46. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
  47. package/dist/components/CommentComposer/CommentEditorHotkeys.js +55 -45
  48. package/dist/components/CommentComposer/useVirtualAnchor.d.ts +1 -1
  49. package/dist/components/CommentComposer/useVirtualAnchor.d.ts.map +1 -1
  50. package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -1
  51. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  52. package/dist/components/EntityIcon.d.ts.map +1 -1
  53. package/dist/components/EntityIcon.js +43 -33
  54. package/dist/components/FilePicker/FilePicker.d.ts +3 -1
  55. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  56. package/dist/components/FilePicker/FilePicker.js +44 -42
  57. package/dist/components/FilePicker/FilePickerUpload.d.ts +3 -1
  58. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  59. package/dist/components/FilePicker/FilePickerUpload.js +28 -28
  60. package/dist/components/FormViewer/helpers/conditions.d.ts +38 -38
  61. package/dist/components/FormViewer/helpers/helpers.d.ts +38 -38
  62. package/dist/components/FormViewer/helpers/steps.d.ts +38 -38
  63. package/dist/components/FormViewer/hooks/useActiveControl.d.ts +19 -19
  64. package/dist/components/FormViewer/hooks/useActiveStep.d.ts +38 -38
  65. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +6 -0
  66. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts.map +1 -1
  67. package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +4 -3
  68. package/dist/components/FormViewer/hooks/useFormMobile.d.ts +1 -1
  69. package/dist/components/FormViewer/hooks/useFormMobile.d.ts.map +1 -1
  70. package/dist/components/FormViewer/store/formStore.d.ts +248 -248
  71. package/dist/components/FormViewer/store/formStoreApi.d.ts +124 -124
  72. package/dist/components/FormViewer/store/selectors.d.ts +11655 -11655
  73. package/dist/components/FormViewer/types/form.d.ts +1 -1
  74. package/dist/components/FormViewer/types/form.d.ts.map +1 -1
  75. package/dist/components/FormViewer/types/schemes.d.ts +381 -6358
  76. package/dist/components/FormViewer/types/schemes.d.ts.map +1 -1
  77. package/dist/components/FormViewer/types/schemes.js +1 -1
  78. package/dist/components/GroupAvatar/index.d.ts +3 -1
  79. package/dist/components/GroupAvatar/index.d.ts.map +1 -1
  80. package/dist/components/GroupAvatar/index.js +24 -21
  81. package/dist/components/LanguagePicker/LanguagePicker.d.ts +13 -3
  82. package/dist/components/LanguagePicker/LanguagePicker.d.ts.map +1 -1
  83. package/dist/components/LanguagePicker/LanguagePicker.js +65 -43
  84. package/dist/components/MediaLibrary/MediaLibraryRow.js +7 -7
  85. package/dist/components/NavMenu/NavMenu.d.ts +3 -1
  86. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  87. package/dist/components/NavMenu/components/DnDProvider.d.ts +1 -1
  88. package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
  89. package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts +7 -1
  90. package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts.map +1 -1
  91. package/dist/components/NavMenu/components/NavMenuActionIcon.js +21 -23
  92. package/dist/components/NewColorPicker/components/Target.d.ts +3 -1
  93. package/dist/components/NewColorPicker/components/Target.d.ts.map +1 -1
  94. package/dist/components/NewColorPicker/components/Target.js +48 -43
  95. package/dist/components/Notification/Notification.js +3 -1
  96. package/dist/components/Notification/NotificationCard.d.ts +3 -1
  97. package/dist/components/Notification/NotificationCard.d.ts.map +1 -1
  98. package/dist/components/Notification/NotificationCard.js +87 -86
  99. package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts +6 -1
  100. package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts.map +1 -1
  101. package/dist/components/OnboardingTour/OnboardingTourFooter.js +39 -21
  102. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts +4 -5
  103. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -1
  104. package/dist/components/OnboardingTour/OnboardingTourWrapper.js +83 -119
  105. package/dist/components/OnboardingTour/index.d.ts +1 -1
  106. package/dist/components/OnboardingTour/index.d.ts.map +1 -1
  107. package/dist/components/OnboardingTour/useOnboardingTour.d.ts +4 -0
  108. package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -1
  109. package/dist/components/OnboardingTour/useOnboardingTour.js +65 -36
  110. package/dist/components/ProjectIcon/ProjectIcon.d.ts +7 -12
  111. package/dist/components/ProjectIcon/ProjectIcon.d.ts.map +1 -1
  112. package/dist/components/ProjectIcon/ProjectIcon.js +58 -60
  113. package/dist/components/UserAvatar/index.d.ts +2 -1
  114. package/dist/components/UserAvatar/index.d.ts.map +1 -1
  115. package/dist/components/UserAvatar/index.js +42 -32
  116. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +3 -3
  117. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts.map +1 -1
  118. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +19 -18
  119. package/dist/components/WorkspaceMenu/WorkspaceItem.js +17 -17
  120. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +7 -7
  121. package/dist/config/brand.d.ts +2 -0
  122. package/dist/config/brand.d.ts.map +1 -1
  123. package/dist/config/brand.js +28 -22
  124. package/dist/config/envConfig.d.ts +12 -0
  125. package/dist/config/envConfig.d.ts.map +1 -1
  126. package/dist/config/envConfig.js +21 -13
  127. package/dist/helpers/getFileIcons.d.ts.map +1 -1
  128. package/dist/helpers/getFileIcons.js +63 -45
  129. package/dist/helpers/getFileType.d.ts +1 -1
  130. package/dist/helpers/getFileType.d.ts.map +1 -1
  131. package/dist/helpers/getFileType.js +29 -8
  132. package/dist/helpers/getPartOfTheDay.d.ts +1 -1
  133. package/dist/helpers/offlineSuppression.d.ts +3 -0
  134. package/dist/helpers/offlineSuppression.d.ts.map +1 -0
  135. package/dist/helpers/offlineSuppression.js +8 -0
  136. package/dist/helpers/platform.d.ts +1 -1
  137. package/dist/helpers/platform.d.ts.map +1 -1
  138. package/dist/helpers/platform.js +5 -4
  139. package/dist/helpers/showNotifications.d.ts.map +1 -1
  140. package/dist/helpers/showNotifications.js +30 -29
  141. package/dist/hooks/useOutsideClick.d.ts +1 -1
  142. package/dist/hooks/useOutsideClick.d.ts.map +1 -1
  143. package/dist/index.css +1 -1
  144. package/dist/index.d.ts +1 -0
  145. package/dist/index.d.ts.map +1 -1
  146. package/dist/index.js +462 -451
  147. package/dist/lang/locales/ui_en.json.js +1 -1
  148. package/dist/lang/locales/ui_es.json.js +1 -1
  149. package/dist/lang/locales/ui_ru.json.js +1 -1
  150. package/dist/node_modules/countries-and-timezones/esm/index.js +281 -4011
  151. package/dist/store/featureProgress.d.ts +3 -6
  152. package/dist/store/featureProgress.d.ts.map +1 -1
  153. package/dist/store/featureProgress.js +56 -22
  154. package/dist/store/plansModal.d.ts.map +1 -1
  155. package/dist/store/plansModal.js +10 -10
  156. package/package.json +13 -13
@@ -16,17 +16,13 @@ export declare const useFeatureProgressStore: import("zustand").UseBoundStore<Om
16
16
  setState(partial: FeatureProgressStore | Partial<FeatureProgressStore> | ((state: FeatureProgressStore) => FeatureProgressStore | Partial<FeatureProgressStore>), replace?: false | undefined): unknown;
17
17
  setState(state: FeatureProgressStore | ((state: FeatureProgressStore) => FeatureProgressStore), replace: true): unknown;
18
18
  persist: {
19
- setOptions: (options: Partial<import("zustand/middleware").PersistOptions<FeatureProgressStore, {
20
- features: Record<string, FeatureProgressData>;
21
- }, unknown>>) => void;
19
+ setOptions: (options: Partial<import("zustand/middleware").PersistOptions<FeatureProgressStore, unknown, unknown>>) => void;
22
20
  clearStorage: () => void;
23
21
  rehydrate: () => Promise<void> | void;
24
22
  hasHydrated: () => boolean;
25
23
  onHydrate: (fn: (state: FeatureProgressStore) => void) => () => void;
26
24
  onFinishHydration: (fn: (state: FeatureProgressStore) => void) => () => void;
27
- getOptions: () => Partial<import("zustand/middleware").PersistOptions<FeatureProgressStore, {
28
- features: Record<string, FeatureProgressData>;
29
- }, unknown>>;
25
+ getOptions: () => Partial<import("zustand/middleware").PersistOptions<FeatureProgressStore, unknown, unknown>>;
30
26
  };
31
27
  }>;
32
28
  export declare const isFeatureDone: (featureKey: string) => boolean;
@@ -35,5 +31,6 @@ export declare const completeFeatureStep: (featureKey: string, step: number) =>
35
31
  export declare const finishFeatureFlow: (featureKey: string) => void;
36
32
  export declare const resetFeatureFlow: (featureKey: string) => void;
37
33
  export declare const setActiveFeatureTour: (tourFeatureKey: string | null) => void;
34
+ export declare const setFeatureProgressUserId: (userId: string | null) => void;
38
35
  export {};
39
36
  //# sourceMappingURL=featureProgress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"featureProgress.d.ts","sourceRoot":"","sources":["../../src/store/featureProgress.ts"],"names":[],"mappings":"AASA,KAAK,mBAAmB,GAAG;IAAE,cAAc,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,MAAM,CAAC;AAEjE,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC9C,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED,UAAU,sBAAsB;IAC9B,YAAY,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,iBAAiB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,aAAa,EAAE,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACxD;AAED,KAAK,oBAAoB,GAAG,oBAAoB,GAAG,sBAAsB,CAAC;AAE1E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;EAmDnC,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,YAAY,MAAM,KAAG,OAGlD,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,YAAY,MAAM,KAAG,MAAM,EAInE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,YAAY,MAAM,EAAE,MAAM,MAAM,KAAG,IAEtE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,YAAY,MAAM,KAAG,IAEtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,YAAY,MAAM,KAAG,IAErD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,gBAAgB,MAAM,GAAG,IAAI,KAAG,IAEpE,CAAC"}
1
+ {"version":3,"file":"featureProgress.d.ts","sourceRoot":"","sources":["../../src/store/featureProgress.ts"],"names":[],"mappings":"AA6CA,KAAK,mBAAmB,GAAG;IAAE,cAAc,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,MAAM,CAAC;AAEjE,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC9C,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED,UAAU,sBAAsB;IAC9B,YAAY,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,iBAAiB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,aAAa,EAAE,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACxD;AAED,KAAK,oBAAoB,GAAG,oBAAoB,GAAG,sBAAsB,CAAC;AAE1E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAoDnC,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,YAAY,MAAM,KAAG,OAGlD,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,YAAY,MAAM,KAAG,MAAM,EAInE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,YAAY,MAAM,EAAE,MAAM,MAAM,KAAG,IAEtE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,YAAY,MAAM,KAAG,IAEtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,YAAY,MAAM,KAAG,IAErD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,gBAAgB,MAAM,GAAG,IAAI,KAAG,IAEpE,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,QAAQ,MAAM,GAAG,IAAI,KAAG,IAGhE,CAAC"}
@@ -1,24 +1,54 @@
1
- import { create as f } from "zustand";
2
- import { persist as p } from "zustand/middleware";
3
- const F = "feature-progress", S = {
1
+ import { create as S } from "zustand";
2
+ import { persist as f, createJSONStorage as g } from "zustand/middleware";
3
+ const p = "feature-progress";
4
+ let a = null;
5
+ const F = g(() => ({
6
+ getItem: (e) => {
7
+ try {
8
+ const t = JSON.parse(localStorage.getItem(e) || "{}");
9
+ if (!a) return null;
10
+ const r = t[a];
11
+ return r ? JSON.stringify({ state: r }) : null;
12
+ } catch {
13
+ return null;
14
+ }
15
+ },
16
+ setItem: (e, t) => {
17
+ if (a)
18
+ try {
19
+ const r = JSON.parse(localStorage.getItem(e) || "{}"), s = JSON.parse(t);
20
+ r[a] = s.state, localStorage.setItem(e, JSON.stringify(r));
21
+ } catch {
22
+ }
23
+ },
24
+ removeItem: (e) => {
25
+ if (a)
26
+ try {
27
+ const t = JSON.parse(localStorage.getItem(e) || "{}");
28
+ delete t[a], localStorage.setItem(e, JSON.stringify(t));
29
+ } catch {
30
+ localStorage.removeItem(e);
31
+ }
32
+ }
33
+ })), m = {
4
34
  "graphView-getting-started": "graph"
5
- }, o = f()(
6
- p(
35
+ }, o = S()(
36
+ f(
7
37
  (e, t) => ({
8
38
  features: {},
9
39
  activeTourFeatureKey: null,
10
40
  completeStep: (r, s) => {
11
- const a = S[r];
12
- if (a && t().activeTourFeatureKey === a) return;
41
+ const n = m[r];
42
+ if (n && t().activeTourFeatureKey === n) return;
13
43
  const u = t().features[r];
14
44
  if (u === "done") return;
15
- const n = u?.completedSteps ?? [];
16
- if (n.includes(s)) return;
17
- const c = [...n, s];
45
+ const c = u?.completedSteps ?? [];
46
+ if (c.includes(s)) return;
47
+ const l = [...c, s];
18
48
  e((i) => ({
19
49
  features: {
20
50
  ...i.features,
21
- [r]: { completedSteps: c }
51
+ [r]: { completedSteps: l }
22
52
  }
23
53
  }));
24
54
  },
@@ -32,7 +62,7 @@ const F = "feature-progress", S = {
32
62
  },
33
63
  resetFeatureFlow: (r) => {
34
64
  e((s) => {
35
- const { [r]: a, ...u } = s.features;
65
+ const { [r]: n, ...u } = s.features;
36
66
  return { features: u };
37
67
  });
38
68
  },
@@ -41,28 +71,32 @@ const F = "feature-progress", S = {
41
71
  }
42
72
  }),
43
73
  {
44
- name: F,
74
+ name: p,
75
+ storage: F,
45
76
  partialize: (e) => ({ features: e.features })
46
77
  }
47
78
  )
48
- ), m = (e) => o.getState().features[e] === "done", d = (e) => {
79
+ ), I = (e) => o.getState().features[e] === "done", O = (e) => {
49
80
  const t = o.getState().features[e];
50
81
  return !t || t === "done" ? [] : t.completedSteps;
51
- }, w = (e, t) => {
82
+ }, h = (e, t) => {
52
83
  o.getState().completeStep(e, t);
53
- }, T = (e) => {
84
+ }, y = (e) => {
54
85
  o.getState().finishFeatureFlow(e);
55
86
  }, v = (e) => {
56
87
  o.getState().resetFeatureFlow(e);
57
- }, A = (e) => {
88
+ }, J = (e) => {
58
89
  o.getState().setActiveTour(e);
90
+ }, N = (e) => {
91
+ a = e, o.persist.rehydrate();
59
92
  };
60
93
  export {
61
- w as completeFeatureStep,
62
- T as finishFeatureFlow,
63
- d as getFeatureCompletedSteps,
64
- m as isFeatureDone,
94
+ h as completeFeatureStep,
95
+ y as finishFeatureFlow,
96
+ O as getFeatureCompletedSteps,
97
+ I as isFeatureDone,
65
98
  v as resetFeatureFlow,
66
- A as setActiveFeatureTour,
99
+ J as setActiveFeatureTour,
100
+ N as setFeatureProgressUserId,
67
101
  o as useFeatureProgressStore
68
102
  };
@@ -1 +1 @@
1
- {"version":3,"file":"plansModal.d.ts","sourceRoot":"","sources":["../../src/store/plansModal.ts"],"names":[],"mappings":"AAKA,UAAU,UAAU;IAClB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,sBAAsB,yEAEhC,CAAC;AAEJ,eAAO,MAAM,kBAAkB,YAK9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAE/B,CAAC"}
1
+ {"version":3,"file":"plansModal.d.ts","sourceRoot":"","sources":["../../src/store/plansModal.ts"],"names":[],"mappings":"AAKA,UAAU,UAAU;IAClB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,sBAAsB,yEAEhC,CAAC;AAEJ,eAAO,MAAM,kBAAkB,YAM9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAE/B,CAAC"}
@@ -1,16 +1,16 @@
1
- import { create as t } from "zustand";
2
- import { useAppContainerDataStore as s } from "../components/AppContainer/hooks/useAppContainerDataStore.js";
3
- import { DEFAULT_MODE as r, getPlatformInfo as a } from "../helpers/platform.js";
4
- const e = t(() => ({
1
+ import { create as o } from "zustand";
2
+ import { useAppContainerDataStore as r } from "../components/AppContainer/hooks/useAppContainerDataStore.js";
3
+ import { DEFAULT_MODE as s, getPlatformInfo as a } from "../helpers/platform.js";
4
+ const e = o(() => ({
5
5
  opened: !1
6
- })), m = () => {
7
- const o = s.getState().user.mode ?? r;
8
- a(o).has("plans") && e.setState({ opened: !0 });
9
- }, d = () => {
6
+ })), d = () => {
7
+ const t = r.getState().user.mode ?? s;
8
+ a(t).has("plans") && (e.getState().opened || e.setState({ opened: !0 }));
9
+ }, f = () => {
10
10
  e.setState({ opened: !1 });
11
11
  };
12
12
  export {
13
- d as closeUserPlansModal,
14
- m as openUserPlansModal,
13
+ f as closeUserPlansModal,
14
+ d as openUserPlansModal,
15
15
  e as useUserPlansModalStore
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layers-app/shared",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Shared components, hooks, and utilities for Layers application",
5
5
  "files": [
6
6
  "dist",
@@ -27,23 +27,23 @@
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "scripts": {
30
- "build": "cross-env NODE_OPTIONS='--max-old-space-size=8192' vite build && tsc --project tsconfig.build.json",
30
+ "build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build && tsc --project tsconfig.build.json",
31
31
  "check:ts": "tsc --noEmit",
32
32
  "prePublish": "vite build && npm version patch",
33
33
  "watch": "vite build --watch"
34
34
  },
35
35
  "peerDependencies": {
36
- "@gfazioli/mantine-onboarding-tour": "^2.6.11",
36
+ "@layers-app/onboarding-tour": "^4.0.0",
37
37
  "@dnd-kit/core": "^6.0.0",
38
38
  "@dnd-kit/sortable": "^8.0.0",
39
39
  "@dnd-kit/utilities": "^3.2.0",
40
- "@mantine/core": "8.3.5",
41
- "@mantine/dates": "8.3.5",
42
- "@mantine/dropzone": "8.3.5",
43
- "@mantine/form": "8.3.5",
44
- "@mantine/hooks": "8.3.5",
45
- "@mantine/modals": "8.3.5",
46
- "@mantine/notifications": "8.3.5",
40
+ "@mantine/core": ">=9.0.0",
41
+ "@mantine/dates": ">=9.0.0",
42
+ "@mantine/dropzone": ">=9.0.0",
43
+ "@mantine/form": ">=9.0.0",
44
+ "@mantine/hooks": ">=9.0.0",
45
+ "@mantine/modals": ">=9.0.0",
46
+ "@mantine/notifications": ">=9.0.0",
47
47
  "@reduxjs/toolkit": "^2.2.7",
48
48
  "@tabler/icons-react": "^3.7.0",
49
49
  "@tabler/icons-sprite": "^3.29.0",
@@ -60,8 +60,8 @@
60
60
  "i18next": "^25.5.2",
61
61
  "lodash-es": "^4.17.21",
62
62
  "query-string": "^9.1.0",
63
- "react": "^18.3.1",
64
- "react-dom": "^18.3.1",
63
+ "react": "^19.2.0",
64
+ "react-dom": "^19.2.0",
65
65
  "react-helmet": "^6.1.0",
66
66
  "react-i18next": "^15.7.3",
67
67
  "react-router-dom": "^7.5.2",
@@ -69,7 +69,7 @@
69
69
  "shaka-player": "^4.0.0",
70
70
  "shaka-player-react": "^1.1.5",
71
71
  "styled-components": "^6.0.0",
72
- "zod": "^3.0.0",
72
+ "zod": "^4.0.0",
73
73
  "zustand": "^5.0.3"
74
74
  }
75
75
  }