@plitzi/plitzi-builder 0.37.8 → 0.37.10

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 (224) hide show
  1. package/CHANGELOG.md +847 -0
  2. package/dist/config/index.d.ts +0 -4
  3. package/dist/index.html +4 -2
  4. package/dist/modules/AI/components/ChatMessage/components/{AITemplatePreview/AITemplatePreview.d.ts → AISnippetPreview/AISnippetPreview.d.ts} +3 -3
  5. package/dist/modules/AI/components/ChatMessage/components/{AITemplatePreview/components/AITemplateHeader/AITemplateHeader.d.ts → AISnippetPreview/components/AISnippetHeader/AISnippetHeader.d.ts} +3 -3
  6. package/dist/modules/AI/components/ChatMessage/components/AISnippetPreview/components/AISnippetHeader/index.d.ts +3 -0
  7. package/dist/modules/AI/components/ChatMessage/components/AISnippetPreview/index.d.ts +3 -0
  8. package/dist/modules/AI/hooks/useAiChat.d.ts +2 -1
  9. package/dist/modules/Actions/ActionsContext.d.ts +0 -1
  10. package/dist/modules/App/AppContainer/components/NotificationsSettings/NotificationsSettings.d.ts +7 -0
  11. package/dist/modules/App/AppContainer/components/NotificationsSettings/index.d.ts +2 -0
  12. package/dist/modules/App/AppContainer/containers/ContainerServer.d.ts +7 -0
  13. package/dist/modules/App/AppContainer/containers/ContainerSettings.d.ts +1 -0
  14. package/dist/modules/App/AppContainer/containers/GeneralSettings.d.ts +2 -0
  15. package/dist/modules/App/AppContext.d.ts +3 -0
  16. package/dist/modules/App/components/AppHeader/GridButton.d.ts +3 -0
  17. package/dist/modules/App/components/AppHeader/IssuesButton/helpers.d.ts +2 -0
  18. package/dist/modules/App/components/AppHeader/QuotaBreakdown.d.ts +7 -6
  19. package/dist/modules/App/components/EmptyState/EmptyState.d.ts +12 -0
  20. package/dist/modules/App/components/EmptyState/index.d.ts +3 -0
  21. package/dist/modules/App/components/PanelSections/PanelSections.d.ts +27 -0
  22. package/dist/modules/App/components/PanelSections/index.d.ts +3 -0
  23. package/dist/modules/App/components/ResourceRow/ResourceRow.d.ts +19 -0
  24. package/dist/modules/App/components/ResourceRow/index.d.ts +3 -0
  25. package/dist/modules/App/components/SitemapDiagram/SitemapDiagram.d.ts +25 -0
  26. package/dist/modules/App/components/SitemapDiagram/components/SitemapChip/SitemapChip.d.ts +21 -0
  27. package/dist/modules/App/components/SitemapDiagram/components/SitemapChip/index.d.ts +3 -0
  28. package/dist/modules/App/components/SitemapDiagram/components/SitemapLegend/SitemapLegend.d.ts +3 -0
  29. package/dist/modules/App/components/SitemapDiagram/components/SitemapLegend/index.d.ts +2 -0
  30. package/dist/modules/App/components/SitemapDiagram/components/SitemapNode/SitemapNode.d.ts +15 -0
  31. package/dist/modules/App/components/SitemapDiagram/components/SitemapNode/index.d.ts +3 -0
  32. package/dist/modules/App/components/SitemapDiagram/components/SitemapPath/SitemapPath.d.ts +6 -0
  33. package/dist/modules/App/components/SitemapDiagram/components/SitemapPath/index.d.ts +3 -0
  34. package/dist/modules/App/components/SitemapDiagram/components/SitemapToolbar/SitemapToolbar.d.ts +16 -0
  35. package/dist/modules/App/components/SitemapDiagram/components/SitemapToolbar/index.d.ts +3 -0
  36. package/dist/modules/App/components/SitemapDiagram/helpers/schemaToSitemap.d.ts +10 -0
  37. package/dist/modules/App/components/SitemapDiagram/helpers/schemaToSitemap.test.d.ts +1 -0
  38. package/dist/modules/App/components/SitemapDiagram/helpers/searchSitemap.d.ts +12 -0
  39. package/dist/modules/App/components/SitemapDiagram/index.d.ts +4 -0
  40. package/dist/modules/App/components/SitemapDiagram/types.d.ts +36 -0
  41. package/dist/modules/App/components/VersionContents/PluginList.d.ts +7 -0
  42. package/dist/modules/App/components/VersionContents/VersionContents.d.ts +14 -0
  43. package/dist/modules/App/components/VersionContents/helpers.d.ts +8 -0
  44. package/dist/modules/App/components/VersionContents/helpers.test.d.ts +1 -0
  45. package/dist/modules/App/components/VersionContents/index.d.ts +2 -0
  46. package/dist/modules/App/components/VersionContents/useVersionContents.d.ts +8 -0
  47. package/dist/modules/App/components/ViewPage/ViewPage.d.ts +22 -0
  48. package/dist/modules/App/components/ViewPage/index.d.ts +3 -0
  49. package/dist/modules/App/components/ViewSection/ViewSection.d.ts +10 -0
  50. package/dist/modules/App/components/ViewSection/index.d.ts +3 -0
  51. package/dist/modules/App/helpers/utils.d.ts +10 -1
  52. package/dist/modules/App/hooks/useSitemapOpen.d.ts +7 -0
  53. package/dist/modules/Builder/BuilderHelper.d.ts +4 -4
  54. package/dist/modules/Builder/BuilderProvider.d.ts +1 -1
  55. package/dist/modules/Builder/Models/SnippetForm.d.ts +16 -0
  56. package/dist/modules/Builder/components/BuilderContextMenu/BuilderContextMenuItem.d.ts +6 -1
  57. package/dist/modules/Builder/components/BuilderElementTools/ElementAnchor.d.ts +11 -0
  58. package/dist/modules/Builder/components/BuilderElementTools/ElementDefinitionSettings.d.ts +3 -1
  59. package/dist/modules/Builder/components/BuilderElementTools/ElementFlagGate.d.ts +16 -0
  60. package/dist/modules/Builder/components/BuilderElementTools/NothingSelected.d.ts +6 -0
  61. package/dist/modules/Builder/helpers/reuse.d.ts +16 -0
  62. package/dist/modules/Builder/hooks/useSaveAsSnippet.d.ts +8 -0
  63. package/dist/modules/Components/Components.d.ts +11 -0
  64. package/dist/modules/Components/components/ComponentBanner/ComponentBanner.d.ts +7 -0
  65. package/dist/modules/Components/components/ComponentBanner/index.d.ts +1 -0
  66. package/dist/modules/Components/components/ComponentForm/ComponentForm.d.ts +19 -0
  67. package/dist/modules/Components/components/ComponentForm/SlotChoice.d.ts +8 -0
  68. package/dist/modules/Components/components/ComponentForm/index.d.ts +1 -0
  69. package/dist/modules/Components/components/ComponentItem/ComponentItem.d.ts +12 -0
  70. package/dist/modules/Components/components/ComponentItem/index.d.ts +1 -0
  71. package/dist/modules/Components/components/InstanceTools/InstanceTools.d.ts +10 -0
  72. package/dist/modules/Components/components/InstanceTools/SlotRow.d.ts +13 -0
  73. package/dist/modules/Components/components/InstanceTools/index.d.ts +1 -0
  74. package/dist/modules/Components/components/PropsEditor/PropRow.d.ts +14 -0
  75. package/dist/modules/Components/components/PropsEditor/PropsEditor.d.ts +11 -0
  76. package/dist/modules/Components/components/PropsEditor/index.d.ts +2 -0
  77. package/dist/modules/Components/helpers.d.ts +17 -0
  78. package/dist/modules/Components/helpers.test.d.ts +1 -0
  79. package/dist/modules/Components/index.d.ts +2 -0
  80. package/dist/modules/Components/slotChoices.d.ts +9 -0
  81. package/dist/modules/Components/useOpenComponent.d.ts +13 -0
  82. package/dist/modules/Components/useSaveAsComponent.d.ts +7 -0
  83. package/dist/modules/Connectors/ConnectorsContext.d.ts +0 -2
  84. package/dist/modules/Connectors/helpers/manifestDoc.d.ts +0 -1
  85. package/dist/modules/Credentials/Credentials.d.ts +0 -7
  86. package/dist/modules/Elements/ElementHelper.d.ts +3 -2
  87. package/dist/modules/Elements/hooks/useDragElement.d.ts +5 -4
  88. package/dist/modules/Flags/Flags.d.ts +9 -0
  89. package/dist/modules/Flags/components/FlagForm/FlagForm.d.ts +15 -0
  90. package/dist/modules/Flags/components/FlagForm/FlagRule.d.ts +11 -0
  91. package/dist/modules/Flags/components/FlagForm/index.d.ts +3 -0
  92. package/dist/modules/Flags/components/FlagForm/ruleGroup.d.ts +5 -0
  93. package/dist/modules/Flags/components/FlagForm/ruleGroup.test.d.ts +1 -0
  94. package/dist/modules/Flags/components/FlagItem/FlagItem.d.ts +14 -0
  95. package/dist/modules/Flags/components/FlagItem/FlagPreviewOption.d.ts +13 -0
  96. package/dist/modules/Flags/components/FlagItem/FlagPreviewToggle.d.ts +9 -0
  97. package/dist/modules/Flags/components/FlagItem/index.d.ts +3 -0
  98. package/dist/modules/Flags/components/PublishFlagsForm/PublishFlagsForm.d.ts +21 -0
  99. package/dist/modules/Flags/components/PublishFlagsForm/index.d.ts +3 -0
  100. package/dist/modules/Flags/helpers/flagRuleFields.d.ts +11 -0
  101. package/dist/modules/Flags/index.d.ts +3 -0
  102. package/dist/modules/Functions/Functions.d.ts +4 -3
  103. package/dist/modules/Functions/components/FunctionInspector/FunctionInspector.d.ts +20 -0
  104. package/dist/modules/Functions/components/FunctionInspector/components/InspectorSection/InspectorSection.d.ts +10 -0
  105. package/dist/modules/Functions/components/FunctionInspector/components/InspectorSection/index.d.ts +3 -0
  106. package/dist/modules/Functions/components/FunctionInspector/components/TaskTest/TaskTest.d.ts +16 -0
  107. package/dist/modules/Functions/components/FunctionInspector/components/TaskTest/index.d.ts +3 -0
  108. package/dist/modules/Functions/components/FunctionInspector/components/TimeLimit/TimeLimit.d.ts +16 -0
  109. package/dist/modules/Functions/components/FunctionInspector/components/TimeLimit/index.d.ts +3 -0
  110. package/dist/modules/Functions/components/FunctionInspector/components/TryField/TryField.d.ts +10 -0
  111. package/dist/modules/Functions/components/FunctionInspector/components/TryField/index.d.ts +3 -0
  112. package/dist/modules/Functions/components/FunctionInspector/components/TryResult/TryResult.d.ts +9 -0
  113. package/dist/modules/Functions/components/FunctionInspector/components/TryResult/index.d.ts +3 -0
  114. package/dist/modules/Functions/components/FunctionInspector/index.d.ts +3 -0
  115. package/dist/modules/Functions/components/FunctionsEditor/FunctionsEditor.d.ts +20 -0
  116. package/dist/modules/Functions/components/FunctionsEditor/index.d.ts +3 -0
  117. package/dist/modules/Functions/components/FunctionsGuide/FunctionsGuide.d.ts +7 -0
  118. package/dist/modules/Functions/components/FunctionsGuide/index.d.ts +3 -0
  119. package/dist/modules/Functions/components/FunctionsHeader/FunctionsHeader.d.ts +17 -0
  120. package/dist/modules/Functions/components/FunctionsHeader/index.d.ts +3 -0
  121. package/dist/modules/Functions/components/FunctionsProblems/FunctionsProblems.d.ts +2 -1
  122. package/dist/modules/Functions/components/FunctionsSidebar/FunctionsSidebar.d.ts +30 -0
  123. package/dist/modules/Functions/components/FunctionsSidebar/components/FileItem/FileItem.d.ts +14 -0
  124. package/dist/modules/Functions/components/FunctionsSidebar/components/FileItem/index.d.ts +3 -0
  125. package/dist/modules/Functions/components/FunctionsSidebar/components/FolderItem/FolderItem.d.ts +7 -0
  126. package/dist/modules/Functions/components/FunctionsSidebar/components/FolderItem/index.d.ts +3 -0
  127. package/dist/modules/Functions/components/FunctionsSidebar/components/NewFile/NewFile.d.ts +7 -0
  128. package/dist/modules/Functions/components/FunctionsSidebar/components/NewFile/index.d.ts +3 -0
  129. package/dist/modules/Functions/components/FunctionsSidebar/components/NewTask/NewTask.d.ts +13 -0
  130. package/dist/modules/Functions/components/FunctionsSidebar/components/NewTask/index.d.ts +3 -0
  131. package/dist/modules/Functions/components/FunctionsSidebar/components/RouteItem/RouteItem.d.ts +9 -0
  132. package/dist/modules/Functions/components/FunctionsSidebar/components/RouteItem/index.d.ts +3 -0
  133. package/dist/modules/Functions/components/FunctionsSidebar/components/SidebarSection/SidebarSection.d.ts +13 -0
  134. package/dist/modules/Functions/components/FunctionsSidebar/components/SidebarSection/index.d.ts +3 -0
  135. package/dist/modules/Functions/components/FunctionsSidebar/components/TaskItem/TaskItem.d.ts +16 -0
  136. package/dist/modules/Functions/components/FunctionsSidebar/components/TaskItem/index.d.ts +3 -0
  137. package/dist/modules/Functions/components/FunctionsSidebar/index.d.ts +3 -0
  138. package/dist/modules/Functions/components/FunctionsWelcome/FunctionsWelcome.d.ts +6 -0
  139. package/dist/modules/Functions/components/FunctionsWelcome/index.d.ts +3 -0
  140. package/dist/modules/Functions/editor/paths.d.ts +9 -0
  141. package/dist/modules/Functions/editor/source.d.ts +60 -0
  142. package/dist/modules/Functions/editor/source.test.d.ts +1 -0
  143. package/dist/modules/Functions/editor/typescriptWorker.d.ts +26 -0
  144. package/dist/modules/Functions/editor/useFunctionsTypeScript.d.ts +5 -2
  145. package/dist/modules/Functions/helpers.d.ts +119 -1
  146. package/dist/modules/History/History.d.ts +5 -1
  147. package/dist/modules/History/components/ChangeGroup/ChangeGroup.d.ts +2 -1
  148. package/dist/modules/History/components/ChangeLine/ChangeLine.d.ts +3 -1
  149. package/dist/modules/History/components/SaveDetail/SaveDetail.d.ts +2 -1
  150. package/dist/modules/Interactions/components/Workflow/helpers/nodeOptions.d.ts +22 -0
  151. package/dist/modules/Interactions/components/Workflow/helpers/nodeOptions.test.d.ts +1 -0
  152. package/dist/modules/Keyboard/index.d.ts +4 -0
  153. package/dist/modules/Keyboard/platform.d.ts +7 -0
  154. package/dist/modules/Network/hooks/useBuilderNetwork.d.ts +12 -0
  155. package/dist/modules/Queue/QueueContext.d.ts +2 -5
  156. package/dist/modules/Resources/components/Resource/subTypes/ResourceSnippet/ResourceSnippet.d.ts +13 -0
  157. package/dist/modules/Resources/components/Resource/subTypes/ResourceSnippet/SnippetContent.d.ts +8 -0
  158. package/dist/modules/Resources/components/Resource/subTypes/ResourceSnippet/UnreadableSnippet.d.ts +12 -0
  159. package/dist/modules/Resources/components/Resource/subTypes/ResourceSnippet/index.d.ts +3 -0
  160. package/dist/modules/Resources/components/ResourceManager/helpers/isSnippetFile.d.ts +3 -0
  161. package/dist/modules/Resources/components/ResourceManager/helpers/isSnippetFile.test.d.ts +1 -0
  162. package/dist/modules/Resources/components/ResourcesCdnBucket/ResourcesCdnBucket.d.ts +1 -1
  163. package/dist/modules/Runtime/components/RuntimeCodeNote/RuntimeCodeNote.d.ts +1 -4
  164. package/dist/modules/Space/components/SpaceIssues/SpaceIssues.d.ts +2 -1
  165. package/dist/modules/Space/components/SpaceIssues/components/ElementChip/ElementChip.d.ts +12 -0
  166. package/dist/modules/Space/components/SpaceIssues/components/ElementChip/index.d.ts +3 -0
  167. package/dist/modules/Space/components/SpaceIssues/components/IssueFix/IssueFix.d.ts +12 -0
  168. package/dist/modules/Space/components/SpaceIssues/components/IssueFix/index.d.ts +3 -0
  169. package/dist/modules/Space/components/SpaceIssues/components/IssueItem/IssueItem.d.ts +1 -5
  170. package/dist/modules/Space/components/SpaceIssues/components/SuggestionGroup/SuggestionGroup.d.ts +8 -0
  171. package/dist/modules/Space/components/SpaceIssues/components/SuggestionGroup/index.d.ts +3 -0
  172. package/dist/modules/Space/components/SpaceIssues/components/SuggestionItem/SuggestionItem.d.ts +12 -0
  173. package/dist/modules/Space/components/SpaceIssues/components/SuggestionItem/index.d.ts +3 -0
  174. package/dist/modules/Space/components/SpaceIssues/helpers.d.ts +2 -0
  175. package/dist/modules/Space/hooks/useSpaceUsage.d.ts +36 -0
  176. package/dist/modules/Undoable/UndoableContext.d.ts +2 -5
  177. package/dist/package.json.d.ts +4 -4
  178. package/dist/plitzi-builder.css +1 -1
  179. package/dist/plitzi-builder.css.gz +0 -0
  180. package/dist/plitzi-builder.js +2803 -2451
  181. package/dist/plitzi-builder.js.gz +0 -0
  182. package/dist/plitzi-functions-worker.js +3 -3
  183. package/package.json +18 -18
  184. package/dist/modules/AI/components/ChatInput/helpers.d.ts +0 -1
  185. package/dist/modules/AI/components/ChatMessage/components/AITemplatePreview/components/AITemplateHeader/index.d.ts +0 -3
  186. package/dist/modules/AI/components/ChatMessage/components/AITemplatePreview/index.d.ts +0 -3
  187. package/dist/modules/App/AppContainer/containers/ContainerActions.d.ts +0 -2
  188. package/dist/modules/App/AppContainer/containers/ContainerConnectors.d.ts +0 -2
  189. package/dist/modules/App/AppContainer/containers/ContainerCredentials.d.ts +0 -2
  190. package/dist/modules/App/AppContainer/containers/ContainerFunctions.d.ts +0 -2
  191. package/dist/modules/App/AppContainer/containers/ContainerRuntime.d.ts +0 -2
  192. package/dist/modules/App/AppContainer/containers/ContainerVisitors.d.ts +0 -2
  193. package/dist/modules/App/components/WorkflowDiagram/WorkflowDiagram.d.ts +0 -37
  194. package/dist/modules/App/components/WorkflowDiagram/components/CustomEdge.d.ts +0 -3
  195. package/dist/modules/App/components/WorkflowDiagram/components/CustomNode.d.ts +0 -5
  196. package/dist/modules/App/components/WorkflowDiagram/helpers/schemaToSitemap.d.ts +0 -11
  197. package/dist/modules/App/components/WorkflowDiagram/helpers/sitemapToFlow.d.ts +0 -20
  198. package/dist/modules/App/components/WorkflowDiagram/index.d.ts +0 -3
  199. package/dist/modules/Builder/BuilderPopup.d.ts +0 -6
  200. package/dist/modules/Builder/Models/TemplateForm.d.ts +0 -16
  201. package/dist/modules/Functions/components/FunctionsDeclared/FunctionsDeclared.d.ts +0 -10
  202. package/dist/modules/Functions/components/FunctionsDeclared/index.d.ts +0 -3
  203. package/dist/modules/Functions/components/FunctionsFiles/FunctionsFiles.d.ts +0 -11
  204. package/dist/modules/Functions/components/FunctionsFiles/index.d.ts +0 -3
  205. package/dist/modules/Functions/components/FunctionsTry/FunctionsTry.d.ts +0 -13
  206. package/dist/modules/Functions/components/FunctionsTry/index.d.ts +0 -3
  207. package/dist/modules/Resources/components/Resource/subTypes/ResourceTemplate/ResourceTemplate.d.ts +0 -13
  208. package/dist/modules/Resources/components/Resource/subTypes/ResourceTemplate/TemplateContent.d.ts +0 -8
  209. package/dist/modules/Resources/components/Resource/subTypes/ResourceTemplate/index.d.ts +0 -3
  210. package/dist/modules/Segments/Segment.d.ts +0 -11
  211. package/dist/modules/Segments/Segments.d.ts +0 -2
  212. package/dist/modules/Segments/SegmentsContextProvider.d.ts +0 -7
  213. package/dist/modules/Segments/SegmentsReducer.d.ts +0 -133
  214. package/dist/modules/Segments/index.d.ts +0 -3
  215. package/dist/modules/Segments/models/PublishForm.d.ts +0 -19
  216. package/dist/modules/Segments/models/SegmentForm.d.ts +0 -17
  217. package/dist/modules/Space/hooks/useAccountUsage.d.ts +0 -60
  218. package/dist/patches/useSyncExternalStoreWithSelector.d.ts +0 -4
  219. /package/dist/modules/AI/components/ChatMessage/components/{AITemplatePreview/components/AITemplateHeader → AISnippetPreview/components/AISnippetHeader}/DisplayModeButton.d.ts +0 -0
  220. /package/dist/modules/AI/components/ChatMessage/components/{AITemplatePreview → AISnippetPreview}/components/ConfirmPanel/ConfirmPanel.d.ts +0 -0
  221. /package/dist/modules/AI/components/ChatMessage/components/{AITemplatePreview → AISnippetPreview}/components/ConfirmPanel/index.d.ts +0 -0
  222. /package/dist/modules/AI/components/ChatMessage/components/{AITemplatePreview → AISnippetPreview}/helpers.d.ts +0 -0
  223. /package/dist/modules/{AI/components → Keyboard}/KeyboardKey/KeyboardKey.d.ts +0 -0
  224. /package/dist/modules/{AI/components → Keyboard}/KeyboardKey/index.d.ts +0 -0
