slice-machine-ui 1.26.1-beta.10 → 1.26.1-beta.12

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 (471) 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/{183-ebd633fed7c74545.js → 183-6ad5c4eb28d4b155.js} +1 -1
  5. package/out/_next/static/chunks/207-f71df53ed0b0ac4d.js +1 -0
  6. package/out/_next/static/chunks/453-1a14e86de385fe7c.js +1 -0
  7. package/out/_next/static/chunks/614-af117b661cd3429a.js +1 -0
  8. package/out/_next/static/chunks/90-2d4bdae13d031364.js +1 -0
  9. package/out/_next/static/chunks/91-1c3665ce38e58792.js +1 -0
  10. package/out/_next/static/chunks/96-33e38032f1e55366.js +1 -0
  11. package/out/_next/static/chunks/pages/{_app-f7ec0d037993439e.js → _app-01bcd29a595cec3a.js} +2 -2
  12. package/out/_next/static/chunks/pages/changelog-ac1004bdd31d17f8.js +1 -0
  13. package/out/_next/static/chunks/pages/changes-5c4bd80747884a8c.js +1 -0
  14. package/out/_next/static/chunks/pages/custom-types/[customTypeId]-8bcc4d88f470d3f7.js +1 -0
  15. package/out/_next/static/chunks/pages/{custom-types-3c8e721ec6802127.js → custom-types-75e8eddec659f440.js} +1 -1
  16. package/out/_next/static/chunks/pages/{index-cf93d16e9c63b6db.js → index-16754a04037cf9c1.js} +1 -1
  17. package/out/_next/static/chunks/pages/labs-d6f2feb6720ee64c.js +1 -0
  18. package/out/_next/static/chunks/pages/page-types/[pageTypeId]-8461ab4fcfaf0755.js +1 -0
  19. package/out/_next/static/chunks/pages/settings-7ad1540dc0af794d.js +1 -0
  20. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-9941e7eeb9d4d084.js +1 -0
  21. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-217d0b0469d4320e.js +1 -0
  22. package/out/_next/static/chunks/pages/slices-801310de228fd05e.js +1 -0
  23. package/out/_next/static/css/17da9daaa8986410.css +1 -0
  24. package/out/_next/static/css/{27f2b9b9c9f65885.css → 663a1bac4ce890da.css} +1 -1
  25. package/out/_next/static/css/70e3649c6ba13fdc.css +1 -0
  26. package/out/_next/static/css/c36992b18975f9b9.css +1 -0
  27. package/out/_next/static/css/{fa4e416634515cbb.css → df904982b9637c1a.css} +1 -1
  28. package/out/_next/static/svF8JPCb25QlsmymuzIiN/_buildManifest.js +1 -0
  29. package/out/changelog.html +1 -1
  30. package/out/changes.html +1 -1
  31. package/out/custom-types/[customTypeId].html +1 -1
  32. package/out/custom-types.html +1 -1
  33. package/out/index.html +1 -1
  34. package/out/labs.html +1 -1
  35. package/out/page-types/[pageTypeId].html +1 -1
  36. package/out/settings.html +1 -1
  37. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  38. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  39. package/out/slices.html +1 -1
  40. package/package.json +3 -3
  41. package/sentry.client.config.ts +2 -1
  42. package/src/ErrorBoundary.tsx +1 -1
  43. package/src/apiClient.ts +13 -9
  44. package/src/components/BaseHoverCard/BaseHoverCard.stories.tsx +1 -1
  45. package/src/components/BaseHoverCard/BaseHoverCard.test.tsx +1 -1
  46. package/src/components/BaseHoverCard/BaseHoverCard.tsx +1 -1
  47. package/src/components/BlankSlate/BlankSlate.stories.tsx +1 -1
  48. package/src/components/BlankSlate/index.ts +1 -1
  49. package/src/components/Breadcrumb/Breadcrumb.tsx +1 -1
  50. package/src/components/Card/Card.stories.tsx +3 -3
  51. package/src/components/Card/Card.tsx +3 -2
  52. package/src/components/CodeBlock/CodeBlock.tsx +6 -6
  53. package/src/components/ContentTabs/ContentTabs.tsx +1 -1
  54. package/src/components/Count/Count.tsx +1 -1
  55. package/src/components/Divider/Divider.stories.tsx +1 -1
  56. package/src/components/HoverCard/HoverCard.stories.tsx +3 -2
  57. package/src/components/HoverCard/HoverCard.test.tsx +2 -2
  58. package/src/components/HoverCard/HoverCard.tsx +2 -2
  59. package/src/components/HoverCard/index.ts +3 -3
  60. package/src/components/SideNav/SideNav.stories.tsx +6 -6
  61. package/src/components/SideNav/SideNav.tsx +6 -5
  62. package/src/components/SideNav/SideNavEnvironmentSelector.tsx +3 -3
  63. package/src/components/Table/Table.stories.tsx +2 -2
  64. package/src/components/Table/Table.test.tsx +2 -2
  65. package/src/components/Table/Table.tsx +2 -2
  66. package/src/components/Table/index.ts +1 -1
  67. package/src/components/TextLink/TextLink.stories.tsx +1 -1
  68. package/src/components/TextLink/TextLink.tsx +1 -1
  69. package/src/domain/__tests__/customType.test.ts +1 -2
  70. package/src/domain/__tests__/slice.test.ts +3 -3
  71. package/src/domain/customType.ts +1 -2
  72. package/src/domain/slice.ts +7 -4
  73. package/src/features/autoSave/AutoSaveStatusIndicator.tsx +2 -2
  74. package/src/features/changelog/useSliceMachineLatestNonBreakingVersion.ts +1 -1
  75. package/src/features/changelog/useSliceMachineReleaseNotes.ts +1 -1
  76. package/src/features/changelog/useSliceMachineVersions.ts +2 -2
  77. package/src/features/changes/BlankSlates/NoChangesBlankSlate.tsx +11 -14
  78. package/src/features/changes/PushChangesButton.tsx +5 -5
  79. package/src/features/changes/StatusBadge.tsx +2 -2
  80. package/src/features/customTypes/EditDropdown.tsx +6 -9
  81. package/src/features/customTypes/PageTypeOnboarding.tsx +5 -5
  82. package/src/features/customTypes/__tests__/CustomTypeBuilderPage.test.tsx +11 -12
  83. package/src/features/customTypes/__tests__/CustomTypesTablePage.test.tsx +11 -10
  84. package/src/features/customTypes/actions/convertCustomToPageType.ts +4 -4
  85. package/src/features/customTypes/actions/createCustomType.ts +5 -5
  86. package/src/features/customTypes/actions/deleteCustomType.ts +3 -3
  87. package/src/features/customTypes/actions/renameCustomType.ts +3 -3
  88. package/src/features/customTypes/customTypesBuilder/CustomTypeProvider.tsx +8 -8
  89. package/src/features/customTypes/customTypesBuilder/CustomTypesBuilderPage.tsx +17 -12
  90. package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.tsx +7 -7
  91. package/src/features/customTypes/customTypesBuilder/SliceZoneBlankSlate.tsx +3 -3
  92. package/src/features/customTypes/customTypesBuilder/useCustomType.ts +1 -1
  93. package/src/features/customTypes/customTypesConfig.ts +2 -2
  94. package/src/features/customTypes/customTypesTable/CustomTypesTable.tsx +16 -16
  95. package/src/features/customTypes/customTypesTable/CustomTypesTablePage.tsx +9 -9
  96. package/src/features/customTypes/customTypesTable/useCustomTypes.ts +8 -8
  97. package/src/features/documentation/MarkdownRenderer/index.tsx +5 -6
  98. package/src/features/documentation/useDocumentation.ts +1 -1
  99. package/src/features/environments/actions/getActiveEnvironment.ts +1 -1
  100. package/src/features/environments/actions/getEnvironments.ts +1 -1
  101. package/src/features/environments/actions/setEnvironment.ts +3 -3
  102. package/src/features/inAppGuide/InAppGuideContext.tsx +2 -2
  103. package/src/features/inAppGuide/InAppGuideDialog.tsx +4 -4
  104. package/src/features/inAppGuide/inAppGuideContent.tsx +2 -2
  105. package/src/features/labs/labsList/LabsList.tsx +2 -2
  106. package/src/features/labs/labsList/LabsListItem.tsx +1 -1
  107. package/src/features/labs/labsList/LabsPage.tsx +5 -5
  108. package/src/features/labs/labsList/useLab.tsx +1 -1
  109. package/src/features/settings/SettingsPage.tsx +4 -4
  110. package/src/features/settings/git/ConnectGitRepository.tsx +9 -9
  111. package/src/features/settings/git/GitOwnerSelect.tsx +1 -1
  112. package/src/features/settings/git/GitProvider.ts +4 -4
  113. package/src/features/settings/git/GitProviderConnectButtons.tsx +1 -1
  114. package/src/features/settings/git/GitRepositoriesList.tsx +5 -5
  115. package/src/features/settings/git/GitRepositoriesSearch.tsx +5 -5
  116. package/src/features/settings/git/GitRepositoryConnectDialog.tsx +3 -3
  117. package/src/features/settings/git/useGitIntegrationExperiment.ts +1 -1
  118. package/src/features/settings/git/useGitOwners.ts +1 -1
  119. package/src/features/settings/git/useGitRepos.ts +1 -1
  120. package/src/features/settings/git/useLinkedGitRepos.ts +2 -2
  121. package/src/features/settings/git/useWriteAPIToken.ts +2 -2
  122. package/src/features/slices/actions/addSlicesToSliceZone.ts +2 -2
  123. package/src/features/slices/actions/createSlice.ts +5 -5
  124. package/src/features/slices/actions/deleteSlice.ts +1 -1
  125. package/src/features/slices/actions/renameSlice.ts +4 -4
  126. package/src/features/slices/actions/uploadSliceScreenshot.ts +2 -2
  127. package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewSliceDialog.tsx +9 -9
  128. package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewVariationDialog.tsx +6 -6
  129. package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.tsx +12 -12
  130. package/src/features/slices/convertLegacySlice/ConvertLegacySliceMergeWithIdenticalDialog.tsx +3 -3
  131. package/src/features/slices/convertLegacySlice/types.ts +2 -2
  132. package/src/features/slices/sliceBuilder/FloatingBackButton.tsx +6 -6
  133. package/src/features/slices/sliceBuilder/SliceBuilderProvider.tsx +9 -9
  134. package/src/features/slices/sliceBuilder/actions/deleteVariation.ts +4 -4
  135. package/src/features/slices/sliceBuilder/actions/renameVariation.ts +3 -3
  136. package/src/features/slices/sliceBuilder/useGroupsInSlicesExperiment.ts +1 -1
  137. package/src/features/slices/sliceCards/NonSharedSliceCard.tsx +4 -4
  138. package/src/features/slices/sliceCards/SharedSliceCard.tsx +7 -7
  139. package/src/features/slicesTemplates/actions/createSlicesTemplates.ts +2 -2
  140. package/src/features/slicesTemplates/useSlicesTemplates.ts +2 -1
  141. package/src/features/sync/AutoSyncProvider.tsx +17 -17
  142. package/src/features/sync/actions/pushChanges.ts +4 -3
  143. package/src/features/sync/actions/trackPushChangesSuccess.ts +3 -3
  144. package/src/features/sync/components/AutoSyncStatusIndicator.tsx +4 -4
  145. package/src/features/sync/fetchUnSyncChanges.ts +5 -5
  146. package/src/features/sync/getUnSyncChanges.ts +9 -9
  147. package/src/features/sync/useUnSyncChanges.ts +5 -5
  148. package/src/hooks/useActionQueue.tsx +5 -5
  149. package/src/hooks/useAdapterName.ts +1 -1
  150. package/src/hooks/useAuthStatus.ts +2 -2
  151. package/src/hooks/useCurrentSlice.tsx +4 -4
  152. package/src/hooks/useEditorContent.ts +5 -4
  153. package/src/hooks/useExperimentVariant.ts +2 -2
  154. package/src/hooks/useIsEmptyProject.ts +1 -1
  155. package/src/hooks/useRepositoryInformation.ts +2 -2
  156. package/src/hooks/useRouteChange.tsx +1 -1
  157. package/src/hooks/useSMTracker.ts +6 -6
  158. package/src/hooks/useScreenshotChangesModal.ts +4 -3
  159. package/src/hooks/useServerState.ts +4 -4
  160. package/src/hooks/useSliceMachineConfig.ts +2 -2
  161. package/src/hooks/useSliceMachineRunningVersion.ts +1 -1
  162. package/src/hooks/useThrottle.ts +1 -1
  163. package/src/hooks/useUpdateAvailable.ts +1 -1
  164. package/src/hooks/useWindowDimensions.ts +1 -1
  165. package/src/hooks/useWindowSize.ts +2 -1
  166. package/{components → src/legacy/components}/App/index.tsx +8 -8
  167. package/{components → src/legacy/components}/AppLayout/index.tsx +5 -6
  168. package/{components → src/legacy/components}/AuthInstructions/index.jsx +1 -1
  169. package/{components → src/legacy/components}/Button/index.tsx +1 -2
  170. package/{components → src/legacy/components}/Card/Default.jsx +2 -1
  171. package/{components → src/legacy/components}/Card/Preview.jsx +1 -1
  172. package/{components → src/legacy/components}/Card/WithTabs/index.jsx +4 -3
  173. package/{components → src/legacy/components}/Card/index.tsx +1 -0
  174. package/{components → src/legacy/components}/Changelog/index.tsx +8 -8
  175. package/{components → src/legacy/components}/Changelog/navigation/VersionBadge.tsx +2 -1
  176. package/{components → src/legacy/components}/Changelog/navigation/VersionTag.tsx +1 -0
  177. package/{components → src/legacy/components}/Changelog/navigation/index.tsx +6 -6
  178. package/{components → src/legacy/components}/Changelog/versionDetails/UpdateCommandBox.tsx +6 -6
  179. package/{components → src/legacy/components}/Changelog/versionDetails/VersionKindLabel.tsx +3 -4
  180. package/{components → src/legacy/components}/Changelog/versionDetails/index.tsx +5 -5
  181. package/{components → src/legacy/components}/ChangesEmptyState/AuthErrorPage.tsx +3 -3
  182. package/{components → src/legacy/components}/ChangesItems/ChangesItems.tsx +14 -14
  183. package/{components → src/legacy/components}/ChangesItems/DevCollaborationExperiment.tsx +3 -3
  184. package/{components → src/legacy/components}/CodeBlock/index.tsx +3 -3
  185. package/{components → src/legacy/components}/ConfigErrors/index.jsx +4 -3
  186. package/{components → src/legacy/components}/CustomTypeTable/changesPage.tsx +9 -8
  187. package/{components → src/legacy/components}/DeleteCTModal/index.tsx +9 -9
  188. package/{components → src/legacy/components}/DeleteDocumentsDrawer/AssociatedDocumentsCard.tsx +4 -4
  189. package/{components → src/legacy/components}/DeleteDocumentsDrawer/HardDeleteDocumentsDrawer.tsx +9 -9
  190. package/{components → src/legacy/components}/DeleteDocumentsDrawer/SoftDeleteDocumentsDrawer.tsx +9 -8
  191. package/{components → src/legacy/components}/DeleteSliceModal/index.tsx +6 -6
  192. package/{components → src/legacy/components}/DeleteVariationModal/index.tsx +6 -6
  193. package/{components → src/legacy/components}/DropDownSelector/index.tsx +2 -4
  194. package/{components → src/legacy/components}/EmptyState/index.tsx +3 -3
  195. package/{components → src/legacy/components}/FormFields/Array.jsx +2 -4
  196. package/{components → src/legacy/components}/FormFields/Checkbox.jsx +1 -1
  197. package/{components → src/legacy/components}/FormFields/CheckboxControl.jsx +1 -1
  198. package/{components → src/legacy/components}/FormFields/Input.tsx +3 -2
  199. package/{components → src/legacy/components}/FormFields/SelectDefaultValue.jsx +1 -1
  200. package/{components → src/legacy/components}/Forms/CreateCustomTypeModal/CreateCustomTypeModal.tsx +18 -18
  201. package/{components → src/legacy/components}/Forms/CreateSliceModal/CreateSliceModal.tsx +10 -10
  202. package/{components → src/legacy/components}/Forms/RenameCustomTypeModal/RenameCustomTypeModal.tsx +12 -12
  203. package/{components → src/legacy/components}/Forms/RenameSliceModal/RenameSliceModal.tsx +8 -8
  204. package/src/legacy/components/Forms/RenameVariationModal/RenameVariationModal.module.css.d.ts +5 -0
  205. package/{components → src/legacy/components}/Forms/RenameVariationModal/RenameVariationModal.tsx +6 -6
  206. package/{components → src/legacy/components}/Forms/components/InputBox.tsx +2 -2
  207. package/{components → src/legacy/components}/Forms/components/SelectRepeatable.tsx +4 -3
  208. package/{components → src/legacy/components}/Forms/formsValidator.ts +6 -4
  209. package/{components → src/legacy/components}/FullPage/index.tsx +1 -1
  210. package/{components → src/legacy/components}/ListItem/Header.tsx +3 -2
  211. package/{components → src/legacy/components}/ListItem/index.tsx +8 -10
  212. package/{components → src/legacy/components}/LoadingPage/index.tsx +1 -0
  213. package/{components → src/legacy/components}/LoginModal/index.tsx +22 -22
  214. package/{components → src/legacy/components}/ModalFormCard/index.tsx +7 -6
  215. package/{components → src/legacy/components}/Navigation/ChangesItem.tsx +12 -12
  216. package/{components → src/legacy/components}/Navigation/Environment.tsx +13 -13
  217. package/{components → src/legacy/components}/Navigation/RunningVersion.tsx +2 -2
  218. package/{components → src/legacy/components}/Navigation/UpdateBox.tsx +3 -3
  219. package/src/legacy/components/Navigation/VideoItem.module.css.d.ts +5 -0
  220. package/{components → src/legacy/components}/Navigation/VideoItem.tsx +14 -13
  221. package/src/legacy/components/Navigation/index.module.css.d.ts +5 -0
  222. package/{components → src/legacy/components}/Navigation/index.test.tsx +12 -12
  223. package/{components → src/legacy/components}/Navigation/index.tsx +20 -21
  224. package/{components → src/legacy/components}/ReviewModal/ReviewForm.tsx +12 -12
  225. package/{components → src/legacy/components}/ReviewModal/ReviewModal.tsx +6 -6
  226. package/{components → src/legacy/components}/ScreenshotChangesModal/VariationDropZone.tsx +7 -7
  227. package/{components → src/legacy/components}/ScreenshotChangesModal/index.tsx +12 -15
  228. package/{components → src/legacy/components}/ScreenshotChangesModal/useCustomScreenshot.tsx +1 -1
  229. package/{components → src/legacy/components}/ScreenshotPreviewModal/index.tsx +8 -7
  230. package/{components → src/legacy/components}/Simulator/components/FailedConnect/index.tsx +3 -3
  231. package/{components → src/legacy/components}/Simulator/components/Header/VariationsPopover/MenuList.tsx +2 -1
  232. package/{components → src/legacy/components}/Simulator/components/Header/VariationsPopover/index.tsx +4 -5
  233. package/{components → src/legacy/components}/Simulator/components/Header/index.tsx +7 -7
  234. package/{components → src/legacy/components}/Simulator/components/IframeRenderer/index.tsx +3 -4
  235. package/{components → src/legacy/components}/Simulator/components/Toolbar/ScreensizeInput/index.tsx +2 -1
  236. package/{components → src/legacy/components}/Simulator/components/Toolbar/index.tsx +4 -5
  237. package/{components → src/legacy/components}/Simulator/index.tsx +20 -26
  238. package/{components → src/legacy/components}/SliceMachineDrawer/index.tsx +3 -2
  239. package/{components → src/legacy/components}/ToasterContainer/index.tsx +3 -5
  240. package/{components → src/legacy/components}/Tooltip/TextWithTooltip.tsx +2 -2
  241. package/{components → src/legacy/components}/Tooltip/index.jsx +2 -2
  242. package/{components → src/legacy/components}/Warnings/index.jsx +1 -1
  243. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/DeleteSliceZoneModal.tsx +4 -4
  244. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/List.tsx +8 -8
  245. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/SlicesTemplatesModal.tsx +11 -11
  246. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModal.tsx +3 -3
  247. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModalList.tsx +4 -3
  248. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/index.tsx +26 -23
  249. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/SliceZone/sliceTemplatesComingSoon.ts +1 -1
  250. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/InputBox.tsx +1 -1
  251. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/create.tsx +2 -1
  252. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/delete.tsx +2 -2
  253. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabModal/update.tsx +3 -2
  254. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/TabZone/index.tsx +29 -26
  255. package/{lib → src/legacy/lib}/builders/CustomTypeBuilder/index.tsx +5 -5
  256. package/{lib → src/legacy/lib}/builders/SliceBuilder/FieldZones/index.tsx +20 -20
  257. package/{lib → src/legacy/lib}/builders/SliceBuilder/Sidebar/AddVariationModal.tsx +7 -7
  258. package/{lib → src/legacy/lib}/builders/SliceBuilder/Sidebar/index.tsx +12 -12
  259. package/{lib → src/legacy/lib}/builders/SliceBuilder/SimulatorButton/index.tsx +12 -11
  260. package/{lib → src/legacy/lib}/builders/SliceBuilder/index.tsx +9 -9
  261. package/{lib → src/legacy/lib}/builders/common/EditModal/Field.jsx +3 -5
  262. package/{lib → src/legacy/lib}/builders/common/EditModal/Form.jsx +1 -1
  263. package/{lib → src/legacy/lib}/builders/common/EditModal/index.jsx +14 -16
  264. package/{lib → src/legacy/lib}/builders/common/SelectFieldTypeModal/index.jsx +3 -4
  265. package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/ErrorTooltip.tsx +2 -2
  266. package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/Hints/CodeBlock.tsx +4 -5
  267. package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/Hints/index.tsx +2 -1
  268. package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/NewField.tsx +16 -13
  269. package/{lib → src/legacy/lib}/builders/common/Zone/Card/index.jsx +3 -3
  270. package/{lib → src/legacy/lib}/builders/common/Zone/components/EmptyState/index.tsx +1 -1
  271. package/{lib → src/legacy/lib}/builders/common/Zone/index.jsx +3 -3
  272. package/{lib → src/legacy/lib}/builders/utils/index.ts +1 -1
  273. package/{lib → src/legacy/lib}/forms/fields.ts +1 -2
  274. package/{lib → src/legacy/lib}/forms/index.ts +1 -0
  275. package/{lib → src/legacy/lib}/models/common/CustomType/index.ts +5 -4
  276. package/{lib → src/legacy/lib}/models/common/CustomType/sliceZone.ts +2 -1
  277. package/{lib → src/legacy/lib}/models/common/DeprecatedMockConfigMessage.tsx +3 -2
  278. package/{lib → src/legacy/lib}/models/common/Environment.ts +2 -2
  279. package/{lib → src/legacy/lib}/models/common/Group.ts +3 -2
  280. package/{lib → src/legacy/lib}/models/common/Library.ts +2 -1
  281. package/{lib → src/legacy/lib}/models/common/LibraryUI.ts +1 -1
  282. package/{lib → src/legacy/lib}/models/common/ModelData.ts +3 -3
  283. package/{lib → src/legacy/lib}/models/common/ModelStatus/compareCustomTypeModels.ts +2 -1
  284. package/{lib → src/legacy/lib}/models/common/ModelStatus/compareSliceModels.ts +2 -1
  285. package/{lib → src/legacy/lib}/models/common/ModelStatus/index.ts +10 -9
  286. package/{lib → src/legacy/lib}/models/common/normalizers/customType.ts +2 -2
  287. package/{lib → src/legacy/lib}/models/common/normalizers/slices.ts +3 -2
  288. package/{lib → src/legacy/lib}/models/common/widgets/Boolean/index.ts +5 -7
  289. package/{lib → src/legacy/lib}/models/common/widgets/Color/index.ts +2 -3
  290. package/{lib → src/legacy/lib}/models/common/widgets/ContentRelationship/Form.tsx +9 -10
  291. package/{lib → src/legacy/lib}/models/common/widgets/ContentRelationship/index.ts +7 -7
  292. package/{lib → src/legacy/lib}/models/common/widgets/GeoPoint/index.ts +2 -3
  293. package/{lib → src/legacy/lib}/models/common/widgets/Group/Form.jsx +6 -6
  294. package/{lib → src/legacy/lib}/models/common/widgets/Group/ListItem/index.jsx +18 -24
  295. package/{lib → src/legacy/lib}/models/common/widgets/Group/index.ts +5 -3
  296. package/{lib → src/legacy/lib}/models/common/widgets/Image/Form.tsx +9 -11
  297. package/{lib → src/legacy/lib}/models/common/widgets/Image/components.tsx +6 -5
  298. package/{lib → src/legacy/lib}/models/common/widgets/Image/index.ts +3 -5
  299. package/{lib → src/legacy/lib}/models/common/widgets/Link/Form.jsx +5 -7
  300. package/{lib → src/legacy/lib}/models/common/widgets/LinkToMedia/Form.jsx +4 -6
  301. package/{lib → src/legacy/lib}/models/common/widgets/LinkToMedia/index.ts +4 -4
  302. package/{lib → src/legacy/lib}/models/common/widgets/Select/FormFields.jsx +7 -7
  303. package/{lib → src/legacy/lib}/models/common/widgets/Select/index.ts +3 -6
  304. package/{lib → src/legacy/lib}/models/common/widgets/StructuredText/Form.tsx +12 -11
  305. package/{lib → src/legacy/lib}/models/common/widgets/StructuredText/index.ts +3 -6
  306. package/{lib → src/legacy/lib}/models/common/widgets/StructuredText/options.tsx +2 -2
  307. package/{lib → src/legacy/lib}/models/common/widgets/Timestamp/index.ts +4 -5
  308. package/{lib → src/legacy/lib}/models/common/widgets/UID/index.ts +4 -5
  309. package/{lib → src/legacy/lib}/models/common/widgets/Widget.ts +3 -1
  310. package/{lib → src/legacy/lib}/models/common/widgets/withGroup.ts +1 -2
  311. package/{lib → src/legacy/lib}/models/server/ServerState.ts +4 -3
  312. package/{lib → src/legacy/lib}/utils/index.ts +4 -5
  313. package/{lib → src/legacy/lib}/utils/shared/customTypes.ts +1 -1
  314. package/src/modules/availableCustomTypes/index.ts +15 -13
  315. package/src/modules/availableCustomTypes/types.ts +2 -2
  316. package/src/modules/environment/index.ts +10 -8
  317. package/src/modules/environment/types.ts +1 -1
  318. package/src/modules/loading/index.ts +3 -2
  319. package/src/modules/modal/index.ts +4 -2
  320. package/src/modules/slices/index.ts +13 -9
  321. package/src/modules/slices/selector.ts +1 -1
  322. package/src/modules/slices/types.ts +2 -2
  323. package/src/modules/useSliceMachineActions.ts +25 -20
  324. package/src/modules/userContext/index.ts +5 -3
  325. package/{pages → src/pages}/_app.tsx +23 -25
  326. package/{pages → src/pages}/changelog.tsx +1 -1
  327. package/{pages → src/pages}/changes.tsx +22 -19
  328. package/src/pages/custom-types/[customTypeId].tsx +1 -0
  329. package/{pages → src/pages}/custom-types.tsx +1 -1
  330. package/{pages → src/pages}/index.tsx +3 -3
  331. package/src/pages/labs.tsx +1 -0
  332. package/src/pages/page-types/[pageTypeId].tsx +1 -0
  333. package/src/pages/settings.tsx +1 -0
  334. package/{pages → src/pages}/slices/[lib]/[sliceName]/[variation]/index.tsx +3 -3
  335. package/{pages → src/pages}/slices/[lib]/[sliceName]/[variation]/simulator.tsx +2 -2
  336. package/{pages → src/pages}/slices.tsx +21 -21
  337. package/src/redux/reducer.ts +8 -7
  338. package/src/redux/store.ts +8 -6
  339. package/src/redux/type.ts +7 -6
  340. package/src/theme.ts +1 -2
  341. package/test/__setup__.ts +10 -8
  342. package/test/__testutils__/createTestPlugin.ts +3 -2
  343. package/test/__testutils__/createTestProject.ts +5 -4
  344. package/test/__testutils__/index.tsx +6 -5
  345. package/test/__testutils__/mockAWSACLAPI.ts +1 -1
  346. package/test/__testutils__/mockCustomTypesAPI.ts +1 -1
  347. package/test/__testutils__/mockPrismicAuthAPI.ts +1 -1
  348. package/test/__testutils__/mockPrismicUserAPI.ts +2 -3
  349. package/test/__testutils__/readMSWFormData.ts +1 -1
  350. package/test/components/IframeRenderer.test.ts +3 -2
  351. package/test/lib/builders/EditModal.test.tsx +5 -3
  352. package/test/lib/builders/buildersUtils.test.ts +3 -3
  353. package/test/lib/consts.test.ts +6 -2
  354. package/test/lib/models/common/CustomType.test.ts +6 -2
  355. package/test/lib/models/common/ModelStatus.test.ts +6 -4
  356. package/test/lib/models/common/Slice.test.ts +3 -2
  357. package/test/lib/models/common/widgets/index.test.ts +8 -4
  358. package/test/lib/utils/index.test.ts +3 -2
  359. package/test/lib/utils/preferWroomBase.test.ts +3 -2
  360. package/test/lib/utils/shared/customTypes.test.ts +2 -1
  361. package/test/pages/slices.test.tsx +10 -10
  362. package/test/src/modules/__fixtures__/serverState.ts +1 -1
  363. package/test/src/modules/__fixtures__/sliceUtilsFactory.ts +3 -3
  364. package/test/src/modules/availableCustomTypes/index.test.ts +3 -3
  365. package/test/src/modules/environment.test.ts +3 -5
  366. package/test/src/modules/loading.test.ts +3 -3
  367. package/test/src/modules/modal.test.ts +5 -5
  368. package/test/src/modules/slices.test.ts +3 -2
  369. package/test/src/modules/userContext.test.ts +3 -3
  370. package/test/src/normalizers/customType.test.ts +16 -3
  371. package/test/src/utils/fieldNameCreator.test.ts +1 -1
  372. package/tsconfig.json +1 -6
  373. package/vite.config.ts +5 -10
  374. package/out/_next/static/chunks/25-792af14760d9df34.js +0 -1
  375. package/out/_next/static/chunks/286-e0950c3083c672e8.js +0 -1
  376. package/out/_next/static/chunks/318-77a29f41c3a027e3.js +0 -1
  377. package/out/_next/static/chunks/382-aacd61be9adba45a.js +0 -1
  378. package/out/_next/static/chunks/727-d0d6a29f0793bde2.js +0 -1
  379. package/out/_next/static/chunks/799-7b910b896ff60ebe.js +0 -1
  380. package/out/_next/static/chunks/pages/changelog-055db8139a22a592.js +0 -1
  381. package/out/_next/static/chunks/pages/changes-f43ad4ab5e00f9b9.js +0 -1
  382. package/out/_next/static/chunks/pages/custom-types/[customTypeId]-89ccb93ce7409ad0.js +0 -1
  383. package/out/_next/static/chunks/pages/labs-73a12d2fe0233fb9.js +0 -1
  384. package/out/_next/static/chunks/pages/page-types/[pageTypeId]-dbf86fe3a94dc892.js +0 -1
  385. package/out/_next/static/chunks/pages/settings-417f1d5c1e558c88.js +0 -1
  386. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-01d67e97cb901e46.js +0 -1
  387. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-a8933b0ef10806cd.js +0 -1
  388. package/out/_next/static/chunks/pages/slices-3c9b08adf578b020.js +0 -1
  389. package/out/_next/static/css/0e0d6c4ec6bf7373.css +0 -1
  390. package/out/_next/static/css/be1f49e49a5aa7eb.css +0 -1
  391. package/out/_next/static/css/f8eb526e10bc2441.css +0 -1
  392. package/out/_next/static/w56F6n1XbyP8jyJHeri22/_buildManifest.js +0 -1
  393. package/pages/custom-types/[customTypeId].tsx +0 -1
  394. package/pages/labs.tsx +0 -1
  395. package/pages/page-types/[pageTypeId].tsx +0 -1
  396. package/pages/settings.tsx +0 -1
  397. package/out/_next/static/{w56F6n1XbyP8jyJHeri22 → svF8JPCb25QlsmymuzIiN}/_ssgManifest.js +0 -0
  398. package/{components → src/legacy/components}/Card/CardBox.tsx +0 -0
  399. package/{components → src/legacy/components}/Card/WithTabs/components.jsx +1 -1
  400. package/{components → src/legacy/components}/Changelog/versionDetails/ReleaseNotesDetails.tsx +1 -1
  401. package/{components → src/legacy/components}/ChangesEmptyState/OfflinePage.tsx +1 -1
  402. package/{components → src/legacy/components}/ChangesEmptyState/index.ts +1 -1
  403. package/{components → src/legacy/components}/ChangesItems/ErrorBanner.tsx +1 -1
  404. package/{components → src/legacy/components}/ChangesItems/index.ts +0 -0
  405. package/{components → src/legacy/components}/ChangesSectionHeader/ChangesSectionHeader.tsx +0 -0
  406. package/{components → src/legacy/components}/ChangesSectionHeader/index.ts +0 -0
  407. package/{components → src/legacy/components}/DeleteDocumentsDrawer/index.tsx +1 -1
  408. package/{components → src/legacy/components}/DropDownSelector/MenuList.tsx +0 -0
  409. package/{components → src/legacy/components}/Flex/index.tsx +0 -0
  410. package/{components → src/legacy/components}/FormFields/index.ts +0 -0
  411. package/{components → src/legacy/components}/Forms/CreateCustomTypeModal/index.tsx +0 -0
  412. package/{components → src/legacy/components}/Forms/CreateSliceModal/index.tsx +0 -0
  413. package/{components → src/legacy/components}/Forms/RenameCustomTypeModal/index.ts +0 -0
  414. package/{components → src/legacy/components}/Forms/RenameSliceModal/index.ts +0 -0
  415. package/{components → src/legacy/components}/Forms/RenameVariationModal/RenameVariationModal.module.css +0 -0
  416. package/{components → src/legacy/components}/Forms/RenameVariationModal/index.ts +0 -0
  417. package/{components → src/legacy/components}/Forms/components/FlexCard.tsx +0 -0
  418. package/{components → src/legacy/components}/Forms/formsTypes.ts +0 -0
  419. package/{components → src/legacy/components}/Grid/index.tsx +0 -0
  420. package/{components → src/legacy/components}/InputDeleteIcon/index.jsx +1 -1
  421. package/{components → src/legacy/components}/ItemHeader/index.tsx +1 -1
  422. package/{components → src/legacy/components}/Li/index.tsx +0 -0
  423. package/{components → src/legacy/components}/ListItem/utils.js +0 -0
  424. package/{components → src/legacy/components}/MissingLibraries/index.tsx +0 -0
  425. package/{components → src/legacy/components}/Navigation/VideoItem.module.css +0 -0
  426. package/{components → src/legacy/components}/Navigation/index.module.css +0 -0
  427. package/{components → src/legacy/components}/ReactTooltipPortal/index.tsx +0 -0
  428. package/{components → src/legacy/components}/ReviewModal/ReviewFormSelect.tsx +1 -1
  429. package/{components → src/legacy/components}/ReviewModal/index.ts +0 -0
  430. package/{components → src/legacy/components}/ScreenshotPreview/index.tsx +1 -1
  431. package/{components → src/legacy/components}/Simulator/components/FullPage/index.tsx +0 -0
  432. package/{components → src/legacy/components}/Simulator/components/Header/links.ts +0 -0
  433. package/{components → src/legacy/components}/SliceMachineIconButton/index.tsx +1 -1
  434. package/{components → src/legacy/components}/SliceMachineModal/index.tsx +1 -1
  435. package/{components → src/legacy/components}/WindowPortal/index.js +0 -0
  436. package/{components → src/legacy/components}/YoutubeEmbed/index.tsx +0 -0
  437. package/{lib → src/legacy/lib}/builders/common/SelectFieldTypeModal/FieldTypeCard.jsx +0 -0
  438. package/{lib → src/legacy/lib}/builders/common/Zone/Card/components/EditItem.jsx +0 -0
  439. package/{lib → src/legacy/lib}/consts.ts +0 -0
  440. package/{lib → src/legacy/lib}/env/sentry.ts +0 -0
  441. package/{lib → src/legacy/lib}/forms/defaults.ts +1 -1
  442. package/{lib → src/legacy/lib}/forms/types.ts +0 -0
  443. package/{lib → src/legacy/lib}/hljs/svelte.ts +0 -0
  444. package/{lib → src/legacy/lib}/models/common/Auth.ts +0 -0
  445. package/{lib → src/legacy/lib}/models/common/ComponentUI.ts +1 -1
  446. package/{lib → src/legacy/lib}/models/common/CustomType/tab.ts +4 -4
  447. package/{lib → src/legacy/lib}/models/common/ErrorWithStatus.ts +0 -0
  448. package/{lib → src/legacy/lib}/models/common/Fields.ts +1 -1
  449. package/{lib → src/legacy/lib}/models/common/Manifest.ts +0 -0
  450. package/{lib → src/legacy/lib}/models/common/PrismicData.ts +0 -0
  451. package/{lib → src/legacy/lib}/models/common/PrismicFile.ts +0 -0
  452. package/{lib → src/legacy/lib}/models/common/Screenshots.ts +0 -0
  453. package/{lib → src/legacy/lib}/models/common/Simulator.ts +0 -0
  454. package/{lib → src/legacy/lib}/models/common/Slice.ts +2 -2
  455. package/{lib → src/legacy/lib}/models/common/Slices.ts +2 -2
  456. package/{lib → src/legacy/lib}/models/common/UserProfile.ts +0 -0
  457. package/{lib → src/legacy/lib}/models/common/Warning.ts +0 -0
  458. package/{lib → src/legacy/lib}/models/common/widgets/Date/index.ts +2 -2
  459. package/{lib → src/legacy/lib}/models/common/widgets/Embed/index.ts +2 -2
  460. package/{lib → src/legacy/lib}/models/common/widgets/Link/index.ts +3 -3
  461. package/{lib → src/legacy/lib}/models/common/widgets/Number/index.ts +2 -2
  462. package/{lib → src/legacy/lib}/models/common/widgets/Text/index.ts +5 -5
  463. package/{lib → src/legacy/lib}/models/common/widgets/ctBuilderArray.ts +0 -0
  464. package/{lib → src/legacy/lib}/models/common/widgets/index.ts +1 -1
  465. /package/{lib → src/legacy/lib}/models/common/widgets/sliceBuilderArray.ts +0 -0
  466. /package/{lib → src/legacy/lib}/prismic/endpoints.ts +0 -0
  467. /package/{lib → src/legacy/lib}/utils/poll.ts +0 -0
  468. /package/{lib → src/legacy/lib}/utils/preferWroomBase.ts +0 -0
  469. /package/{lib → src/legacy/lib}/utils/repo.ts +0 -0
  470. /package/{lib → src/legacy/lib}/utils/str.ts +0 -0
  471. /package/{pages → src/pages}/api/embed.js +0 -0
