@layers-app/shared 0.2.7 → 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 (165) 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/AppsSidebar/AppsSection.d.ts.map +1 -1
  7. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +39 -31
  8. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  9. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +42 -34
  10. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  11. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +53 -44
  12. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  13. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +150 -50
  14. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
  15. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  16. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  17. package/dist/components/AppContainer/hooks/useAppContainer.js +23 -23
  18. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +1 -1
  19. package/dist/components/AppContainer/types.d.ts +1 -1
  20. package/dist/components/AppContainer/types.d.ts.map +1 -1
  21. package/dist/components/AppShell/AppShell.module.css.js +5 -5
  22. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  23. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +14 -14
  24. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
  25. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
  26. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  27. package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
  28. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  29. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  30. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  31. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  32. package/dist/components/EmojiPicker/EmojiPicker.js +28 -29
  33. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  34. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  35. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  36. package/dist/components/FeatureProgress/FeatureProgress.d.ts +11 -0
  37. package/dist/components/FeatureProgress/FeatureProgress.d.ts.map +1 -0
  38. package/dist/components/FeatureProgress/FeatureProgress.js +148 -0
  39. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +81 -0
  40. package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.d.ts +2 -0
  41. package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.d.ts.map +1 -0
  42. package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.js +88 -0
  43. package/dist/components/FeatureProgress/FeatureProgressCompleteModal.d.ts +9 -0
  44. package/dist/components/FeatureProgress/FeatureProgressCompleteModal.d.ts.map +1 -0
  45. package/dist/components/FeatureProgress/FeatureProgressCompleteModal.js +35 -0
  46. package/dist/components/FeatureProgress/constants.d.ts +4 -0
  47. package/dist/components/FeatureProgress/constants.d.ts.map +1 -0
  48. package/dist/components/FeatureProgress/constants.js +4 -0
  49. package/dist/components/FeatureProgress/index.d.ts +3 -0
  50. package/dist/components/FeatureProgress/index.d.ts.map +1 -0
  51. package/dist/components/FilePicker/FilePicker.d.ts +4 -2
  52. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  53. package/dist/components/FilePicker/FilePicker.js +247 -229
  54. package/dist/components/FilePicker/FilePicker.module.css.js +12 -10
  55. package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
  56. package/dist/components/FilePicker/FilePickerGallery.js +59 -33
  57. package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
  58. package/dist/components/FilePicker/FilePickerGiphy.js +38 -38
  59. package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
  60. package/dist/components/FilePicker/FilePickerLink.js +18 -15
  61. package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
  62. package/dist/components/FilePicker/FilePickerUnsplash.js +39 -39
  63. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  64. package/dist/components/FilePicker/FilePickerUpload.js +51 -35
  65. package/dist/components/FilePicker/api/giphyApi.js +10 -10
  66. package/dist/components/FilePicker/coverCollections.d.ts +4 -0
  67. package/dist/components/FilePicker/coverCollections.d.ts.map +1 -0
  68. package/dist/components/FilePicker/coverCollections.js +164 -0
  69. package/dist/components/FilePicker/index.d.ts +1 -0
  70. package/dist/components/FilePicker/index.d.ts.map +1 -1
  71. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  72. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  73. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  74. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  75. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +42 -42
  76. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  77. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  78. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  79. package/dist/components/ImageCropper/ImageCropper.d.ts.map +1 -1
  80. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  81. package/dist/components/ImageCropper/index.d.ts +1 -1
  82. package/dist/components/ImageCropper/index.d.ts.map +1 -1
  83. package/dist/components/ImageCropper/useCropInteraction.d.ts.map +1 -1
  84. package/dist/components/ImageCropper/useCropInteraction.js +13 -2
  85. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -1
  86. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +7 -7
  87. package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts +1 -1
  88. package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts.map +1 -1
  89. package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.js +3 -1
  90. package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts +1 -1
  91. package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts.map +1 -1
  92. package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.js +3 -1
  93. package/dist/components/LanguagePicker/LanguagePicker.d.ts.map +1 -1
  94. package/dist/components/LanguagePicker/LanguagePicker.js +27 -26
  95. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +2 -2
  96. package/dist/components/Loaders/styles.module.css.js +6 -6
  97. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  98. package/dist/components/MediaLibrary/MediaLibraryRow.d.ts.map +1 -1
  99. package/dist/components/MediaLibrary/MediaLibraryRow.js +16 -4
  100. package/dist/components/NavMenu/NavMenu.d.ts +2 -1
  101. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  102. package/dist/components/NavMenu/NavMenu.module.css.js +16 -16
  103. package/dist/components/NavMenu/components/NavMenuItem.d.ts +2 -1
  104. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  105. package/dist/components/NavMenu/components/NavMenuItem.js +119 -100
  106. package/dist/components/NavMenu/types.d.ts.map +1 -1
  107. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  108. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  109. package/dist/components/Notification/Notification.module.css.js +1 -1
  110. package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +3 -3
  111. package/dist/components/OnBoarding/steps/styles.module.css.js +9 -9
  112. package/dist/components/OnBoarding/styles.module.css.js +7 -7
  113. package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts +17 -0
  114. package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts.map +1 -0
  115. package/dist/components/OnboardingTour/OnboardingTourFooter.js +40 -0
  116. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts +13 -0
  117. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -0
  118. package/dist/components/OnboardingTour/OnboardingTourWrapper.js +164 -0
  119. package/dist/components/OnboardingTour/index.d.ts +4 -0
  120. package/dist/components/OnboardingTour/index.d.ts.map +1 -0
  121. package/dist/components/OnboardingTour/useOnboardingTour.d.ts +14 -0
  122. package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -0
  123. package/dist/components/OnboardingTour/useOnboardingTour.js +50 -0
  124. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  125. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  126. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  127. package/dist/components/TimezonePicker/index.d.ts.map +1 -1
  128. package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
  129. package/dist/components/WorkspaceMenu/WorkspaceItem.js +21 -21
  130. package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
  131. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +74 -74
  132. package/dist/components/table/FrontTable.d.ts.map +1 -1
  133. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  134. package/dist/helpers/getFileIcons.js +1 -1
  135. package/dist/helpers/getFileType.d.ts +1 -1
  136. package/dist/helpers/getFileType.d.ts.map +1 -1
  137. package/dist/helpers/platform.d.ts +14 -0
  138. package/dist/helpers/platform.d.ts.map +1 -0
  139. package/dist/helpers/platform.js +33 -0
  140. package/dist/helpers/showFeatureFeedback.d.ts +1 -1
  141. package/dist/helpers/showFeatureFeedback.d.ts.map +1 -1
  142. package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
  143. package/dist/helpers/showNotifications.module.css.js +1 -1
  144. package/dist/hooks/useFeatureFeedback.d.ts.map +1 -1
  145. package/dist/hooks/useFeatureFeedback.js +1 -4
  146. package/dist/hooks/usePlatform.d.ts +3 -0
  147. package/dist/hooks/usePlatform.d.ts.map +1 -0
  148. package/dist/hooks/usePlatform.js +10 -0
  149. package/dist/index.css +1 -1
  150. package/dist/index.d.ts +5 -0
  151. package/dist/index.d.ts.map +1 -1
  152. package/dist/index.js +364 -337
  153. package/dist/lang/locales/ui_en.json.js +15 -15
  154. package/dist/lang/locales/ui_es.json.js +13 -13
  155. package/dist/lang/locales/ui_ru.json.js +12 -12
  156. package/dist/lib/contentImport/lexicalSerializer.js +59 -47
  157. package/dist/lib/contentImport/utils.d.ts.map +1 -1
  158. package/dist/lib/layersVisitData.d.ts.map +1 -1
  159. package/dist/store/featureProgress.d.ts +39 -0
  160. package/dist/store/featureProgress.d.ts.map +1 -0
  161. package/dist/store/featureProgress.js +68 -0
  162. package/dist/store/plansModal.d.ts.map +1 -1
  163. package/dist/store/plansModal.js +8 -6
  164. package/docs/README.md +499 -499
  165. package/package.json +75 -74
