@layers-app/shared 0.2.6 → 0.2.8-test

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 (186) hide show
  1. package/dist/assets/svg/socials/instagram.svg.js +3 -3
  2. package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
  3. package/dist/components/AliasTextInput/AliasTextInput.js +21 -20
  4. package/dist/components/AppContainer/AppContainer.js +3 -3
  5. package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
  6. package/dist/components/AppContainer/components/AppSidebarButton.d.ts +1 -1
  7. package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
  8. package/dist/components/AppContainer/components/AppSidebarButton.js +4 -4
  9. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
  10. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +40 -32
  11. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  12. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +41 -33
  13. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  14. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +58 -49
  15. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  16. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +151 -51
  17. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
  18. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  19. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  20. package/dist/components/AppContainer/hooks/useAppContainer.js +46 -43
  21. package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
  22. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
  23. package/dist/components/AppContainer/types.d.ts +2 -1
  24. package/dist/components/AppContainer/types.d.ts.map +1 -1
  25. package/dist/components/AppShell/AppShell.module.css.js +5 -5
  26. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  27. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +14 -14
  28. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
  29. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
  30. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  31. package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
  32. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  33. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  34. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  35. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  36. package/dist/components/EmojiPicker/EmojiPicker.js +28 -29
  37. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  38. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  39. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  40. package/dist/components/FeatureProgress/FeatureProgress.d.ts +11 -0
  41. package/dist/components/FeatureProgress/FeatureProgress.d.ts.map +1 -0
  42. package/dist/components/FeatureProgress/FeatureProgress.js +148 -0
  43. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +81 -0
  44. package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.d.ts +2 -0
  45. package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.d.ts.map +1 -0
  46. package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.js +88 -0
  47. package/dist/components/FeatureProgress/FeatureProgressCompleteModal.d.ts +9 -0
  48. package/dist/components/FeatureProgress/FeatureProgressCompleteModal.d.ts.map +1 -0
  49. package/dist/components/FeatureProgress/FeatureProgressCompleteModal.js +35 -0
  50. package/dist/components/FeatureProgress/constants.d.ts +4 -0
  51. package/dist/components/FeatureProgress/constants.d.ts.map +1 -0
  52. package/dist/components/FeatureProgress/constants.js +4 -0
  53. package/dist/components/FeatureProgress/index.d.ts +3 -0
  54. package/dist/components/FeatureProgress/index.d.ts.map +1 -0
  55. package/dist/components/FilePicker/FilePicker.d.ts +4 -2
  56. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  57. package/dist/components/FilePicker/FilePicker.js +247 -229
  58. package/dist/components/FilePicker/FilePicker.module.css.js +12 -10
  59. package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
  60. package/dist/components/FilePicker/FilePickerGallery.js +59 -33
  61. package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
  62. package/dist/components/FilePicker/FilePickerGiphy.js +38 -38
  63. package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
  64. package/dist/components/FilePicker/FilePickerLink.js +18 -15
  65. package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
  66. package/dist/components/FilePicker/FilePickerUnsplash.js +39 -39
  67. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  68. package/dist/components/FilePicker/FilePickerUpload.js +51 -35
  69. package/dist/components/FilePicker/api/giphyApi.js +10 -10
  70. package/dist/components/FilePicker/coverCollections.d.ts +4 -0
  71. package/dist/components/FilePicker/coverCollections.d.ts.map +1 -0
  72. package/dist/components/FilePicker/coverCollections.js +164 -0
  73. package/dist/components/FilePicker/index.d.ts +1 -0
  74. package/dist/components/FilePicker/index.d.ts.map +1 -1
  75. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  76. package/dist/components/FormViewer/components/OneSlideLayput.js +39 -37
  77. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  78. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  79. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  80. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +42 -42
  81. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  82. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  83. package/dist/components/FormViewer/hooks/useCreateFormContext.d.ts.map +1 -1
  84. package/dist/components/FormViewer/hooks/useCreateFormContext.js +10 -10
  85. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  86. package/dist/components/FormViewer/store/formStoreApi.js +13 -13
  87. package/dist/components/ImageCropper/ImageCropper.d.ts.map +1 -1
  88. package/dist/components/ImageCropper/ImageCropper.js +185 -183
  89. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  90. package/dist/components/ImageCropper/index.d.ts +1 -1
  91. package/dist/components/ImageCropper/index.d.ts.map +1 -1
  92. package/dist/components/ImageCropper/useCropInteraction.d.ts.map +1 -1
  93. package/dist/components/ImageCropper/useCropInteraction.js +13 -2
  94. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -1
  95. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +7 -7
  96. package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts +1 -1
  97. package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts.map +1 -1
  98. package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.js +3 -1
  99. package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts +1 -1
  100. package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts.map +1 -1
  101. package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.js +3 -1
  102. package/dist/components/LanguagePicker/LanguagePicker.d.ts.map +1 -1
  103. package/dist/components/LanguagePicker/LanguagePicker.js +45 -35
  104. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +6 -4
  105. package/dist/components/Loaders/styles.module.css.js +6 -6
  106. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  107. package/dist/components/MediaLibrary/MediaLibraryRow.d.ts.map +1 -1
  108. package/dist/components/MediaLibrary/MediaLibraryRow.js +16 -4
  109. package/dist/components/NavMenu/NavMenu.d.ts +2 -1
  110. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  111. package/dist/components/NavMenu/NavMenu.module.css.js +16 -16
  112. package/dist/components/NavMenu/components/NavMenuItem.d.ts +2 -1
  113. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  114. package/dist/components/NavMenu/components/NavMenuItem.js +128 -106
  115. package/dist/components/NavMenu/types.d.ts +1 -0
  116. package/dist/components/NavMenu/types.d.ts.map +1 -1
  117. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  118. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  119. package/dist/components/Notification/Notification.module.css.js +1 -1
  120. package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +3 -3
  121. package/dist/components/OnBoarding/steps/styles.module.css.js +9 -9
  122. package/dist/components/OnBoarding/styles.module.css.js +7 -7
  123. package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts +17 -0
  124. package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts.map +1 -0
  125. package/dist/components/OnboardingTour/OnboardingTourFooter.js +40 -0
  126. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts +13 -0
  127. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -0
  128. package/dist/components/OnboardingTour/OnboardingTourWrapper.js +164 -0
  129. package/dist/components/OnboardingTour/index.d.ts +4 -0
  130. package/dist/components/OnboardingTour/index.d.ts.map +1 -0
  131. package/dist/components/OnboardingTour/useOnboardingTour.d.ts +14 -0
  132. package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -0
  133. package/dist/components/OnboardingTour/useOnboardingTour.js +50 -0
  134. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  135. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  136. package/dist/components/SocialLinkRow/index.d.ts.map +1 -1
  137. package/dist/components/SocialLinkRow/index.js +80 -58
  138. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  139. package/dist/components/TimezonePicker/index.d.ts.map +1 -1
  140. package/dist/components/TimezonePicker/index.js +42 -41
  141. package/dist/components/UserAvatar/index.d.ts.map +1 -1
  142. package/dist/components/UserAvatar/index.js +11 -10
  143. package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
  144. package/dist/components/WorkspaceMenu/WorkspaceItem.js +21 -21
  145. package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
  146. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +74 -74
  147. package/dist/components/table/FrontTable.d.ts.map +1 -1
  148. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  149. package/dist/helpers/getFileIcons.js +1 -1
  150. package/dist/helpers/getFileType.d.ts +1 -1
  151. package/dist/helpers/getFileType.d.ts.map +1 -1
  152. package/dist/helpers/platform.d.ts +14 -0
  153. package/dist/helpers/platform.d.ts.map +1 -0
  154. package/dist/helpers/platform.js +33 -0
  155. package/dist/helpers/showFeatureFeedback.d.ts +16 -0
  156. package/dist/helpers/showFeatureFeedback.d.ts.map +1 -0
  157. package/dist/helpers/showFeatureFeedback.js +109 -0
  158. package/dist/helpers/showFeatureFeedback.module.css.js +9 -0
  159. package/dist/helpers/showNotifications.d.ts.map +1 -1
  160. package/dist/helpers/showNotifications.js +81 -113
  161. package/dist/helpers/showNotifications.module.css.js +10 -10
  162. package/dist/hooks/useFeatureFeedback.d.ts +23 -0
  163. package/dist/hooks/useFeatureFeedback.d.ts.map +1 -0
  164. package/dist/hooks/useFeatureFeedback.js +45 -0
  165. package/dist/hooks/usePlatform.d.ts +3 -0
  166. package/dist/hooks/usePlatform.d.ts.map +1 -0
  167. package/dist/hooks/usePlatform.js +10 -0
  168. package/dist/index.css +1 -1
  169. package/dist/index.d.ts +8 -0
  170. package/dist/index.d.ts.map +1 -1
  171. package/dist/index.js +373 -334
  172. package/dist/lang/locales/ui_en.json.js +15 -15
  173. package/dist/lang/locales/ui_es.json.js +13 -13
  174. package/dist/lang/locales/ui_ru.json.js +12 -12
  175. package/dist/lib/contentImport/lexicalSerializer.js +59 -47
  176. package/dist/lib/contentImport/utils.d.ts.map +1 -1
  177. package/dist/lib/layersVisitData.d.ts +13 -0
  178. package/dist/lib/layersVisitData.d.ts.map +1 -0
  179. package/dist/lib/layersVisitData.js +37 -0
  180. package/dist/store/featureProgress.d.ts +39 -0
  181. package/dist/store/featureProgress.d.ts.map +1 -0
  182. package/dist/store/featureProgress.js +68 -0
  183. package/dist/store/plansModal.d.ts.map +1 -1
  184. package/dist/store/plansModal.js +8 -6
  185. package/docs/README.md +499 -499
  186. package/package.json +75 -74