@@ -1,15 +1,14 @@
1
+ import { Text } from "@prismicio/editor-ui";
1
2
  import { FC } from "react";
2
- import remarkGfm from "remark-gfm";
3
3
  import ReactMarkdown from "react-markdown";
4
-
5
- import { CodeBlock } from "@src/components/CodeBlock";
6
4
  import type { CodeProps } from "react-markdown/lib/ast-to-react";
5
+ import remarkGfm from "remark-gfm";
7
6
 
8
- import { Text } from "@prismicio/editor-ui";
7
+ import { telemetry } from "@/apiClient";
8
+ import { CodeBlock } from "@/components/CodeBlock";
9
+ import { useAdapterName } from "@/hooks/useAdapterName";
9
10
 
10
11
  import * as styles from "./MarkdownRenderer.css";
11
- import { useAdapterName } from "@src/hooks/useAdapterName";
12
- import { telemetry } from "@src/apiClient";
13
12
 
14
13
  type MarkdownRenderer = FC<{
15
14
  markdown: string;
@@ -1,7 +1,7 @@
1
1
  import { useRequest } from "@prismicio/editor-support/Suspense";
2
2
  import { CustomType } from "@prismicio/types-internal/lib/customtypes";
3
3
 
4
- import { managerClient } from "@src/managerClient";
4
+ import { managerClient } from "@/managerClient";
5
5
 
6
6
  type UseDocumentationArgs = {
7
7
  kind: "PageSnippet";
@@ -3,7 +3,7 @@ import {
3
3
  isInvalidActiveEnvironmentError,
4
4
  } from "@slicemachine/manager/client";
5
5
 
6
- import { managerClient } from "@src/managerClient";
6
+ import { managerClient } from "@/managerClient";
7
7
 
8
8
  type GetActiveEnvironmentReturnType =
9
9
  | {
@@ -1,4 +1,4 @@
1
- import { managerClient } from "@src/managerClient";
1
+ import { managerClient } from "@/managerClient";
2
2
 
3
3
  export async function getEnvironments() {
4
4
  try {
@@ -1,8 +1,8 @@
1
1
  import { revalidateData } from "@prismicio/editor-support/Suspense";
2
-
3
2
  import { Environment } from "@slicemachine/manager/client";
4
- import { managerClient } from "@src/managerClient";
5
- import { getState } from "@src/apiClient";
3
+
4
+ import { getState } from "@/apiClient";
5
+ import { managerClient } from "@/managerClient";
6
6
 
7
7
  import { getActiveEnvironment } from "./getActiveEnvironment";
8
8
 
@@ -1,14 +1,14 @@
1
1
  import {
2
+ createContext,
2
3
  Dispatch,
3
4
  FC,
4
5
  PropsWithChildren,
5
6
  SetStateAction,
6
- createContext,
7
7
  useContext,
8
8
  useMemo,
9
9
  } from "react";
10
10
 
11
- import { usePersistedState } from "@src/hooks/usePersistedState";
11
+ import { usePersistedState } from "@/hooks/usePersistedState";
12
12
 
13
13
  type InAppGuideContextValue = {
14
14
  isInAppGuideOpen: boolean;
@@ -1,4 +1,3 @@
1
- import { FC } from "react";
2
1
  import {
3
2
  Box,
4
3
  Dialog,
@@ -10,10 +9,11 @@ import {
10
9
  Text,
11
10
  Video,
12
11
  } from "@prismicio/editor-ui";
12
+ import { FC } from "react";
13
13
 
14
- import { Count } from "@src/components/Count";
15
- import { HelpIcon } from "@src/icons/HelpIcon";
16
- import { useIsEmptyProject } from "@src/hooks/useIsEmptyProject";
14
+ import { Count } from "@/components/Count";
15
+ import { useIsEmptyProject } from "@/hooks/useIsEmptyProject";
16
+ import { HelpIcon } from "@/icons/HelpIcon";
17
17
 
18
18
  import { useInAppGuideContent } from "./inAppGuideContent";
19
19
  import { useInAppGuide } from "./InAppGuideContext";
@@ -1,6 +1,6 @@
1
- import { TextLink, Text } from "@prismicio/editor-ui";
1
+ import { Text, TextLink } from "@prismicio/editor-ui";
2
2
 
3
- import { useRepositoryInformation } from "@src/hooks/useRepositoryInformation";
3
+ import { useRepositoryInformation } from "@/hooks/useRepositoryInformation";
4
4
 
5
5
  export function useInAppGuideContent() {
6
6
  const { repositoryUrl } = useRepositoryInformation();
@@ -1,9 +1,9 @@
1
- import type { FC } from "react";
2
1
  import { Box, Text } from "@prismicio/editor-ui";
2
+ import type { FC } from "react";
3
3
  import { toast } from "react-toastify";
4
4
 
5
5
  import { LabsListItem } from "./LabsListItem";
6
- import { type UseLabArgs, type UseLabReturnType, useLab } from "./useLab";
6
+ import { useLab, type UseLabArgs, type UseLabReturnType } from "./useLab";
7
7
 
8
8
  export const LabsList: FC = () => {
9
9
  const [legacySliceUpgraderLab, setLegacySliceUpgraderLab] = useLabWithToast(
@@ -1,5 +1,5 @@
1
+ import { Box, Card, Icon, Switch, Text } from "@prismicio/editor-ui";
1
2
  import { type FC, type PropsWithChildren } from "react";
2
- import { Switch, Box, Card, Icon, Text } from "@prismicio/editor-ui";
3
3
 
4
4
  type LabsListItemProps = PropsWithChildren<{
5
5
  title: string;
@@ -1,17 +1,17 @@
1
- import { type FC, ReactNode, Suspense } from "react";
2
- import { Box, ProgressCircle, DefaultErrorMessage } from "@prismicio/editor-ui";
1
+ import { Box, DefaultErrorMessage, ProgressCircle } from "@prismicio/editor-ui";
3
2
  import Head from "next/head";
3
+ import { type FC, ReactNode, Suspense } from "react";
4
4
 
5
+ import { BreadcrumbItem } from "@/components/Breadcrumb";
6
+ import { ErrorBoundary } from "@/ErrorBoundary";
5
7
  import {
6
8
  AppLayout,
7
9
  AppLayoutBreadcrumb,
8
10
  AppLayoutContent,
9
11
  AppLayoutHeader,
10
- } from "@components/AppLayout";
11
- import { ErrorBoundary } from "@src/ErrorBoundary";
12
+ } from "@/legacy/components/AppLayout";
12
13
 
13
14
  import { LabsList } from "./LabsList";
14
- import { BreadcrumbItem } from "@src/components/Breadcrumb";
15
15
 
16
16
  export const LabsPage: FC = () => {
17
17
  return (
@@ -1,6 +1,6 @@
1
1
  import type { SliceMachineConfig } from "@slicemachine/manager";
2
2
 
3
- import { useSliceMachineConfig } from "@src/hooks/useSliceMachineConfig";
3
+ import { useSliceMachineConfig } from "@/hooks/useSliceMachineConfig";
4
4
 
5
5
  export type UseLabArgs = keyof Required<SliceMachineConfig>["labs"];
6
6
 
@@ -3,15 +3,15 @@ import Head from "next/head";
3
3
  import { useRouter } from "next/router";
4
4
  import { type FC, useEffect } from "react";
5
5
 
6
+ import { BreadcrumbItem } from "@/components/Breadcrumb";
7
+ import { ConnectGitRepository } from "@/features/settings/git/ConnectGitRepository";
8
+ import { useGitIntegrationExperiment } from "@/features/settings/git/useGitIntegrationExperiment";
6
9
  import {
7
10
  AppLayout,
8
11
  AppLayoutBreadcrumb,
9
12
  AppLayoutContent,
10
13
  AppLayoutHeader,
11
- } from "@components/AppLayout";
12
- import { ConnectGitRepository } from "@src/features/settings/git/ConnectGitRepository";
13
- import { useGitIntegrationExperiment } from "@src/features/settings/git/useGitIntegrationExperiment";
14
- import { BreadcrumbItem } from "@src/components/Breadcrumb";
14
+ } from "@/legacy/components/AppLayout";
15
15
 
16
16
  export const SettingsPage: FC = () => {
17
17
  const gitIntegrationExperiment = useGitIntegrationExperiment();
@@ -10,18 +10,18 @@ import {
10
10
  FieldSetContent,
11
11
  FieldSetFooter,
12
12
  FieldSetLegend,
13
- } from "@src/components/FieldSet";
14
- import { ConnectGitRepositoryBlankSlate } from "@src/features/settings/git/ConnectGitRepositoryBlankSlate";
15
- import { GitProviderConnectButtons } from "@src/features/settings/git/GitProviderConnectButtons";
16
- import { GitRepositoriesList } from "@src/features/settings/git/GitRepositoriesList";
13
+ } from "@/components/FieldSet";
14
+ import { ErrorBoundary } from "@/ErrorBoundary";
15
+ import { ConnectGitRepositoryBlankSlate } from "@/features/settings/git/ConnectGitRepositoryBlankSlate";
16
+ import { GitProviderConnectButtons } from "@/features/settings/git/GitProviderConnectButtons";
17
+ import { GitRepositoriesList } from "@/features/settings/git/GitRepositoriesList";
17
18
  import {
18
19
  GitRepositoriesSearch,
19
20
  GitRepositoriesSearchSkeleton,
20
- } from "@src/features/settings/git/GitRepositoriesSearch";
21
- import { useGitOwners } from "@src/features/settings/git/useGitOwners";
22
- import { useLinkedGitRepos } from "@src/features/settings/git/useLinkedGitRepos";
23
- import useSliceMachineActions from "@src/modules/useSliceMachineActions";
24
- import { ErrorBoundary } from "@src/ErrorBoundary";
21
+ } from "@/features/settings/git/GitRepositoriesSearch";
22
+ import { useGitOwners } from "@/features/settings/git/useGitOwners";
23
+ import { useLinkedGitRepos } from "@/features/settings/git/useLinkedGitRepos";
24
+ import useSliceMachineActions from "@/modules/useSliceMachineActions";
25
25
 
26
26
  export const ConnectGitRepository: FC = () => (
27
27
  <FieldSet>
@@ -2,7 +2,7 @@ import { Select, SelectItem, tokens } from "@prismicio/editor-ui";
2
2
  import type { GitOwner } from "@slicemachine/manager";
3
3
  import type { ComponentPropsWithoutRef, FC } from "react";
4
4
 
5
- import { gitProviderToConfig } from "@src/features/settings/git/GitProvider";
5
+ import { gitProviderToConfig } from "@/features/settings/git/GitProvider";
6
6
 
7
7
  type GitOwnerSelectProps = {
8
8
  disabled?: boolean;
@@ -1,9 +1,9 @@
1
1
  import { GIT_PROVIDER, GitProvider } from "@slicemachine/manager/client";
2
2
 
3
- import { BitbucketIcon } from "@src/icons/BitbucketIcon";
4
- import { GitHubIcon } from "@src/icons/GitHubIcon";
5
- import { GitLabIcon } from "@src/icons/GitLabIcon";
6
- import { managerClient } from "@src/managerClient";
3
+ import { BitbucketIcon } from "@/icons/BitbucketIcon";
4
+ import { GitHubIcon } from "@/icons/GitHubIcon";
5
+ import { GitLabIcon } from "@/icons/GitLabIcon";
6
+ import { managerClient } from "@/managerClient";
7
7
 
8
8
  export const gitProviderToConfig = {
9
9
  gitHub: {
@@ -3,7 +3,7 @@ import { Button, ButtonGroup, Text, tokens } from "@prismicio/editor-ui";
3
3
  import { type ComponentPropsWithoutRef, type FC, useState } from "react";
4
4
  import { toast } from "react-toastify";
5
5
 
6
- import { gitProviderToConfig } from "@src/features/settings/git/GitProvider";
6
+ import { gitProviderToConfig } from "@/features/settings/git/GitProvider";
7
7
 
8
8
  export const GitProviderConnectButtons: FC = () => (
9
9
  <ButtonGroup>
@@ -2,11 +2,11 @@ import { Button, Skeleton, Text } from "@prismicio/editor-ui";
2
2
  import type { GitRepo, GitRepoSpecifier } from "@slicemachine/manager";
3
3
  import type { FC } from "react";
4
4
 
5
- import { FieldSetList, FieldSetListItem } from "@src/components/FieldSet";
6
- import { RelativeTime } from "@src/components/RelativeTime";
7
- import { GitRepositoryConnectDialog } from "@src/features/settings/git/GitRepositoryConnectDialog";
8
- import { GitRepositoryDisconnectDialog } from "@src/features/settings/git/GitRepositoryDisconnectDialog";
9
- import { useLinkedGitRepos } from "@src/features/settings/git/useLinkedGitRepos";
5
+ import { FieldSetList, FieldSetListItem } from "@/components/FieldSet";
6
+ import { RelativeTime } from "@/components/RelativeTime";
7
+ import { GitRepositoryConnectDialog } from "@/features/settings/git/GitRepositoryConnectDialog";
8
+ import { GitRepositoryDisconnectDialog } from "@/features/settings/git/GitRepositoryDisconnectDialog";
9
+ import { useLinkedGitRepos } from "@/features/settings/git/useLinkedGitRepos";
10
10
 
11
11
  type GitRepositoriesListProps =
12
12
  | { mode: "link"; repos: GitRepo[] }
@@ -1,14 +1,14 @@
1
1
  import type { GitOwner } from "@slicemachine/manager";
2
2
  import { type FC, Suspense, useState } from "react";
3
3
 
4
- import { FieldSetContent, FieldSetHeader } from "@src/components/FieldSet";
5
- import { ConnectGitRepositoryBlankSlate } from "@src/features/settings/git/ConnectGitRepositoryBlankSlate";
6
- import { GitOwnerSelect } from "@src/features/settings/git/GitOwnerSelect";
4
+ import { FieldSetContent, FieldSetHeader } from "@/components/FieldSet";
5
+ import { ConnectGitRepositoryBlankSlate } from "@/features/settings/git/ConnectGitRepositoryBlankSlate";
6
+ import { GitOwnerSelect } from "@/features/settings/git/GitOwnerSelect";
7
7
  import {
8
8
  GitRepositoriesList,
9
9
  GitRepositoriesListSkeleton,
10
- } from "@src/features/settings/git/GitRepositoriesList";
11
- import { useGitRepos } from "@src/features/settings/git/useGitRepos";
10
+ } from "@/features/settings/git/GitRepositoriesList";
11
+ import { useGitRepos } from "@/features/settings/git/useGitRepos";
12
12
 
13
13
  type GitRepositoriesSearchProps = { owners: GitOwner[] };
14
14
 
@@ -13,9 +13,9 @@ import { Formik } from "formik";
13
13
  import type { FC, ReactNode } from "react";
14
14
  import { toast } from "react-toastify";
15
15
 
16
- import { gitProviderToConfig } from "@src/features/settings/git/GitProvider";
17
- import { useWriteAPIToken } from "@src/features/settings/git/useWriteAPIToken";
18
- import { useRepositoryInformation } from "@src/hooks/useRepositoryInformation";
16
+ import { gitProviderToConfig } from "@/features/settings/git/GitProvider";
17
+ import { useWriteAPIToken } from "@/features/settings/git/useWriteAPIToken";
18
+ import { useRepositoryInformation } from "@/hooks/useRepositoryInformation";
19
19
 
20
20
  type GitRepositoryConnectDialogProps = {
21
21
  linkRepo: (repo: GitRepoSpecifier) => Promise<void>;
@@ -1,4 +1,4 @@
1
- import { useExperimentVariant } from "@src/hooks/useExperimentVariant";
1
+ import { useExperimentVariant } from "@/hooks/useExperimentVariant";
2
2
 
3
3
  type UseGitIntegrationExperimentReturnType = { eligible: boolean };
4
4
 
@@ -1,7 +1,7 @@
1
1
  import { useRequest } from "@prismicio/editor-support/Suspense";
2
2
  import type { GitOwner } from "@slicemachine/manager";
3
3
 
4
- import { managerClient } from "@src/managerClient";
4
+ import { managerClient } from "@/managerClient";
5
5
 
6
6
  export function useGitOwners(): GitOwner[] {
7
7
  return useRequest(getGitOwners, []);
@@ -1,7 +1,7 @@
1
1
  import { useRequest } from "@prismicio/editor-support/Suspense";
2
2
  import type { GitRepo } from "@slicemachine/manager";
3
3
 
4
- import { managerClient } from "@src/managerClient";
4
+ import { managerClient } from "@/managerClient";
5
5
 
6
6
  type UseGitReposArgs = Parameters<typeof managerClient.git.fetchRepos>[0];
7
7
 
@@ -1,8 +1,8 @@
1
1
  import { revalidateData, useRequest } from "@prismicio/editor-support/Suspense";
2
2
  import type { GitRepoSpecifier } from "@slicemachine/manager";
3
3
 
4
- import { useSliceMachineConfig } from "@src/hooks/useSliceMachineConfig";
5
- import { managerClient } from "@src/managerClient";
4
+ import { useSliceMachineConfig } from "@/hooks/useSliceMachineConfig";
5
+ import { managerClient } from "@/managerClient";
6
6
 
7
7
  type UseLinkedGitReposReturnType = {
8
8
  linkedGitRepos: GitRepoSpecifier[];
@@ -1,7 +1,7 @@
1
1
  import type { GitRepoSpecifier } from "@slicemachine/manager";
2
2
 
3
- import { useSliceMachineConfig } from "@src/hooks/useSliceMachineConfig";
4
- import { managerClient } from "@src/managerClient";
3
+ import { useSliceMachineConfig } from "@/hooks/useSliceMachineConfig";
4
+ import { managerClient } from "@/managerClient";
5
5
 
6
6
  type UseWriteAPITokenReturnType = {
7
7
  updateToken: (token: string) => Promise<void>;
@@ -1,7 +1,7 @@
1
1
  import { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
2
2
 
3
- import { telemetry } from "@src/apiClient";
4
- import { CustomTypeSM } from "@lib/models/common/CustomType";
3
+ import { telemetry } from "@/apiClient";
4
+ import { CustomTypeSM } from "@/legacy/lib/models/common/CustomType";
5
5
 
6
6
  export type AddSlicesToSliceZoneArgs = {
7
7
  customType: CustomTypeSM;
@@ -1,10 +1,10 @@
1
- import { toast } from "react-toastify";
2
1
  import { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
2
+ import { toast } from "react-toastify";
3
3
 
4
- import { pascalize } from "@lib/utils/str";
5
- import { managerClient } from "@src/managerClient";
6
- import { telemetry } from "@src/apiClient";
7
- import { buildEmptySliceModel } from "@src/domain/slice";
4
+ import { telemetry } from "@/apiClient";
5
+ import { buildEmptySliceModel } from "@/domain/slice";
6
+ import { pascalize } from "@/legacy/lib/utils/str";
7
+ import { managerClient } from "@/managerClient";
8
8
 
9
9
  type CreateSliceArgs = {
10
10
  sliceName: string;
@@ -1,6 +1,6 @@
1
1
  import { toast } from "react-toastify";
2
2
 
3
- import { managerClient } from "@src/managerClient";
3
+ import { managerClient } from "@/managerClient";
4
4
 
5
5
  type DeleteSliceArgs = {
6
6
  libraryID: string;
@@ -1,9 +1,9 @@
1
1
  import { toast } from "react-toastify";
2
2
 
3
- import { managerClient } from "@src/managerClient";
4
- import { ComponentUI } from "@lib/models/common/ComponentUI";
5
- import { rename } from "@src/domain/slice";
6
- import { Slices } from "@lib/models/common/Slice";
3
+ import { rename } from "@/domain/slice";
4
+ import { ComponentUI } from "@/legacy/lib/models/common/ComponentUI";
5
+ import { Slices } from "@/legacy/lib/models/common/Slice";
6
+ import { managerClient } from "@/managerClient";
7
7
 
8
8
  type DeleteSliceArgs = {
9
9
  newSliceName: string;
@@ -1,7 +1,7 @@
1
1
  import { toast } from "react-toastify";
2
2
 
3
- import { ComponentUI } from "@lib/models/common/ComponentUI";
4
- import { generateSliceCustomScreenshot, telemetry } from "@src/apiClient";
3
+ import { generateSliceCustomScreenshot, telemetry } from "@/apiClient";
4
+ import { ComponentUI } from "@/legacy/lib/models/common/ComponentUI";
5
5
 
6
6
  type UploadSliceScreenshotArgs = {
7
7
  file: File;
@@ -1,23 +1,23 @@
1
- import type { FC } from "react";
2
- import { useSelector } from "react-redux";
3
- import { Formik } from "formik";
4
1
  import {
5
2
  Box,
6
3
  Dialog,
7
4
  DialogActions,
8
5
  DialogContent,
9
6
  DialogHeader,
10
- ScrollArea,
11
7
  FormInput,
12
- Text,
8
+ ScrollArea,
13
9
  Select,
14
10
  SelectItem,
11
+ Text,
15
12
  } from "@prismicio/editor-ui";
13
+ import { Formik } from "formik";
14
+ import type { FC } from "react";
15
+ import { useSelector } from "react-redux";
16
16
 
17
- import { SliceMachineStoreType } from "@src/redux/type";
18
- import { getRemoteSlices } from "@src/modules/slices";
19
- import { pascalize } from "@lib/utils/str";
20
- import { validateSliceModalValues as validateAsNewSliceValues } from "@components/Forms/formsValidator";
17
+ import { validateSliceModalValues as validateAsNewSliceValues } from "@/legacy/components/Forms/formsValidator";
18
+ import { pascalize } from "@/legacy/lib/utils/str";
19
+ import { getRemoteSlices } from "@/modules/slices";
20
+ import { SliceMachineStoreType } from "@/redux/type";
21
21
 
22
22
  import styles from "./ConvertLegacySliceButton.module.css";
23
23
  import { DialogProps } from "./types";
@@ -1,20 +1,20 @@
1
- import { useState, type FC } from "react";
2
- import { Formik } from "formik";
3
- import { camelCase } from "lodash";
4
1
  import {
5
2
  Box,
6
3
  Dialog,
7
4
  DialogActions,
8
5
  DialogContent,
9
6
  DialogHeader,
10
- ScrollArea,
11
7
  FormInput,
12
- Text,
8
+ ScrollArea,
13
9
  Select,
14
10
  SelectItem,
11
+ Text,
15
12
  } from "@prismicio/editor-ui";
13
+ import { Formik } from "formik";
14
+ import { camelCase } from "lodash";
15
+ import { type FC, useState } from "react";
16
16
 
17
- import { LibraryUI } from "@models/common/LibraryUI";
17
+ import { LibraryUI } from "@/legacy/lib/models/common/LibraryUI";
18
18
 
19
19
  import styles from "./ConvertLegacySliceButton.module.css";
20
20
  import { DialogProps } from "./types";
@@ -1,24 +1,24 @@
1
- import { useMemo, useState, type FC } from "react";
2
- import { useSelector } from "react-redux";
3
1
  import {
2
+ Button,
4
3
  DropdownMenu,
5
4
  DropdownMenuContent,
6
5
  DropdownMenuItem,
7
6
  DropdownMenuTrigger,
8
7
  Icon,
9
- Button,
10
8
  } from "@prismicio/editor-ui";
9
+ import { type FC, useMemo, useState } from "react";
10
+ import { useSelector } from "react-redux";
11
11
  import { toast } from "react-toastify";
12
12
 
13
- import { NonSharedSliceInSliceZone } from "@models/common/CustomType/sliceZone";
14
- import { ComponentUI } from "@models/common/ComponentUI";
15
- import { getLibraries } from "@src/modules/slices";
16
- import { SliceMachineStoreType } from "@src/redux/type";
17
- import { managerClient } from "@src/managerClient";
18
- import { getState, telemetry } from "@src/apiClient";
19
- import useSliceMachineActions from "@src/modules/useSliceMachineActions";
20
- import { getFieldMappingFingerprint } from "@src/domain/slice";
21
- import { useCustomTypeState } from "@src/features/customTypes/customTypesBuilder/CustomTypeProvider";
13
+ import { getState, telemetry } from "@/apiClient";
14
+ import { getFieldMappingFingerprint } from "@/domain/slice";
15
+ import { useCustomTypeState } from "@/features/customTypes/customTypesBuilder/CustomTypeProvider";
16
+ import { ComponentUI } from "@/legacy/lib/models/common/ComponentUI";
17
+ import { NonSharedSliceInSliceZone } from "@/legacy/lib/models/common/CustomType/sliceZone";
18
+ import { managerClient } from "@/managerClient";
19
+ import { getLibraries } from "@/modules/slices";
20
+ import useSliceMachineActions from "@/modules/useSliceMachineActions";
21
+ import { SliceMachineStoreType } from "@/redux/type";
22
22
 
23
23
  import { NonSharedSliceCardProps } from "../sliceCards/NonSharedSliceCard";
24
24
  import { ConvertLegacySliceAsNewSliceDialog } from "./ConvertLegacySliceAsNewSliceDialog";
@@ -1,5 +1,3 @@
1
- import type { FC } from "react";
2
- import { Formik } from "formik";
3
1
  import {
4
2
  Box,
5
3
  Dialog,
@@ -7,10 +5,12 @@ import {
7
5
  DialogContent,
8
6
  DialogHeader,
9
7
  ScrollArea,
10
- Text,
11
8
  Select,
12
9
  SelectItem,
10
+ Text,
13
11
  } from "@prismicio/editor-ui";
12
+ import { Formik } from "formik";
13
+ import type { FC } from "react";
14
14
 
15
15
  import styles from "./ConvertLegacySliceButton.module.css";
16
16
  import { DialogProps } from "./types";
@@ -1,5 +1,5 @@
1
- import { LibraryUI } from "@models/common/LibraryUI";
2
- import { ComponentUI } from "@models/common/ComponentUI";
1
+ import { ComponentUI } from "@/legacy/lib/models/common/ComponentUI";
2
+ import { LibraryUI } from "@/legacy/lib/models/common/LibraryUI";
3
3
 
4
4
  import { NonSharedSliceCardProps } from "../sliceCards/NonSharedSliceCard";
5
5
 
@@ -2,16 +2,16 @@ import { Box, Button, ButtonGroup } from "@prismicio/editor-ui";
2
2
  import { useRouter } from "next/router";
3
3
  import { type FC, Suspense, useState } from "react";
4
4
 
5
- import { useCustomType } from "@src/features/customTypes/customTypesBuilder/useCustomType";
5
+ import { ErrorBoundary } from "@/ErrorBoundary";
6
+ import { useCustomType } from "@/features/customTypes/customTypesBuilder/useCustomType";
6
7
  import {
7
8
  CUSTOM_TYPES_CONFIG,
8
9
  matchesBuilderPagePathname,
9
10
  readBuilderPageDynamicSegment,
10
- } from "@src/features/customTypes/customTypesConfig";
11
- import { type Route, useRouteChange } from "@src/hooks/useRouteChange";
12
- import { CloseIcon } from "@src/icons/CloseIcon";
13
- import { UndoIcon } from "@src/icons/UndoIcon";
14
- import { ErrorBoundary } from "@src/ErrorBoundary";
11
+ } from "@/features/customTypes/customTypesConfig";
12
+ import { type Route, useRouteChange } from "@/hooks/useRouteChange";
13
+ import { CloseIcon } from "@/icons/CloseIcon";
14
+ import { UndoIcon } from "@/icons/UndoIcon";
15
15
 
16
16
  export const FloatingBackButton: FC = () => {
17
17
  const { source } = useRouteChange();
@@ -1,20 +1,20 @@
1
+ import { useStableCallback } from "@prismicio/editor-support/React";
2
+ import { useRouter } from "next/router";
1
3
  import {
2
- ReactNode,
3
4
  createContext,
5
+ ReactNode,
4
6
  useCallback,
5
7
  useContext,
6
8
  useMemo,
7
9
  useState,
8
10
  } from "react";
9
- import { useStableCallback } from "@prismicio/editor-support/React";
10
- import { useRouter } from "next/router";
11
11
 
12
- import { ComponentUI } from "@lib/models/common/ComponentUI";
13
- import { readSliceMocks, updateSlice } from "@src/apiClient";
14
- import useSliceMachineActions from "@src/modules/useSliceMachineActions";
15
- import { VariationSM } from "@lib/models/common/Slice";
16
- import { useAutoSync } from "@src/features/sync/AutoSyncProvider";
17
- import { ActionQueueStatus, useActionQueue } from "@src/hooks/useActionQueue";
12
+ import { readSliceMocks, updateSlice } from "@/apiClient";
13
+ import { useAutoSync } from "@/features/sync/AutoSyncProvider";
14
+ import { ActionQueueStatus, useActionQueue } from "@/hooks/useActionQueue";
15
+ import { ComponentUI } from "@/legacy/lib/models/common/ComponentUI";
16
+ import { VariationSM } from "@/legacy/lib/models/common/Slice";
17
+ import useSliceMachineActions from "@/modules/useSliceMachineActions";
18
18
 
19
19
  type SliceContext = {
20
20
  slice: ComponentUI;
@@ -1,15 +1,15 @@
1
1
  import type { NextRouter } from "next/router";
2
2
  import { toast } from "react-toastify";
3
3
 
4
- import type { ComponentUI } from "@lib/models/common/ComponentUI";
5
- import type { VariationSM } from "@lib/models/common/Slice";
6
4
  import {
7
5
  deleteSliceVariation,
8
6
  readSlice,
9
7
  readSliceMocks,
10
8
  updateSlice,
11
- } from "@src/apiClient";
12
- import { SLICES_CONFIG } from "@src/features/slices/slicesConfig";
9
+ } from "@/apiClient";
10
+ import { SLICES_CONFIG } from "@/features/slices/slicesConfig";
11
+ import type { ComponentUI } from "@/legacy/lib/models/common/ComponentUI";
12
+ import type { VariationSM } from "@/legacy/lib/models/common/Slice";
13
13
 
14
14
  type DeleteVariationArgs = {
15
15
  component: ComponentUI;