slice-machine-ui 1.26.1-alpha.aa-sort-imports.2 → 1.26.1-alpha.aa-dt-2115-spike-2h-investigate-httpsgithubcomprismicioslice.1

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 (352) hide show
  1. package/.eslintrc.js +1 -6
  2. package/.storybook/preview.tsx +1 -2
  3. package/components/App/index.tsx +7 -6
  4. package/components/AppLayout/index.tsx +6 -4
  5. package/components/AuthInstructions/index.jsx +1 -1
  6. package/components/Button/index.tsx +2 -1
  7. package/components/Card/Default.jsx +1 -2
  8. package/components/Card/Preview.jsx +1 -1
  9. package/components/Card/WithTabs/components.jsx +1 -1
  10. package/components/Card/WithTabs/index.jsx +3 -4
  11. package/components/Card/index.tsx +0 -1
  12. package/components/Changelog/index.tsx +7 -6
  13. package/components/Changelog/navigation/VersionBadge.tsx +1 -2
  14. package/components/Changelog/navigation/VersionTag.tsx +0 -1
  15. package/components/Changelog/navigation/index.tsx +4 -3
  16. package/components/Changelog/versionDetails/ReleaseNotesDetails.tsx +1 -1
  17. package/components/Changelog/versionDetails/UpdateCommandBox.tsx +5 -4
  18. package/components/Changelog/versionDetails/VersionKindLabel.tsx +4 -3
  19. package/components/Changelog/versionDetails/index.tsx +5 -4
  20. package/components/ChangesEmptyState/AuthErrorPage.tsx +3 -2
  21. package/components/ChangesEmptyState/OfflinePage.tsx +1 -1
  22. package/components/ChangesEmptyState/index.ts +1 -1
  23. package/components/ChangesItems/ChangesItems.tsx +10 -9
  24. package/components/ChangesItems/DevCollaborationExperiment.tsx +3 -2
  25. package/components/ChangesItems/ErrorBanner.tsx +1 -1
  26. package/components/CodeBlock/index.tsx +4 -3
  27. package/components/ConfigErrors/index.jsx +1 -1
  28. package/components/CustomTypeTable/changesPage.tsx +6 -6
  29. package/components/DeleteCTModal/index.tsx +7 -6
  30. package/components/DeleteDocumentsDrawer/AssociatedDocumentsCard.tsx +3 -2
  31. package/components/DeleteDocumentsDrawer/HardDeleteDocumentsDrawer.tsx +9 -8
  32. package/components/DeleteDocumentsDrawer/SoftDeleteDocumentsDrawer.tsx +8 -8
  33. package/components/DeleteDocumentsDrawer/index.tsx +1 -1
  34. package/components/DeleteSliceModal/index.tsx +7 -6
  35. package/components/DeleteVariationModal/index.tsx +6 -5
  36. package/components/DropDownSelector/index.tsx +4 -2
  37. package/components/EmptyState/index.tsx +4 -3
  38. package/components/FormFields/Array.jsx +4 -2
  39. package/components/FormFields/Checkbox.jsx +1 -1
  40. package/components/FormFields/CheckboxControl.jsx +1 -1
  41. package/components/FormFields/Input.tsx +1 -1
  42. package/components/FormFields/SelectDefaultValue.jsx +1 -1
  43. package/components/Forms/CreateCustomTypeModal/CreateCustomTypeModal.tsx +16 -15
  44. package/components/Forms/CreateSliceModal/CreateSliceModal.tsx +10 -9
  45. package/components/Forms/RenameCustomTypeModal/RenameCustomTypeModal.tsx +12 -11
  46. package/components/Forms/RenameSliceModal/RenameSliceModal.tsx +7 -6
  47. package/components/Forms/RenameVariationModal/RenameVariationModal.tsx +6 -5
  48. package/components/Forms/components/InputBox.tsx +2 -2
  49. package/components/Forms/components/SelectRepeatable.tsx +3 -3
  50. package/components/Forms/formsValidator.ts +2 -3
  51. package/components/FullPage/index.tsx +1 -1
  52. package/components/InputDeleteIcon/index.jsx +1 -1
  53. package/components/ItemHeader/index.tsx +1 -1
  54. package/components/ListItem/Header.tsx +1 -1
  55. package/components/ListItem/index.tsx +10 -7
  56. package/components/LoadingPage/index.tsx +0 -1
  57. package/components/LoginModal/index.tsx +23 -22
  58. package/components/ModalFormCard/index.tsx +5 -5
  59. package/components/Navigation/ChangesItem.tsx +9 -8
  60. package/components/Navigation/Environment.tsx +8 -7
  61. package/components/Navigation/RunningVersion.tsx +2 -1
  62. package/components/Navigation/UpdateBox.tsx +4 -3
  63. package/components/Navigation/VideoItem.tsx +16 -16
  64. package/components/Navigation/index.test.tsx +12 -14
  65. package/components/Navigation/index.tsx +20 -18
  66. package/components/ReviewModal/ReviewForm.tsx +13 -12
  67. package/components/ReviewModal/ReviewFormSelect.tsx +1 -1
  68. package/components/ReviewModal/ReviewModal.tsx +7 -6
  69. package/components/ScreenshotChangesModal/VariationDropZone.tsx +8 -7
  70. package/components/ScreenshotChangesModal/index.tsx +14 -10
  71. package/components/ScreenshotChangesModal/useCustomScreenshot.tsx +2 -1
  72. package/components/ScreenshotPreview/index.tsx +1 -1
  73. package/components/ScreenshotPreviewModal/index.tsx +4 -4
  74. package/components/Simulator/components/FailedConnect/index.tsx +4 -3
  75. package/components/Simulator/components/Header/VariationsPopover/index.tsx +5 -3
  76. package/components/Simulator/components/Header/index.tsx +5 -4
  77. package/components/Simulator/components/IframeRenderer/index.tsx +5 -3
  78. package/components/Simulator/components/Toolbar/index.tsx +4 -2
  79. package/components/Simulator/index.tsx +26 -19
  80. package/components/SliceMachineDrawer/index.tsx +2 -2
  81. package/components/SliceMachineIconButton/index.tsx +1 -1
  82. package/components/SliceMachineModal/index.tsx +1 -1
  83. package/components/ToasterContainer/index.tsx +5 -3
  84. package/components/Tooltip/TextWithTooltip.tsx +3 -2
  85. package/components/Tooltip/index.jsx +3 -2
  86. package/components/Warnings/index.jsx +1 -1
  87. package/lib/builders/CustomTypeBuilder/SliceZone/DeleteSliceZoneModal.tsx +3 -2
  88. package/lib/builders/CustomTypeBuilder/SliceZone/List.tsx +5 -4
  89. package/lib/builders/CustomTypeBuilder/SliceZone/SlicesTemplatesModal.tsx +9 -8
  90. package/lib/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModal.tsx +3 -2
  91. package/lib/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModalList.tsx +3 -3
  92. package/lib/builders/CustomTypeBuilder/SliceZone/index.tsx +22 -21
  93. package/lib/builders/CustomTypeBuilder/TabModal/InputBox.tsx +1 -1
  94. package/lib/builders/CustomTypeBuilder/TabModal/delete.tsx +1 -1
  95. package/lib/builders/CustomTypeBuilder/TabModal/update.tsx +1 -1
  96. package/lib/builders/CustomTypeBuilder/TabZone/index.tsx +21 -20
  97. package/lib/builders/CustomTypeBuilder/index.tsx +5 -4
  98. package/lib/builders/SliceBuilder/FieldZones/index.tsx +18 -17
  99. package/lib/builders/SliceBuilder/Sidebar/AddVariationModal.tsx +8 -7
  100. package/lib/builders/SliceBuilder/Sidebar/index.tsx +8 -7
  101. package/lib/builders/SliceBuilder/SimulatorButton/index.tsx +12 -9
  102. package/lib/builders/SliceBuilder/index.tsx +7 -6
  103. package/lib/builders/common/EditModal/Field.jsx +5 -2
  104. package/lib/builders/common/EditModal/Form.jsx +1 -1
  105. package/lib/builders/common/EditModal/index.jsx +17 -11
  106. package/lib/builders/common/SelectFieldTypeModal/index.jsx +5 -3
  107. package/lib/builders/common/Zone/Card/components/ErrorTooltip.tsx +3 -2
  108. package/lib/builders/common/Zone/Card/components/Hints/CodeBlock.tsx +6 -4
  109. package/lib/builders/common/Zone/Card/components/Hints/index.tsx +1 -1
  110. package/lib/builders/common/Zone/Card/components/NewField.tsx +14 -13
  111. package/lib/builders/common/Zone/Card/index.jsx +3 -2
  112. package/lib/builders/common/Zone/components/EmptyState/index.tsx +1 -1
  113. package/lib/builders/common/Zone/index.jsx +4 -3
  114. package/lib/forms/defaults.ts +1 -1
  115. package/lib/forms/fields.ts +2 -1
  116. package/lib/forms/index.ts +0 -1
  117. package/lib/models/common/ComponentUI.ts +1 -1
  118. package/lib/models/common/CustomType/index.ts +4 -5
  119. package/lib/models/common/CustomType/sliceZone.ts +1 -2
  120. package/lib/models/common/CustomType/tab.ts +4 -4
  121. package/lib/models/common/DeprecatedMockConfigMessage.tsx +2 -2
  122. package/lib/models/common/Environment.ts +2 -2
  123. package/lib/models/common/Fields.ts +1 -1
  124. package/lib/models/common/Group.ts +2 -3
  125. package/lib/models/common/Library.ts +1 -2
  126. package/lib/models/common/LibraryUI.ts +1 -1
  127. package/lib/models/common/ModelData.ts +1 -1
  128. package/lib/models/common/ModelStatus/compareCustomTypeModels.ts +1 -2
  129. package/lib/models/common/ModelStatus/compareSliceModels.ts +1 -2
  130. package/lib/models/common/ModelStatus/index.ts +9 -10
  131. package/lib/models/common/Slice.ts +2 -2
  132. package/lib/models/common/Slices.ts +2 -2
  133. package/lib/models/common/normalizers/customType.ts +1 -1
  134. package/lib/models/common/normalizers/slices.ts +2 -3
  135. package/lib/models/common/widgets/Boolean/index.ts +7 -5
  136. package/lib/models/common/widgets/Color/index.ts +3 -2
  137. package/lib/models/common/widgets/ContentRelationship/Form.tsx +9 -7
  138. package/lib/models/common/widgets/ContentRelationship/index.ts +8 -7
  139. package/lib/models/common/widgets/Date/index.ts +2 -2
  140. package/lib/models/common/widgets/Embed/index.ts +2 -2
  141. package/lib/models/common/widgets/GeoPoint/index.ts +3 -2
  142. package/lib/models/common/widgets/Group/Form.jsx +4 -3
  143. package/lib/models/common/widgets/Group/ListItem/index.jsx +23 -13
  144. package/lib/models/common/widgets/Group/index.ts +3 -4
  145. package/lib/models/common/widgets/Image/Form.tsx +11 -8
  146. package/lib/models/common/widgets/Image/components.tsx +5 -5
  147. package/lib/models/common/widgets/Image/index.ts +5 -3
  148. package/lib/models/common/widgets/Link/Form.jsx +5 -3
  149. package/lib/models/common/widgets/Link/index.ts +3 -3
  150. package/lib/models/common/widgets/LinkToMedia/Form.jsx +4 -2
  151. package/lib/models/common/widgets/LinkToMedia/index.ts +4 -3
  152. package/lib/models/common/widgets/Number/index.ts +2 -2
  153. package/lib/models/common/widgets/Select/FormFields.jsx +8 -7
  154. package/lib/models/common/widgets/Select/index.ts +6 -3
  155. package/lib/models/common/widgets/StructuredText/Form.tsx +10 -10
  156. package/lib/models/common/widgets/StructuredText/index.ts +6 -3
  157. package/lib/models/common/widgets/StructuredText/options.tsx +2 -2
  158. package/lib/models/common/widgets/Text/index.ts +5 -5
  159. package/lib/models/common/widgets/Timestamp/index.ts +5 -4
  160. package/lib/models/common/widgets/UID/index.ts +5 -4
  161. package/lib/models/common/widgets/Widget.ts +1 -2
  162. package/lib/models/common/widgets/index.ts +1 -1
  163. package/lib/models/common/widgets/withGroup.ts +2 -1
  164. package/lib/models/server/ServerState.ts +3 -4
  165. package/lib/utils/index.ts +5 -4
  166. package/out/404.html +1 -1
  167. package/out/_next/static/{ELYVvY2aZeOYSzTduQhiX → b-USolXBIQtsTvk6G42ba}/_buildManifest.js +1 -1
  168. package/out/_next/static/chunks/{25-607d5cfe6492f4e8.js → 25-792af14760d9df34.js} +1 -1
  169. package/out/_next/static/chunks/286-e0950c3083c672e8.js +1 -0
  170. package/out/_next/static/chunks/318-77a29f41c3a027e3.js +1 -0
  171. package/out/_next/static/chunks/382-aacd61be9adba45a.js +1 -0
  172. package/out/_next/static/chunks/727-d0d6a29f0793bde2.js +1 -0
  173. package/out/_next/static/chunks/799-7b910b896ff60ebe.js +1 -0
  174. package/out/_next/static/chunks/pages/{_app-cfa729fc345ae54d.js → _app-d8782a39a3be7682.js} +1 -1
  175. package/out/_next/static/chunks/pages/changelog-055db8139a22a592.js +1 -0
  176. package/out/_next/static/chunks/pages/changes-f43ad4ab5e00f9b9.js +1 -0
  177. package/out/_next/static/chunks/pages/index-cf93d16e9c63b6db.js +1 -0
  178. package/out/_next/static/chunks/pages/labs-73a12d2fe0233fb9.js +1 -0
  179. package/out/_next/static/chunks/pages/settings-417f1d5c1e558c88.js +1 -0
  180. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-01d67e97cb901e46.js +1 -0
  181. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-a8933b0ef10806cd.js +1 -0
  182. package/out/_next/static/chunks/pages/slices-3c9b08adf578b020.js +1 -0
  183. package/out/_next/static/css/be1f49e49a5aa7eb.css +1 -0
  184. package/out/_next/static/css/{243a4d347efcfd53.css → fa4e416634515cbb.css} +1 -1
  185. package/out/changelog.html +1 -1
  186. package/out/changes.html +1 -1
  187. package/out/custom-types/[customTypeId].html +1 -1
  188. package/out/custom-types.html +1 -1
  189. package/out/index.html +1 -1
  190. package/out/labs.html +1 -1
  191. package/out/page-types/[pageTypeId].html +1 -1
  192. package/out/settings.html +1 -1
  193. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  194. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  195. package/out/slices.html +1 -1
  196. package/package.json +3 -3
  197. package/pages/_app.tsx +8 -6
  198. package/pages/changelog.tsx +2 -1
  199. package/pages/changes.tsx +15 -14
  200. package/pages/custom-types.tsx +2 -1
  201. package/pages/index.tsx +2 -1
  202. package/pages/slices/[lib]/[sliceName]/[variation]/index.tsx +3 -2
  203. package/pages/slices/[lib]/[sliceName]/[variation]/simulator.tsx +3 -2
  204. package/pages/slices.tsx +19 -18
  205. package/sentry.client.config.ts +1 -1
  206. package/src/ErrorBoundary.tsx +2 -1
  207. package/src/apiClient.ts +8 -7
  208. package/src/components/BaseHoverCard/BaseHoverCard.stories.tsx +1 -1
  209. package/src/components/BaseHoverCard/BaseHoverCard.test.tsx +1 -1
  210. package/src/components/BaseHoverCard/BaseHoverCard.tsx +1 -1
  211. package/src/components/BlankSlate/BlankSlate.stories.tsx +1 -1
  212. package/src/components/BlankSlate/index.ts +1 -1
  213. package/src/components/Breadcrumb/Breadcrumb.tsx +1 -1
  214. package/src/components/Card/Card.stories.tsx +2 -1
  215. package/src/components/Card/Card.tsx +2 -3
  216. package/src/components/CodeBlock/CodeBlock.tsx +7 -6
  217. package/src/components/ContentTabs/ContentTabs.tsx +1 -1
  218. package/src/components/Count/Count.tsx +2 -1
  219. package/src/components/Divider/Divider.stories.tsx +1 -1
  220. package/src/components/HoverCard/HoverCard.stories.tsx +2 -3
  221. package/src/components/HoverCard/HoverCard.test.tsx +2 -2
  222. package/src/components/HoverCard/HoverCard.tsx +3 -2
  223. package/src/components/HoverCard/index.ts +3 -3
  224. package/src/components/SideNav/SideNav.stories.tsx +7 -6
  225. package/src/components/SideNav/SideNav.tsx +6 -6
  226. package/src/components/SideNav/SideNavEnvironmentSelector.tsx +4 -3
  227. package/src/components/Table/Table.stories.tsx +2 -2
  228. package/src/components/Table/Table.test.tsx +2 -1
  229. package/src/components/Table/Table.tsx +2 -2
  230. package/src/components/Table/index.ts +1 -1
  231. package/src/components/TextLink/TextLink.stories.tsx +1 -1
  232. package/src/components/TextLink/TextLink.tsx +1 -1
  233. package/src/domain/__tests__/customType.test.ts +2 -1
  234. package/src/domain/__tests__/slice.test.ts +4 -3
  235. package/src/domain/customType.ts +2 -1
  236. package/src/domain/slice.ts +5 -4
  237. package/src/features/autoSave/AutoSaveStatusIndicator.tsx +2 -1
  238. package/src/features/changelog/useSliceMachineLatestNonBreakingVersion.ts +1 -0
  239. package/src/features/changelog/useSliceMachineReleaseNotes.ts +1 -0
  240. package/src/features/changelog/useSliceMachineVersions.ts +1 -0
  241. package/src/features/changes/BlankSlates/NoChangesBlankSlate.tsx +13 -9
  242. package/src/features/changes/PushChangesButton.tsx +6 -5
  243. package/src/features/changes/StatusBadge.tsx +3 -2
  244. package/src/features/customTypes/EditDropdown.tsx +10 -6
  245. package/src/features/customTypes/PageTypeOnboarding.tsx +5 -4
  246. package/src/features/customTypes/__tests__/CustomTypeBuilderPage.test.tsx +9 -7
  247. package/src/features/customTypes/__tests__/CustomTypesTablePage.test.tsx +7 -7
  248. package/src/features/customTypes/actions/convertCustomToPageType.ts +3 -2
  249. package/src/features/customTypes/actions/createCustomType.ts +3 -2
  250. package/src/features/customTypes/actions/deleteCustomType.ts +3 -2
  251. package/src/features/customTypes/actions/renameCustomType.ts +3 -2
  252. package/src/features/customTypes/customTypesBuilder/CustomTypeProvider.tsx +9 -8
  253. package/src/features/customTypes/customTypesBuilder/CustomTypesBuilderPage.tsx +13 -14
  254. package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.tsx +5 -4
  255. package/src/features/customTypes/customTypesBuilder/SliceZoneBlankSlate.tsx +2 -1
  256. package/src/features/customTypes/customTypesBuilder/useCustomType.ts +1 -0
  257. package/src/features/customTypes/customTypesConfig.ts +2 -1
  258. package/src/features/customTypes/customTypesTable/CustomTypesTable.tsx +15 -14
  259. package/src/features/customTypes/customTypesTable/CustomTypesTablePage.tsx +12 -11
  260. package/src/features/customTypes/customTypesTable/useCustomTypes.ts +5 -4
  261. package/src/features/documentation/MarkdownRenderer/index.tsx +7 -5
  262. package/src/features/documentation/useDocumentation.ts +1 -0
  263. package/src/features/environments/actions/getActiveEnvironment.ts +1 -0
  264. package/src/features/environments/actions/setEnvironment.ts +2 -1
  265. package/src/features/inAppGuide/InAppGuideContext.tsx +3 -2
  266. package/src/features/inAppGuide/InAppGuideDialog.tsx +3 -2
  267. package/src/features/inAppGuide/inAppGuideContent.tsx +2 -1
  268. package/src/features/labs/labsList/LabsList.tsx +2 -2
  269. package/src/features/labs/labsList/LabsListItem.tsx +1 -1
  270. package/src/features/labs/labsList/LabsPage.tsx +5 -4
  271. package/src/features/labs/labsList/useLab.tsx +1 -0
  272. package/src/features/settings/SettingsPage.tsx +6 -5
  273. package/src/features/settings/git/ConnectGitRepository.tsx +3 -2
  274. package/src/features/settings/git/GitOwnerSelect.tsx +2 -1
  275. package/src/features/settings/git/GitProvider.ts +1 -0
  276. package/src/features/settings/git/GitProviderConnectButtons.tsx +2 -1
  277. package/src/features/settings/git/GitRepositoriesList.tsx +2 -1
  278. package/src/features/settings/git/GitRepositoriesSearch.tsx +2 -1
  279. package/src/features/settings/git/GitRepositoryConnectDialog.tsx +4 -3
  280. package/src/features/settings/git/useGitOwners.ts +1 -0
  281. package/src/features/settings/git/useGitRepos.ts +1 -0
  282. package/src/features/settings/git/useLinkedGitRepos.ts +1 -0
  283. package/src/features/settings/git/useWriteAPIToken.ts +1 -0
  284. package/src/features/slices/actions/addSlicesToSliceZone.ts +2 -1
  285. package/src/features/slices/actions/createSlice.ts +4 -3
  286. package/src/features/slices/actions/deleteSlice.ts +2 -1
  287. package/src/features/slices/actions/renameSlice.ts +4 -3
  288. package/src/features/slices/actions/uploadSliceScreenshot.ts +2 -1
  289. package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewSliceDialog.tsx +9 -8
  290. package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewVariationDialog.tsx +7 -6
  291. package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.tsx +11 -10
  292. package/src/features/slices/convertLegacySlice/ConvertLegacySliceMergeWithIdenticalDialog.tsx +3 -3
  293. package/src/features/slices/convertLegacySlice/types.ts +1 -1
  294. package/src/features/slices/sliceBuilder/FloatingBackButton.tsx +4 -3
  295. package/src/features/slices/sliceBuilder/SliceBuilderProvider.tsx +10 -9
  296. package/src/features/slices/sliceBuilder/actions/deleteVariation.ts +3 -2
  297. package/src/features/slices/sliceBuilder/actions/renameVariation.ts +2 -1
  298. package/src/features/slices/sliceCards/NonSharedSliceCard.tsx +3 -2
  299. package/src/features/slices/sliceCards/SharedSliceCard.tsx +5 -4
  300. package/src/features/slicesTemplates/actions/createSlicesTemplates.ts +3 -2
  301. package/src/features/sync/AutoSyncProvider.tsx +18 -17
  302. package/src/features/sync/actions/pushChanges.ts +1 -1
  303. package/src/features/sync/components/AutoSyncStatusIndicator.tsx +3 -2
  304. package/src/features/sync/fetchUnSyncChanges.ts +1 -1
  305. package/src/features/sync/getUnSyncChanges.ts +4 -4
  306. package/src/features/sync/useUnSyncChanges.ts +5 -4
  307. package/src/hooks/useActionQueue.tsx +5 -5
  308. package/src/hooks/useAdapterName.ts +1 -0
  309. package/src/hooks/useAuthStatus.ts +2 -1
  310. package/src/hooks/useCurrentSlice.tsx +3 -2
  311. package/src/hooks/useEditorContent.ts +3 -3
  312. package/src/hooks/useExperimentVariant.ts +1 -0
  313. package/src/hooks/useIsEmptyProject.ts +1 -0
  314. package/src/hooks/useRepositoryInformation.ts +3 -2
  315. package/src/hooks/useRouteChange.tsx +1 -1
  316. package/src/hooks/useSMTracker.ts +5 -4
  317. package/src/hooks/useScreenshotChangesModal.ts +3 -3
  318. package/src/hooks/useServerState.ts +5 -4
  319. package/src/hooks/useSliceMachineConfig.ts +2 -1
  320. package/src/hooks/useSliceMachineRunningVersion.ts +1 -0
  321. package/src/hooks/useThrottle.ts +1 -1
  322. package/src/hooks/useUpdateAvailable.ts +1 -0
  323. package/src/hooks/useWindowDimensions.ts +1 -1
  324. package/src/hooks/useWindowSize.ts +1 -2
  325. package/src/modules/availableCustomTypes/index.ts +12 -13
  326. package/src/modules/environment/index.ts +8 -9
  327. package/src/modules/loading/index.ts +2 -3
  328. package/src/modules/modal/index.ts +2 -3
  329. package/src/modules/slices/index.ts +4 -4
  330. package/src/modules/slices/types.ts +1 -1
  331. package/src/modules/useSliceMachineActions.ts +21 -22
  332. package/src/modules/userContext/index.ts +4 -5
  333. package/src/redux/reducer.ts +5 -5
  334. package/src/redux/store.ts +5 -6
  335. package/src/redux/type.ts +4 -4
  336. package/src/theme.ts +2 -1
  337. package/vite.config.ts +3 -4
  338. package/out/_next/static/chunks/286-6ee80333008646b9.js +0 -1
  339. package/out/_next/static/chunks/318-c84322cba57be932.js +0 -1
  340. package/out/_next/static/chunks/382-8194eab141c7ea2f.js +0 -1
  341. package/out/_next/static/chunks/727-b53258380c1a11f1.js +0 -1
  342. package/out/_next/static/chunks/799-68887319f3169f78.js +0 -1
  343. package/out/_next/static/chunks/pages/changelog-2d061c06b2b82e28.js +0 -1
  344. package/out/_next/static/chunks/pages/changes-cde59d56dc849106.js +0 -1
  345. package/out/_next/static/chunks/pages/index-b5817351a77c6d40.js +0 -1
  346. package/out/_next/static/chunks/pages/labs-0fc7d01b8c9bfc2a.js +0 -1
  347. package/out/_next/static/chunks/pages/settings-897ad13a08f73048.js +0 -1
  348. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-ed3157875529f0f2.js +0 -1
  349. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-69cf4b12bb354f9f.js +0 -1
  350. package/out/_next/static/chunks/pages/slices-391f6c4b30af0759.js +0 -1
  351. package/out/_next/static/css/70e3649c6ba13fdc.css +0 -1
  352. /package/out/_next/static/{ELYVvY2aZeOYSzTduQhiX → b-USolXBIQtsTvk6G42ba}/_ssgManifest.js +0 -0
