@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.
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
- package/dist/components/AnimatedFigurePage/useParallax.d.ts +2 -2
- package/dist/components/AppContainer/AppContainer.d.ts +6 -1
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts +4 -1
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +22 -15
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +22 -21
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +48 -91
- package/dist/components/AppContainer/components/ToolbarNewButton.d.ts +7 -2
- package/dist/components/AppContainer/components/ToolbarNewButton.d.ts.map +1 -1
- package/dist/components/AppContainer/components/ToolbarNewButton.js +14 -14
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +3 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +96 -64
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +76 -67
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +35 -26
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +43 -36
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +7 -0
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +17 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +4 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +59 -20
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +34 -22
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +22 -18
- package/dist/components/ColorPicker/ColorPicker.d.ts +12 -11
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +109 -83
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerList.js +62 -63
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +128 -120
- package/dist/components/ColorPicker/icons.js +3 -3
- package/dist/components/ColorPicker/types.d.ts +3 -1
- package/dist/components/ColorPicker/types.d.ts.map +1 -1
- package/dist/components/ColorPicker/types.js +11 -5
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +55 -45
- package/dist/components/CommentComposer/useVirtualAnchor.d.ts +1 -1
- package/dist/components/CommentComposer/useVirtualAnchor.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +43 -33
- package/dist/components/FilePicker/FilePicker.d.ts +3 -1
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +44 -42
- package/dist/components/FilePicker/FilePickerUpload.d.ts +3 -1
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +28 -28
- package/dist/components/FormViewer/helpers/conditions.d.ts +38 -38
- package/dist/components/FormViewer/helpers/helpers.d.ts +38 -38
- package/dist/components/FormViewer/helpers/steps.d.ts +38 -38
- package/dist/components/FormViewer/hooks/useActiveControl.d.ts +19 -19
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +38 -38
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +6 -0
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts.map +1 -1
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +4 -3
- package/dist/components/FormViewer/hooks/useFormMobile.d.ts +1 -1
- package/dist/components/FormViewer/hooks/useFormMobile.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStore.d.ts +248 -248
- package/dist/components/FormViewer/store/formStoreApi.d.ts +124 -124
- package/dist/components/FormViewer/store/selectors.d.ts +11655 -11655
- package/dist/components/FormViewer/types/form.d.ts +1 -1
- package/dist/components/FormViewer/types/form.d.ts.map +1 -1
- package/dist/components/FormViewer/types/schemes.d.ts +381 -6358
- package/dist/components/FormViewer/types/schemes.d.ts.map +1 -1
- package/dist/components/FormViewer/types/schemes.js +1 -1
- package/dist/components/GroupAvatar/index.d.ts +3 -1
- package/dist/components/GroupAvatar/index.d.ts.map +1 -1
- package/dist/components/GroupAvatar/index.js +24 -21
- package/dist/components/LanguagePicker/LanguagePicker.d.ts +13 -3
- package/dist/components/LanguagePicker/LanguagePicker.d.ts.map +1 -1
- package/dist/components/LanguagePicker/LanguagePicker.js +65 -43
- package/dist/components/MediaLibrary/MediaLibraryRow.js +7 -7
- package/dist/components/NavMenu/NavMenu.d.ts +3 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/components/DnDProvider.d.ts +1 -1
- package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts +7 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.js +21 -23
- package/dist/components/NewColorPicker/components/Target.d.ts +3 -1
- package/dist/components/NewColorPicker/components/Target.d.ts.map +1 -1
- package/dist/components/NewColorPicker/components/Target.js +48 -43
- package/dist/components/Notification/Notification.js +3 -1
- package/dist/components/Notification/NotificationCard.d.ts +3 -1
- package/dist/components/Notification/NotificationCard.d.ts.map +1 -1
- package/dist/components/Notification/NotificationCard.js +87 -86
- package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts +6 -1
- package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts.map +1 -1
- package/dist/components/OnboardingTour/OnboardingTourFooter.js +39 -21
- package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts +4 -5
- package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -1
- package/dist/components/OnboardingTour/OnboardingTourWrapper.js +83 -119
- package/dist/components/OnboardingTour/index.d.ts +1 -1
- package/dist/components/OnboardingTour/index.d.ts.map +1 -1
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts +4 -0
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -1
- package/dist/components/OnboardingTour/useOnboardingTour.js +65 -36
- package/dist/components/ProjectIcon/ProjectIcon.d.ts +7 -12
- package/dist/components/ProjectIcon/ProjectIcon.d.ts.map +1 -1
- package/dist/components/ProjectIcon/ProjectIcon.js +58 -60
- package/dist/components/UserAvatar/index.d.ts +2 -1
- package/dist/components/UserAvatar/index.d.ts.map +1 -1
- package/dist/components/UserAvatar/index.js +42 -32
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +3 -3
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts.map +1 -1
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +19 -18
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +17 -17
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +7 -7
- package/dist/config/brand.d.ts +2 -0
- package/dist/config/brand.d.ts.map +1 -1
- package/dist/config/brand.js +28 -22
- package/dist/config/envConfig.d.ts +12 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +21 -13
- package/dist/helpers/getFileIcons.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +63 -45
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +29 -8
- package/dist/helpers/getPartOfTheDay.d.ts +1 -1
- package/dist/helpers/offlineSuppression.d.ts +3 -0
- package/dist/helpers/offlineSuppression.d.ts.map +1 -0
- package/dist/helpers/offlineSuppression.js +8 -0
- package/dist/helpers/platform.d.ts +1 -1
- package/dist/helpers/platform.d.ts.map +1 -1
- package/dist/helpers/platform.js +5 -4
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +30 -29
- package/dist/hooks/useOutsideClick.d.ts +1 -1
- package/dist/hooks/useOutsideClick.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +462 -451
- package/dist/lang/locales/ui_en.json.js +1 -1
- package/dist/lang/locales/ui_es.json.js +1 -1
- package/dist/lang/locales/ui_ru.json.js +1 -1
- package/dist/node_modules/countries-and-timezones/esm/index.js +281 -4011
- package/dist/store/featureProgress.d.ts +3 -6
- package/dist/store/featureProgress.d.ts.map +1 -1
- package/dist/store/featureProgress.js +56 -22
- package/dist/store/plansModal.d.ts.map +1 -1
- package/dist/store/plansModal.js +10 -10
- 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":"
|
|
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
|
|
2
|
-
import { persist as
|
|
3
|
-
const
|
|
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 =
|
|
6
|
-
|
|
35
|
+
}, o = S()(
|
|
36
|
+
f(
|
|
7
37
|
(e, t) => ({
|
|
8
38
|
features: {},
|
|
9
39
|
activeTourFeatureKey: null,
|
|
10
40
|
completeStep: (r, s) => {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
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
|
|
16
|
-
if (
|
|
17
|
-
const
|
|
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:
|
|
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]:
|
|
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:
|
|
74
|
+
name: p,
|
|
75
|
+
storage: F,
|
|
45
76
|
partialize: (e) => ({ features: e.features })
|
|
46
77
|
}
|
|
47
78
|
)
|
|
48
|
-
),
|
|
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
|
-
},
|
|
82
|
+
}, h = (e, t) => {
|
|
52
83
|
o.getState().completeStep(e, t);
|
|
53
|
-
},
|
|
84
|
+
}, y = (e) => {
|
|
54
85
|
o.getState().finishFeatureFlow(e);
|
|
55
86
|
}, v = (e) => {
|
|
56
87
|
o.getState().resetFeatureFlow(e);
|
|
57
|
-
},
|
|
88
|
+
}, J = (e) => {
|
|
58
89
|
o.getState().setActiveTour(e);
|
|
90
|
+
}, N = (e) => {
|
|
91
|
+
a = e, o.persist.rehydrate();
|
|
59
92
|
};
|
|
60
93
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
94
|
+
h as completeFeatureStep,
|
|
95
|
+
y as finishFeatureFlow,
|
|
96
|
+
O as getFeatureCompletedSteps,
|
|
97
|
+
I as isFeatureDone,
|
|
65
98
|
v as resetFeatureFlow,
|
|
66
|
-
|
|
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,
|
|
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"}
|
package/dist/store/plansModal.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { create as
|
|
2
|
-
import { useAppContainerDataStore as
|
|
3
|
-
import { DEFAULT_MODE as
|
|
4
|
-
const e =
|
|
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
|
-
})),
|
|
7
|
-
const
|
|
8
|
-
a(
|
|
9
|
-
},
|
|
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
|
-
|
|
14
|
-
|
|
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.
|
|
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
|
|
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
|
-
"@
|
|
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": "
|
|
41
|
-
"@mantine/dates": "
|
|
42
|
-
"@mantine/dropzone": "
|
|
43
|
-
"@mantine/form": "
|
|
44
|
-
"@mantine/hooks": "
|
|
45
|
-
"@mantine/modals": "
|
|
46
|
-
"@mantine/notifications": "
|
|
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": "^
|
|
64
|
-
"react-dom": "^
|
|
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": "^
|
|
72
|
+
"zod": "^4.0.0",
|
|
73
73
|
"zustand": "^5.0.3"
|
|
74
74
|
}
|
|
75
75
|
}
|