@@ -1,6 +1,2 @@
1
1
  import { Server } from '@plitzi/sdk-shared';
2
2
  export declare const getEnvironmentServer: (server?: Partial<Server>) => Server;
3
- declare const featureFlag: {
4
- assistanceAI: boolean;
5
- };
6
- export { featureFlag };
package/dist/index.html CHANGED
@@ -41,6 +41,8 @@
41
41
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
42
42
  </noscript>
43
43
 
44
+ <link href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap" rel="stylesheet" />
45
+
44
46
  <link href="/plitzi-builder.css" rel="preload" as="style" />
45
47
  <link href="/plitzi-builder.css" rel="stylesheet" />
46
48
  </head>
@@ -56,10 +58,10 @@
56
58
  render(
57
59
  'plitzi',
58
60
  {
59
- webKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwib3JpZ2lucyI6WyJodHRwczovL3dlYnNpdGUucGxpdHppLmFwcCIsImh0dHBzOi8vcGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDAiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMSIsImh0dHBzOi8vc3NyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImh0dHA6Ly9sb2NhbGhvc3Q6MzAwMCIsImh0dHA6Ly9sb2NhbGhvc3Q6ODA4MCIsImh0dHA6Ly8xMjcuMC4wLjE6ODA4MCIsImh0dHBzOi8vZGV2LnBsaXR6aS5jb20iLCJodHRwczovL3BsaXR6aS5jb20iLCJodHRwczovL3N0Zy5wbGl0emkuY29tIl0sImlzcyI6Imh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImF1ZCI6WyJodHRwczovL3BsaXR6aS5sb2NhbCIsImh0dHBzOi8vYXBwLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vYXBwLnBsaXR6aS5sb2NhbDozMDAwIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDEiLCJodHRwczovL2FwaS5wbGl0emkubG9jYWwiLCJodHRwczovL3Nzci5wbGl0emkubG9jYWwiLCJodHRwczovL3NlcnZlci5wbGl0emkubG9jYWwiLCJodHRwczovL21jcC5wbGl0emkubG9jYWwiLCJodHRwczovL2F1dGgucGxpdHppLmxvY2FsIiwiaHR0cDovLzEyNy4wLjAuMTo1MzAwIiwiaHR0cDovL2xvY2FsaG9zdDo1MTgwIl0sInNjb3BlIjoic3BhY2U6cmVuZGVyIiwiaWF0IjoxNzkwMjEzMjg5LCJqdGkiOiJhZDgyN2EyMjliZjhlMzk3IiwibmJmIjoxNzkwMjEzMjg5fQ.dedpVVA5Nv3Xr7nEOZ8UmEJcIamF9AHGnLgqQyDV8-k',
61
+ webKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxOCIsIm9yaWdpbnMiOlsiaHR0cHM6Ly90cmVtb3IucGxpdHppLmFwcCIsImh0dHBzOi8vdHJlbW9yLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vcGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDAiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMSIsImh0dHBzOi8vc3NyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImh0dHA6Ly9sb2NhbGhvc3Q6MzAwMCIsImh0dHA6Ly9sb2NhbGhvc3Q6ODA4MCIsImh0dHA6Ly8xMjcuMC4wLjE6ODA4MCJdLCJpc3MiOiJodHRwczovL3NlcnZlci5wbGl0emkubG9jYWwiLCJhdWQiOlsiaHR0cHM6Ly9wbGl0emkubG9jYWwiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWwiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMCIsImh0dHBzOi8vYXBwLnBsaXR6aS5sb2NhbDozMDAxIiwiaHR0cHM6Ly9hcGkucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9zc3IucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9zZXJ2ZXIucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9tY3AucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hdXRoLnBsaXR6aS5sb2NhbCIsImh0dHA6Ly8xMjcuMC4wLjE6NTMwMCIsImh0dHA6Ly9sb2NhbGhvc3Q6NTE4MCJdLCJzY29wZSI6InNwYWNlOnJlbmRlciIsImlhdCI6MTc5MDc5NDEyMywianRpIjoiNmU1MTNmOTIwNTEwMzNkNCIsIm5iZiI6MTc5MDc5NDEyM30.4zBNY-E9PJZUfotar7D9LDM5yuwHOQc1nbxhHLPbVgA',
60
62
  // The actor. Without it the builder loads and every write is refused, since authorization is
61
63
  // can(actor, space, permission). Both halves come from `yarn token 1 --user admin` in plitzi-sdk-server.
62
- userKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwiaXNzIjoiaHR0cHM6Ly9zZXJ2ZXIucGxpdHppLmxvY2FsIiwiYXVkIjpbImh0dHBzOi8vcGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDAiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMSIsImh0dHBzOi8vYXBpLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc3NyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vbWNwLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vYXV0aC5wbGl0emkubG9jYWwiLCJodHRwOi8vMTI3LjAuMC4xOjUzMDAiLCJodHRwOi8vbG9jYWxob3N0OjUxODAiXSwic2NvcGUiOiJ1c2VyIiwiZXhwIjoxNzkwMjg3MDg0LCJpYXQiOjE3OTAyMDA2ODQsImp0aSI6ImNiZWE3MDZlNzYyZGFiNGUiLCJuYmYiOjE3OTAyMDA2ODR9.IpPxIRFRi6KXz0yCC1fPQF6hLubU_7u0fTcgQohmB10',
64
+ userKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwiaXNzIjoiaHR0cHM6Ly9zZXJ2ZXIucGxpdHppLmxvY2FsIiwiYXVkIjpbImh0dHBzOi8vcGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDAiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMSIsImh0dHBzOi8vYXBpLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc3NyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vbWNwLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vYXV0aC5wbGl0emkubG9jYWwiLCJodHRwOi8vMTI3LjAuMC4xOjUzMDAiLCJodHRwOi8vbG9jYWxob3N0OjUxODAiXSwic2NvcGUiOiJ1c2VyIiwiZXhwIjoxNzkwODgwNDk3LCJpYXQiOjE3OTA3OTQwOTcsImp0aSI6IjgzNWVjMTA5MDhkNzA4NjYiLCJuYmYiOjE3OTA3OTQwOTd9.aSm7PJz1yPtXjPD9DT40IWaqK7N9EAuSZ1Bsb7ZvABc',
63
65
  environment: 'main',
64
66
  functionsWorkerUrl: '/plitzi-functions-worker.js',
65
67
  server: {
@@ -1,6 +1,6 @@
1
1
  import { Schema, Style } from '@plitzi/sdk-shared';
2
2
  import { AiMode } from '../../../../types';
3
- export type AITemplatePreviewProps = {
3
+ export type AISnippetPreviewProps = {
4
4
  baseElementId: string;
5
5
  schema?: Pick<Schema, 'flat'>;
6
6
  style?: Pick<Style, 'platform' | 'cache'>;
@@ -8,5 +8,5 @@ export type AITemplatePreviewProps = {
8
8
  mode?: AiMode;
9
9
  version?: number;
10
10
  };
11
- declare const AITemplatePreview: ({ baseElementId, schema, style, html, mode, version }: AITemplatePreviewProps) => import('react').JSX.Element;
12
- export default AITemplatePreview;
11
+ declare const AISnippetPreview: ({ baseElementId, schema, style, html, mode, version }: AISnippetPreviewProps) => import('react').JSX.Element;
12
+ export default AISnippetPreview;
@@ -1,6 +1,6 @@
1
1
  import { DisplayMode } from '@plitzi/sdk-shared';
2
2
  import { AiMode } from '../../../../../../types';
3
- export type AITemplateHeaderProps = {
3
+ export type AISnippetHeaderProps = {
4
4
  baseElementId: string;
5
5
  displayMode: DisplayMode;
6
6
  onDisplayMode: (mode: DisplayMode) => void;
@@ -11,5 +11,5 @@ export type AITemplateHeaderProps = {
11
11
  mode?: AiMode;
12
12
  version?: number;
13
13
  };
14
- declare const AITemplateHeader: ({ baseElementId, displayMode, onDisplayMode, onClick, showHtml, onToggleHtml, hasHtml, mode, version }: AITemplateHeaderProps) => import('react').JSX.Element;
15
- export default AITemplateHeader;
14
+ declare const AISnippetHeader: ({ baseElementId, displayMode, onDisplayMode, onClick, showHtml, onToggleHtml, hasHtml, mode, version }: AISnippetHeaderProps) => import('react').JSX.Element;
15
+ export default AISnippetHeader;
@@ -0,0 +1,3 @@
1
+ import { default as AISnippetHeader } from './AISnippetHeader';
2
+ export * from './AISnippetHeader';
3
+ export default AISnippetHeader;
@@ -0,0 +1,3 @@
1
+ import { default as AISnippetPreview } from './AISnippetPreview';
2
+ export * from './AISnippetPreview';
3
+ export default AISnippetPreview;
@@ -1,5 +1,6 @@
1
1
  import { AiAttachment, AiContext, AiMessage, AiProviderSettings, ConversationSummary } from '../types';
2
2
  import { AiEffort, AiMode } from '@plitzi/sdk-shared';
3
+ import { Dispatch, SetStateAction } from 'react';
3
4
  type QueueEntry = {
4
5
  localId: string;
5
6
  message: string;
@@ -23,7 +24,7 @@ declare const useAiChat: (providerSettings?: AiProviderSettings) => {
23
24
  conversations: ConversationSummary[];
24
25
  pendingQueue: QueueEntry[];
25
26
  mode: AiMode;
26
- setMode: import('react').Dispatch<import('react').SetStateAction<AiMode>>;
27
+ setMode: Dispatch<SetStateAction<AiMode>>;
27
28
  initConversation: () => Promise<void>;
28
29
  sendMessage: (message: string, context: AiContext, attachments?: AiAttachment[], effort?: AiEffort) => Promise<void>;
29
30
  stopGeneration: () => void;
@@ -7,7 +7,6 @@ export type ActionsContextValue = {
7
7
  credentials: SpaceCredential[];
8
8
  isLoading: boolean;
9
9
  error: string;
10
- hasServerRendering: boolean;
11
10
  /** One origin per deployment, for building webhook URLs. */
12
11
  deployments: {
13
12
  environment: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * How the toasts an `addNotification` step shows look — the space's `notifications`, the same fields authoring and the
3
+ * MCP server write. They are stored as a rule inside the custom CSS; here they are fields of their own, and the
4
+ * custom CSS editor shows the space's CSS without that rule.
5
+ */
6
+ declare const NotificationsSettings: () => import('react').JSX.Element;
7
+ export default NotificationsSettings;
@@ -0,0 +1,2 @@
1
+ import { default as NotificationsSettings } from './NotificationsSettings';
2
+ export default NotificationsSettings;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Everything of the space that runs on a server — its actions, functions, connectors, the credentials they use and its
3
+ * runtime — under one entry of the sidebar. Whether the space HAS a server to run them is said here, once, above them
4
+ * all.
5
+ */
6
+ declare const ContainerServer: () => import('react').JSX.Element;
7
+ export default ContainerServer;
@@ -1,2 +1,3 @@
1
+ /** The space's settings, and who may visit it: the roles it declares and who holds them. */
1
2
  declare const ContainerSettings: () => import('react').JSX.Element;
2
3
  export default ContainerSettings;
@@ -0,0 +1,2 @@
1
+ declare const GeneralSettings: () => import('react').JSX.Element;
2
+ export default GeneralSettings;
@@ -6,6 +6,9 @@ export type AppContextValue = {
6
6
  setPreviewMode: Dispatch<SetStateAction<boolean>>;
7
7
  displayBorderComponents: 'black' | 'white' | 'none';
8
8
  setDisplayBorderComponents: Dispatch<SetStateAction<'black' | 'white' | 'none'>>;
9
+ /** The layout grid over the canvas: the columns a page is laid out on, to line an element up by eye. */
10
+ displayGrid: boolean;
11
+ setDisplayGrid: Dispatch<SetStateAction<boolean>>;
9
12
  zoom: number;
10
13
  setZoom: Dispatch<SetStateAction<number>>;
11
14
  displayMode: DisplayMode;
@@ -0,0 +1,3 @@
1
+ /** The layout grid over the canvas, on and off; lit while it is on. */
2
+ declare const GridButton: () => import('react').JSX.Element;
3
+ export default GridButton;
@@ -2,3 +2,5 @@ import { IssuesLevel } from '../../../../Space/helpers/spaceIssues';
2
2
  export declare const LEVEL_TEXT: Record<IssuesLevel, string>;
3
3
  export declare const LEVEL_ICON: Record<IssuesLevel, string>;
4
4
  export declare const LEVEL_TITLE: Record<IssuesLevel, string>;
5
+ /** Nothing wrong, and a shorter way to the same page: the accent, never the colours of a problem. */
6
+ export declare const SUGGESTING_TEXT = "text-indigo-600 dark:text-indigo-400";
@@ -6,14 +6,15 @@ export type QuotaBreakdownProps = {
6
6
  liveElements: number;
7
7
  };
8
8
  /**
9
- * The number in the header, taken apart.
9
+ * The number in the header, taken apart — for the space being edited.
10
10
  *
11
- * The meter answers "how much room is left"; this answers what follows it — where the room went. Two breakdowns,
12
- * because the two ceilings are spent by different things: elements sit in pages, and page views are spent by
13
- * visitors on paths.
11
+ * The meter answers "how much room is left"; this answers what follows it — where this space's room went. Two
12
+ * breakdowns, because the two ceilings are spent by different things: elements sit in pages, and page views are spent by
13
+ * visitors on paths. The account's ceilings stay at the top, since the space spends them too; how the workspace's other
14
+ * spaces spent them is the dashboard's to show, to its members.
14
15
  *
15
- * The space being edited is answered entirely from the store, so it is on screen before any request is made, and it
16
- * is there even for someone whose account owns none of this. The rest of the account is what the request is for.
16
+ * Its elements are answered from the store, so they are on screen before any request is made. Its page views are what
17
+ * the request is for. Scrolls on its own: a space with many pages is longer than the window.
17
18
  */
18
19
  declare const QuotaBreakdown: ({ readings, spaceId, liveElements }: QuotaBreakdownProps) => import('react').JSX.Element;
19
20
  export default QuotaBreakdown;
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ export type EmptyStateProps = {
3
+ /** A Font Awesome class, e.g. `fa-solid fa-bolt`. */
4
+ icon: string;
5
+ title: ReactNode;
6
+ description?: ReactNode;
7
+ /** What starts it — usually the one button that creates the first one. */
8
+ action?: ReactNode;
9
+ };
10
+ /** A subject with nothing in it yet: what it is for, and the way to start. The same everywhere it appears. */
11
+ declare const EmptyState: ({ icon, title, description, action }: EmptyStateProps) => import('react').JSX.Element;
12
+ export default EmptyState;
@@ -0,0 +1,3 @@
1
+ import { default as EmptyState } from './EmptyState';
2
+ export * from './EmptyState';
3
+ export default EmptyState;
@@ -0,0 +1,27 @@
1
+ import { ReactNode } from 'react';
2
+ declare const HEADER_CLASS_NAME: {
3
+ readonly panel: "mx-2 mt-2";
4
+ readonly page: "mx-auto w-full max-w-5xl px-6 pt-5 pb-4";
5
+ };
6
+ export type PanelSection = {
7
+ id: string;
8
+ label: string;
9
+ content: ReactNode;
10
+ };
11
+ export type PanelSectionsProps = {
12
+ /** What the open section is remembered under, among the builder's own preferences. */
13
+ name: string;
14
+ sections: [PanelSection, ...PanelSection[]];
15
+ /** `panel` in the sidebar's dock, `page` over a view that takes the canvas' place. */
16
+ variant?: keyof typeof HEADER_CLASS_NAME;
17
+ /** Said once under the tabs, whichever section is open — what holds for all of them. */
18
+ notice?: ReactNode;
19
+ className?: string;
20
+ };
21
+ /**
22
+ * Several subjects behind one entry of the sidebar: a row of tabs over the one that is open. The open one is
23
+ * remembered, so coming back to the entry finds it where it was left — and a section that no longer exists falls back
24
+ * to the first.
25
+ */
26
+ declare const PanelSections: ({ name, sections, variant, notice, className }: PanelSectionsProps) => import('react').JSX.Element;
27
+ export default PanelSections;
@@ -0,0 +1,3 @@
1
+ import { default as PanelSections } from './PanelSections';
2
+ export * from './PanelSections';
3
+ export default PanelSections;
@@ -0,0 +1,19 @@
1
+ import { ReactNode } from 'react';
2
+ export type ResourceRowProps = {
3
+ id: string;
4
+ /** A Font Awesome class for the tile at the start of the row. */
5
+ icon?: string;
6
+ title: ReactNode;
7
+ subtitle?: ReactNode;
8
+ /** A state worth seeing without opening it: disabled, in use, unsaved. */
9
+ badge?: ReactNode;
10
+ removeTitle?: string;
11
+ onSelect: (id: string) => void;
12
+ onRemove?: (id: string) => void;
13
+ };
14
+ /**
15
+ * One item of a view's list: the row opens it, the bin removes it. Two buttons side by side, never one inside the
16
+ * other, so each is reachable and announced on its own.
17
+ */
18
+ declare const ResourceRow: ({ id, icon, title, subtitle, badge, removeTitle, onSelect, onRemove }: ResourceRowProps) => import('react').JSX.Element;
19
+ export default ResourceRow;
@@ -0,0 +1,3 @@
1
+ import { default as ResourceRow } from './ResourceRow';
2
+ export * from './ResourceRow';
3
+ export default ResourceRow;
@@ -0,0 +1,25 @@
1
+ import { SitemapEntry } from './types';
2
+ import { Element, PageFolder } from '@plitzi/sdk-shared';
3
+ export type SitemapDiagramProps = {
4
+ pages: Element[];
5
+ pageFolders: PageFolder[];
6
+ /** Each layout's name, by id — what a page's card says it renders inside. */
7
+ layouts?: Record<string, string>;
8
+ /** The page open in the canvas. */
9
+ currentPageId?: string;
10
+ /** A new page — inside a folder when one is given — or a new folder. */
11
+ onAddNode?: (nodeType: 'page' | 'folder', folderId?: string) => void;
12
+ /** A page or folder dropped into a folder, or onto the top level (`null`). */
13
+ onMove?: (entry: SitemapEntry, folderId: string | null) => void;
14
+ onRemove?: (entry: SitemapEntry) => void;
15
+ /** A page opened in the canvas, from its card, a double click or Enter. */
16
+ onOpen?: (pageId: string) => void;
17
+ /** Back to the canvas: the map replaces it, and the Pages panel that opened it may be closed by now. */
18
+ onClose?: () => void;
19
+ };
20
+ /**
21
+ * The site as a map: every folder over what it holds, laid out on its own. From here a page is found, opened, moved by
22
+ * dropping it onto a folder, or removed; a folder folds away what it holds.
23
+ */
24
+ declare const SitemapDiagram: ({ pages, pageFolders, layouts, currentPageId, onAddNode, onMove, onRemove, onOpen, onClose }: SitemapDiagramProps) => import('react').JSX.Element;
25
+ export default SitemapDiagram;
@@ -0,0 +1,21 @@
1
+ import { SitemapPage } from '../../types';
2
+ import { ElementFlagGate } from '@plitzi/sdk-shared';
3
+ import { ReactNode } from 'react';
4
+ export type SitemapChipProps = {
5
+ icon: string;
6
+ /** Colours of its own; a neutral chip without. */
7
+ className?: string;
8
+ title?: string;
9
+ children: ReactNode;
10
+ };
11
+ /** One fact about a page, small enough that four of them fit under its name. */
12
+ declare const SitemapChip: ({ icon, className, title, children }: SitemapChipProps) => import('react').JSX.Element;
13
+ /** Who may open the page — and, when it sends everybody else elsewhere, where. */
14
+ export declare const SitemapAccessChip: ({ page }: {
15
+ page: SitemapPage;
16
+ }) => import('react').JSX.Element;
17
+ /** The feature flag the page exists under: `name` while it is on, `!name` while it is off. */
18
+ export declare const SitemapFlagChip: ({ gate }: {
19
+ gate: ElementFlagGate;
20
+ }) => import('react').JSX.Element;
21
+ export default SitemapChip;
@@ -0,0 +1,3 @@
1
+ import { default as SitemapChip } from './SitemapChip';
2
+ export * from './SitemapChip';
3
+ export default SitemapChip;
@@ -0,0 +1,3 @@
1
+ /** What the stripe down each card means, and the keys that move around the map. */
2
+ declare const SitemapLegend: () => import('react').JSX.Element;
3
+ export default SitemapLegend;
@@ -0,0 +1,2 @@
1
+ import { default as SitemapLegend } from './SitemapLegend';
2
+ export default SitemapLegend;
@@ -0,0 +1,15 @@
1
+ import { SitemapEntry } from '../../types';
2
+ export type SitemapNodeProps = {
3
+ entry: SitemapEntry;
4
+ selected: boolean;
5
+ dropTarget: boolean;
6
+ /** The page open in the canvas right now. */
7
+ current: boolean;
8
+ onOpen?: (id: string) => void;
9
+ /** A new page, made inside this folder. */
10
+ onAddPage?: (folderId: string) => void;
11
+ onRemove: (entry: SitemapEntry) => void;
12
+ };
13
+ /** One page or folder of the site: what it is called, where it answers, who may open it and what wraps it. */
14
+ declare const SitemapNode: ({ entry, selected, dropTarget, current, onOpen, onAddPage, onRemove }: SitemapNodeProps) => import('react').JSX.Element;
15
+ export default SitemapNode;
@@ -0,0 +1,3 @@
1
+ import { default as SitemapNode } from './SitemapNode';
2
+ export * from './SitemapNode';
3
+ export default SitemapNode;
@@ -0,0 +1,6 @@
1
+ export type SitemapPathProps = {
2
+ path: string;
3
+ };
4
+ /** A page's address, its dynamic segments (`:productId`) marked as what they are: a value, not a word. */
5
+ declare const SitemapPath: ({ path }: SitemapPathProps) => import('react').JSX.Element;
6
+ export default SitemapPath;
@@ -0,0 +1,3 @@
1
+ import { default as SitemapPath } from './SitemapPath';
2
+ export * from './SitemapPath';
3
+ export default SitemapPath;
@@ -0,0 +1,16 @@
1
+ export type SitemapToolbarProps = {
2
+ pageCount: number;
3
+ folderCount: number;
4
+ query: string;
5
+ /** How many entries the query found, and which of them is being shown. */
6
+ matchCount: number;
7
+ matchIndex: number;
8
+ onQueryChange: (query: string) => void;
9
+ onNextMatch: (backwards: boolean) => void;
10
+ onAddPage: () => void;
11
+ onAddFolder: () => void;
12
+ onClose?: () => void;
13
+ };
14
+ /** Back to the canvas, what the site holds, a search across it, and the two things made from here. */
15
+ declare const SitemapToolbar: ({ pageCount, folderCount, query, matchCount, matchIndex, onQueryChange, onNextMatch, onAddPage, onAddFolder, onClose }: SitemapToolbarProps) => import('react').JSX.Element;
16
+ export default SitemapToolbar;
@@ -0,0 +1,3 @@
1
+ import { default as SitemapToolbar } from './SitemapToolbar';
2
+ export * from './SitemapToolbar';
3
+ export default SitemapToolbar;
@@ -0,0 +1,10 @@
1
+ import { SitemapEntry } from '../types';
2
+ import { Element, PageFolder } from '@plitzi/sdk-shared';
3
+ /**
4
+ * The site's pages and folders as a tree: each folder holding what names it as its parent, folders and pages alike
5
+ * sorted by name, and every page with what its card shows — where it answers, who may open it, what wraps it.
6
+ *
7
+ * `layouts` names each layout by id: a page refers to its layout by id, and the map shows the name.
8
+ */
9
+ declare const schemaToSitemap: (pages: Element[], folders: PageFolder[], layouts?: Record<string, string>) => SitemapEntry[];
10
+ export default schemaToSitemap;
@@ -0,0 +1,12 @@
1
+ import { SitemapEntry } from '../types';
2
+ export type SitemapSearch = {
3
+ /** What matched, in the order the map reads. */
4
+ matches: string[];
5
+ /** The matches and every folder above one: what stays lit while the rest dims. */
6
+ visible: Set<string>;
7
+ /** The folders above a match: shown open whatever was folded. */
8
+ ancestors: Set<string>;
9
+ };
10
+ /** The pages and folders whose name or address holds the query — case aside — and the folders that lead to them. */
11
+ declare const searchSitemap: (entries: SitemapEntry[], query: string) => SitemapSearch;
12
+ export default searchSitemap;
@@ -0,0 +1,4 @@
1
+ import { default as SitemapDiagram } from './SitemapDiagram';
2
+ export * from './SitemapDiagram';
3
+ export * from './types';
4
+ export default SitemapDiagram;
@@ -0,0 +1,36 @@
1
+ import { ElementFlagGate } from '@plitzi/sdk-shared';
2
+ /**
3
+ * Who may open a page, as the page's `accessLevel` decides it: unset is anyone, `public` is only somebody signed out,
4
+ * `authenticated` only somebody signed in.
5
+ */
6
+ export type AccessLevel = 'everyone' | 'guests' | 'signedIn';
7
+ export type SitemapPage = {
8
+ type: 'page';
9
+ id: string;
10
+ title: string;
11
+ path: string;
12
+ access: AccessLevel;
13
+ isDefault: boolean;
14
+ /** The layout it renders inside, by name. */
15
+ layout?: string;
16
+ /** The feature flag it exists under. */
17
+ flag?: ElementFlagGate;
18
+ /** Where somebody it refuses is sent, by page name. */
19
+ redirectTo?: string;
20
+ };
21
+ export type SitemapFolder = {
22
+ type: 'folder';
23
+ id: string;
24
+ title: string;
25
+ path: string;
26
+ children: SitemapEntry[];
27
+ };
28
+ /** A page or a folder of the site, as the sitemap draws it. */
29
+ export type SitemapEntry = SitemapPage | SitemapFolder;
30
+ /** One look per access level, for the cards and the legend alike. */
31
+ export declare const ACCESS_LEVELS: Record<AccessLevel, {
32
+ label: string;
33
+ icon: string;
34
+ accent: string;
35
+ badge: string;
36
+ }>;
@@ -0,0 +1,7 @@
1
+ import { SpaceVersionContents } from '@plitzi/sdk-shared';
2
+ export type PluginListProps = {
3
+ plugins: SpaceVersionContents['plugins'];
4
+ };
5
+ /** Each installed plugin, and whether it can be taken out as code or only as it was built. */
6
+ declare const PluginList: ({ plugins }: PluginListProps) => import('react').JSX.Element;
7
+ export default PluginList;
@@ -0,0 +1,14 @@
1
+ import { Environment } from '@plitzi/sdk-shared';
2
+ export type VersionContentsProps = {
3
+ environment: Environment;
4
+ /** A snapshot's revision; an environment's latest when left out. Meaningless for the draft. */
5
+ revision?: number;
6
+ /** What the list is: "This snapshot will freeze", "production r3 holds". */
7
+ title: string;
8
+ };
9
+ /**
10
+ * What one version of the space holds — the draft a snapshot would freeze, or a snapshot as it was frozen — and what no
11
+ * version holds, because every version shares it. Read from the platform, which is what freezes it.
12
+ */
13
+ declare const VersionContents: ({ environment, revision, title }: VersionContentsProps) => import('react').JSX.Element;
14
+ export default VersionContents;
@@ -0,0 +1,8 @@
1
+ import { SpaceVersionContents } from '@plitzi/sdk-shared';
2
+ /** One line of what a version holds: what it is, and how much of it. */
3
+ export type ContentsRow = {
4
+ label: string;
5
+ value: string;
6
+ };
7
+ /** What a version holds, as the lines the builder shows — the plugins are listed on their own, by name. */
8
+ export declare const contentsRows: (contents: SpaceVersionContents) => ContentsRow[];
@@ -0,0 +1,2 @@
1
+ export { default } from './VersionContents';
2
+ export type { VersionContentsProps } from './VersionContents';
@@ -0,0 +1,8 @@
1
+ import { Environment, SpaceVersionContents } from '@plitzi/sdk-shared';
2
+ /** What one version of the space holds: the draft, or an environment's snapshot — its latest unless one is named. */
3
+ declare const useVersionContents: (environment: Environment, revision?: number) => {
4
+ contents: SpaceVersionContents | undefined;
5
+ loading: boolean;
6
+ error: Error | undefined;
7
+ };
8
+ export default useVersionContents;
@@ -0,0 +1,22 @@
1
+ import { ReactNode } from 'react';
2
+ export type ViewPageProps = {
3
+ /** Where "Back" goes — a form inside a view: the list it was opened from. */
4
+ onBack?: () => void;
5
+ backLabel?: string;
6
+ /** The thing being edited. A list needs none: the tab above already names it. */
7
+ title?: ReactNode;
8
+ /** What this view is for, in a sentence. */
9
+ description?: ReactNode;
10
+ /** The view's own commands — its primary action last, at the right edge. */
11
+ actions?: ReactNode;
12
+ /** Scroll inside the page, or leave it to a child that pins its own footer. */
13
+ scroll?: boolean;
14
+ className?: string;
15
+ children?: ReactNode;
16
+ };
17
+ /**
18
+ * One page of a view that replaces the canvas — Server, Settings: the same column, the same header, the same rhythm,
19
+ * whichever subject is open, so moving between tabs moves nothing but the content.
20
+ */
21
+ declare const ViewPage: ({ onBack, backLabel, title, description, actions, scroll, className, children }: ViewPageProps) => import('react').JSX.Element;
22
+ export default ViewPage;
@@ -0,0 +1,3 @@
1
+ import { default as ViewPage } from './ViewPage';
2
+ export * from './ViewPage';
3
+ export default ViewPage;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ export type ViewSectionProps = {
3
+ title: ReactNode;
4
+ /** Commands that act on this section alone. */
5
+ actions?: ReactNode;
6
+ children?: ReactNode;
7
+ };
8
+ /** One part of a view's page, under a small label — never a second page title. */
9
+ declare const ViewSection: ({ title, actions, children }: ViewSectionProps) => import('react').JSX.Element;
10
+ export default ViewSection;
@@ -0,0 +1,3 @@
1
+ import { default as ViewSection } from './ViewSection';
2
+ export * from './ViewSection';
3
+ export default ViewSection;
@@ -1,6 +1,15 @@
1
1
  import { PopupInstance } from '@plitzi/plitzi-ui/components';
2
- export declare const getPopups: ({ activeIds }: {
2
+ /**
3
+ * The entries of the sidebar that REPLACE the canvas instead of opening beside it. `AppContainer` draws them; here they
4
+ * are only an icon, and alone on the side while open.
5
+ */
6
+ export declare const FULL_VIEW_IDS: readonly ["server", "settings"];
7
+ export type FullViewId = (typeof FULL_VIEW_IDS)[number];
8
+ export declare const isFullViewId: (id: string | undefined) => id is FullViewId;
9
+ export declare const getPopups: ({ activeIds, platformFlags }: {
3
10
  activeIds?: string[];
11
+ /** The editor's own feature flags, as the platform resolved them for whoever opened it. */
12
+ platformFlags?: Record<string, boolean>;
4
13
  }) => {
5
14
  left: PopupInstance[];
6
15
  right: PopupInstance[];
@@ -0,0 +1,7 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ /**
3
+ * Whether the pages are seen as their map instead of the canvas. Opened from the Pages panel, beside which it is drawn,
4
+ * and remembered like the panels are.
5
+ */
6
+ declare const useSitemapOpen: () => readonly [boolean, Dispatch<SetStateAction<boolean>>];
7
+ export default useSitemapOpen;
@@ -15,7 +15,7 @@ export declare const getClipboardDataProcessed: (clipboardData?: DataTransfer) =
15
15
  };
16
16
  };
17
17
  } | {
18
- dataType: "template";
18
+ dataType: "snippet";
19
19
  data: {
20
20
  payload: {
21
21
  elements: {
@@ -30,9 +30,9 @@ export declare const getClipboardDataProcessed: (clipboardData?: DataTransfer) =
30
30
  /**
31
31
  * A pasted element, named on the spot.
32
32
  *
33
- * `mintId` is positional and local to the payload being assembled: what comes out of here is a throwaway template
34
- * document that `SCHEMA_ADD_TEMPLATE` drops into the real space, and that is where a name colliding with the space
35
- * is renamed. All this has to guarantee is that the paste does not collide with itself.
33
+ * `mintId` is positional and local to the payload being assembled: what comes out of here is a throwaway snippet
34
+ * document that `schemaAddSnippet` drops into the real space, and that is where a name colliding with the space
35
+ * is renamed (`fitSnippet`). All this has to guarantee is that the paste does not collide with itself.
36
36
  */
37
37
  export declare const getElementDefinition: (componentDefinitions: Record<string, ComponentDefinition>, mintId: (type: string) => string, type: string, attributes?: Element["attributes"], styleSelectors?: Element["definition"]["styleSelectors"], parentId?: string) => {
38
38
  definition: Element["definition"];
@@ -2,7 +2,7 @@ import { EventBridgeEvent } from '@plitzi/sdk-shared';
2
2
  export type BuilderProviderProps = {
3
3
  children: React.ReactNode;
4
4
  baseElementId: string;
5
- mode?: 'normal' | 'template' | 'segment';
5
+ mode?: 'normal' | 'snippet';
6
6
  schemaName?: string;
7
7
  onHandler?: (event: EventBridgeEvent, data: unknown[]) => void;
8
8
  onBaseElementChange?: (baseElementId: string) => void;