@@ -1,71 +1,85 @@
1
- import { jsx as n, jsxs as u } from "react/jsx-runtime";
2
- import { memo as f, useRef as S, useEffect as k, useMemo as v } from "react";
1
+ import { jsx as t, jsxs as u } from "react/jsx-runtime";
2
+ import { memo as f, useRef as k, useEffect as O, useMemo as v } from "react";
3
3
  import { useTranslation as g } from "react-i18next";
4
- import { NavLink as O } from "react-router-dom";
5
- import { MoreHorizontalIcon as E, ArrowRight01Icon as M } from "@hugeicons/core-free-icons";
4
+ import { NavLink as E } from "react-router-dom";
5
+ import { MoreHorizontalIcon as M, ArrowRight01Icon as P } from "@hugeicons/core-free-icons";
6
6
  import { HugeiconsIcon as C } from "@hugeicons/react";
7
- import { Flex as h, Loader as N, Text as w, FocusTrap as P, Tooltip as I, Center as R } from "@mantine/core";
8
- import { useForm as j } from "@mantine/form";
9
- import { useClickOutside as z } from "@mantine/hooks";
10
- import { useAsyncStatus as A } from "../../../hooks/useAsyncStatus.js";
11
- import { useMenu as D } from "../../../hooks/useMenu.js";
12
- import { appContainerStore as T } from "../../AppContainer/hooks/useAppContainerStore.js";
13
- import { EmojiPicker as F } from "../../EmojiPicker/EmojiPicker.js";
7
+ import { Flex as h, Loader as I, Text as N, FocusTrap as R, Tooltip as w, Center as j } from "@mantine/core";
8
+ import { useForm as z } from "@mantine/form";
9
+ import { useClickOutside as A } from "@mantine/hooks";
10
+ import { useAsyncStatus as D } from "../../../hooks/useAsyncStatus.js";
11
+ import { useMenu as T } from "../../../hooks/useMenu.js";
12
+ import { appContainerStore as F } from "../../AppContainer/hooks/useAppContainerStore.js";
13
+ import { EmojiPicker as L } from "../../EmojiPicker/EmojiPicker.js";
14
14
  import { EntityIcon as b } from "../../EntityIcon.js";