package/.eslintrc.js CHANGED
@@ -9,7 +9,7 @@ module.exports = {
9
9
  project: ["./tsconfig.json"],
10
10
  tsconfigRootDir: __dirname,
11
11
  },
12
- plugins: ["@typescript-eslint", "simple-import-sort", "import"],
12
+ plugins: ["@typescript-eslint", "import"],
13
13
  extends: [
14
14
  "plugin:react-hooks/recommended",
15
15
  "plugin:@typescript-eslint/recommended",
@@ -30,10 +30,5 @@ module.exports = {
30
30
  ],
31
31
  "@typescript-eslint/prefer-nullish-coalescing": "warn",
32
32
  "@typescript-eslint/strict-boolean-expressions": "warn",
33
- "simple-import-sort/exports": "warn",
34
- "simple-import-sort/imports": "warn",
35
- "import/first": "error",
36
- "import/newline-after-import": "error",
37
- "import/no-duplicates": "error",
38
33
  },
39
34
  };
@@ -1,6 +1,5 @@
1
- import "@prismicio/editor-ui/style.css";
2
-
3
1
  import { ThemeProvider, TooltipProvider } from "@prismicio/editor-ui";
2
+ import "@prismicio/editor-ui/style.css";
4
3
  import type { Preview } from "@storybook/react";
