slice-machine-ui 1.26.1-beta.2 → 1.26.1-beta.21

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 (521) hide show
  1. package/.eslintrc.js +6 -1
  2. package/.storybook/preview.tsx +2 -1
  3. package/out/404.html +1 -1
  4. package/out/_next/static/chunks/127-6451528762141246.js +1 -0
  5. package/out/_next/static/chunks/{183-ebd633fed7c74545.js → 183-6ad1d7303abecd2b.js} +1 -1
  6. package/out/_next/static/chunks/18539003-8854ec97730b0755.js +22 -0
  7. package/out/_next/static/chunks/569-2ae3e9666f3bf991.js +1 -0
  8. package/out/_next/static/chunks/614-873c38acd991869b.js +1 -0
  9. package/out/_next/static/chunks/756-61dc56b98d01e964.js +10 -0
  10. package/out/_next/static/chunks/90-2d4bdae13d031364.js +1 -0
  11. package/out/_next/static/chunks/91-717d764a224ac07f.js +1 -0
  12. package/out/_next/static/chunks/96-d28e81d2b1c10a08.js +1 -0
  13. package/out/_next/static/chunks/pages/_app-b18f49d5323fa9eb.js +530 -0
  14. package/out/_next/static/chunks/pages/changelog-042822d12df57669.js +1 -0
  15. package/out/_next/static/chunks/pages/changes-194f6cf187fa6ee7.js +1 -0
  16. package/out/_next/static/chunks/pages/custom-types/[customTypeId]-ff73a06702296c34.js +1 -0
  17. package/out/_next/static/chunks/pages/{custom-types-3c8e721ec6802127.js → custom-types-900b40b54b74e6d6.js} +1 -1
  18. package/out/_next/static/chunks/pages/{index-cf93d16e9c63b6db.js → index-ccd2975faba412f6.js} +1 -1
  19. package/out/_next/static/chunks/pages/labs-7a4fe64cb86b59e8.js +1 -0
  20. package/out/_next/static/chunks/pages/page-types/[pageTypeId]-30d471f6127ebed7.js +1 -0
  21. package/out/_next/static/chunks/pages/settings-419384d4d43070c2.js +1 -0
  22. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-9bdb355306fca592.js +1 -0
  23. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-c431bb8d59974559.js +1 -0
  24. package/out/_next/static/chunks/pages/slices-98f88ac46b6ad58b.js +1 -0
  25. package/out/_next/static/css/22f264c93bd9d85f.css +1 -0
  26. package/out/_next/static/css/321d78460d2d69bc.css +1 -0
  27. package/out/_next/static/css/a686f7612f1943ed.css +1 -0
  28. package/out/_next/static/css/c47241940651ef2f.css +1 -0
  29. package/out/_next/static/css/dc201720b301472d.css +1 -0
  30. package/out/_next/static/css/e5745b5b0494af29.css +1 -0
  31. package/out/_next/static/jEpmnNgSaQQGEtlMfn4ek/_buildManifest.js +1 -0
  32. package/out/changelog.html +1 -1
  33. package/out/changes.html +1 -1
  34. package/out/custom-types/[customTypeId].html +1 -1
  35. package/out/custom-types.html +1 -1
  36. package/out/index.html +1 -1
  37. package/out/labs.html +1 -1
  38. package/out/page-types/[pageTypeId].html +1 -1
  39. package/out/settings.html +1 -1
  40. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  41. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  42. package/out/slices.html +1 -1
  43. package/package.json +10 -8
  44. package/sentry.client.config.ts +2 -1
  45. package/src/ErrorBoundary.tsx +1 -1
  46. package/src/apiClient.ts +13 -9
  47. package/src/components/BaseHoverCard/BaseHoverCard.stories.tsx +1 -1
  48. package/src/components/BaseHoverCard/BaseHoverCard.test.tsx +1 -1
  49. package/src/components/BaseHoverCard/BaseHoverCard.tsx +1 -1
  50. package/src/components/BlankSlate/BlankSlate.module.css +74 -0
  51. package/src/components/BlankSlate/BlankSlate.module.css.d.ts +13 -0
  52. package/src/components/BlankSlate/BlankSlate.stories.tsx +1 -1
  53. package/src/components/BlankSlate/BlankSlate.tsx +1 -1
  54. package/src/components/BlankSlate/index.ts +1 -1
  55. package/src/components/Breadcrumb/Breadcrumb.module.css +11 -0
  56. package/src/components/Breadcrumb/Breadcrumb.module.css.d.ts +6 -0
  57. package/src/components/Breadcrumb/Breadcrumb.stories.tsx +34 -0
  58. package/src/components/Breadcrumb/Breadcrumb.tsx +43 -25
  59. package/src/components/Breadcrumb/index.ts +1 -1
  60. package/src/components/Card/Card.stories.tsx +3 -3
  61. package/src/components/Card/Card.tsx +3 -2
  62. package/src/components/CodeBlock/CodeBlock.module.css +46 -0
  63. package/src/components/CodeBlock/CodeBlock.module.css.d.ts +10 -0
  64. package/src/components/CodeBlock/CodeBlock.tsx +7 -7
  65. package/src/components/ContentTabs/ContentTabs.module.css +60 -0
  66. package/src/components/ContentTabs/ContentTabs.module.css.d.ts +12 -0
  67. package/src/components/ContentTabs/ContentTabs.tsx +2 -2
  68. package/src/components/Count/Count.tsx +1 -1
  69. package/src/components/Divider/Divider.module.css +23 -0
  70. package/src/components/Divider/Divider.module.css.d.ts +7 -0
  71. package/src/components/Divider/Divider.stories.tsx +3 -4
  72. package/src/components/Divider/Divider.tsx +5 -8
  73. package/src/components/HoverCard/HoverCard.module.css +79 -0
  74. package/src/components/HoverCard/HoverCard.module.css.d.ts +13 -0
  75. package/src/components/HoverCard/HoverCard.stories.tsx +3 -2
  76. package/src/components/HoverCard/HoverCard.test.tsx +2 -2
  77. package/src/components/HoverCard/HoverCard.tsx +3 -3
  78. package/src/components/HoverCard/index.ts +3 -3
  79. package/src/components/PageLayout/PageLayout.module.css +1 -1
  80. package/src/components/SideNav/SideNav.module.css +1 -1
  81. package/src/components/SideNav/SideNav.stories.tsx +6 -6
  82. package/src/components/SideNav/SideNav.tsx +8 -8
  83. package/src/components/SideNav/SideNavEnvironmentSelector.tsx +10 -12
  84. package/src/components/Table/Table.stories.tsx +2 -2
  85. package/src/components/Table/Table.test.tsx +2 -2
  86. package/src/components/Table/Table.tsx +2 -2
  87. package/src/components/Table/index.ts +1 -1
  88. package/src/components/TextLink/TextLink.module.css +58 -0
  89. package/src/components/TextLink/TextLink.module.css.d.ts +11 -0
  90. package/src/components/TextLink/TextLink.stories.tsx +1 -1
  91. package/src/components/TextLink/TextLink.tsx +5 -5
  92. package/src/domain/__tests__/customType.test.ts +1 -186
  93. package/src/domain/__tests__/group.test.ts +161 -0
  94. package/src/domain/__tests__/slice.test.ts +41 -0
  95. package/src/domain/customType.ts +1 -193
  96. package/src/domain/group.ts +89 -0
  97. package/src/domain/slice.ts +53 -12
  98. package/src/features/autoSave/AutoSaveStatusIndicator.tsx +2 -2
  99. package/src/features/changelog/useSliceMachineLatestNonBreakingVersion.ts +1 -1
  100. package/src/features/changelog/useSliceMachineReleaseNotes.ts +1 -1
  101. package/src/features/changelog/useSliceMachineVersions.ts +2 -2
  102. package/src/features/changes/BlankSlates/NoChangesBlankSlate.tsx +11 -14
  103. package/src/features/changes/PushChangesButton.tsx +5 -5
  104. package/src/features/changes/StatusBadge.tsx +2 -2
  105. package/src/features/customTypes/EditDropdown.tsx +6 -9
  106. package/src/features/customTypes/PageTypeOnboarding.tsx +5 -5
  107. package/src/features/customTypes/__tests__/CustomTypeBuilderPage.test.tsx +16 -18
  108. package/src/features/customTypes/__tests__/CustomTypesTablePage.test.tsx +11 -10
  109. package/src/features/customTypes/actions/convertCustomToPageType.ts +4 -4
  110. package/src/features/customTypes/actions/createCustomType.ts +5 -5
  111. package/src/features/customTypes/actions/deleteCustomType.ts +3 -3
  112. package/src/features/customTypes/actions/renameCustomType.ts +3 -3
  113. package/src/features/customTypes/customTypesBuilder/CustomTypeProvider.tsx +8 -8
  114. package/src/features/customTypes/customTypesBuilder/CustomTypesBuilderPage.tsx +25 -15
  115. package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.tsx +7 -7
  116. package/src/features/customTypes/customTypesBuilder/SliceZoneBlankSlate.tsx +3 -3
  117. package/src/features/customTypes/customTypesBuilder/useCustomType.ts +1 -1
  118. package/src/features/customTypes/customTypesConfig.ts +2 -2
  119. package/src/features/customTypes/customTypesTable/CustomTypesTable.tsx +16 -16
  120. package/src/features/customTypes/customTypesTable/CustomTypesTablePage.tsx +19 -20
  121. package/src/features/customTypes/customTypesTable/useCustomTypes.ts +8 -8
  122. package/src/features/documentation/MarkdownRenderer/index.tsx +5 -6
  123. package/src/features/documentation/useDocumentation.ts +1 -1
  124. package/src/features/environments/actions/getActiveEnvironment.ts +1 -1
  125. package/src/features/environments/actions/getEnvironments.ts +1 -1
  126. package/src/features/environments/actions/setEnvironment.ts +3 -3
  127. package/src/features/inAppGuide/InAppGuideContext.tsx +2 -2
  128. package/src/features/inAppGuide/InAppGuideDialog.tsx +4 -4
  129. package/src/features/inAppGuide/inAppGuideContent.tsx +4 -4
  130. package/src/features/labs/labsList/LabsList.tsx +2 -2
  131. package/src/features/labs/labsList/LabsListItem.tsx +1 -1
  132. package/src/features/labs/labsList/LabsPage.tsx +8 -5
  133. package/src/features/labs/labsList/useLab.tsx +1 -1
  134. package/src/features/settings/SettingsPage.tsx +7 -4
  135. package/src/features/settings/git/ConnectGitRepository.tsx +9 -9
  136. package/src/features/settings/git/GitOwnerSelect.tsx +1 -1
  137. package/src/features/settings/git/GitProvider.ts +4 -4
  138. package/src/features/settings/git/GitProviderConnectButtons.tsx +1 -1
  139. package/src/features/settings/git/GitRepositoriesList.tsx +5 -5
  140. package/src/features/settings/git/GitRepositoriesSearch.tsx +5 -5
  141. package/src/features/settings/git/GitRepositoryConnectDialog.tsx +5 -8
  142. package/src/features/settings/git/useGitIntegrationExperiment.ts +1 -1
  143. package/src/features/settings/git/useGitOwners.ts +1 -1
  144. package/src/features/settings/git/useGitRepos.ts +1 -1
  145. package/src/features/settings/git/useLinkedGitRepos.ts +2 -2
  146. package/src/features/settings/git/useWriteAPIToken.ts +2 -2
  147. package/src/features/slices/actions/addSlicesToSliceZone.ts +2 -2
  148. package/src/features/slices/actions/createSlice.ts +5 -5
  149. package/src/features/slices/actions/deleteSlice.ts +1 -1
  150. package/src/features/slices/actions/renameSlice.ts +4 -4
  151. package/src/features/slices/actions/uploadSliceScreenshot.ts +2 -2
  152. package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewSliceDialog.tsx +10 -10
  153. package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewVariationDialog.tsx +7 -7
  154. package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.module.css +14 -0
  155. package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.module.css.d.ts +6 -0
  156. package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.tsx +12 -12
  157. package/src/features/slices/convertLegacySlice/ConvertLegacySliceMergeWithIdenticalDialog.tsx +5 -8
  158. package/src/features/slices/convertLegacySlice/types.ts +2 -2
  159. package/src/features/slices/sliceBuilder/FloatingBackButton.tsx +6 -6
  160. package/src/features/slices/sliceBuilder/SliceBuilderProvider.tsx +9 -9
  161. package/src/features/slices/sliceBuilder/actions/deleteVariation.ts +4 -4
  162. package/src/features/slices/sliceBuilder/actions/renameVariation.ts +3 -3
  163. package/src/features/slices/sliceBuilder/useGroupsInSlicesExperiment.ts +8 -0
  164. package/src/features/slices/sliceCards/NonSharedSliceCard.tsx +4 -4
  165. package/src/features/slices/sliceCards/SharedSliceCard.tsx +7 -7
  166. package/src/features/slicesTemplates/actions/createSlicesTemplates.ts +2 -2
  167. package/src/features/slicesTemplates/useSlicesTemplates.ts +2 -1
  168. package/src/features/sync/AutoSyncProvider.tsx +17 -17
  169. package/src/features/sync/actions/pushChanges.ts +4 -3
  170. package/src/features/sync/actions/trackPushChangesSuccess.ts +3 -3
  171. package/src/features/sync/components/AutoSyncStatusIndicator.module.css +1 -1
  172. package/src/features/sync/components/AutoSyncStatusIndicator.tsx +4 -4
  173. package/src/features/sync/fetchUnSyncChanges.ts +5 -5
  174. package/src/features/sync/getUnSyncChanges.ts +9 -9
  175. package/src/features/sync/useUnSyncChanges.ts +5 -5
  176. package/src/hooks/useActionQueue.tsx +5 -5
  177. package/src/hooks/useAdapterName.ts +1 -1
  178. package/src/hooks/useAuthStatus.ts +2 -2
  179. package/src/hooks/useCurrentSlice.tsx +4 -4
  180. package/src/hooks/useEditorContent.ts +5 -4
  181. package/src/hooks/useExperimentVariant.ts +2 -2
  182. package/src/hooks/useIsEmptyProject.ts +1 -1
  183. package/src/hooks/useRepositoryInformation.ts +2 -2
  184. package/src/hooks/useRouteChange.tsx +1 -1
  185. package/src/hooks/useSMTracker.ts +6 -6
  186. package/src/hooks/useScreenshotChangesModal.ts +4 -3
  187. package/src/hooks/useServerState.ts +4 -4
  188. package/src/hooks/useSliceMachineConfig.ts +2 -2
  189. package/src/hooks/useSliceMachineRunningVersion.ts +1 -1
  190. package/src/hooks/useThrottle.ts +1 -1
  191. package/src/hooks/useUpdateAvailable.ts +1 -1
  192. package/src/hooks/useWindowDimensions.ts +1 -1
  193. package/src/hooks/useWindowSize.ts +2 -1
  194. package/{components → src/legacy/components}/App/index.tsx +8 -8
  195. package/{components → src/legacy/components}/AppLayout/index.tsx +6 -7
  196. package/{components → src/legacy/components}/AuthInstructions/index.jsx +1 -1
  197. package/{components → src/legacy/components}/Button/index.tsx +1 -2
  198. package/{components → src/legacy/components}/Card/Default.jsx +2 -1
  199. package/{components → src/legacy/components}/Card/Preview.jsx +1 -1
  200. package/{components → src/legacy/components}/Card/WithTabs/index.jsx +4 -3
  201. package/{components → src/legacy/components}/Card/index.tsx +1 -0
  202. package/{components → src/legacy/components}/Changelog/index.tsx +8 -8
  203. package/{components → src/legacy/components}/Changelog/navigation/VersionBadge.tsx +2 -1
  204. package/{components → src/legacy/components}/Changelog/navigation/VersionTag.tsx +1 -0
  205. package/{components → src/legacy/components}/Changelog/navigation/index.tsx +6 -6
  206. package/{components → src/legacy/components}/Changelog/versionDetails/UpdateCommandBox.tsx +6 -6
  207. package/{components → src/legacy/components}/Changelog/versionDetails/VersionKindLabel.tsx +3 -4
  208. package/{components → src/legacy/components}/Changelog/versionDetails/index.tsx +5 -5
  209. package/{components → src/legacy/components}/ChangesEmptyState/AuthErrorPage.tsx +5 -5
  210. package/{components → src/legacy/components}/ChangesItems/ChangesItems.tsx +14 -14
  211. package/{components → src/legacy/components}/ChangesItems/DevCollaborationExperiment.tsx +3 -3
  212. package/{components → src/legacy/components}/CodeBlock/index.tsx +3 -3
  213. package/{components → src/legacy/components}/ConfigErrors/index.jsx +4 -3
  214. package/{components → src/legacy/components}/CustomTypeTable/changesPage.tsx +9 -8
  215. package/{components → src/legacy/components}/DeleteCTModal/index.tsx +9 -9
  216. package/{components → src/legacy/components}/DeleteDocumentsDrawer/AssociatedDocumentsCard.tsx +4 -4
  217. package/{components → src/legacy/components}/DeleteDocumentsDrawer/HardDeleteDocumentsDrawer.tsx +9 -9
  218. package/{components → src/legacy/components}/DeleteDocumentsDrawer/SoftDeleteDocumentsDrawer.tsx +9 -8
  219. package/{components → src/legacy/components}/DeleteSliceModal/index.tsx +6 -6
  220. package/{components → src/legacy/components}/DeleteVariationModal/index.tsx +6 -6
  221. package/{components → src/legacy/components}/DropDownSelector/index.tsx +2 -4
  222. package/{components → src/legacy/components}/EmptyState/index.tsx +3 -3
  223. package/{components → src/legacy/components}/FormFields/Array.jsx +2 -4
  224. package/{components → src/legacy/components}/FormFields/Checkbox.jsx +1 -1
  225. package/{components → src/legacy/components}/FormFields/CheckboxControl.jsx +1 -1
  226. package/{components → src/legacy/components}/FormFields/Input.tsx +3 -2
  227. package/{components → src/legacy/components}/FormFields/SelectDefaultValue.jsx +1 -1
  228. package/{components → src/legacy/components}/Forms/CreateCustomTypeModal/CreateCustomTypeModal.tsx +18 -18
  229. package/{components → src/legacy/components}/Forms/CreateSliceModal/CreateSliceModal.tsx +10 -10
  230. package/{components → src/legacy/components}/Forms/RenameCustomTypeModal/RenameCustomTypeModal.tsx +12 -12
  231. package/{components → src/legacy/components}/Forms/RenameSliceModal/RenameSliceModal.tsx +8 -8
  232. package/src/legacy/components/Forms/RenameVariationModal/RenameVariationModal.module.css +5 -0
  233. package/src/legacy/components/Forms/RenameVariationModal/RenameVariationModal.module.css.d.ts +5 -0
  234. package/{components → src/legacy/components}/Forms/RenameVariationModal/RenameVariationModal.tsx +7 -7
  235. package/{components → src/legacy/components}/Forms/components/InputBox.tsx +2 -2
  236. package/{components → src/legacy/components}/Forms/components/SelectRepeatable.tsx +4 -3
  237. package/{components → src/legacy/components}/Forms/formsValidator.ts +6 -4
  238. package/{components → src/legacy/components}/FullPage/index.tsx +1 -1
  239. package/{components → src/legacy/components}/ListItem/Header.tsx +3 -2
  240. package/{components → src/legacy/components}/ListItem/index.tsx +8 -10
  241. package/{components → src/legacy/components}/LoadingPage/index.tsx +1 -0
  242. package/{components → src/legacy/components}/LoginModal/index.tsx +22 -22
  243. package/{components → src/legacy/components}/ModalFormCard/index.tsx +7 -6
  244. package/{components → src/legacy/components}/Navigation/ChangesItem.tsx +18 -16
  245. package/{components → src/legacy/components}/Navigation/Environment.tsx +13 -13
  246. package/{components → src/legacy/components}/Navigation/RunningVersion.tsx +2 -2
  247. package/{components → src/legacy/components}/Navigation/UpdateBox.tsx +3 -3
  248. package/src/legacy/components/Navigation/VideoItem.module.css.d.ts +5 -0
  249. package/{components → src/legacy/components}/Navigation/VideoItem.tsx +14 -13
  250. package/src/legacy/components/Navigation/index.module.css +3 -0
  251. package/src/legacy/components/Navigation/index.module.css.d.ts +5 -0
  252. package/{components → src/legacy/components}/Navigation/index.test.tsx +12 -12
  253. package/{components → src/legacy/components}/Navigation/index.tsx +20 -21
  254. package/{components → src/legacy/components}/ReviewModal/ReviewForm.tsx +12 -12
  255. package/{components → src/legacy/components}/ReviewModal/ReviewModal.tsx +6 -6
  256. package/{components → src/legacy/components}/ScreenshotChangesModal/VariationDropZone.tsx +7 -7
  257. package/{components → src/legacy/components}/ScreenshotChangesModal/index.tsx +12 -15
  258. package/{components → src/legacy/components}/ScreenshotChangesModal/useCustomScreenshot.tsx +1 -1
  259. package/{components → src/legacy/components}/ScreenshotPreviewModal/index.tsx +8 -7
  260. package/{components → src/legacy/components}/Simulator/components/FailedConnect/index.tsx +3 -3
  261. package/{components → src/legacy/components}/Simulator/components/Header/VariationsPopover/MenuList.tsx +2 -1
  262. package/{components → src/legacy/components}/Simulator/components/Header/VariationsPopover/index.tsx +4 -5
  263. package/{components → src/legacy/components}/Simulator/components/Header/index.tsx +7 -7
  264. package/{components → src/legacy/components}/Simulator/components/IframeRenderer/index.tsx +3 -4
  265. package/{components → src/legacy/components}/Simulator/components/Toolbar/ScreensizeInput/index.tsx +2 -1
  266. package/{components → src/legacy/components}/Simulator/components/Toolbar/index.tsx +4 -5
  267. package/{components → src/legacy/components}/Simulator/index.tsx +25 -30
  268. package/{components → src/legacy/components}/SliceMachineDrawer/index.tsx +3 -2
  269. package/{components → src/legacy/components}/ToasterContainer/index.tsx +3 -5
  270. package/{components → src/legacy/components}/Tooltip/TextWithTooltip.tsx +2 -2
  271. package/{components → src/legacy/components}/Tooltip/index.jsx +2 -2
  272. package/{components → src/legacy/components}/Warnings/index.jsx +1 -1
  273. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/DeleteSliceZoneModal.tsx +4 -4
  274. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/List.tsx +8 -8
  275. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/SlicesTemplatesModal.tsx +11 -11
  276. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModal.tsx +3 -3
  277. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModalList.tsx +4 -3
  278. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/index.tsx +26 -23
  279. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/sliceTemplatesComingSoon.ts +1 -1
  280. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/InputBox.tsx +1 -1
  281. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/create.tsx +2 -1
  282. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/delete.tsx +2 -2
  283. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/update.tsx +3 -2
  284. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabZone/index.tsx +32 -32
  285. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/index.tsx +5 -5
  286. package/src/legacy/lib/builders/SliceBuilder/FieldZones/index.tsx +273 -0
  287. package/{lib → src/legacy/lib}/builders/SliceBuilder/Sidebar/AddVariationModal.tsx +7 -7
  288. package/{lib → src/legacy/lib}/builders/SliceBuilder/Sidebar/index.tsx +45 -37
  289. package/{lib → src/legacy/lib}/builders/SliceBuilder/SimulatorButton/index.tsx +12 -11
  290. package/{lib → src/legacy/lib}/builders/SliceBuilder/index.tsx +13 -9
  291. package/{lib → src/legacy/lib}/builders/common/EditModal/Field.jsx +3 -5
  292. package/{lib → src/legacy/lib}/builders/common/EditModal/Form.jsx +1 -1
  293. package/{lib → src/legacy/lib}/builders/common/EditModal/index.jsx +14 -16
  294. package/{lib → src/legacy/lib}/builders/common/SelectFieldTypeModal/index.jsx +3 -4
  295. package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/ErrorTooltip.tsx +2 -2
  296. package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/Hints/CodeBlock.tsx +4 -5
  297. package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/Hints/index.tsx +2 -1
  298. package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/NewField.tsx +16 -13
  299. package/{lib → src/legacy/lib}/builders/common/Zone/Card/index.jsx +15 -9
  300. package/{lib → src/legacy/lib}/builders/common/Zone/components/EmptyState/index.tsx +2 -2
  301. package/{lib → src/legacy/lib}/builders/common/Zone/index.jsx +7 -10
  302. package/{lib → src/legacy/lib}/builders/utils/index.ts +1 -1
  303. package/{lib → src/legacy/lib}/forms/fields.ts +1 -2
  304. package/{lib → src/legacy/lib}/forms/index.ts +1 -0
  305. package/{lib → src/legacy/lib}/models/common/CustomType/index.ts +5 -4
  306. package/{lib → src/legacy/lib}/models/common/CustomType/sliceZone.ts +2 -1
  307. package/{lib → src/legacy/lib}/models/common/DeprecatedMockConfigMessage.tsx +3 -2
  308. package/{lib → src/legacy/lib}/models/common/Environment.ts +2 -2
  309. package/{lib → src/legacy/lib}/models/common/Group.ts +3 -2
  310. package/{lib → src/legacy/lib}/models/common/Library.ts +2 -1
  311. package/{lib → src/legacy/lib}/models/common/LibraryUI.ts +1 -1
  312. package/{lib → src/legacy/lib}/models/common/ModelData.ts +3 -3
  313. package/{lib → src/legacy/lib}/models/common/ModelStatus/compareCustomTypeModels.ts +2 -1
  314. package/{lib → src/legacy/lib}/models/common/ModelStatus/compareSliceModels.ts +2 -1
  315. package/{lib → src/legacy/lib}/models/common/ModelStatus/index.ts +10 -9
  316. package/{lib → src/legacy/lib}/models/common/Slice.ts +19 -5
  317. package/{lib → src/legacy/lib}/models/common/normalizers/customType.ts +2 -2
  318. package/{lib → src/legacy/lib}/models/common/normalizers/slices.ts +3 -2
  319. package/{lib → src/legacy/lib}/models/common/widgets/Boolean/index.ts +5 -7
  320. package/{lib → src/legacy/lib}/models/common/widgets/Color/index.ts +2 -3
  321. package/{lib → src/legacy/lib}/models/common/widgets/ContentRelationship/Form.tsx +9 -10
  322. package/{lib → src/legacy/lib}/models/common/widgets/ContentRelationship/index.ts +7 -7
  323. package/{lib → src/legacy/lib}/models/common/widgets/GeoPoint/index.ts +2 -3
  324. package/{lib → src/legacy/lib}/models/common/widgets/Group/Form.jsx +6 -6
  325. package/{lib → src/legacy/lib}/models/common/widgets/Group/ListItem/index.jsx +63 -76
  326. package/{lib → src/legacy/lib}/models/common/widgets/Group/index.ts +6 -4
  327. package/{lib → src/legacy/lib}/models/common/widgets/Image/Form.tsx +9 -11
  328. package/{lib → src/legacy/lib}/models/common/widgets/Image/components.tsx +6 -5
  329. package/{lib → src/legacy/lib}/models/common/widgets/Image/index.ts +3 -5
  330. package/{lib → src/legacy/lib}/models/common/widgets/Link/Form.jsx +5 -7
  331. package/{lib → src/legacy/lib}/models/common/widgets/LinkToMedia/Form.jsx +4 -6
  332. package/{lib → src/legacy/lib}/models/common/widgets/LinkToMedia/index.ts +4 -4
  333. package/{lib → src/legacy/lib}/models/common/widgets/Select/FormFields.jsx +7 -7
  334. package/{lib → src/legacy/lib}/models/common/widgets/Select/index.ts +3 -6
  335. package/{lib → src/legacy/lib}/models/common/widgets/StructuredText/Form.tsx +12 -11
  336. package/{lib → src/legacy/lib}/models/common/widgets/StructuredText/index.ts +3 -6
  337. package/{lib → src/legacy/lib}/models/common/widgets/StructuredText/options.tsx +2 -2
  338. package/{lib → src/legacy/lib}/models/common/widgets/Timestamp/index.ts +4 -5
  339. package/{lib → src/legacy/lib}/models/common/widgets/UID/index.ts +4 -5
  340. package/{lib → src/legacy/lib}/models/common/widgets/Widget.ts +3 -1
  341. package/src/legacy/lib/models/common/widgets/groupBuilderArray.ts +18 -0
  342. package/src/legacy/lib/models/common/widgets/sliceBuilderArray.ts +19 -0
  343. package/src/legacy/lib/models/common/widgets/withGroup.ts +2 -0
  344. package/{lib → src/legacy/lib}/models/server/ServerState.ts +4 -3
  345. package/{lib → src/legacy/lib}/utils/index.ts +4 -5
  346. package/{lib → src/legacy/lib}/utils/shared/customTypes.ts +1 -1
  347. package/src/modules/availableCustomTypes/index.ts +15 -13
  348. package/src/modules/availableCustomTypes/types.ts +2 -2
  349. package/src/modules/environment/index.ts +10 -8
  350. package/src/modules/environment/types.ts +1 -1
  351. package/src/modules/loading/index.ts +3 -2
  352. package/src/modules/modal/index.ts +4 -2
  353. package/src/modules/slices/index.ts +13 -9
  354. package/src/modules/slices/selector.ts +1 -1
  355. package/src/modules/slices/types.ts +2 -2
  356. package/src/modules/useSliceMachineActions.ts +25 -20
  357. package/src/modules/userContext/index.ts +5 -3
  358. package/{pages → src/pages}/_app.tsx +23 -25
  359. package/{pages → src/pages}/changelog.tsx +1 -1
  360. package/{pages → src/pages}/changes.tsx +25 -19
  361. package/src/pages/custom-types/[customTypeId].tsx +1 -0
  362. package/{pages → src/pages}/custom-types.tsx +1 -1
  363. package/{pages → src/pages}/index.tsx +3 -3
  364. package/src/pages/labs.tsx +1 -0
  365. package/src/pages/page-types/[pageTypeId].tsx +1 -0
  366. package/src/pages/settings.tsx +1 -0
  367. package/{pages → src/pages}/slices/[lib]/[sliceName]/[variation]/index.tsx +3 -3
  368. package/{pages → src/pages}/slices/[lib]/[sliceName]/[variation]/simulator.tsx +2 -2
  369. package/{pages → src/pages}/slices.tsx +24 -21
  370. package/src/redux/reducer.ts +8 -7
  371. package/src/redux/store.ts +8 -6
  372. package/src/redux/type.ts +7 -6
  373. package/src/theme.ts +1 -2
  374. package/src/utils/getContentTypeForTracking.ts +21 -0
  375. package/test/__setup__.ts +12 -7
  376. package/test/__testutils__/createTestPlugin.ts +3 -2
  377. package/test/__testutils__/createTestProject.ts +5 -4
  378. package/test/__testutils__/index.tsx +6 -5
  379. package/test/__testutils__/mockAWSACLAPI.ts +1 -1
  380. package/test/__testutils__/mockCustomTypesAPI.ts +1 -1
  381. package/test/__testutils__/mockPrismicAuthAPI.ts +1 -1
  382. package/test/__testutils__/mockPrismicUserAPI.ts +2 -3
  383. package/test/__testutils__/readMSWFormData.ts +1 -1
  384. package/test/components/IframeRenderer.test.ts +3 -2
  385. package/test/lib/builders/EditModal.test.tsx +5 -3
  386. package/test/lib/builders/buildersUtils.test.ts +3 -3
  387. package/test/lib/consts.test.ts +6 -2
  388. package/test/lib/models/common/CustomType.test.ts +6 -2
  389. package/test/lib/models/common/ModelStatus.test.ts +6 -4
  390. package/test/lib/models/common/Slice.test.ts +3 -2
  391. package/test/lib/models/common/widgets/index.test.ts +8 -4
  392. package/test/lib/utils/index.test.ts +3 -2
  393. package/test/lib/utils/preferWroomBase.test.ts +3 -2
  394. package/test/lib/utils/shared/customTypes.test.ts +2 -1
  395. package/test/pages/slices.test.tsx +10 -10
  396. package/test/src/modules/__fixtures__/serverState.ts +3 -3
  397. package/test/src/modules/__fixtures__/sliceUtilsFactory.ts +3 -3
  398. package/test/src/modules/availableCustomTypes/index.test.ts +3 -3
  399. package/test/src/modules/environment.test.ts +3 -5
  400. package/test/src/modules/loading.test.ts +3 -3
  401. package/test/src/modules/modal.test.ts +5 -5
  402. package/test/src/modules/slices.test.ts +3 -2
  403. package/test/src/modules/userContext.test.ts +3 -3
  404. package/test/src/normalizers/customType.test.ts +16 -3
  405. package/test/src/utils/fieldNameCreator.test.ts +1 -1
  406. package/tsconfig.json +1 -6
  407. package/vite.config.ts +5 -10
  408. package/components/Forms/RenameVariationModal/RenameVariationModal.css.ts +0 -7
  409. package/components/Navigation/index.css.ts +0 -5
  410. package/lib/builders/SliceBuilder/FieldZones/index.tsx +0 -216
  411. package/lib/models/common/widgets/sliceBuilderArray.ts +0 -31
  412. package/lib/models/common/widgets/withGroup.ts +0 -20
  413. package/out/_next/static/M7hTqxKEI7x7a09i22lAK/_buildManifest.js +0 -1
  414. package/out/_next/static/chunks/18539003-a5a5d48f20a7b261.js +0 -97
  415. package/out/_next/static/chunks/25-792af14760d9df34.js +0 -1
  416. package/out/_next/static/chunks/286-e0950c3083c672e8.js +0 -1
  417. package/out/_next/static/chunks/318-d6f1200138628ec3.js +0 -1
  418. package/out/_next/static/chunks/46-d22d7a121254e31d.js +0 -8
  419. package/out/_next/static/chunks/727-2c302be2def92786.js +0 -1
  420. package/out/_next/static/chunks/799-7b910b896ff60ebe.js +0 -1
  421. package/out/_next/static/chunks/904-c9221a5cb09524e8.js +0 -1
  422. package/out/_next/static/chunks/pages/_app-7c41eb6cdd942b9e.js +0 -436
  423. package/out/_next/static/chunks/pages/changelog-5c9ac93faf0df06b.js +0 -1
  424. package/out/_next/static/chunks/pages/changes-3e4989e09fd412a8.js +0 -1
  425. package/out/_next/static/chunks/pages/custom-types/[customTypeId]-d1a4a07e6b600fa6.js +0 -1
  426. package/out/_next/static/chunks/pages/labs-6f5925cd6cdcee9e.js +0 -1
  427. package/out/_next/static/chunks/pages/page-types/[pageTypeId]-a724ff12ef322020.js +0 -1
  428. package/out/_next/static/chunks/pages/settings-f0620e5b727cda03.js +0 -1
  429. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-01d67e97cb901e46.js +0 -1
  430. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-8d7043e6638d65cd.js +0 -1
  431. package/out/_next/static/chunks/pages/slices-77cff50b1df13579.js +0 -1
  432. package/out/_next/static/css/238631d146c5ed97.css +0 -1
  433. package/out/_next/static/css/72465cc1225f28a2.css +0 -1
  434. package/out/_next/static/css/838fd8bb5a7c32b0.css +0 -1
  435. package/out/_next/static/css/b22c0750c14cc089.css +0 -1
  436. package/out/_next/static/css/be1f49e49a5aa7eb.css +0 -1
  437. package/out/_next/static/css/f8eb526e10bc2441.css +0 -1
  438. package/pages/custom-types/[customTypeId].tsx +0 -1
  439. package/pages/labs.tsx +0 -1
  440. package/pages/page-types/[pageTypeId].tsx +0 -1
  441. package/pages/settings.tsx +0 -1
  442. package/src/components/BlankSlate/BlankSlate.css.ts +0 -96
  443. package/src/components/Breadcrumb/Breadcrumb.css.ts +0 -5
  444. package/src/components/Breadcrumb/Breadcrumb.stories.ts +0 -32
  445. package/src/components/CodeBlock/CodeBlock.css.ts +0 -37
  446. package/src/components/ContentTabs/ContentTabs.css.ts +0 -49
  447. package/src/components/Divider/Divider.css.ts +0 -31
  448. package/src/components/HoverCard/HoverCard.css.ts +0 -105
  449. package/src/components/TextLink/TextLink.css.ts +0 -65
  450. package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.css.ts +0 -15
  451. package/out/_next/static/{M7hTqxKEI7x7a09i22lAK → jEpmnNgSaQQGEtlMfn4ek}/_ssgManifest.js +0 -0
  452. package/{components → src/legacy/components}/Card/CardBox.tsx +0 -0
  453. package/{components → src/legacy/components}/Card/WithTabs/components.jsx +1 -1
  454. package/{components → src/legacy/components}/Changelog/versionDetails/ReleaseNotesDetails.tsx +1 -1
  455. package/{components → src/legacy/components}/ChangesEmptyState/OfflinePage.tsx +1 -1
  456. package/{components → src/legacy/components}/ChangesEmptyState/index.ts +1 -1
  457. package/{components → src/legacy/components}/ChangesItems/ErrorBanner.tsx +1 -1
  458. package/{components → src/legacy/components}/ChangesItems/index.ts +0 -0
  459. package/{components → src/legacy/components}/ChangesSectionHeader/ChangesSectionHeader.tsx +0 -0
  460. package/{components → src/legacy/components}/ChangesSectionHeader/index.ts +0 -0
  461. package/{components → src/legacy/components}/DeleteDocumentsDrawer/index.tsx +1 -1
  462. package/{components → src/legacy/components}/DropDownSelector/MenuList.tsx +0 -0
  463. package/{components → src/legacy/components}/Flex/index.tsx +0 -0
  464. package/{components → src/legacy/components}/FormFields/index.ts +0 -0
  465. package/{components → src/legacy/components}/Forms/CreateCustomTypeModal/index.tsx +0 -0
  466. package/{components → src/legacy/components}/Forms/CreateSliceModal/index.tsx +0 -0
  467. package/{components → src/legacy/components}/Forms/RenameCustomTypeModal/index.ts +0 -0
  468. package/{components → src/legacy/components}/Forms/RenameSliceModal/index.ts +0 -0
  469. package/{components → src/legacy/components}/Forms/RenameVariationModal/index.ts +0 -0
  470. package/{components → src/legacy/components}/Forms/components/FlexCard.tsx +0 -0
  471. package/{components → src/legacy/components}/Forms/formsTypes.ts +0 -0
  472. package/{components → src/legacy/components}/Grid/index.tsx +0 -0
  473. package/{components → src/legacy/components}/InputDeleteIcon/index.jsx +1 -1
  474. package/{components → src/legacy/components}/ItemHeader/index.tsx +1 -1
  475. package/{components → src/legacy/components}/Li/index.tsx +0 -0
  476. package/{components → src/legacy/components}/ListItem/utils.js +0 -0
  477. package/{components → src/legacy/components}/MissingLibraries/index.tsx +0 -0
  478. package/{components → src/legacy/components}/Navigation/VideoItem.module.css +0 -0
  479. package/{components → src/legacy/components}/ReactTooltipPortal/index.tsx +0 -0
  480. package/{components → src/legacy/components}/ReviewModal/ReviewFormSelect.tsx +1 -1
  481. package/{components → src/legacy/components}/ReviewModal/index.ts +0 -0
  482. package/{components → src/legacy/components}/ScreenshotPreview/index.tsx +1 -1
  483. package/{components → src/legacy/components}/Simulator/components/FullPage/index.tsx +0 -0
  484. package/{components → src/legacy/components}/Simulator/components/Header/links.ts +0 -0
  485. package/{components → src/legacy/components}/SliceMachineIconButton/index.tsx +1 -1
  486. package/{components → src/legacy/components}/SliceMachineModal/index.tsx +1 -1
  487. package/{components → src/legacy/components}/WindowPortal/index.js +0 -0
  488. package/{components → src/legacy/components}/YoutubeEmbed/index.tsx +0 -0
  489. package/{lib → src/legacy/lib}/builders/common/SelectFieldTypeModal/FieldTypeCard.jsx +0 -0
  490. package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/EditItem.jsx +0 -0
  491. package/{lib → src/legacy/lib}/consts.ts +0 -0
  492. package/{lib → src/legacy/lib}/env/sentry.ts +0 -0
  493. package/{lib → src/legacy/lib}/forms/defaults.ts +1 -1
  494. package/{lib → src/legacy/lib}/forms/types.ts +0 -0
  495. package/{lib → src/legacy/lib}/hljs/svelte.ts +0 -0
  496. package/{lib → src/legacy/lib}/models/common/Auth.ts +0 -0
  497. package/{lib → src/legacy/lib}/models/common/ComponentUI.ts +1 -1
  498. package/{lib → src/legacy/lib}/models/common/CustomType/tab.ts +4 -4
  499. package/{lib → src/legacy/lib}/models/common/ErrorWithStatus.ts +0 -0
  500. package/{lib → src/legacy/lib}/models/common/Fields.ts +1 -1
  501. package/{lib → src/legacy/lib}/models/common/Manifest.ts +0 -0
  502. package/{lib → src/legacy/lib}/models/common/PrismicData.ts +0 -0
  503. package/{lib → src/legacy/lib}/models/common/PrismicFile.ts +0 -0
  504. package/{lib → src/legacy/lib}/models/common/Screenshots.ts +0 -0
  505. package/{lib → src/legacy/lib}/models/common/Simulator.ts +0 -0
  506. package/{lib → src/legacy/lib}/models/common/Slices.ts +2 -2
  507. package/{lib → src/legacy/lib}/models/common/UserProfile.ts +0 -0
  508. package/{lib → src/legacy/lib}/models/common/Warning.ts +0 -0
  509. package/{lib → src/legacy/lib}/models/common/widgets/Date/index.ts +2 -2
  510. package/{lib → src/legacy/lib}/models/common/widgets/Embed/index.ts +2 -2
  511. package/{lib → src/legacy/lib}/models/common/widgets/Link/index.ts +3 -3
  512. package/{lib → src/legacy/lib}/models/common/widgets/Number/index.ts +2 -2
  513. package/{lib → src/legacy/lib}/models/common/widgets/Text/index.ts +5 -5
  514. package/{lib → src/legacy/lib}/models/common/widgets/ctBuilderArray.ts +0 -0
  515. package/{lib → src/legacy/lib}/models/common/widgets/index.ts +1 -1
  516. /package/{lib → src/legacy/lib}/prismic/endpoints.ts +0 -0
  517. /package/{lib → src/legacy/lib}/utils/poll.ts +0 -0
  518. /package/{lib → src/legacy/lib}/utils/preferWroomBase.ts +0 -0
  519. /package/{lib → src/legacy/lib}/utils/repo.ts +0 -0
  520. /package/{lib → src/legacy/lib}/utils/str.ts +0 -0
  521. /package/{pages → src/pages}/api/embed.js +0 -0