15
- import { NavMenu as L } from "../NavMenu.js";
15
+ import { NavMenu as $ } from "../NavMenu.js";
16
16
  import { useNavMenuStore as m } from "../store.js";
17
17
  import { NavMenuActionIcon as B } from "./NavMenuActionIcon.js";
18
18
  import s from "../NavMenu.module.css.js";
19
- const re = f(({ item: e, ignoreDepth: a }) => {
20
- const { useStore: r } = m(), i = r((o) => o.editId === e.id);
21
- return /* @__PURE__ */ n(x, { depth: a ? void 0 : e.depth, testId: e.testId, children: i ? /* @__PURE__ */ n($, { item: e }) : /* @__PURE__ */ n(V, { item: e }) });
22
- }), V = f(({ item: e }) => {
23
- const { api: a, useStore: r } = m(), i = r((t) => t.props.onClick), { isMobile: o } = D(), { t: l } = g("appContainer"), d = () => {
24
- i ? i(e) : e.hasChildren && a.toggleOpened(e);
25
- }, c = e.data?.isReadOnly, p = e.href ? /* @__PURE__ */ n(
26
- O,
27
- {
28
- to: e.href,
29
- className: s.item,
30
- "data-active": e.active,
31
- "data-has-children": e.hasChildren,
32
- "data-read-only": c,
33
- onClick: c ? void 0 : () => {
34
- o && !e.hasChildren && T.api.closeToolbar();
35
- },
36
- children: /* @__PURE__ */ n(y, { item: e })
37
- }
38
- ) : /* @__PURE__ */ n(
39
- "div",
40
- {
41
- className: s.item,
42
- "data-active": e.active,
43
- "data-has-children": e.hasChildren,
44
- "data-read-only": c,
45
- onClick: c ? void 0 : d,
46
- children: /* @__PURE__ */ n(y, { item: e })
47
- }
48
- );
49
- return c ? /* @__PURE__ */ n(I, { label: l("readOnlyAccess"), position: "right", withArrow: !0, children: p }) : p;
50
- }), y = f(({ item: e }) => {
51
- const { t: a } = g(), { useStore: r, api: i } = m(), o = r((t) => t.opened.includes(e.id)), l = r((t) => t.loading[e.id]), d = v(
19
+ const se = f(
20
+ ({ item: e, ignoreDepth: i, disableToggleOnClick: a }) => {
21
+ const { useStore: r } = m(), o = r((c) => c.editId === e.id);
22
+ return /* @__PURE__ */ t(
23
+ x,
24
+ {
25
+ depth: i ? void 0 : e.depth,
26
+ testId: e.testId,
27
+ children: o ? /* @__PURE__ */ t(H, { item: e }) : /* @__PURE__ */ t(V, { item: e, disableToggleOnClick: a })
28
+ }
29
+ );
30
+ }
31
+ ), V = f(
32
+ ({
33
+ item: e,
34
+ disableToggleOnClick: i
35
+ }) => {
36
+ const { api: a, useStore: r } = m(), o = r((S) => S.props.onClick), { isMobile: c } = T(), { t: l } = g("appContainer"), p = () => {
37
+ i || (o ? o(e) : e.hasChildren && a.toggleOpened(e));
38
+ }, d = e.data?.isReadOnly, n = e.href ? /* @__PURE__ */ t(
39
+ E,
40
+ {
41
+ to: e.href,
42
+ className: s.item,
43
+ "data-active": e.active,
44
+ "data-has-children": e.hasChildren,
45
+ "data-read-only": d,
46
+ onClick: d ? void 0 : () => {
47
+ c && !e.hasChildren && F.api.closeToolbar();
48
+ },
49
+ children: /* @__PURE__ */ t(y, { item: e })
50
+ }
51
+ ) : /* @__PURE__ */ t(
52
+ "div",
53
+ {
54
+ className: s.item,
55
+ "data-active": e.active,
56
+ "data-has-children": e.hasChildren,
57
+ "data-read-only": d,
58
+ onClick: d ? void 0 : p,
59
+ children: /* @__PURE__ */ t(y, { item: e })
60
+ }
61
+ );
62
+ return d ? /* @__PURE__ */ t(w, { label: l("readOnlyAccess"), position: "right", withArrow: !0, children: n }) : n;
63
+ }
64
+ ), y = f(({ item: e }) => {
65
+ const { t: i } = g(), { useStore: a, api: r } = m(), o = a((n) => n.opened.includes(e.id)), c = a((n) => n.loading[e.id]), l = v(
52
66
  () => ({ ...e.data, isOpen: o }),
53
67
  [o, e.data]
54
- ), c = e.data?.isReadOnly, p = c ? 0.3 : void 0;
68
+ ), p = e.data?.isReadOnly, d = p ? 0.3 : void 0;
55
69
  return /* @__PURE__ */ u(h, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: [
56
70
  /* @__PURE__ */ u(h, { gap: 4, miw: 0, flex: 1, children: [
57
- l ? /* @__PURE__ */ n(R, { w: 20, h: 20, children: /* @__PURE__ */ n(N, { size: 16 }) }) : e.hasChildren && !c && /* @__PURE__ */ n(
71
+ c ? /* @__PURE__ */ t(j, { w: 20, h: 20, children: /* @__PURE__ */ t(I, { size: 16 }) }) : e.hasChildren && !p && /* @__PURE__ */ t(
58
72
  B,
59
73
  {
60
74
  className: s.chevron,
61
75
  "data-cy": e.testId ? `${e.testId}-expand` : void 0,
62
- onClick: (t) => {
63
- t.preventDefault(), t.stopPropagation(), i.toggleOpened(e);
76
+ onClick: (n) => {
77
+ n.preventDefault(), n.stopPropagation(), r.toggleOpened(e);
64
78
  },
65
- children: /* @__PURE__ */ n(
79
+ children: /* @__PURE__ */ t(
66
80
  C,
67
81
  {
68
- icon: M,
82
+ icon: P,
69
83
  size: 16,
70
84
  style: {
71
85
  transform: `rotate(${o ? 90 : 0}deg)`,
@@ -75,27 +89,28 @@ const re = f(({ item: e, ignoreDepth: a }) => {
75
89
  )
76
90
  }
77
91
  ),
78
- /* @__PURE__ */ n("div", { className: s.icon, style: { opacity: p }, children: /* @__PURE__ */ n(b, { item: d }) }),
79
- /* @__PURE__ */ n(
80
- I,
92
+ /* @__PURE__ */ t("div", { className: s.icon, style: { opacity: d }, children: /* @__PURE__ */ t(b, { item: l }) }),
93
+ /* @__PURE__ */ t(
94
+ w,
81
95
  {
82
96
  disabled: e.title.length < 25,
83
- label: e.title || a("noName"),
97
+ label: e.title || i("noName"),
84
98
  openDelay: 400,
85
- children: /* @__PURE__ */ n(
86
- w,
99
+ children: /* @__PURE__ */ t(
100
+ N,
87
101
  {
88
102
  flex: 1,
89
103
  truncate: !0,
90
- style: { opacity: e.title ? p ?? 1 : 0.5 },
104
+ style: { opacity: e.title ? d ?? 1 : 0.5 },
91
105
  size: "sm",
92
106
  fw: 500,
93
107
  miw: 0,
94
108
  c: "var(--mantine-color-text)",
95
- onDoubleClick: (t) => {
96
- r.getState().props.onEdit && !e?.isDisabledEditByDoubleClick && (t.preventDefault(), t.stopPropagation(), i.startEditing(e.id));
109
+ "data-cy": e.testId ? `${e.testId}-title` : void 0,
110
+ onDoubleClick: (n) => {
111
+ a.getState().props.onEdit && !e?.isDisabledEditByDoubleClick && (n.preventDefault(), n.stopPropagation(), r.startEditing(e.id));
97
112
  },
98
- children: e.title || a("noName")
113
+ children: e.title || i("noName")
99
114
  }
100
115
  )
101
116
  }
@@ -103,38 +118,38 @@ const re = f(({ item: e, ignoreDepth: a }) => {
103
118
  ] }),
104
119
  e.rightSection
105
120
  ] });
106
- }), $ = f(({ item: e }) => {
107
- const { api: a, useStore: r } = m(), i = S(null), o = j({
121
+ }), H = f(({ item: e }) => {
122
+ const { api: i, useStore: a } = m(), r = k(null), o = z({
108
123
  initialValues: {
109
124
  name: e.title,
110
125
  icon: e.data?.icon || ""
111
126
  }
112
- }), l = (t) => {
113
- a.handleEdit({
127
+ }), c = (n) => {
128
+ i.handleEdit({
114
129
  id: e.id,
115
- name: t.name ?? "",
116
- icon: t.icon ?? ""
117
- }), a.stopEditing();
118
- }, d = z(() => {
119
- l(o.getValues());
130
+ name: n.name ?? "",
131
+ icon: n.icon ?? ""
132
+ }), i.stopEditing();
133
+ }, l = A(() => {
134
+ c(o.getValues());
120
135
  });
121
- k(() => {
122
- i.current && i.current.select();
136
+ O(() => {
137
+ r.current && r.current.select();
123
138
  }, []);
124
- const c = v(
139
+ const p = v(
125
140
  () => ["SPRINT", "PROJECT"].includes(e.data?.type || ""),
126
141
  [e.data?.type]
127
- ), p = r((t) => t.opened.includes(e.id));
128
- return /* @__PURE__ */ n(
142
+ ), d = a((n) => n.opened.includes(e.id));
143
+ return /* @__PURE__ */ t(
129
144
  "form",
130
145
  {
131
- onSubmit: o.onSubmit(l),
146
+ onSubmit: o.onSubmit(c),
132
147
  className: s.item,
133
- ref: d,
148
+ ref: l,
134
149
  "data-editing": !0,
135
150
  children: /* @__PURE__ */ u(h, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: [
136
- /* @__PURE__ */ n("div", { className: s.icon, children: /* @__PURE__ */ n(
137
- F,
151
+ /* @__PURE__ */ t("div", { className: s.icon, children: /* @__PURE__ */ t(
152
+ L,
138
153
  {
139
154
  showIcons: !0,
140
155
  showColors: !0,
@@ -143,63 +158,67 @@ const re = f(({ item: e, ignoreDepth: a }) => {
143
158
  floatingStrategy: "fixed"
144
159
  },
145
160
  value: o.values.icon,
146
- onChange: (t) => o.setFieldValue("icon", t),
147
- children: /* @__PURE__ */ n(L.ActionIcon, { disabled: c, children: /* @__PURE__ */ n(
161
+ onChange: (n) => o.setFieldValue("icon", n),
162
+ children: /* @__PURE__ */ t($.ActionIcon, { disabled: p, children: /* @__PURE__ */ t(
148
163
  b,
149
164
  {
150
- item: { ...e.data, isOpen: p, icon: o.values.icon }
165
+ item: { ...e.data, isOpen: d, icon: o.values.icon }
151
166
  }
152
167
  ) })
153
168
  }
154
169
  ) }),
155
- /* @__PURE__ */ n(P, { children: /* @__PURE__ */ n(
170
+ /* @__PURE__ */ t(R, { children: /* @__PURE__ */ t(
156
171
  "input",
157
172
  {
158
- ref: i,
173
+ ref: r,
159
174
  className: s.editInput,
160
175
  "data-cy": e.testId ? `${e.testId}-rename-input` : void 0,
161
176
  ...o.getInputProps("name"),
162
177
  maxLength: 255,
163
- onFocus: (t) => t.target.select()
178
+ onFocus: (n) => n.target.select()
164
179
  }
165
180
  ) })
166
181
  ] })
167
182
  }
168
183
  );
169
184
  }), x = f(
170
- ({ depth: e = 0, children: a, testId: r }) => /* @__PURE__ */ u(
185
+ ({
186
+ depth: e = 0,
187
+ children: i,
188
+ testId: a
189
+ }) => /* @__PURE__ */ u(
171
190
  "div",
172
191
  {
173
192
  className: s.itemContainer,
174
- "data-cy": r,
193
+ "data-cy": a,
175
194
  style: {
176
195
  "--depth": e
177
196
  },
178
197
  children: [
179
- Array.from({ length: e }).map((i, o) => /* @__PURE__ */ n("div", { className: s.depthBox }, o)),
180
- a
198
+ Array.from({ length: e }).map((r, o) => /* @__PURE__ */ t("div", { className: s.depthBox }, o)),
199
+ i
181
200
  ]
182
201
  }
183
202
  )
184
- ), se = ({
203
+ ), ce = ({
185
204
  depth: e,
186
- itemId: a,
187
- currentChildrenCount: r
205
+ itemId: i,
206
+ currentChildrenCount: a
188
207
  }) => {
189
- const { t: i } = g("appContainer"), { api: o } = m(), { isLoading: l, onSubmit: d } = A();
190
- return /* @__PURE__ */ n(x, { depth: e, children: /* @__PURE__ */ n(
208
+ const { t: r } = g("appContainer"), { api: o } = m(), { isLoading: c, onSubmit: l } = D();
209
+ return /* @__PURE__ */ t(x, { depth: e, children: /* @__PURE__ */ t(
191
210
  "div",
192
211
  {
193
212
  className: s.item,
194
- onClick: () => d(() => o.loadMore({ itemId: a, currentChildrenCount: r })),
195
- children: /* @__PURE__ */ n(h, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: /* @__PURE__ */ u(h, { gap: 4, miw: 0, flex: 1, c: "gray", children: [
196
- /* @__PURE__ */ n("div", { className: s.icon, children: l ? /* @__PURE__ */ n(N, { size: 16 }) : /* @__PURE__ */ n(C, { icon: E, size: 16 }) }),
197
- /* @__PURE__ */ n(w, { flex: 1, truncate: !0, size: "sm", fw: 500, miw: 0, children: i("loadMore") })
213
+ onClick: () => l(() => o.loadMore({ itemId: i, currentChildrenCount: a })),
214
+ children: /* @__PURE__ */ t(h, { gap: 4, h: "100%", flex: 1, miw: 0, justify: "space-between", children: /* @__PURE__ */ u(h, { gap: 4, miw: 0, flex: 1, c: "gray", children: [
215
+ /* @__PURE__ */ t("div", { className: s.icon, children: c ? /* @__PURE__ */ t(I, { size: 16 }) : /* @__PURE__ */ t(C, { icon: M, size: 16 }) }),
216
+ /* @__PURE__ */ t(N, { flex: 1, truncate: !0, size: "sm", fw: 500, miw: 0, children: r("loadMore") })
198
217
  ] }) })
199
218
  }
200
219
  ) });
201
220
  };
202
221
  export {
203
- re as NavMenuItem,
204
- se as NavMenuLoadMore
222
+ se as NavMenuItem,
223
+ ce as NavMenuLoadMore
205
224
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/NavMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CAEtB,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,IAAI,GAAG,eAAe,IAAI;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,O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GAAG,CAAC,OAAO,EAAE;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;CAC9B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEpB,MAAM,MAAM,0BAA0B,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC"}
@@ -1,7 +1,7 @@
1
- const e = "_resizer_hdrhk_1", r = {
1
+ const e = "_resizer_1qg2p_1", s = {
2
2
  resizer: e
3
3
  };
4
4
  export {
5
- r as default,
5
+ s as default,
6
6
  e as resizer
7
7
  };
@@ -1,19 +1,19 @@
1
- const e = "_previewBoxTitle_1xmos_1", o = "_previewBox_1xmos_1", r = "_previewContainer_1xmos_45", t = "_previewHeader_1xmos_58", i = "_headerDot_1xmos_70", s = "_previewContent_1xmos_80", n = "_processing_1xmos_103", _ = {
1
+ const e = "_previewBoxTitle_p1noi_1", o = "_previewBox_p1noi_1", i = "_previewContainer_p1noi_89", n = "_previewHeader_p1noi_115", r = "_headerDot_p1noi_139", p = "_previewContent_p1noi_159", t = "_processing_p1noi_205", _ = {
2
2
  previewBoxTitle: e,
3
3
  previewBox: o,
4
- previewContainer: r,
5
- previewHeader: t,
6
- headerDot: i,
7
- previewContent: s,
8
- processing: n
4
+ previewContainer: i,
5
+ previewHeader: n,
6
+ headerDot: r,
7
+ previewContent: p,
8
+ processing: t
9
9
  };
10
10
  export {
11
11
  _ as default,
12
- i as headerDot,
12
+ r as headerDot,
13
13
  o as previewBox,
14
14
  e as previewBoxTitle,
15
- r as previewContainer,
16
- s as previewContent,
17
- t as previewHeader,
18
- n as processing
15
+ i as previewContainer,
16
+ p as previewContent,
17
+ n as previewHeader,
18
+ t as processing
19
19
  };
@@ -1,4 +1,4 @@
1
- const e = "_headerCounter_1kh0c_1", t = {
1
+ const e = "_headerCounter_10kmq_1", t = {
2
2
  headerCounter: e
3
3
  };
4
4
  export {
@@ -1,9 +1,9 @@
1
- const c = "_column_10zam_1", a = "_card_10zam_6", o = {
1
+ const c = "_column_lzz41_1", l = "_card_lzz41_11", o = {
2
2
  column: c,
3
- card: a
3
+ card: l
4
4
  };
5
5
  export {
6
- a as card,
6
+ l as card,
7
7
  c as column,
8
8
  o as default
9
9
  };
@@ -1,17 +1,17 @@
1
- const o = "_stepperWrapper_op9ph_1", p = "_accordion_op9ph_13", e = "_content_op9ph_17", t = "_item_op9ph_21", c = "_chevron_op9ph_25", n = "_label_op9ph_32", _ = {
2
- stepperWrapper: o,
3
- accordion: p,
4
- content: e,
5
- item: t,
1
+ const e = "_stepperWrapper_18rxv_1", r = "_accordion_18rxv_25", t = "_content_18rxv_33", o = "_item_18rxv_41", c = "_chevron_18rxv_49", n = "_label_18rxv_63", _ = {
2
+ stepperWrapper: e,
3
+ accordion: r,
4
+ content: t,
5
+ item: o,
6
6
  chevron: c,
7
7
  label: n
8
8
  };
9
9
  export {
10
- p as accordion,
10
+ r as accordion,
11
11
  c as chevron,
12
- e as content,
12
+ t as content,
13
13
  _ as default,
14
- t as item,
14
+ o as item,
15
15
  n as label,
16
- o as stepperWrapper
16
+ e as stepperWrapper
17
17
  };
@@ -1,15 +1,15 @@
1
- const a = "_boardContainer_zk8z5_1", e = "_appShell_zk8z5_10", n = "_navBar_zk8z5_16", t = "_appShellHeader_zk8z5_25", o = "_button_zk8z5_42", _ = {
1
+ const a = "_boardContainer_3kft5_1", t = "_appShell_3kft5_19", e = "_navBar_3kft5_31", n = "_appShellHeader_3kft5_49", o = "_button_3kft5_83", _ = {
2
2
  boardContainer: a,
3
- appShell: e,
4
- navBar: n,
5
- appShellHeader: t,
3
+ appShell: t,
4
+ navBar: e,
5
+ appShellHeader: n,
6
6
  button: o
7
7
  };
8
8
  export {
9
- e as appShell,
10
- t as appShellHeader,
9
+ t as appShell,
10
+ n as appShellHeader,
11
11
  a as boardContainer,
12
12
  o as button,
13
13
  _ as default,
14
- n as navBar
14
+ e as navBar
15
15
  };
@@ -0,0 +1,17 @@
1
+ import { type OnboardingTourController } from '@gfazioli/mantine-onboarding-tour';
2
+ export declare const DefaultSingleFooter: ({ controller, label, }: {
3
+ controller: OnboardingTourController;
4
+ label: string;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const DefaultMultiFooter: ({ controller, stepIndex, totalSteps, labels, }: {
7
+ controller: OnboardingTourController;
8
+ stepIndex: number;
9
+ totalSteps: number;
10
+ labels: {
11
+ stepOf: string;
12
+ back: string;
13
+ next: string;
14
+ done: string;
15
+ };
16
+ }) => import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=OnboardingTourFooter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnboardingTourFooter.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingTour/OnboardingTourFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAGlF,eAAO,MAAM,mBAAmB,GAAI,wBAGjC;IACD,UAAU,EAAE,wBAAwB,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;CACf,4CAMA,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,gDAKhC;IACD,UAAU,EAAE,wBAAwB,CAAC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACtE,4CA+BA,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { jsx as t, jsxs as c } from "react/jsx-runtime";
2
+ import { Group as r, Button as s, Text as u } from "@mantine/core";
3
+ const a = ({
4
+ controller: e,
5
+ label: i
6
+ }) => /* @__PURE__ */ t(r, { justify: "flex-end", mt: "md", children: /* @__PURE__ */ t(s, { size: "sm", onClick: () => e.endTour(), children: i }) }), h = ({
7
+ controller: e,
8
+ stepIndex: i,
9
+ totalSteps: d,
10
+ labels: n
11
+ }) => {
12
+ const m = i === 0, o = i === d - 1;
13
+ return /* @__PURE__ */ c(r, { justify: "space-between", mt: "md", children: [
14
+ /* @__PURE__ */ t(u, { size: "sm", c: "gray.5", children: n.stepOf }),
15
+ /* @__PURE__ */ c(r, { gap: "xs", children: [
16
+ !m && /* @__PURE__ */ t(
17
+ s,
18
+ {
19
+ variant: "subtle",
20
+ color: "gray.5",
21
+ size: "sm",
22
+ onClick: () => e.prevStep(),
23
+ children: n.back
24
+ }
25
+ ),
26
+ /* @__PURE__ */ t(
27
+ s,
28
+ {
29
+ size: "sm",
30
+ onClick: () => o ? e.endTour() : e.nextStep(),
31
+ children: o ? n.done : n.next
32
+ }
33
+ )
34
+ ] })
35
+ ] });
36
+ };
37
+ export {
38
+ h as DefaultMultiFooter,
39
+ a as DefaultSingleFooter
40
+ };
@@ -0,0 +1,13 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type OnboardingTourProps, type OnboardingTourStep } from '@gfazioli/mantine-onboarding-tour';
3
+ import './OnboardingTourWrapper.css';
4
+ export interface OnboardingTourWrapperProps extends Partial<Omit<OnboardingTourProps, 'tour' | 'started' | 'children'>> {
5
+ featureKey: string;
6
+ tour: OnboardingTourStep[];
7
+ children: ReactNode;
8
+ onComplete?: () => void;
9
+ dependsOn?: string;
10
+ withPopoverMoveAnimation?: boolean;
11
+ }
12
+ export declare const OnboardingTourWrapper: ({ featureKey, tour, children, onComplete, dependsOn, withPopoverMoveAnimation, classNames, focusRevealProps: externalFocusRevealProps, onOnboardingTourEnd: externalOnEnd, onOnboardingTourClose: externalOnClose, onOnboardingTourChange: externalOnChange, onOnboardingTourStart: externalOnStart, ...rest }: OnboardingTourWrapperProps) => import("react/jsx-runtime").JSX.Element;
13
+ //# sourceMappingURL=OnboardingTourWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnboardingTourWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingTour/OnboardingTourWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA2C,MAAM,OAAO,CAAC;AAGhF,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,mCAAmC,CAAC;AAS3C,OAAO,6BAA6B,CAAC;AAErC,MAAM,WAAW,0BACf,SAAQ,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;IAC3E,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AA+BD,eAAO,MAAM,qBAAqB,GAAI,gTAcnC,0BAA0B,4CAiP5B,CAAC"}