@@ -1,163 +1,131 @@
1
- import { jsx as n, jsxs as l } from "react/jsx-runtime";
2
- import { useState as N, useEffect as v } from "react";
3
- import { InformationCircleIcon as C, CheckmarkCircle02Icon as y, Alert01Icon as b, Alert02Icon as x } from "@hugeicons/core-free-icons";
1
+ import { jsx as i, jsxs as l } from "react/jsx-runtime";
2
+ import { InformationCircleIcon as v, CheckmarkCircle02Icon as I, Alert01Icon as g, Alert02Icon as p } from "@hugeicons/core-free-icons";
4
3
  import { HugeiconsIcon as d } from "@hugeicons/react";
5
- import { CloseButton as B, Box as f, Button as O } from "@mantine/core";
6
- import { showNotification as k, notifications as z } from "@mantine/notifications";
7
- import { motion as h } from "framer-motion";
8
- import { isFunction as p, isObject as w } from "lodash-es";
9
- import s from "./showNotifications.module.css.js";
10
- let M = 0;
11
- const g = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ n(d, { icon: y, size: 14, color: "white" }), H = /* @__PURE__ */ n(d, { icon: x, size: 14, color: "white" }), R = /* @__PURE__ */ n(d, { icon: b, size: 14, color: "white" }), S = /* @__PURE__ */ n(d, { icon: C, size: 14, color: "white" }), W = (o, i) => i?.length ? /* @__PURE__ */ l(f, { children: [
12
- /* @__PURE__ */ n(f, { children: o }),
13
- /* @__PURE__ */ n(f, { className: s.actions, children: i.map((e, c) => /* @__PURE__ */ n(
14
- O,
4
+ import { CloseButton as C, Box as u, Button as b } from "@mantine/core";
5
+ import { showNotification as y, notifications as B } from "@mantine/notifications";
6
+ import { isFunction as h, isObject as N } from "lodash-es";
7
+ import c from "./showNotifications.module.css.js";
8
+ let k = 0;
9
+ const z = /* @__PURE__ */ i(d, { icon: I, size: 14, color: "white" }), x = /* @__PURE__ */ i(d, { icon: p, size: 14, color: "white" }), S = /* @__PURE__ */ i(d, { icon: g, size: 14, color: "white" }), M = /* @__PURE__ */ i(d, { icon: v, size: 14, color: "white" }), O = (o, n) => n?.length ? /* @__PURE__ */ l(u, { children: [
10
+ /* @__PURE__ */ i(u, { children: o }),
11
+ /* @__PURE__ */ i(u, { className: c.actions, children: n.map((t, e) => /* @__PURE__ */ i(
12
+ b,
15
13
  {
16
14
  size: "compact-sm",
17
- variant: e.variant ?? "default",
18
- onClick: e.onClick,
15
+ variant: t.variant ?? "default",
16
+ onClick: t.onClick,
19
17
  radius: "md",
20
- children: e.label
18
+ children: t.label
21
19
  },
22
- c
20
+ e
23
21
  )) })
24
22
  ] }) : o;
25
- function j({
23
+ function R({
26
24
  id: o,
27
- title: i,
28
- icon: e,
29
- children: c
25
+ title: n,
26
+ icon: t,
27
+ children: e
30
28
  }) {
31
- const [t, r] = N(!1);
32
- return v(() => (g.set(o, () => r(!0)), () => {
33
- g.delete(o);
34
- }), [o]), /* @__PURE__ */ l(
35
- h.div,
36
- {
37
- className: s.root,
38
- initial: { width: 48, maxHeight: 48 },
39
- animate: t ? { width: [316, 316, 48], maxHeight: [300, 48, 48] } : { width: [48, 316, 316], maxHeight: [48, 48, 300] },
40
- transition: t ? { duration: 0.5, ease: "easeIn", times: [0, 0.35, 1] } : { duration: 0.5, ease: "easeOut", times: [0, 0.65, 1] },
41
- children: [
42
- /* @__PURE__ */ l("div", { className: i ? s.contentRow : s.contentRowCentered, children: [
43
- /* @__PURE__ */ n("div", { className: s.icon, children: e }),
44
- /* @__PURE__ */ l(
45
- h.div,
46
- {
47
- className: s.body,
48
- initial: { opacity: 0 },
49
- animate: { opacity: t ? 0 : 1 },
50
- transition: t ? { duration: 0.15, ease: "easeIn" } : { duration: 0.2, delay: 0.3, ease: "easeOut" },
51
- children: [
52
- i && /* @__PURE__ */ n("div", { className: s.title, children: i }),
53
- c && /* @__PURE__ */ n(
54
- "div",
55
- {
56
- className: i ? s.description : s.descriptionWithoutTitle,
57
- children: c
58
- }
59
- )
60
- ]
61
- }
62
- )
63
- ] }),
64
- /* @__PURE__ */ n(
65
- h.div,
29
+ return /* @__PURE__ */ l("div", { className: c.root, children: [
30
+ /* @__PURE__ */ l("div", { className: n ? c.contentRow : c.contentRowCentered, children: [
31
+ /* @__PURE__ */ i("div", { className: c.icon, children: t }),
32
+ /* @__PURE__ */ l("div", { className: c.body, children: [
33
+ n && /* @__PURE__ */ i("div", { className: c.title, children: n }),
34
+ e && /* @__PURE__ */ i(
35
+ "div",
66
36
  {
67
- className: s.closeButtonWrapper,
68
- initial: { opacity: 0 },
69
- animate: { opacity: t ? 0 : 1 },
70
- transition: t ? { duration: 0.15, ease: "easeIn" } : { duration: 0.2, delay: 0.3, ease: "easeOut" },
71
- children: /* @__PURE__ */ n(
72
- B,
73
- {
74
- className: s.closeButton,
75
- size: 24,
76
- onClick: () => z.hide(o)
77
- }
78
- )
37
+ className: n ? c.description : c.descriptionWithoutTitle,
38
+ children: e
79
39
  }
80
40
  )
81
- ]
82
- }
83
- );
41
+ ] })
42
+ ] }),
43
+ /* @__PURE__ */ i("div", { className: c.closeButtonWrapper, children: /* @__PURE__ */ i(
44
+ C,
45
+ {
46
+ className: c.closeButton,
47
+ size: 24,
48
+ onClick: () => B.hide(o)
49
+ }
50
+ ) })
51
+ ] });
84
52
  }
85
- const Q = (o, i = {}) => {
86
- const { successMsg: e, errorMsg: c } = i;
87
- return o.then((t) => {
88
- if (e) {
89
- const r = p(e) ? e(t) : e, a = {
90
- id: i.notifyId,
91
- ...w(r) ? r : { message: r }
53
+ const $ = (o, n = {}) => {
54
+ const { successMsg: t, errorMsg: e } = n;
55
+ return o.then((r) => {
56
+ if (t) {
57
+ const s = h(t) ? t(r) : t, a = {
58
+ id: n.notifyId,
59
+ ...N(s) ? s : { message: s }
92
60
  };
93
- E(a);
61
+ W(a);
94
62
  }
95
- return t;
96
- }).catch((t) => {
97
- if (c) {
98
- const r = p(c) ? c(t) : c, a = {
99
- id: i.notifyId,
100
- ...w(r) ? r : { message: r }
63
+ return r;
64
+ }).catch((r) => {
65
+ if (e) {
66
+ const s = h(e) ? e(r) : e, a = {
67
+ id: n.notifyId,
68
+ ...N(s) ? s : { message: s }
101
69
  };
102
- q(a);
70
+ j(a);
103
71
  }
104
- return t;
72
+ return r;
105
73
  });
106
- }, m = (o, i) => {
107
- const { actions: e, title: c, message: t, onClose: r, ...a } = o, I = `ntf-${++M}`, u = a.id ?? I;
108
- k({
109
- color: i.color,
74
+ }, m = (o, n) => {
75
+ const { actions: t, title: e, message: r, onClose: s, ...a } = o, w = `ntf-${++k}`, f = a.id ?? w;
76
+ y({
77
+ color: n.color,
110
78
  radius: 12,
111
79
  ...a,
112
- id: u,
80
+ id: f,
113
81
  icon: void 0,
114
82
  title: void 0,
115
83
  withCloseButton: !1,
116
84
  withBorder: !1,
117
85
  p: 0,
118
- classNames: { root: s.mantineRoot },
86
+ classNames: { root: c.mantineRoot },
119
87
  styles: {
120
88
  root: { background: "none", border: "none", boxShadow: "none" },
121
89
  body: { margin: 0 }
122
90
  },
123
91
  onClose: () => {
124
- g.get(u)?.(), r?.(o);
92
+ s?.(o);
125
93
  },
126
- message: /* @__PURE__ */ n(
127
- j,
94
+ message: /* @__PURE__ */ i(
95
+ R,
128
96
  {
129
- id: u,
130
- title: c,
131
- icon: i.icon,
132
- children: W(t, e)
97
+ id: f,
98
+ title: e,
99
+ icon: n.icon,
100
+ children: O(r, t)
133
101
  }
134
102
  )
135
103
  });
136
- }, U = (o) => {
104
+ }, D = (o) => {
137
105
  m(o, {
138
106
  color: "var(--mantine-color-blue-outline)",
139
- icon: S
107
+ icon: M
140
108
  });
141
- }, E = (o) => {
109
+ }, W = (o) => {
142
110
  m(o, {
143
111
  color: "var(--mantine-color-green-outline)",
144
- icon: A
112
+ icon: z
145
113
  });
146
- }, V = (o) => {
114
+ }, G = (o) => {
147
115
  m(o, {
148
116
  color: "var(--mantine-color-yellow-outline)",
149
- icon: R
117
+ icon: S
150
118
  });
151
- }, q = (o) => {
119
+ }, j = (o) => {
152
120
  m(o, {
153
121
  color: "var(--mantine-color-red-outline)",
154
- icon: H
122
+ icon: x
155
123
  });
156
124
  };
157
125
  export {
158
- q as showErrorNotification,
159
- U as showMessageNotification,
160
- Q as showRequestNotifications,
161
- E as showSuccessNotification,
162
- V as showWarningNotification
126
+ j as showErrorNotification,
127
+ D as showMessageNotification,
128
+ $ as showRequestNotifications,
129
+ W as showSuccessNotification,
130
+ G as showWarningNotification
163
131
  };
@@ -1,4 +1,4 @@
1
- const t = "_mantineRoot_1pbtj_2", o = "_root_1pbtj_11", n = "_contentRow_1pbtj_22", e = "_contentRowCentered_1pbtj_27", c = "_icon_1pbtj_32", _ = "_body_1pbtj_45", s = "_title_1pbtj_50", i = "_description_1pbtj_62", p = "_descriptionWithoutTitle_1pbtj_68", r = "_closeButtonWrapper_1pbtj_75", b = "_closeButton_1pbtj_75", l = "_actions_1pbtj_85", d = {
1
+ const t = "_mantineRoot_mgqj0_1", o = "_root_mgqj0_9", n = "_contentRow_mgqj0_31", e = "_contentRowCentered_mgqj0_41", c = "_icon_mgqj0_51", _ = "_body_mgqj0_77", s = "_title_mgqj0_87", i = "_description_mgqj0_111", r = "_descriptionWithoutTitle_mgqj0_123", m = "_closeButtonWrapper_mgqj0_137", l = "_closeButton_mgqj0_137", d = "_actions_mgqj0_157", p = {
2
2
  mantineRoot: t,
3
3
  root: o,
4
4
  contentRow: n,
@@ -7,21 +7,21 @@ const t = "_mantineRoot_1pbtj_2", o = "_root_1pbtj_11", n = "_contentRow_1pbtj_2
7
7
  body: _,
8
8
  title: s,
9
9
  description: i,
10
- descriptionWithoutTitle: p,
11
- closeButtonWrapper: r,
12
- closeButton: b,
13
- actions: l
10
+ descriptionWithoutTitle: r,
11
+ closeButtonWrapper: m,
12
+ closeButton: l,
13
+ actions: d
14
14
  };
15
15
  export {
16
- l as actions,
16
+ d as actions,
17
17
  _ as body,
18
- b as closeButton,
19
- r as closeButtonWrapper,
18
+ l as closeButton,
19
+ m as closeButtonWrapper,
20
20
  n as contentRow,
21
21
  e as contentRowCentered,
22
- d as default,
22
+ p as default,
23
23
  i as description,
24
- p as descriptionWithoutTitle,
24
+ r as descriptionWithoutTitle,
25
25
  c as icon,
26
26
  t as mantineRoot,
27
27
  o as root,
@@ -0,0 +1,23 @@
1
+ /** 0 = skip (closed without rating), 1-5 = actual rating */
2
+ export type FeatureRating = 0 | 1 | 2 | 3 | 4 | 5;
3
+ export declare const FEATURE_KEYS: {
4
+ readonly COMMENTS: "comments";
5
+ };
6
+ /**
7
+ * Sends `feature_feedback` goal hit + visit params.
8
+ *
9
+ * Metrika hierarchy (auto-discovers new features):
10
+ * feature_feedback > {feature_key} > {1-5 | skip}
11
+ */
12
+ export declare function trackFeatureFeedback(feature: string, rating: FeatureRating): void;
13
+ /**
14
+ * Shows feedback prompt after `delaySeconds`. Fires once per feature (localStorage).
15
+ *
16
+ * Usage:
17
+ * const { shouldShow, dismiss } = useDelayedFeatureFeedback('comments', 8);
18
+ */
19
+ export declare function useDelayedFeatureFeedback(feature: string, delaySeconds: number): {
20
+ readonly shouldShow: boolean;
21
+ readonly dismiss: (rating?: FeatureRating) => void;
22
+ };
23
+ //# sourceMappingURL=useFeatureFeedback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFeatureFeedback.d.ts","sourceRoot":"","sources":["../../src/hooks/useFeatureFeedback.ts"],"names":[],"mappings":"AAIA,4DAA4D;AAC5D,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAElD,eAAO,MAAM,YAAY;;CAEf,CAAC;AAaX;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,QA2B1E;AAgBD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM;;gCAlBT,aAAa;EA8BzB"}
@@ -0,0 +1,45 @@
1
+ import { useState as c, useEffect as a, useCallback as d } from "react";
2
+ import { isFeatureRated as m, setFeatureRating as f } from "../lib/layersVisitData.js";
3
+ const y = {
4
+ COMMENTS: "comments"
5
+ }, o = 98921675;
6
+ function l() {
7
+ const e = window.ym;
8
+ return typeof e == "function" ? e : null;
9
+ }
10
+ function k(e, t) {
11
+ const s = String(e ?? "").trim().slice(0, 120);
12
+ if (!s || ![0, 1, 2, 3, 4, 5].includes(t)) return;
13
+ const n = t === 0 ? "skip" : String(t), r = { feature_feedback: { [s]: { [n]: 1 } } };
14
+ try {
15
+ const i = l();
16
+ i && (i(o, "reachGoal", "feature_feedback", r), i(o, "params", r));
17
+ } catch {
18
+ }
19
+ try {
20
+ (window.dataLayer = window.dataLayer || []).push({ event: "feature_feedback", feature: s, rating: t });
21
+ } catch {
22
+ }
23
+ }
24
+ function h(e) {
25
+ const [t, s] = c(() => m(e)), n = d(
26
+ (r = 0) => {
27
+ s(!0), f(e, r);
28
+ },
29
+ [e]
30
+ );
31
+ return { shouldShow: !t, dismiss: n };
32
+ }
33
+ function p(e, t) {
34
+ const { shouldShow: s, dismiss: n } = h(e), [r, i] = c(!1);
35
+ return a(() => {
36
+ if (!s) return;
37
+ const u = setTimeout(() => i(!0), t * 1e3);
38
+ return () => clearTimeout(u);
39
+ }, [s, t]), { shouldShow: s && r, dismiss: n };
40
+ }
41
+ export {
42
+ y as FEATURE_KEYS,
43
+ k as trackFeatureFeedback,
44
+ p as useDelayedFeatureFeedback
45
+ };
@@ -0,0 +1,3 @@
1
+ import { PlatformInfo } from '../helpers/platform';
2
+ export declare const usePlatform: () => PlatformInfo;
3
+ //# sourceMappingURL=usePlatform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePlatform.d.ts","sourceRoot":"","sources":["../../src/hooks/usePlatform.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,YAAY,EAEb,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,WAAW,QAAO,YAI9B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { useMemo as t } from "react";
2
+ import { useAppContainerDataStore as r } from "../components/AppContainer/hooks/useAppContainerDataStore.js";
3
+ import { getPlatformInfo as m, DEFAULT_MODE as f } from "../helpers/platform.js";
4
+ const i = () => {
5
+ const o = r((e) => e.user.mode) ?? f;
6
+ return t(() => m(o), [o]);
7
+ };
8
+ export {
9
+ i as usePlatform
10
+ };