@@ -1,6 +1,7 @@
1
- import { Box, Heading, Flex, Text } from "theme-ui";
2
- import Card from "@components/Card";
3
- import Li from "@components/Li";
1
+ import { Box, Flex, Heading, Text } from "theme-ui";
2
+
3
+ import Card from "@/legacy/components/Card";
4
+ import Li from "@/legacy/components/Li";
4
5
 
5
6
  const ConfigErrors = ({ errors }) => (
6
7
  <Card
@@ -1,16 +1,17 @@
1
1
  import Link from "next/link";
2
2
  import React from "react";
3
3
  import { Box, Text } from "theme-ui";
4
- import { CustomTypeSM } from "@lib/models/common/CustomType";
5
- import { ModelStatus } from "@lib/models/common/ModelStatus";
4
+
5
+ import { StatusBadge } from "@/features/changes/StatusBadge";
6
+ import { CUSTOM_TYPES_CONFIG } from "@/features/customTypes/customTypesConfig";
7
+ import { ModelsStatuses } from "@/features/sync/getUnSyncChanges";
8
+ import { CustomTypeSM } from "@/legacy/lib/models/common/CustomType";
6
9
  import {
7
- LocalOrRemoteCustomType,
8
10
  hasLocal,
9
- } from "@lib/models/common/ModelData";
10
- import { StatusBadge } from "@src/features/changes/StatusBadge";
11
- import { CUSTOM_TYPES_CONFIG } from "@src/features/customTypes/customTypesConfig";
12
- import { AuthStatus } from "@src/modules/userContext/types";
13
- import { ModelsStatuses } from "@src/features/sync/getUnSyncChanges";
11
+ LocalOrRemoteCustomType,
12
+ } from "@/legacy/lib/models/common/ModelData";
13
+ import { ModelStatus } from "@/legacy/lib/models/common/ModelStatus";
14
+ import { AuthStatus } from "@/modules/userContext/types";
14
15
 