5
4
 
6
5
  const preview: Preview = {
@@ -1,14 +1,15 @@
1
+ import type { FC, ReactNode } from "react";
2
+ import { useSelector } from "react-redux";
3
+ import { BaseStyles } from "theme-ui";
4
+
1
5
  import { AppLayout, AppLayoutContent } from "@components/AppLayout";
2
6
  import LoginModal from "@components/LoginModal";
3
- import { MissingLibraries } from "@components/MissingLibraries";
4
7
  import { ReviewModal } from "@components/ReviewModal";
8
+ import { MissingLibraries } from "@components/MissingLibraries";
5
9
  import useServerState from "@src/hooks/useServerState";
6
- import useSMTracker from "@src/hooks/useSMTracker";
7
- import { getLibraries } from "@src/modules/slices";
8
10
  import { SliceMachineStoreType } from "@src/redux/type";
9
- import type { FC, ReactNode } from "react";
10
- import { useSelector } from "react-redux";
11
- import { BaseStyles } from "theme-ui";
11
+ import { getLibraries } from "@src/modules/slices";
12
+ import useSMTracker from "@src/hooks/useSMTracker";
12
13
 
13
14
  type Props = Readonly<{
14
15
  children?: ReactNode;
@@ -1,5 +1,10 @@
1
- import Navigation from "@components/Navigation";
2
1
  import { Box, Button, ButtonGroup } from "@prismicio/editor-ui";
2
+ import { useRouter } from "next/router";
3
+ import { FC, PropsWithChildren, Suspense } from "react";
4
+
5
+ import { useActiveEnvironment } from "@src/features/environments/useActiveEnvironment";
6
+
7
+ import Navigation from "@components/Navigation";
3
8
  import { Breadcrumb } from "@src/components/Breadcrumb";
4
9
  import {
5
10
  PageLayout,
@@ -8,9 +13,6 @@ import {
8
13
  PageLayoutPane,
9
14
  } from "@src/components/PageLayout";
10
15
  import { ErrorBoundary } from "@src/ErrorBoundary";
11
- import { useActiveEnvironment } from "@src/features/environments/useActiveEnvironment";
12
- import { useRouter } from "next/router";
13
- import { FC, PropsWithChildren, Suspense } from "react";
14
16
 
15
17
  export const AppLayout: FC<PropsWithChildren> = ({
16
18
  children,
@@ -1,4 +1,4 @@
1
- import { Flex, Heading, Text } from "theme-ui";
1
+ import { Text, Flex, Heading } from "theme-ui";
2
2
 
3
3
  import Card from "../Card";
4
4
 
@@ -1,6 +1,7 @@
1
1
  import { forwardRef } from "react";
2
- import { IconType } from "react-icons";
2
+
3
3
  import { Button as ThemeUIButton, ButtonProps, Spinner } from "theme-ui";
4
+ import { IconType } from "react-icons";
4
5
 
5
6
  export interface SmButtonProps extends ButtonProps {
6
7
  label: string;
@@ -1,5 +1,4 @@
1
- import { Box, Close, Flex } from "theme-ui";
2
-
1
+ import { Flex, Box, Close } from "theme-ui";
3
2
  import Card from "./";
4
3
 
5
4
  const DefaultCard = ({
@@ -1,4 +1,4 @@
1
- import { Box, Card, Flex, Heading } from "theme-ui";
1
+ import { Flex, Box, Heading, Card } from "theme-ui";
2
2
 
3
3
  const PreviewCard = ({
4
4
  variant = "primary",
@@ -1,5 +1,5 @@
1
- import { Tab } from "react-tabs";
2
1
  import { Box, useThemeUI } from "theme-ui";
2
+ import { Tab } from "react-tabs";
3
3
 
4
4
  export const CustomTabList = ({ children, ...otherProps }) => (
5
5
  <Box
@@ -1,9 +1,8 @@
1
- import { Children, memo, useState } from "react";
2
- import { TabPanel, Tabs } from "react-tabs";
1
+ import { Children, useState, memo } from "react";
3
2
  import { Box } from "theme-ui";
4
-
5
- import Card from "../";
3
+ import { Tabs, TabPanel } from "react-tabs";
6
4
  import { CustomTab as Tab, CustomTabList as TabList } from "./components";
5
+ import Card from "../";
7
6
 
8
7
  const WithTabs = ({
9
8
  children,
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import { Card as ThemeCard, ThemeUIStyleObject } from "theme-ui";
3
-
4
3
  import { CardBox, CardBoxProps } from "./CardBox";
5
4
 
6
5
  interface CardProps extends Omit<CardBoxProps, "withRadius"> {
@@ -1,15 +1,16 @@
1
- import { AppLayout, AppLayoutContent } from "@components/AppLayout";
1
+ import { Suspense, useEffect, useState } from "react";
2
+ import { BaseStyles } from "theme-ui";
3
+ import { useSelector } from "react-redux";
2
4
  import { ErrorBoundary, ProgressCircle } from "@prismicio/editor-ui";
5
+
3
6
  import { Version } from "@slicemachine/manager";
7
+ import { AppLayout, AppLayoutContent } from "@components/AppLayout";
4
8
  import { useSliceMachineVersions } from "@src/features/changelog/useSliceMachineVersions";
5
- import { getPackageManager } from "@src/modules/environment";
6
9
  import { SliceMachineStoreType } from "@src/redux/type";
7
- import { Suspense, useEffect, useState } from "react";
8
- import { useSelector } from "react-redux";
9
- import { BaseStyles } from "theme-ui";
10
+ import { getPackageManager } from "@src/modules/environment";
10
11
 
11
12
  import { Navigation } from "./navigation";
12
- import { ReleaseWarning, VersionDetails } from "./versionDetails";
13
+ import { VersionDetails, ReleaseWarning } from "./versionDetails";
13
14
 
14
15
  export default function Changelog() {
15
16
  const { packageManager } = useSelector((store: SliceMachineStoreType) => ({
@@ -1,6 +1,5 @@
1
- import { transparentize } from "@theme-ui/color";
2
1
  import { Flex, Text } from "theme-ui";
3
-
2
+ import { transparentize } from "@theme-ui/color";
4
3
  import { VersionTags } from ".";
5
4
  import { VersionTag } from "./VersionTag";
6
5
 
@@ -1,5 +1,4 @@
1
1
  import { Text } from "theme-ui";
2
-
3
2
  import { VersionTags } from ".";
4
3
 
5
4
  interface VersionTagProps {
@@ -1,11 +1,12 @@
1
+ import React from "react";
2
+ import { Flex, Text } from "theme-ui";
1
3
  import { tokens } from "@prismicio/editor-ui";
4
+
2
5
  import { Version } from "@slicemachine/manager";
3
- import { useSliceMachineLatestNonBreakingVersion } from "@src/features/changelog/useSliceMachineLatestNonBreakingVersion";
4
6
  import { useSliceMachineVersions } from "@src/features/changelog/useSliceMachineVersions";
7
+ import { useSliceMachineLatestNonBreakingVersion } from "@src/features/changelog/useSliceMachineLatestNonBreakingVersion";
5
8
  import { useSliceMachineRunningVersion } from "@src/hooks/useSliceMachineRunningVersion";
6
9
  import { useUpdateAvailable } from "@src/hooks/useUpdateAvailable";
7
- import React from "react";
8
- import { Flex, Text } from "theme-ui";
9
10
 
10
11
  import { VersionBadge } from "./VersionBadge";
11
12
 
@@ -1,6 +1,6 @@
1
- import { marked } from "marked";
2
1
  import React from "react";
3
2
  import { Text } from "theme-ui";
3
+ import { marked } from "marked";
4
4
 
5
5
  interface ReleaseNotesDetailsProps {
6
6
  releaseNotes: string;
@@ -1,11 +1,12 @@
1
- import CodeBlock from "@components/CodeBlock";
1
+ import React from "react";
2
+ import { Button, Flex, Text } from "theme-ui";
3
+ import { AiFillWarning } from "react-icons/ai";
4
+
2
5
  import type { PackageManager, Version } from "@slicemachine/manager";
3
6
  import { useSliceMachineVersions } from "@src/features/changelog/useSliceMachineVersions";
7
+ import CodeBlock from "@components/CodeBlock";
4
8
  import { useAdapterName } from "@src/hooks/useAdapterName";
5
9
  import { useUpdateAvailable } from "@src/hooks/useUpdateAvailable";
6
- import React from "react";
7
- import { AiFillWarning } from "react-icons/ai";
8
- import { Button, Flex, Text } from "theme-ui";
9
10
 
10
11
  interface UpdateCommandBoxProps {
11
12
  selectedVersion: Version;
@@ -1,7 +1,8 @@
1
- import { VersionKind } from "@slicemachine/manager";
2
- import { transparentize } from "@theme-ui/color";
3
1
  import React from "react";
4
- import { Text, type ThemeUIStyleObject } from "theme-ui";
2
+ import { type ThemeUIStyleObject, Text } from "theme-ui";
3
+ import { transparentize } from "@theme-ui/color";
4
+
5
+ import { VersionKind } from "@slicemachine/manager";
5
6
 
6
7
  interface VersionKindLabelProps {
7
8
  versionKind: VersionKind;
@@ -1,13 +1,14 @@
1
+ import React from "react";
2
+ import { Flex, Text } from "theme-ui";
3
+ import { AiFillWarning } from "react-icons/ai";
1
4
  import { tokens } from "@prismicio/editor-ui";
5
+
2
6
  import type { PackageManager, Version } from "@slicemachine/manager";
3
7
  import { useSliceMachineReleaseNotes } from "@src/features/changelog/useSliceMachineReleaseNotes";
4
- import React from "react";
5
- import { AiFillWarning } from "react-icons/ai";
6
- import { Flex, Text } from "theme-ui";
7
8
 
9
+ import { VersionKindLabel } from "./VersionKindLabel";
8
10
  import { ReleaseNotesDetails } from "./ReleaseNotesDetails";
9
11
  import { UpdateCommandBox } from "./UpdateCommandBox";
10
- import { VersionKindLabel } from "./VersionKindLabel";
11
12
 
12
13
  interface VersionDetailsProps {
13
14
  selectedVersion: Version;
@@ -1,7 +1,8 @@
1
+ import React, { FC } from "react";
1
2
  import { Box, Button, Text, TextLink } from "@prismicio/editor-ui";
2
- import { AuthStatus } from "@src/modules/userContext/types";
3
+
3
4
  import useSliceMachineActions from "@src/modules/useSliceMachineActions";
4
- import React, { FC } from "react";
5
+ import { AuthStatus } from "@src/modules/userContext/types";
5
6
 
6
7
  export type AuthErrorPageProps = {
7
8
  authStatus: AuthStatus.UNAUTHORIZED | AuthStatus.FORBIDDEN;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import { IoCloudOfflineOutline } from "react-icons/io5";
3
2
  import { Flex, Text } from "theme-ui";
3
+ import { IoCloudOfflineOutline } from "react-icons/io5";
4
4
 
5
5
  export const OfflinePage = () => {
6
6
  return (
@@ -1,2 +1,2 @@
1
- export { AuthErrorPage } from "./AuthErrorPage";
2
1
  export { OfflinePage } from "./OfflinePage";
2
+ export { AuthErrorPage } from "./AuthErrorPage";
@@ -1,19 +1,20 @@
1
+ import React, { Suspense } from "react";
2
+ import { AiFillCamera, AiOutlineExclamationCircle } from "react-icons/ai";
3
+ import { Box, Button, Text } from "@prismicio/editor-ui";
4
+
1
5
  import { ChangesSectionHeader } from "@components/ChangesSectionHeader";
2
6
  import { CustomTypeTable } from "@components/CustomTypeTable/changesPage";
3
7
  import Grid from "@components/Grid";
4
- import ScreenshotChangesModal from "@components/ScreenshotChangesModal";
5
8
  import { ComponentUI } from "@lib/models/common/ComponentUI";
6
- import { LocalOrRemoteCustomType } from "@lib/models/common/ModelData";
7
- import { ModelStatus } from "@lib/models/common/ModelStatus";
8
- import { Box, Button, Text } from "@prismicio/editor-ui";
9
+ import ScreenshotChangesModal from "@components/ScreenshotChangesModal";
9
10
  import { countMissingScreenshots } from "@src/domain/slice";
10
- import { ErrorBoundary } from "@src/ErrorBoundary";
11
- import { SharedSliceCard } from "@src/features/slices/sliceCards/SharedSliceCard";
12
- import { ModelsStatuses } from "@src/features/sync/getUnSyncChanges";
13
11
  import { useScreenshotChangesModal } from "@src/hooks/useScreenshotChangesModal";
12
+ import { ModelStatus } from "@lib/models/common/ModelStatus";
13
+ import { LocalOrRemoteCustomType } from "@lib/models/common/ModelData";
14
+ import { SharedSliceCard } from "@src/features/slices/sliceCards/SharedSliceCard";
14
15
  import { AuthStatus } from "@src/modules/userContext/types";
15
- import React, { Suspense } from "react";
16
- import { AiFillCamera, AiOutlineExclamationCircle } from "react-icons/ai";
16
+ import { ModelsStatuses } from "@src/features/sync/getUnSyncChanges";
17
+ import { ErrorBoundary } from "@src/ErrorBoundary";
17
18
 
18
19
  import { DevCollaborationExperiment } from "./DevCollaborationExperiment";
19
20
 
@@ -1,3 +1,4 @@
1
+ import { useEffect, useState } from "react";
1
2
  import {
2
3
  Box,
3
4
  Button,
@@ -7,9 +8,9 @@ import {
7
8
  DialogHeader,
8
9
  Text,
9
10
  } from "@prismicio/editor-ui";
10
- import { telemetry } from "@src/apiClient";
11
+
11
12
  import { useExperimentVariant } from "@src/hooks/useExperimentVariant";
12
- import { useEffect, useState } from "react";
13
+ import { telemetry } from "@src/apiClient";
13
14
 
14
15
  type DevCollaborationExperimentPayload = {
15
16
  cardButtonLabel: string;
@@ -1,6 +1,6 @@
1
- import { alpha } from "@theme-ui/color";
2
1
  import React from "react";
3
2
  import { Flex, Text, ThemeUIStyleObject } from "theme-ui";
3
+ import { alpha } from "@theme-ui/color";
4
4
 
5
5
  interface ErrorBannerProps {
6
6
  message: string;
@@ -1,7 +1,8 @@
1
- import { svelte } from "@lib/hljs/svelte";
2
- import hljs from "highlight.js";
3
1
  import React from "react";
4
- import { Flex, type ThemeUIStyleObject, useThemeUI } from "theme-ui";
2
+ import { type ThemeUIStyleObject, Flex, useThemeUI } from "theme-ui";
3
+ import hljs from "highlight.js";
4
+
5
+ import { svelte } from "@lib/hljs/svelte";
5
6
 
6
7
  hljs.registerLanguage("svelte", svelte);
7
8
 
@@ -1,6 +1,6 @@
1
+ import { Box, Heading, Flex, Text } from "theme-ui";
1
2
  import Card from "@components/Card";
2
3
  import Li from "@components/Li";
3
- import { Box, Flex, Heading, Text } from "theme-ui";
4
4
 
5
5
  const ConfigErrors = ({ errors }) => (
6
6
  <Card
@@ -1,16 +1,16 @@
1
+ import Link from "next/link";
2
+ import React from "react";
3
+ import { Box, Text } from "theme-ui";
1
4
  import { CustomTypeSM } from "@lib/models/common/CustomType";
5
+ import { ModelStatus } from "@lib/models/common/ModelStatus";
2
6
  import {
3
- hasLocal,
4
7
  LocalOrRemoteCustomType,
8
+ hasLocal,
5
9
  } from "@lib/models/common/ModelData";
6
- import { ModelStatus } from "@lib/models/common/ModelStatus";
7
10
  import { StatusBadge } from "@src/features/changes/StatusBadge";
8
11
  import { CUSTOM_TYPES_CONFIG } from "@src/features/customTypes/customTypesConfig";
9
- import { ModelsStatuses } from "@src/features/sync/getUnSyncChanges";
10
12
  import { AuthStatus } from "@src/modules/userContext/types";
11
- import Link from "next/link";
12
- import React from "react";
13
- import { Box, Text } from "theme-ui";
13
+ import { ModelsStatuses } from "@src/features/sync/getUnSyncChanges";
14
14
 
15
15
  interface CustomTypeTableProps {
16
16
  customTypes: LocalOrRemoteCustomType[];
@@ -1,14 +1,15 @@
1
- import { Button } from "@components/Button";
2
- import Card from "@components/Card";
3
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";
4
7
  import { CustomType } from "@prismicio/types-internal/lib/customtypes";
5
8
  import { CustomTypeFormat } from "@slicemachine/manager";
6
- import { deleteCustomType } from "@src/features/customTypes/actions/deleteCustomType";
7
9
  import { CUSTOM_TYPES_MESSAGES } from "@src/features/customTypes/customTypesMessages";
8
- import useSliceMachineActions from "@src/modules/useSliceMachineActions";
10
+
11
+ import { deleteCustomType } from "@src/features/customTypes/actions/deleteCustomType";
9
12
  import { useState } from "react";
10
- import { MdOutlineDelete } from "react-icons/md";
11
- import { Close, Flex, Heading, Text, useThemeUI } from "theme-ui";
12
13
 
13
14
  type DeleteCTModalProps = {
14
15
  customType: CustomType;
@@ -1,8 +1,9 @@
1
+ import React from "react";
2
+ import { Flex, Text, Card, Link } from "theme-ui";
3
+
1
4
  import { CustomTypeFormat } from "@slicemachine/manager";
2
5
  import { CUSTOM_TYPES_CONFIG } from "@src/features/customTypes/customTypesConfig";
3
6
  import { CUSTOM_TYPES_MESSAGES } from "@src/features/customTypes/customTypesMessages";
4
- import React from "react";
5
- import { Card, Flex, Link, Text } from "theme-ui";
6
7
 
7
8
  type AssociatedDocumentsCardProps = {
8
9
  ctName: string;
@@ -1,14 +1,15 @@
1
- import { Button } from "@components/Button";
2
- import { SliceMachineDrawerUI } from "@components/SliceMachineDrawer";
3
- import { getModelId, isRemoteOnly } from "@lib/models/common/ModelData";
4
- import { PushChangesLimit } from "@slicemachine/manager";
5
- import { selectAllCustomTypes } from "@src/modules/availableCustomTypes";
6
- import { SliceMachineStoreType } from "@src/redux/type";
7
1
  import React from "react";
8
- import { useSelector } from "react-redux";
9
- import { Text } from "theme-ui";
10
2
 
3
+ import { Text } from "theme-ui";
4
+ import { Button } from "@components/Button";
5
+ 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";
11
10
  import { AssociatedDocumentsCard } from "./AssociatedDocumentsCard";
11
+ import { SliceMachineDrawerUI } from "@components/SliceMachineDrawer";
12
+ import { PushChangesLimit } from "@slicemachine/manager";
12
13
 
13
14
  export const HardDeleteDocumentsDrawer: React.FunctionComponent<{
14
15
  pushChanges: (confirmDeleteDocuments: boolean) => void;
@@ -1,14 +1,14 @@
1
- import { Button } from "@components/Button";
2
- import { SliceMachineDrawerUI } from "@components/SliceMachineDrawer";
3
- import { getModelId, isRemoteOnly } from "@lib/models/common/ModelData";
4
- import { PushChangesLimit } from "@slicemachine/manager";
5
- import { selectAllCustomTypes } from "@src/modules/availableCustomTypes";
6
- import { SliceMachineStoreType } from "@src/redux/type";
7
1
  import React, { useState } from "react";
2
+ import { Flex, Text, Checkbox, ThemeUIStyleObject, Label } from "theme-ui";
3
+ import { Button } from "@components/Button";
8
4
  import { useSelector } from "react-redux";
9
- import { Checkbox, Flex, Label, Text, ThemeUIStyleObject } from "theme-ui";
10
-
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";
11
9
  import { AssociatedDocumentsCard } from "./AssociatedDocumentsCard";
10
+ import { SliceMachineDrawerUI } from "@components/SliceMachineDrawer";
11
+ import { PushChangesLimit } from "@slicemachine/manager";
12
12
 
13
13
  const ConfirmationDialogue: React.FC<{
14
14
  isConfirmed: boolean;
@@ -1,2 +1,2 @@
1
- export { HardDeleteDocumentsDrawer } from "./HardDeleteDocumentsDrawer";
2
1
  export { SoftDeleteDocumentsDrawer } from "./SoftDeleteDocumentsDrawer";
2
+ export { HardDeleteDocumentsDrawer } from "./HardDeleteDocumentsDrawer";
@@ -1,13 +1,14 @@
1
- import { Button } from "@components/Button";
2
- import Card from "@components/Card";
3
- import SliceMachineModal from "@components/SliceMachineModal";
4
- import { deleteSlice } from "@src/features/slices/actions/deleteSlice";
5
- import { useAutoSync } from "@src/features/sync/AutoSyncProvider";
6
- import useSliceMachineActions from "@src/modules/useSliceMachineActions";
7
1
  import { useState } from "react";
8
2
  import { MdOutlineDelete } from "react-icons/md";
9
3
  import { Close, Flex, Heading, Paragraph, Text, useThemeUI } from "theme-ui";
10
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";
11
+
11
12
  type DeleteSliceModalProps = {
12
13
  isOpen: boolean;
13
14
  libName: string;
@@ -1,5 +1,3 @@
1
- import type { ComponentUI } from "@lib/models/common/ComponentUI";
2
- import type { VariationSM } from "@lib/models/common/Slice";
3
1
  import {
4
2
  Box,
5
3
  Dialog,
@@ -8,11 +6,14 @@ import {
8
6
  DialogHeader,
9
7
  Text,
10
8
  } from "@prismicio/editor-ui";
9
+ import { useRouter } from "next/router";
10
+ import { useState, type FC, type PropsWithChildren } from "react";
11
+
12
+ import type { ComponentUI } from "@lib/models/common/ComponentUI";
13
+ import type { VariationSM } from "@lib/models/common/Slice";
11
14
  import { deleteVariation } from "@src/features/slices/sliceBuilder/actions/deleteVariation";
12
- import { useSliceState } from "@src/features/slices/sliceBuilder/SliceBuilderProvider";
13
15
  import useSliceMachineActions from "@src/modules/useSliceMachineActions";
14
- import { useRouter } from "next/router";
15
- import { type FC, type PropsWithChildren, useState } from "react";
16
+ import { useSliceState } from "@src/features/slices/sliceBuilder/SliceBuilderProvider";
16
17
 
17
18
  type DeleteVariationModalProps = {
18
19
  isOpen: boolean;
@@ -1,10 +1,12 @@
1
1
  import React, { useState } from "react";
2
- import { RiArrowDropDownFill, RiArrowDropUpFill } from "react-icons/ri";
3
2
  import { Popover } from "react-tiny-popover";
4
- import { Box, Button, ThemeUICSSObject } from "theme-ui";
5
3
 
6
4
  import MenuList from "./MenuList";
7
5
 
6
+ import { Button, Box, ThemeUICSSObject } from "theme-ui";
7
+
8
+ import { RiArrowDropDownFill, RiArrowDropUpFill } from "react-icons/ri";
9
+
8
10
  type DropDownMenuProps = {
9
11
  options: string[];
10
12
  currentValue: string;
@@ -1,7 +1,8 @@
1
- import { telemetry } from "@src/apiClient";
2
- import { Video } from "cloudinary-react";
1
+ import { Button, Text, Heading, Box } from "theme-ui";
3
2
  import React from "react";
4
- import { Box, Button, Heading, Text } from "theme-ui";
3
+ import { Video } from "cloudinary-react";
4
+
5
+ import { telemetry } from "@src/apiClient";
5
6
 
6
7
  interface Props {
7
8
  title: string;
@@ -1,6 +1,8 @@
1
+ import { Fragment, useRef, useEffect, useState } from "react";
2
+
1
3
  import { FieldArray } from "formik";
2
- import { Fragment, useEffect, useRef, useState } from "react";
3
- import { Button, Flex, Input, Label, Text } from "theme-ui";
4
+
5
+ import { Text, Label, Flex, Input, Button } from "theme-ui";
4
6
 
5
7
  const FormFieldArray = ({
6
8
  field,
@@ -1,5 +1,5 @@
1
1
  import { Field } from "formik";
2
- import { Checkbox, Label } from "theme-ui";
2
+ import { Label, Checkbox } 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 { useEffect, useState } from "react";
1
+ import { useState, useEffect } from "react";
2
2
 
3
3
  import { FormFieldCheckbox } from "./";
4
4
 
@@ -1,7 +1,7 @@
1
1
  import { InputType } from "@lib/forms/fields";
2
2
  import { Field, FieldMetaProps } from "formik";
3
3
  import React from "react";
4
- import { Box, Input, Label, Text, ThemeUIStyleObject } from "theme-ui";
4
+ import { Box, Label, Input, Text, ThemeUIStyleObject } from "theme-ui";
5
5
 
6
6
  export enum InputFieldStyles {
7
7
  ERROR,
@@ -1,5 +1,5 @@
1
+ import { useState, useEffect } from "react";
1
2
  import { useFormikContext } from "formik";
2
- import { useEffect, useState } from "react";
3
3
 
4
4
  import { FormFieldCheckbox } from "./";
5
5