15
16
  interface CustomTypeTableProps {
16
17
  customTypes: LocalOrRemoteCustomType[];
@@ -1,15 +1,15 @@
1
- import SliceMachineModal from "@components/SliceMachineModal";
2
- import useSliceMachineActions from "@src/modules/useSliceMachineActions";
3
- import { Close, Flex, Heading, Text, useThemeUI } from "theme-ui";
4
- import Card from "@components/Card";
5
- import { MdOutlineDelete } from "react-icons/md";
6
- import { Button } from "@components/Button";
7
1
  import { CustomType } from "@prismicio/types-internal/lib/customtypes";
8
2
  import { CustomTypeFormat } from "@slicemachine/manager";
9
- import { CUSTOM_TYPES_MESSAGES } from "@src/features/customTypes/customTypesMessages";
10
-
11
- import { deleteCustomType } from "@src/features/customTypes/actions/deleteCustomType";
12
3
  import { useState } from "react";
4
+ import { MdOutlineDelete } from "react-icons/md";
5
+ import { Close, Flex, Heading, Text, useThemeUI } from "theme-ui";
6
+
7
+ import { deleteCustomType } from "@/features/customTypes/actions/deleteCustomType";
8
+ import { CUSTOM_TYPES_MESSAGES } from "@/features/customTypes/customTypesMessages";
9
+ import { Button } from "@/legacy/components/Button";
10
+ import Card from "@/legacy/components/Card";
11
+ import SliceMachineModal from "@/legacy/components/SliceMachineModal";
12
+ import useSliceMachineActions from "@/modules/useSliceMachineActions";
13
13
 
14
14
  type DeleteCTModalProps = {
15
15
  customType: CustomType;
@@ -1,9 +1,9 @@
1
+ import { CustomTypeFormat } from "@slicemachine/manager";
1
2
  import React from "react";
2
- import { Flex, Text, Card, Link } from "theme-ui";
3
+ import { Card, Flex, Link, Text } from "theme-ui";
3
4
 
4
- import { CustomTypeFormat } from "@slicemachine/manager";
5
- import { CUSTOM_TYPES_CONFIG } from "@src/features/customTypes/customTypesConfig";
6
- import { CUSTOM_TYPES_MESSAGES } from "@src/features/customTypes/customTypesMessages";
5
+ import { CUSTOM_TYPES_CONFIG } from "@/features/customTypes/customTypesConfig";
6
+ import { CUSTOM_TYPES_MESSAGES } from "@/features/customTypes/customTypesMessages";
7
7
 
8
8
  type AssociatedDocumentsCardProps = {
9
9
  ctName: string;
@@ -1,15 +1,15 @@
1
+ import { PushChangesLimit } from "@slicemachine/manager";
1
2
  import React from "react";
2
-
3
- import { Text } from "theme-ui";
4
- import { Button } from "@components/Button";
5
3
  import { useSelector } from "react-redux";
6
- import { SliceMachineStoreType } from "@src/redux/type";
7
- import { selectAllCustomTypes } from "@src/modules/availableCustomTypes";
8
- import { isRemoteOnly } from "@lib/models/common/ModelData";
9
- import { getModelId } from "@lib/models/common/ModelData";
4
+ import { Text } from "theme-ui";
5
+
6
+ import { Button } from "@/legacy/components/Button";
7
+ import { SliceMachineDrawerUI } from "@/legacy/components/SliceMachineDrawer";
8
+ import { getModelId, isRemoteOnly } from "@/legacy/lib/models/common/ModelData";
9
+ import { selectAllCustomTypes } from "@/modules/availableCustomTypes";
10
+ import { SliceMachineStoreType } from "@/redux/type";
11
+
10
12
  import { AssociatedDocumentsCard } from "./AssociatedDocumentsCard";
11
- import { SliceMachineDrawerUI } from "@components/SliceMachineDrawer";
12
- import { PushChangesLimit } from "@slicemachine/manager";
13
13
 
14
14
  export const HardDeleteDocumentsDrawer: React.FunctionComponent<{
15
15
  pushChanges: (confirmDeleteDocuments: boolean) => void;
@@ -1,14 +1,15 @@
1
+ import { PushChangesLimit } from "@slicemachine/manager";
1
2
  import React, { useState } from "react";
2
- import { Flex, Text, Checkbox, ThemeUIStyleObject, Label } from "theme-ui";
3
- import { Button } from "@components/Button";
4
3
  import { useSelector } from "react-redux";
5
- import { SliceMachineStoreType } from "@src/redux/type";
6
- import { isRemoteOnly } from "@lib/models/common/ModelData";
7
- import { selectAllCustomTypes } from "@src/modules/availableCustomTypes";
8
- import { getModelId } from "@lib/models/common/ModelData";
4
+ import { Checkbox, Flex, Label, Text, ThemeUIStyleObject } from "theme-ui";
5
+
6
+ import { Button } from "@/legacy/components/Button";
7
+ import { SliceMachineDrawerUI } from "@/legacy/components/SliceMachineDrawer";
8
+ import { getModelId, isRemoteOnly } from "@/legacy/lib/models/common/ModelData";
9
+ import { selectAllCustomTypes } from "@/modules/availableCustomTypes";
10
+ import { SliceMachineStoreType } from "@/redux/type";
11
+
9
12
  import { AssociatedDocumentsCard } from "./AssociatedDocumentsCard";
10
- import { SliceMachineDrawerUI } from "@components/SliceMachineDrawer";
11
- import { PushChangesLimit } from "@slicemachine/manager";
12
13
 
13
14
  const ConfirmationDialogue: React.FC<{
14
15
  isConfirmed: boolean;
@@ -2,12 +2,12 @@ import { useState } from "react";
2
2
  import { MdOutlineDelete } from "react-icons/md";
3
3
  import { Close, Flex, Heading, Paragraph, Text, useThemeUI } from "theme-ui";
4
4
 
5
- import SliceMachineModal from "@components/SliceMachineModal";
6
- import useSliceMachineActions from "@src/modules/useSliceMachineActions";
7
- import Card from "@components/Card";
8
- import { Button } from "@components/Button";
9
- import { deleteSlice } from "@src/features/slices/actions/deleteSlice";
10
- import { useAutoSync } from "@src/features/sync/AutoSyncProvider";
5
+ import { deleteSlice } from "@/features/slices/actions/deleteSlice";
6
+ import { useAutoSync } from "@/features/sync/AutoSyncProvider";
7
+ import { Button } from "@/legacy/components/Button";
8
+ import Card from "@/legacy/components/Card";
9
+ import SliceMachineModal from "@/legacy/components/SliceMachineModal";
10
+ import useSliceMachineActions from "@/modules/useSliceMachineActions";
11
11
 
12
12
  type DeleteSliceModalProps = {
13
13
  isOpen: boolean;
@@ -7,13 +7,13 @@ import {
7
7
  Text,
8
8
  } from "@prismicio/editor-ui";
9
9
  import { useRouter } from "next/router";
10
- import { useState, type FC, type PropsWithChildren } from "react";
10
+ import { type FC, type PropsWithChildren, useState } from "react";
11
11
 
12
- import type { ComponentUI } from "@lib/models/common/ComponentUI";
13
- import type { VariationSM } from "@lib/models/common/Slice";
14
- import { deleteVariation } from "@src/features/slices/sliceBuilder/actions/deleteVariation";
15
- import useSliceMachineActions from "@src/modules/useSliceMachineActions";
16
- import { useSliceState } from "@src/features/slices/sliceBuilder/SliceBuilderProvider";
12
+ import { deleteVariation } from "@/features/slices/sliceBuilder/actions/deleteVariation";
13
+ import { useSliceState } from "@/features/slices/sliceBuilder/SliceBuilderProvider";
14
+ import type { ComponentUI } from "@/legacy/lib/models/common/ComponentUI";
15
+ import type { VariationSM } from "@/legacy/lib/models/common/Slice";
16
+ import useSliceMachineActions from "@/modules/useSliceMachineActions";
17
17
 
18
18
  type DeleteVariationModalProps = {
19
19
  isOpen: boolean;
@@ -1,12 +1,10 @@
1
1
  import React, { useState } from "react";
2
+ import { RiArrowDropDownFill, RiArrowDropUpFill } from "react-icons/ri";
2
3
  import { Popover } from "react-tiny-popover";
4
+ import { Box, Button, ThemeUICSSObject } from "theme-ui";
3
5
 
4
6
  import MenuList from "./MenuList";
5
7
 
6
- import { Button, Box, ThemeUICSSObject } from "theme-ui";
7
-
8
- import { RiArrowDropDownFill, RiArrowDropUpFill } from "react-icons/ri";
9
-
10
8
  type DropDownMenuProps = {
11
9
  options: string[];
12
10
  currentValue: string;
@@ -1,8 +1,8 @@
1
- import { Button, Text, Heading, Box } from "theme-ui";
2
- import React from "react";
3
1
  import { Video } from "cloudinary-react";
2
+ import React from "react";
3
+ import { Box, Button, Heading, Text } from "theme-ui";
4
4
 
5
- import { telemetry } from "@src/apiClient";
5
+ import { telemetry } from "@/apiClient";
6
6
 
7
7
  interface Props {
8
8
  title: string;
@@ -1,8 +1,6 @@
1
- import { Fragment, useRef, useEffect, useState } from "react";
2
-
3
1
  import { FieldArray } from "formik";
4
-
5
- import { Text, Label, Flex, Input, Button } from "theme-ui";
2
+ import { Fragment, useEffect, useRef, useState } from "react";
3
+ import { Button, Flex, Input, Label, Text } from "theme-ui";
6
4
 
7
5
  const FormFieldArray = ({
8
6
  field,
@@ -1,5 +1,5 @@
1
1
  import { Field } from "formik";
2
- import { Label, Checkbox } from "theme-ui";
2
+ import { Checkbox, Label } from "theme-ui";
3
3
 
4
4
  const FormFieldCheckbox = ({
5
5
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -1,4 +1,4 @@
1
- import { useState, useEffect } from "react";
1
+ import { useEffect, useState } from "react";
2
2
 
3
3
  import { FormFieldCheckbox } from "./";
4
4
 
@@ -1,7 +1,8 @@
1
- import { InputType } from "@lib/forms/fields";
2
1
  import { Field, FieldMetaProps } from "formik";
3
2
  import React from "react";
4
- import { Box, Label, Input, Text, ThemeUIStyleObject } from "theme-ui";
3
+ import { Box, Input, Label, Text, ThemeUIStyleObject } from "theme-ui";
4
+
5
+ import { InputType } from "@/legacy/lib/forms/fields";
5
6
 
6
7
  export enum InputFieldStyles {
7
8
  ERROR,
@@ -1,5 +1,5 @@
1
- import { useState, useEffect } from "react";
2
1
  import { useFormikContext } from "formik";
2
+ import { useEffect, useState } from "react";
3
3
 
4
4
  import { FormFieldCheckbox } from "./";
5
5
 
@@ -1,27 +1,27 @@
1
- import { SetStateAction, useState } from "react";
2
- import { Box } from "theme-ui";
1
+ import type { CustomTypeFormat } from "@slicemachine/manager";
3
2
  import { FormikErrors } from "formik";
4
- import { useSelector } from "react-redux";
5
3
  import { useRouter } from "next/router";
4
+ import { SetStateAction, useState } from "react";
5
+ import { useSelector } from "react-redux";
6
+ import { Box } from "theme-ui";
6
7
 
7
- import ModalFormCard from "@components/ModalFormCard";
8
- import useSliceMachineActions from "@src/modules/useSliceMachineActions";
9
- import { SliceMachineStoreType } from "@src/redux/type";
8
+ import { getFormat } from "@/domain/customType";
9
+ import {
10
+ createCustomType,
11
+ CustomTypeOrigin,
12
+ } from "@/features/customTypes/actions/createCustomType";
13
+ import { CUSTOM_TYPES_CONFIG } from "@/features/customTypes/customTypesConfig";
14
+ import { CUSTOM_TYPES_MESSAGES } from "@/features/customTypes/customTypesMessages";
15
+ import { useAutoSync } from "@/features/sync/AutoSyncProvider";
16
+ import ModalFormCard from "@/legacy/components/ModalFormCard";
17
+ import { API_ID_REGEX } from "@/legacy/lib/consts";
18
+ import { slugify } from "@/legacy/lib/utils/str";
10
19
  import {
11
20
  selectAllCustomTypeIds,
12
21
  selectAllCustomTypeLabels,
13
- } from "@src/modules/availableCustomTypes";
14
- import { slugify } from "@lib/utils/str";
15
- import { API_ID_REGEX } from "@lib/consts";
16
- import type { CustomTypeFormat } from "@slicemachine/manager";
17
- import { CUSTOM_TYPES_MESSAGES } from "@src/features/customTypes/customTypesMessages";
18
- import {
19
- CustomTypeOrigin,
20
- createCustomType,
21
- } from "@src/features/customTypes/actions/createCustomType";
22
- import { CUSTOM_TYPES_CONFIG } from "@src/features/customTypes/customTypesConfig";
23
- import { getFormat } from "@src/domain/customType";
24
- import { useAutoSync } from "@src/features/sync/AutoSyncProvider";
22
+ } from "@/modules/availableCustomTypes";
23
+ import useSliceMachineActions from "@/modules/useSliceMachineActions";
24
+ import { SliceMachineStoreType } from "@/redux/type";
25
25
 
26
26
  import { InputBox } from "../components/InputBox";
27
27
  import { SelectRepeatable } from "../components/SelectRepeatable";
@@ -1,18 +1,18 @@
1
- import { Box, Label } from "theme-ui";
1
+ import { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
2
2
  import { FC, useState } from "react";
3
3
  import Select from "react-select";
4
- import { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
4
+ import { Box, Label } from "theme-ui";
5
5
 
6
- import { SliceSM } from "@lib/models/common/Slice";
7
- import { LibraryUI } from "@lib/models/common/LibraryUI";
8
- import ModalFormCard from "@components/ModalFormCard";
9
- import { createSlice } from "@src/features/slices/actions/createSlice";
10
- import useSliceMachineActions from "@src/modules/useSliceMachineActions";
11
- import { getState } from "@src/apiClient";
12
- import { useAutoSync } from "@src/features/sync/AutoSyncProvider";
6
+ import { getState } from "@/apiClient";
7
+ import { createSlice } from "@/features/slices/actions/createSlice";
8
+ import { useAutoSync } from "@/features/sync/AutoSyncProvider";
9
+ import ModalFormCard from "@/legacy/components/ModalFormCard";
10
+ import { LibraryUI } from "@/legacy/lib/models/common/LibraryUI";
11
+ import { SliceSM } from "@/legacy/lib/models/common/Slice";
12
+ import useSliceMachineActions from "@/modules/useSliceMachineActions";
13
13
 
14
- import { validateSliceModalValues } from "../formsValidator";
15
14
  import { InputBox } from "../components/InputBox";
15
+ import { validateSliceModalValues } from "../formsValidator";
16
16
 
17
17
  type CreateSliceModalProps = {
18
18
  onClose: () => void;
@@ -1,19 +1,19 @@
1
+ import { CustomType } from "@prismicio/types-internal/lib/customtypes";
2
+ import { CustomTypeFormat } from "@slicemachine/manager";
3
+ import { FormikErrors } from "formik";
1
4
  import { useState } from "react";
2
- import { Box } from "theme-ui";
3
- import useSliceMachineActions from "@src/modules/useSliceMachineActions";
4
- import ModalFormCard from "../../ModalFormCard";
5
- import { InputBox } from "../components/InputBox";
6
5
  import { useSelector } from "react-redux";
7
- import { SliceMachineStoreType } from "@src/redux/type";
8
- import { FormikErrors } from "formik";
6
+ import { Box } from "theme-ui";
9
7
 
10
- import { selectAllCustomTypeLabels } from "@src/modules/availableCustomTypes";
11
- import { CustomType } from "@prismicio/types-internal/lib/customtypes";
12
- import { CustomTypeFormat } from "@slicemachine/manager";
13
- import { CUSTOM_TYPES_MESSAGES } from "@src/features/customTypes/customTypesMessages";
8
+ import { renameCustomType } from "@/features/customTypes/actions/renameCustomType";
9
+ import { CUSTOM_TYPES_MESSAGES } from "@/features/customTypes/customTypesMessages";
10
+ import { useAutoSync } from "@/features/sync/AutoSyncProvider";
11
+ import { selectAllCustomTypeLabels } from "@/modules/availableCustomTypes";
12
+ import useSliceMachineActions from "@/modules/useSliceMachineActions";
13
+ import { SliceMachineStoreType } from "@/redux/type";
14
14
 
15
- import { renameCustomType } from "@src/features/customTypes/actions/renameCustomType";
16
- import { useAutoSync } from "@src/features/sync/AutoSyncProvider";
15
+ import ModalFormCard from "../../ModalFormCard";
16
+ import { InputBox } from "../components/InputBox";
17
17
 
18
18
  interface RenameCustomTypeModalProps {
19
19
  isChangesLocal: boolean;
@@ -1,15 +1,15 @@
1
- import { Box } from "theme-ui";
2
1
  import { useSelector } from "react-redux";
2
+ import { Box } from "theme-ui";
3
3
 
4
- import useSliceMachineActions from "@src/modules/useSliceMachineActions";
5
- import { SliceMachineStoreType } from "@src/redux/type";
6
- import { getLibraries, getRemoteSlices } from "@src/modules/slices";
7
- import { ComponentUI } from "@lib/models/common/ComponentUI";
8
- import { renameSlice } from "@src/features/slices/actions/renameSlice";
9
- import { useAutoSync } from "@src/features/sync/AutoSyncProvider";
4
+ import { renameSlice } from "@/features/slices/actions/renameSlice";
5
+ import { useAutoSync } from "@/features/sync/AutoSyncProvider";
6
+ import { ComponentUI } from "@/legacy/lib/models/common/ComponentUI";
7
+ import { getLibraries, getRemoteSlices } from "@/modules/slices";
8
+ import useSliceMachineActions from "@/modules/useSliceMachineActions";
9
+ import { SliceMachineStoreType } from "@/redux/type";
10
10
 
11
- import { InputBox } from "../components/InputBox";
12
11
  import ModalFormCard from "../../ModalFormCard";
12
+ import { InputBox } from "../components/InputBox";
13
13
  import { SliceModalValues } from "../formsTypes";
14
14
  import { validateSliceModalValues } from "../formsValidator";
15
15
 
@@ -0,0 +1,5 @@
1
+ .label {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ gap: 4px;
5
+ }
@@ -0,0 +1,5 @@
1
+ declare const styles: {
2
+ readonly "label": string;
3
+ };
4
+ export = styles;
5
+
@@ -8,15 +8,15 @@ import {
8
8
  Text,
9
9
  } from "@prismicio/editor-ui";
10
10
  import { Formik } from "formik";
11
- import { useState, type FC } from "react";
11
+ import { type FC, useState } from "react";
12
12
 
13
- import type { ComponentUI } from "@lib/models/common/ComponentUI";
14
- import type { VariationSM } from "@lib/models/common/Slice";
15
- import { renameVariation } from "@src/features/slices/sliceBuilder/actions/renameVariation";
16
- import useSliceMachineActions from "@src/modules/useSliceMachineActions";
13
+ import { renameVariation } from "@/features/slices/sliceBuilder/actions/renameVariation";
14
+ import { useSliceState } from "@/features/slices/sliceBuilder/SliceBuilderProvider";
15
+ import type { ComponentUI } from "@/legacy/lib/models/common/ComponentUI";
16
+ import type { VariationSM } from "@/legacy/lib/models/common/Slice";
17
+ import useSliceMachineActions from "@/modules/useSliceMachineActions";
17
18
 
18
- import * as styles from "./RenameVariationModal.css";
19
- import { useSliceState } from "@src/features/slices/sliceBuilder/SliceBuilderProvider";
19
+ import styles from "./RenameVariationModal.module.css";
20
20
 
21
21
  type RenameVariationModalProps = {
22
22
  isOpen: boolean;
@@ -1,6 +1,6 @@
1
- import React from "react";
2
1
  import { Field } from "formik";
3
- import { Box, Label, Input, Text } from "theme-ui";
2
+ import React from "react";
3
+ import { Box, Input, Label, Text } from "theme-ui";
4
4
 
5
5
  type InputBoxProps = {
6
6
  name: string;
@@ -1,10 +1,11 @@
1
- import React, { FC } from "react";
1
+ import { CustomTypeFormat } from "@slicemachine/manager";
2
2
  import { useField } from "formik";
3
+ import React, { FC } from "react";
3
4
  import { Box, Radio } from "theme-ui";
4
5
 
5
- import { CUSTOM_TYPES_MESSAGES } from "@src/features/customTypes/customTypesMessages";
6
+ import { CUSTOM_TYPES_MESSAGES } from "@/features/customTypes/customTypesMessages";
7
+
6
8
  import { FlexCard } from "./FlexCard";
7
- import { CustomTypeFormat } from "@slicemachine/manager";
8
9
 
9
10
  type SelectRepeatableProps = {
10
11
  format: CustomTypeFormat;
@@ -1,10 +1,12 @@
1
- import { SliceModalValues } from "./formsTypes";
2
- import { RESERVED_SLICE_NAME, API_ID_REGEX } from "@lib/consts";
3
- import { LibraryUI } from "@lib/models/common/LibraryUI";
4
- import { SliceSM } from "@lib/models/common/Slice";
5
1
  import camelCase from "lodash/camelCase";
6
2
  import startCase from "lodash/startCase";
7
3
 
4
+ import { API_ID_REGEX, RESERVED_SLICE_NAME } from "@/legacy/lib/consts";
5
+ import { LibraryUI } from "@/legacy/lib/models/common/LibraryUI";
6
+ import { SliceSM } from "@/legacy/lib/models/common/Slice";
7
+
8
+ import { SliceModalValues } from "./formsTypes";
9
+
8
10
  type SliceModalValuesValidity =
9
11
  | {
10
12
  sliceName?: string;
@@ -1,4 +1,4 @@
1
- import { FlexProps, Flex } from "theme-ui";
1
+ import { Flex, FlexProps } from "theme-ui";
2
2
 
3
3
  const FullPage: React.FunctionComponent<FlexProps> = ({ children }) => (
4
4
  <Flex
@@ -1,7 +1,8 @@
1
- import { TextWithTooltip } from "@components/Tooltip/TextWithTooltip";
1
+ import * as CSS from "csstype";
2
2
  import { IconType } from "react-icons";
3
3
  import { Flex, Text, Theme } from "theme-ui";
4
- import * as CSS from "csstype";
4
+
5
+ import { TextWithTooltip } from "@/legacy/components/Tooltip/TextWithTooltip";
5
6
 
6
7
  interface ItemHeaderProps {
7
8
  text: string;
@@ -1,21 +1,19 @@
1
+ import { Menu, MenuButton, MenuItem, MenuList } from "@reach/menu-button";
1
2
  import React, { Fragment } from "react";
2
3
  import { Draggable } from "react-beautiful-dnd";
3
- import { MenuButton, Menu, MenuItem, MenuList } from "@reach/menu-button";
4
-
4
+ import { AiOutlineEdit } from "react-icons/ai";
5
+ import { BsThreeDotsVertical } from "react-icons/bs";
6
+ import { FaBars } from "react-icons/fa";
5
7
  import { Box, Flex, useThemeUI } from "theme-ui";
8
+ import { AnyObjectSchema } from "yup";
9
+
10
+ import { TabField } from "@/legacy/lib/models/common/CustomType";
11
+ import { Widget } from "@/legacy/lib/models/common/widgets/Widget";
6
12
 
7
13
  import Li from "../Li";
8
14
  import SliceMachineIconButton from "../SliceMachineIconButton";
9
15
  import ItemHeader from "./Header";
10
16
 
11
- import { AiOutlineEdit } from "react-icons/ai";
12
- import { BsThreeDotsVertical } from "react-icons/bs";
13
-
14
- import { FaBars } from "react-icons/fa";
15
- import { Widget } from "@lib/models/common/widgets/Widget";
16
- import { AnyObjectSchema } from "yup";
17
- import { TabField } from "@lib/models/common/CustomType";
18
-
19
17
  type Item<F extends TabField> = { key: string; value: F };
20
18
 
21
19
  interface ListItemProps<F extends TabField, S extends AnyObjectSchema> {
@@ -1,4 +1,5 @@
1
1
  import { Spinner } from "theme-ui";
2
+
2
3
  import FullPage from "../FullPage";
3
4
 
4
5
  const LoadingPage: React.FunctionComponent = () => (
@@ -1,5 +1,7 @@
1
- import Modal from "react-modal";
2
1
  import React from "react";
2
+ import Modal from "react-modal";
3
+ import { useSelector } from "react-redux";
4
+ import { toast } from "react-toastify";
3
5
  import {
4
6
  Button,
5
7
  Card,
@@ -10,28 +12,26 @@ import {
10
12
  Spinner,
11
13
  Text,
12
14
  } from "theme-ui";
13
- import { toast } from "react-toastify";
14
- import { useSelector } from "react-redux";
15
15
 
16
- import SliceMachineModal from "@components/SliceMachineModal";
17
- import { checkAuthStatus, getState, startAuth } from "@src/apiClient";
18
- import { buildEndpoints } from "@lib/prismic/endpoints";
19
- import { startPolling } from "@lib/utils/poll";
20
- import { CheckAuthStatusResponse } from "@models/common/Auth";
21
- import { isModalOpen } from "@src/modules/modal";
22
- import { SliceMachineStoreType } from "@src/redux/type";
23
- import { isLoading } from "@src/modules/loading";
24
- import { LoadingKeysEnum } from "@src/modules/loading/types";
25
- import { ModalKeysEnum } from "@src/modules/modal/types";
26
- import { getEnvironment } from "@src/modules/environment";
27
- import useSliceMachineActions from "@src/modules/useSliceMachineActions";
28
- import preferWroomBase from "@lib/utils/preferWroomBase";
29
- import { getUnSyncedChanges } from "@src/features/sync/getUnSyncChanges";
30
- import { normalizeFrontendCustomTypes } from "@lib/models/common/normalizers/customType";
31
- import { normalizeFrontendSlices } from "@lib/models/common/normalizers/slices";
32
- import { AuthStatus } from "@src/modules/userContext/types";
33
- import { useAutoSync } from "@src/features/sync/AutoSyncProvider";
34
- import { getActiveEnvironment } from "@src/features/environments/actions/getActiveEnvironment";
16
+ import { checkAuthStatus, getState, startAuth } from "@/apiClient";
17
+ import { getActiveEnvironment } from "@/features/environments/actions/getActiveEnvironment";
18
+ import { useAutoSync } from "@/features/sync/AutoSyncProvider";
19
+ import { getUnSyncedChanges } from "@/features/sync/getUnSyncChanges";
20
+ import SliceMachineModal from "@/legacy/components/SliceMachineModal";
21
+ import { CheckAuthStatusResponse } from "@/legacy/lib/models/common/Auth";
22
+ import { normalizeFrontendCustomTypes } from "@/legacy/lib/models/common/normalizers/customType";
23
+ import { normalizeFrontendSlices } from "@/legacy/lib/models/common/normalizers/slices";
24
+ import { buildEndpoints } from "@/legacy/lib/prismic/endpoints";
25
+ import { startPolling } from "@/legacy/lib/utils/poll";
26
+ import preferWroomBase from "@/legacy/lib/utils/preferWroomBase";
27
+ import { getEnvironment } from "@/modules/environment";
28
+ import { isLoading } from "@/modules/loading";
29
+ import { LoadingKeysEnum } from "@/modules/loading/types";
30
+ import { isModalOpen } from "@/modules/modal";
31
+ import { ModalKeysEnum } from "@/modules/modal/types";
32
+ import { AuthStatus } from "@/modules/userContext/types";
33
+ import useSliceMachineActions from "@/modules/useSliceMachineActions";
34
+ import { SliceMachineStoreType } from "@/redux/type";
35
35
 
36
36
  interface ValidAuthStatus extends CheckAuthStatusResponse {
37
37
  status: "ok";
@@ -1,21 +1,22 @@
1
- import Modal from "react-modal";
2
- import SliceMachineModal from "@components/SliceMachineModal";
3
1
  import {
4
- Formik,
5
2
  Form,
3
+ Formik,
6
4
  FormikErrors,
5
+ FormikProps,
7
6
  FormikTouched,
8
7
  FormikValues,
9
- FormikProps,
10
8
  } from "formik";
11
9
  import type {
12
10
  ComponentPropsWithoutRef,
13
11
  ReactNode,
14
12
  SetStateAction,
15
13
  } from "react";
16
- import { Flex, Heading, Close, Button as ThemeButton } from "theme-ui";
14
+ import Modal from "react-modal";
15
+ import { Button as ThemeButton, Close, Flex, Heading } from "theme-ui";
16
+
17
+ import { Button } from "@/legacy/components/Button";
18
+ import SliceMachineModal from "@/legacy/components/SliceMachineModal";
17
19
 
18
- import { Button } from "@components/Button";
19
20
  import Card from "../Card";
20
21
 
21
22
  type ModalCardProps<T extends FormikValues> = {