@plitzi/plitzi-builder 0.30.19

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 (333) hide show
  1. package/CHANGELOG.md +2862 -0
  2. package/README.md +3 -0
  3. package/dist/App.d.ts +13 -0
  4. package/dist/config/index.d.ts +6 -0
  5. package/dist/index.d.ts +38 -0
  6. package/dist/index.html +82 -0
  7. package/dist/modules/AI/AiChat.d.ts +2 -0
  8. package/dist/modules/AI/AiChatPreview.d.ts +2 -0
  9. package/dist/modules/AI/components/AiChatHeader.d.ts +16 -0
  10. package/dist/modules/AI/components/AiProviderSettings/AiProviderSettings.d.ts +10 -0
  11. package/dist/modules/AI/components/Chat/Chat.d.ts +11 -0
  12. package/dist/modules/AI/components/Chat/LiveEntry.d.ts +8 -0
  13. package/dist/modules/AI/components/Chat/TimelineDot.d.ts +6 -0
  14. package/dist/modules/AI/components/Chat/index.d.ts +2 -0
  15. package/dist/modules/AI/components/ChatInput/AttachmentThumbnail.d.ts +7 -0
  16. package/dist/modules/AI/components/ChatInput/ChatInput.d.ts +14 -0
  17. package/dist/modules/AI/components/ChatInput/index.d.ts +2 -0
  18. package/dist/modules/AI/components/ChatMessage/ActionButtons.d.ts +6 -0
  19. package/dist/modules/AI/components/ChatMessage/ChatMessage.d.ts +3 -0
  20. package/dist/modules/AI/components/ChatMessage/ThinkingBlock.d.ts +6 -0
  21. package/dist/modules/AI/components/ChatMessage/components/AITemplatePreview/AITemplateHeader.d.ts +9 -0
  22. package/dist/modules/AI/components/ChatMessage/components/AITemplatePreview/AITemplatePreview.d.ts +8 -0
  23. package/dist/modules/AI/components/ChatMessage/components/AITemplatePreview/index.d.ts +3 -0
  24. package/dist/modules/AI/components/ChatMessage/components/SdkElementPreview/SdkElementPreview.d.ts +5 -0
  25. package/dist/modules/AI/components/ChatMessage/components/SdkElementPreview/index.d.ts +3 -0
  26. package/dist/modules/AI/components/ChatMessage/index.d.ts +1 -0
  27. package/dist/modules/AI/components/ToolActivity.d.ts +5 -0
  28. package/dist/modules/AI/components/ToolCall.d.ts +3 -0
  29. package/dist/modules/AI/components/ToolCallGroup.d.ts +7 -0
  30. package/dist/modules/AI/components/VoiceVisualizer/VoiceVisualizer.d.ts +18 -0
  31. package/dist/modules/AI/components/VoiceVisualizer/helpers/drawByBlob.d.ts +11 -0
  32. package/dist/modules/AI/components/VoiceVisualizer/helpers/drawByLiveStream.d.ts +20 -0
  33. package/dist/modules/AI/components/VoiceVisualizer/helpers/getBarsData.d.ts +9 -0
  34. package/dist/modules/AI/components/VoiceVisualizer/helpers/index.d.ts +7 -0
  35. package/dist/modules/AI/components/VoiceVisualizer/helpers/initialCanvasSetup.d.ts +9 -0
  36. package/dist/modules/AI/components/VoiceVisualizer/helpers/paintLine.d.ts +9 -0
  37. package/dist/modules/AI/components/VoiceVisualizer/helpers/paintLineFromCenterToRight.d.ts +8 -0
  38. package/dist/modules/AI/components/VoiceVisualizer/index.d.ts +2 -0
  39. package/dist/modules/AI/helpers/getRootNode.d.ts +9 -0
  40. package/dist/modules/AI/hooks/useAiChat.d.ts +15 -0
  41. package/dist/modules/AI/hooks/useAiProviderSettings.d.ts +9 -0
  42. package/dist/modules/AI/hooks/useAiTools.d.ts +3 -0
  43. package/dist/modules/AI/hooks/useMediaRecorder.d.ts +18 -0
  44. package/dist/modules/AI/hooks/useVoice.d.ts +11 -0
  45. package/dist/modules/AI/index.d.ts +2 -0
  46. package/dist/modules/AI/tools/getBuilderContext.d.ts +13 -0
  47. package/dist/modules/AI/tools/index.d.ts +14 -0
  48. package/dist/modules/AI/tools/stagePreview.d.ts +25 -0
  49. package/dist/modules/AI/types.d.ts +98 -0
  50. package/dist/modules/App/AppContainer/AppContainer.d.ts +5 -0
  51. package/dist/modules/App/AppContainer/containers/ContainerCollections.d.ts +2 -0
  52. package/dist/modules/App/AppContainer/containers/ContainerDefault.d.ts +6 -0
  53. package/dist/modules/App/AppContainer/containers/ContainerIntegrations.d.ts +2 -0
  54. package/dist/modules/App/AppContainer/containers/ContainerMarketplace.d.ts +2 -0
  55. package/dist/modules/App/AppContainer/containers/ContainerSettings.d.ts +2 -0
  56. package/dist/modules/App/AppContainer/containers/ContainerSitemap.d.ts +2 -0
  57. package/dist/modules/App/AppContainer/index.d.ts +3 -0
  58. package/dist/modules/App/AppContext.d.ts +17 -0
  59. package/dist/modules/App/AppMain.d.ts +18 -0
  60. package/dist/modules/App/AppProvider.d.ts +17 -0
  61. package/dist/modules/App/components/AppDirectory/AppDirectory.d.ts +2 -0
  62. package/dist/modules/App/components/AppDirectory/Directory.d.ts +14 -0
  63. package/dist/modules/App/components/AppDirectory/DirectoryHeader.d.ts +6 -0
  64. package/dist/modules/App/components/AppDirectory/DirectoryItem.d.ts +8 -0
  65. package/dist/modules/App/components/AppDirectory/ItemActions.d.ts +11 -0
  66. package/dist/modules/App/components/AppDirectory/index.d.ts +3 -0
  67. package/dist/modules/App/components/AppHeader/AppHeader.d.ts +2 -0
  68. package/dist/modules/App/components/AppHeader/BorderButton.d.ts +2 -0
  69. package/dist/modules/App/components/AppHeader/DisplayModeButtons.d.ts +2 -0
  70. package/dist/modules/App/components/AppHeader/HistoryButtons.d.ts +2 -0
  71. package/dist/modules/App/components/AppHeader/PageHeader.d.ts +2 -0
  72. package/dist/modules/App/components/AppHeader/PreviewModeButtons.d.ts +2 -0
  73. package/dist/modules/App/components/AppHeader/ZoomButtons.d.ts +2 -0
  74. package/dist/modules/App/components/AppHeader/index.d.ts +3 -0
  75. package/dist/modules/App/components/WorkflowDiagram/WorkflowDiagram.d.ts +37 -0
  76. package/dist/modules/App/components/WorkflowDiagram/components/CustomEdge.d.ts +3 -0
  77. package/dist/modules/App/components/WorkflowDiagram/components/CustomNode.d.ts +5 -0
  78. package/dist/modules/App/components/WorkflowDiagram/helpers/schemaToSitemap.d.ts +11 -0
  79. package/dist/modules/App/components/WorkflowDiagram/helpers/sitemapToFlow.d.ts +20 -0
  80. package/dist/modules/App/components/WorkflowDiagram/index.d.ts +3 -0
  81. package/dist/modules/App/helpers/utils.d.ts +8 -0
  82. package/dist/modules/App/models/DeployForm/DeployForm.d.ts +24 -0
  83. package/dist/modules/App/models/DeployForm/InputEnvironment.d.ts +2 -0
  84. package/dist/modules/App/models/DeployForm/index.d.ts +3 -0
  85. package/dist/modules/App/models/LayoutForm.d.ts +16 -0
  86. package/dist/modules/App/models/PageFolderForm.d.ts +18 -0
  87. package/dist/modules/App/models/PageForm.d.ts +18 -0
  88. package/dist/modules/App/models/PublishForm.d.ts +20 -0
  89. package/dist/modules/Builder/Builder.d.ts +10 -0
  90. package/dist/modules/Builder/BuilderHelper.d.ts +44 -0
  91. package/dist/modules/Builder/BuilderPlugin.d.ts +11 -0
  92. package/dist/modules/Builder/BuilderPopup.d.ts +6 -0
  93. package/dist/modules/Builder/BuilderProvider.d.ts +11 -0
  94. package/dist/modules/Builder/Models/TemplateForm.d.ts +16 -0
  95. package/dist/modules/Builder/components/BuilderArea/BuilderArea.d.ts +14 -0
  96. package/dist/modules/Builder/components/BuilderArea/BuilderAreaHeader.d.ts +10 -0
  97. package/dist/modules/Builder/components/BuilderArea/BuilderAreaOverlay.d.ts +11 -0
  98. package/dist/modules/Builder/components/BuilderArea/BuilderAreaTracking.d.ts +12 -0
  99. package/dist/modules/Builder/components/BuilderArea/index.d.ts +3 -0
  100. package/dist/modules/Builder/components/BuilderAreaPreview/BuilderAreaPreview.d.ts +7 -0
  101. package/dist/modules/Builder/components/BuilderAreaPreview/index.d.ts +3 -0
  102. package/dist/modules/Builder/components/BuilderBreadcrumb/BuilderBreadcrumb.d.ts +5 -0
  103. package/dist/modules/Builder/components/BuilderBreadcrumb/BuilderBreadcrumbItem.d.ts +12 -0
  104. package/dist/modules/Builder/components/BuilderBreadcrumb/ItemIcon.d.ts +4 -0
  105. package/dist/modules/Builder/components/BuilderBreadcrumb/index.d.ts +3 -0
  106. package/dist/modules/Builder/components/BuilderCollaborator/BuilderCollaboratorArea.d.ts +13 -0
  107. package/dist/modules/Builder/components/BuilderCollaborator/BuilderCollaboratorCursor.d.ts +9 -0
  108. package/dist/modules/Builder/components/BuilderCollaborator/BuilderCollaboratorHeaderUser.d.ts +9 -0
  109. package/dist/modules/Builder/components/BuilderContextMenu/BuilderContextMenu.d.ts +8 -0
  110. package/dist/modules/Builder/components/BuilderContextMenu/BuilderContextMenuItem.d.ts +11 -0
  111. package/dist/modules/Builder/components/BuilderContextMenu/BuilderContextSubMenu.d.ts +12 -0
  112. package/dist/modules/Builder/components/BuilderContextMenu/index.d.ts +3 -0
  113. package/dist/modules/Builder/components/BuilderElementTools/BuilderElementTools.d.ts +5 -0
  114. package/dist/modules/Builder/components/BuilderElementTools/ElementDefinitionSettings.d.ts +7 -0
  115. package/dist/modules/Builder/components/BuilderElementTools/ElementSettings.d.ts +8 -0
  116. package/dist/modules/Builder/components/BuilderElementTools/index.d.ts +3 -0
  117. package/dist/modules/Builder/components/BuilderOverlay/BuilderOverlay.d.ts +16 -0
  118. package/dist/modules/Builder/components/BuilderOverlay/BuilderOverlayDistance.d.ts +11 -0
  119. package/dist/modules/Builder/components/BuilderOverlay/BuilderOverlayDrag.d.ts +10 -0
  120. package/dist/modules/Builder/components/BuilderOverlay/BuilderOverlayHelper.d.ts +72 -0
  121. package/dist/modules/Builder/components/BuilderOverlay/BuilderOverlayHelper.test.d.ts +1 -0
  122. package/dist/modules/Builder/components/BuilderOverlay/OverlayButton.d.ts +9 -0
  123. package/dist/modules/Builder/components/BuilderOverlay/OverlayButtonContainer.d.ts +13 -0
  124. package/dist/modules/Builder/components/BuilderOverlay/OverlayButtonResize.d.ts +20 -0
  125. package/dist/modules/Builder/components/BuilderOverlay/OverlayNormal.d.ts +20 -0
  126. package/dist/modules/Builder/components/BuilderOverlay/OverlaySpacing.d.ts +11 -0
  127. package/dist/modules/Builder/components/BuilderOverlay/index.d.ts +3 -0
  128. package/dist/modules/Builder/components/BuilderTree/BuilderTree.d.ts +2 -0
  129. package/dist/modules/Builder/components/BuilderTree/BuilderTreeNodeControls.d.ts +7 -0
  130. package/dist/modules/Builder/components/BuilderTree/index.d.ts +3 -0
  131. package/dist/modules/Builder/components/BuilderTree/utils.d.ts +10 -0
  132. package/dist/modules/Builder/components/ToolsList/ToolsList.d.ts +6 -0
  133. package/dist/modules/Builder/components/ToolsList/ToolsListItem.d.ts +8 -0
  134. package/dist/modules/Builder/components/ToolsList/index.d.ts +3 -0
  135. package/dist/modules/Builder/hooks/useNormalizedCursor.d.ts +25 -0
  136. package/dist/modules/Builder/index.d.ts +3 -0
  137. package/dist/modules/Collection/CollectionContextProvider.d.ts +8 -0
  138. package/dist/modules/Collection/Collections.d.ts +2 -0
  139. package/dist/modules/Collection/Models/CollectionFieldForm.d.ts +41 -0
  140. package/dist/modules/Collection/Models/CollectionForm.d.ts +13 -0
  141. package/dist/modules/Collection/Models/CollectionRecordForm/CollectionRecordForm.d.ts +14 -0
  142. package/dist/modules/Collection/Models/CollectionRecordForm/CollectionRecordFormHelper.d.ts +19 -0
  143. package/dist/modules/Collection/Models/CollectionRecordForm/index.d.ts +3 -0
  144. package/dist/modules/Collection/components/Collection/Collection.d.ts +9 -0
  145. package/dist/modules/Collection/components/Collection/index.d.ts +3 -0
  146. package/dist/modules/Collection/components/CollectionContainer/CollectionContainer.d.ts +10 -0
  147. package/dist/modules/Collection/components/CollectionContainer/CollectionRecord.d.ts +13 -0
  148. package/dist/modules/Collection/components/CollectionContainer/CollectionRecords.d.ts +10 -0
  149. package/dist/modules/Collection/components/CollectionContainer/index.d.ts +3 -0
  150. package/dist/modules/Collection/components/CollectionField.d.ts +11 -0
  151. package/dist/modules/Collection/index.d.ts +1 -0
  152. package/dist/modules/DataSource/BindingSelected.d.ts +18 -0
  153. package/dist/modules/DataSource/DataSourceBinding.d.ts +9 -0
  154. package/dist/modules/DataSource/helpers/transformerString.d.ts +6 -0
  155. package/dist/modules/DataSource/helpers/whenString.d.ts +3 -0
  156. package/dist/modules/DataSource/models/BindingForm/BindingForm.d.ts +30 -0
  157. package/dist/modules/DataSource/models/BindingForm/index.d.ts +3 -0
  158. package/dist/modules/DataSource/models/BindingForm/steps/StepPreview.d.ts +8 -0
  159. package/dist/modules/DataSource/models/BindingForm/steps/StepSettings.d.ts +11 -0
  160. package/dist/modules/DataSource/models/BindingForm/steps/StepSource.d.ts +6 -0
  161. package/dist/modules/DataSource/models/BindingForm/steps/StepTransformers/StepTransformers.d.ts +6 -0
  162. package/dist/modules/DataSource/models/BindingForm/steps/StepTransformers/TransformerParam.d.ts +16 -0
  163. package/dist/modules/DataSource/models/BindingForm/steps/StepTransformers/index.d.ts +3 -0
  164. package/dist/modules/DataSource/models/BindingForm/steps/StepWhen.d.ts +6 -0
  165. package/dist/modules/Elements/Element.d.ts +6 -0
  166. package/dist/modules/Elements/ElementCategory.d.ts +7 -0
  167. package/dist/modules/Elements/ElementHelper.d.ts +5 -0
  168. package/dist/modules/Elements/Elements.d.ts +2 -0
  169. package/dist/modules/Elements/hooks/useDragElement.d.ts +13 -0
  170. package/dist/modules/Elements/index.d.ts +3 -0
  171. package/dist/modules/Integrations/Integrations.d.ts +1 -0
  172. package/dist/modules/Interactions/Interactions.d.ts +9 -0
  173. package/dist/modules/Interactions/InteractionsBuilderContextProvider.d.ts +7 -0
  174. package/dist/modules/Interactions/components/Workflow/Workflow.d.ts +11 -0
  175. package/dist/modules/Interactions/components/Workflow/WorkflowAddNode.d.ts +10 -0
  176. package/dist/modules/Interactions/components/Workflow/WorkflowContext.d.ts +21 -0
  177. package/dist/modules/Interactions/components/Workflow/WorkflowContextProvider.d.ts +12 -0
  178. package/dist/modules/Interactions/components/Workflow/WorkflowFlow.d.ts +9 -0
  179. package/dist/modules/Interactions/components/Workflow/WorkflowHeader.d.ts +14 -0
  180. package/dist/modules/Interactions/components/Workflow/WorkflowNode/NodeBody.d.ts +15 -0
  181. package/dist/modules/Interactions/components/Workflow/WorkflowNode/NodeBodyParam.d.ts +22 -0
  182. package/dist/modules/Interactions/components/Workflow/WorkflowNode/NodeFooter.d.ts +5 -0
  183. package/dist/modules/Interactions/components/Workflow/WorkflowNode/NodeHeader.d.ts +21 -0
  184. package/dist/modules/Interactions/components/Workflow/WorkflowNode/NodePreview.d.ts +8 -0
  185. package/dist/modules/Interactions/components/Workflow/WorkflowNode/NodeWhen.d.ts +10 -0
  186. package/dist/modules/Interactions/components/Workflow/WorkflowNode/ParamBinding.d.ts +10 -0
  187. package/dist/modules/Interactions/components/Workflow/WorkflowNode/WorkflowNode.d.ts +22 -0
  188. package/dist/modules/Interactions/components/Workflow/WorkflowNode/index.d.ts +3 -0
  189. package/dist/modules/Interactions/components/Workflow/index.d.ts +3 -0
  190. package/dist/modules/Interactions/sources/CollectionSource/CollectionInteractions.d.ts +6 -0
  191. package/dist/modules/Interactions/sources/PageSource/PageInteractions.d.ts +7 -0
  192. package/dist/modules/Marketplace/Marketplace.d.ts +2 -0
  193. package/dist/modules/Marketplace/components/MarketNews/MarketNews.d.ts +2 -0
  194. package/dist/modules/Marketplace/components/MarketNews/index.d.ts +3 -0
  195. package/dist/modules/Marketplace/components/MarketPlugins/MarketPlugins.d.ts +2 -0
  196. package/dist/modules/Marketplace/components/MarketPlugins/PluginDetails/DetailsContent.d.ts +2 -0
  197. package/dist/modules/Marketplace/components/MarketPlugins/PluginDetails/DetailsSidebar.d.ts +19 -0
  198. package/dist/modules/Marketplace/components/MarketPlugins/PluginDetails/PluginDetails.d.ts +23 -0
  199. package/dist/modules/Marketplace/components/MarketPlugins/PluginDetails/index.d.ts +3 -0
  200. package/dist/modules/Marketplace/components/MarketPlugins/PluginItem.d.ts +14 -0
  201. package/dist/modules/Marketplace/components/MarketPlugins/PluginList.d.ts +7 -0
  202. package/dist/modules/Marketplace/components/MarketPlugins/PluginsFilter/FilterCategory.d.ts +9 -0
  203. package/dist/modules/Marketplace/components/MarketPlugins/PluginsFilter/PluginsFilter.d.ts +13 -0
  204. package/dist/modules/Marketplace/components/MarketPlugins/PluginsFilter/index.d.ts +3 -0
  205. package/dist/modules/Marketplace/components/MarketPlugins/index.d.ts +3 -0
  206. package/dist/modules/Marketplace/components/MarketSidebar.d.ts +6 -0
  207. package/dist/modules/Marketplace/components/MarketSidebarItem.d.ts +9 -0
  208. package/dist/modules/Marketplace/components/MarketTemplates/MarketTemplates.d.ts +2 -0
  209. package/dist/modules/Marketplace/components/MarketTemplates/index.d.ts +3 -0
  210. package/dist/modules/Marketplace/helpers/PluginHelper.d.ts +2 -0
  211. package/dist/modules/Marketplace/index.d.ts +3 -0
  212. package/dist/modules/Marketplace/types/index.d.ts +44 -0
  213. package/dist/modules/Navigation/NavigationContextProvider.d.ts +7 -0
  214. package/dist/modules/Network/NetworkContextProvider.d.ts +13 -0
  215. package/dist/modules/Network/NetworkSubscriptionsContextProvider.d.ts +8 -0
  216. package/dist/modules/Network/contexts/BuilderSubscriptionsContext.d.ts +11 -0
  217. package/dist/modules/Network/helpers/customFetch.d.ts +12 -0
  218. package/dist/modules/Network/hooks/useGraphQL.d.ts +15 -0
  219. package/dist/modules/Network/hooks/useInfiniteGraphQL.d.ts +18 -0
  220. package/dist/modules/Network/hooks/useSubscriptionsManager.d.ts +21 -0
  221. package/dist/modules/Network/hooks/useWebsocket.d.ts +20 -0
  222. package/dist/modules/OpenAI_Deprecated/OpenAIChat.d.ts +2 -0
  223. package/dist/modules/OpenAI_Deprecated/components/Chat/Chat.d.ts +8 -0
  224. package/dist/modules/OpenAI_Deprecated/components/Chat/ChatMessage.d.ts +8 -0
  225. package/dist/modules/OpenAI_Deprecated/components/Chat/Message/Message.d.ts +9 -0
  226. package/dist/modules/OpenAI_Deprecated/components/Chat/Message/index.d.ts +3 -0
  227. package/dist/modules/OpenAI_Deprecated/components/Chat/Message/modes/MessageHtml.d.ts +5 -0
  228. package/dist/modules/OpenAI_Deprecated/components/Chat/Message/modes/MessageText.d.ts +7 -0
  229. package/dist/modules/OpenAI_Deprecated/components/Chat/index.d.ts +3 -0
  230. package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/VoiceVisualizer.d.ts +18 -0
  231. package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/helpers/drawByBlob.d.ts +11 -0
  232. package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/helpers/drawByLiveStream.d.ts +20 -0
  233. package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/helpers/getBarsData.d.ts +9 -0
  234. package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/helpers/index.d.ts +7 -0
  235. package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/helpers/initialCanvasSetup.d.ts +9 -0
  236. package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/helpers/paintLine.d.ts +9 -0
  237. package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/helpers/paintLineFromCenterToRight.d.ts +8 -0
  238. package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/index.d.ts +3 -0
  239. package/dist/modules/OpenAI_Deprecated/hooks/useMediaRecorder.d.ts +18 -0
  240. package/dist/modules/OpenAI_Deprecated/hooks/useWebWorker.d.ts +10 -0
  241. package/dist/modules/OpenAI_Deprecated/index.d.ts +1 -0
  242. package/dist/modules/OpenAI_Deprecated/types/openAI.d.ts +20 -0
  243. package/dist/modules/Plugins/PluginsContextProvider.d.ts +8 -0
  244. package/dist/modules/Plugins/PluginsReducer.d.ts +25 -0
  245. package/dist/modules/Plugins/index.d.ts +1 -0
  246. package/dist/modules/Queue/QueueContext.d.ts +25 -0
  247. package/dist/modules/Queue/QueueContextProvider.d.ts +7 -0
  248. package/dist/modules/Queue/QueueStatusContext.d.ts +3 -0
  249. package/dist/modules/Queue/hooks/useQueueManager.d.ts +19 -0
  250. package/dist/modules/Resources/Models/PluginSettingsForm.d.ts +8 -0
  251. package/dist/modules/Resources/Models/ResourceCdnForm.d.ts +30 -0
  252. package/dist/modules/Resources/Models/ResourceDirectoryForm.d.ts +15 -0
  253. package/dist/modules/Resources/Resources.d.ts +2 -0
  254. package/dist/modules/Resources/components/Resource/Resource.d.ts +15 -0
  255. package/dist/modules/Resources/components/Resource/ResourceLoading.d.ts +2 -0
  256. package/dist/modules/Resources/components/Resource/ResourceName.d.ts +6 -0
  257. package/dist/modules/Resources/components/Resource/ResourceRemoveButton.d.ts +6 -0
  258. package/dist/modules/Resources/components/Resource/index.d.ts +3 -0
  259. package/dist/modules/Resources/components/Resource/subTypes/ResourceFile/ResourceFile.d.ts +15 -0
  260. package/dist/modules/Resources/components/Resource/subTypes/ResourceFile/index.d.ts +3 -0
  261. package/dist/modules/Resources/components/Resource/subTypes/ResourceImage/ResourceImage.d.ts +14 -0
  262. package/dist/modules/Resources/components/Resource/subTypes/ResourceImage/index.d.ts +3 -0
  263. package/dist/modules/Resources/components/Resource/subTypes/ResourcePlugin/PluginContent.d.ts +13 -0
  264. package/dist/modules/Resources/components/Resource/subTypes/ResourcePlugin/ResourcePlugin.d.ts +14 -0
  265. package/dist/modules/Resources/components/Resource/subTypes/ResourceTemplate/ResourceTemplate.d.ts +13 -0
  266. package/dist/modules/Resources/components/Resource/subTypes/ResourceTemplate/TemplateContent.d.ts +8 -0
  267. package/dist/modules/Resources/components/Resource/subTypes/ResourceTemplate/index.d.ts +3 -0
  268. package/dist/modules/Resources/components/Resource/subTypes/ResourceVideo/ResourceVideo.d.ts +14 -0
  269. package/dist/modules/Resources/components/Resource/subTypes/ResourceVideo/index.d.ts +3 -0
  270. package/dist/modules/Resources/components/ResourceManager/ResourceContent/ResourceContent.d.ts +12 -0
  271. package/dist/modules/Resources/components/ResourceManager/ResourceContent/contents/ContentPlugin.d.ts +13 -0
  272. package/dist/modules/Resources/components/ResourceManager/ResourceContent/index.d.ts +3 -0
  273. package/dist/modules/Resources/components/ResourceManager/ResourceManager.d.ts +10 -0
  274. package/dist/modules/Resources/components/ResourceManager/ResourceUploadStatus.d.ts +9 -0
  275. package/dist/modules/Resources/components/ResourceManager/TemporalResource.d.ts +15 -0
  276. package/dist/modules/Resources/components/ResourceManager/helpers/formatBytes.d.ts +2 -0
  277. package/dist/modules/Resources/components/ResourceManager/helpers/getPluginManifest.d.ts +3 -0
  278. package/dist/modules/Resources/components/ResourceManager/index.d.ts +3 -0
  279. package/dist/modules/Resources/components/ResourcesCdn/ResourcesCdn.d.ts +12 -0
  280. package/dist/modules/Resources/components/ResourcesCdn/index.d.ts +3 -0
  281. package/dist/modules/Resources/components/ResourcesList/ListHelper.d.ts +5 -0
  282. package/dist/modules/Resources/components/ResourcesList/ResourceDirectory.d.ts +15 -0
  283. package/dist/modules/Resources/components/ResourcesList/ResourcesList.d.ts +18 -0
  284. package/dist/modules/Resources/components/ResourcesList/ResourcesListProvider.d.ts +20 -0
  285. package/dist/modules/Resources/components/ResourcesList/index.d.ts +3 -0
  286. package/dist/modules/Resources/index.d.ts +3 -0
  287. package/dist/modules/Schema/SchemaContextProvider.d.ts +9 -0
  288. package/dist/modules/Segments/Segment.d.ts +11 -0
  289. package/dist/modules/Segments/Segments.d.ts +2 -0
  290. package/dist/modules/Segments/SegmentsContextProvider.d.ts +7 -0
  291. package/dist/modules/Segments/SegmentsReducer.d.ts +128 -0
  292. package/dist/modules/Segments/index.d.ts +3 -0
  293. package/dist/modules/Segments/models/PublishForm.d.ts +19 -0
  294. package/dist/modules/Segments/models/SegmentForm.d.ts +17 -0
  295. package/dist/modules/Space/Models/SpaceCredentialForm.d.ts +40 -0
  296. package/dist/modules/Space/SpaceContainer.d.ts +6 -0
  297. package/dist/modules/Space/SpaceContainerInternal.d.ts +6 -0
  298. package/dist/modules/Space/SpaceContext.d.ts +3 -0
  299. package/dist/modules/Space/SpaceContextProvider.d.ts +6 -0
  300. package/dist/modules/Space/components/SpaceCredentialSelectorModal/ModalBody.d.ts +11 -0
  301. package/dist/modules/Space/components/SpaceCredentialSelectorModal/SpaceCredentialSelectorModal.d.ts +11 -0
  302. package/dist/modules/Space/components/SpaceCredentialSelectorModal/SpaceCredentialsEmpty.d.ts +6 -0
  303. package/dist/modules/Space/components/SpaceCredentialSelectorModal/index.d.ts +3 -0
  304. package/dist/modules/Space/components/SpaceCredentials/SpaceCredential.d.ts +19 -0
  305. package/dist/modules/Space/components/SpaceCredentials/SpaceCredentials.d.ts +10 -0
  306. package/dist/modules/Space/components/SpaceCredentials/index.d.ts +3 -0
  307. package/dist/modules/StateManager/StateManager.d.ts +5 -0
  308. package/dist/modules/Style/StyleContextProvider.d.ts +6 -0
  309. package/dist/modules/Transformers/Transform.d.ts +2 -0
  310. package/dist/modules/Transformers/TransformActions.d.ts +14 -0
  311. package/dist/modules/Transformers/TransformLayout.d.ts +9 -0
  312. package/dist/modules/Transformers/TransformPreview.d.ts +13 -0
  313. package/dist/modules/Undoable/UndoableContext.d.ts +28 -0
  314. package/dist/modules/Undoable/UndoableContextProducer.d.ts +6 -0
  315. package/dist/modules/Undoable/UndoableReducer.d.ts +23 -0
  316. package/dist/modules/Variables/Variables.d.ts +2 -0
  317. package/dist/modules/Variables/index.d.ts +3 -0
  318. package/dist/modules/index.d.ts +1 -0
  319. package/dist/patches/useSyncExternalStoreWithSelector.d.ts +4 -0
  320. package/dist/plitzi-builder-dev-vendor.js +15564 -0
  321. package/dist/plitzi-builder-dev-vendor.js.gz +0 -0
  322. package/dist/plitzi-builder-dev-vendor.js.map +1 -0
  323. package/dist/plitzi-builder-dev-vendor.js.map.gz +0 -0
  324. package/dist/plitzi-builder-vendor.js +1 -0
  325. package/dist/plitzi-builder-vendor.js.gz +0 -0
  326. package/dist/plitzi-builder.css +3 -0
  327. package/dist/plitzi-builder.css.gz +0 -0
  328. package/dist/plitzi-builder.js +4186 -0
  329. package/dist/plitzi-builder.js.gz +0 -0
  330. package/dist/robots.txt +2 -0
  331. package/dist/serviceWorker.d.ts +2 -0
  332. package/dist/vendor-entry.d.ts +17 -0
  333. package/package.json +140 -0
@@ -0,0 +1,15 @@
1
+ import { ResourceType } from '@plitzi/sdk-shared';
2
+ import { MouseEvent } from 'react';
3
+ export type ResourceFileProps = {
4
+ className?: string;
5
+ id: string;
6
+ title?: string;
7
+ type: ResourceType;
8
+ directoryName?: string;
9
+ removing?: boolean;
10
+ isLoading?: boolean;
11
+ onClick?: () => void;
12
+ onRemove?: (e: MouseEvent) => void;
13
+ };
14
+ declare const ResourceFile: ({ className, id, title, type, directoryName, removing, isLoading, onClick, onRemove }: ResourceFileProps) => import("react/jsx-runtime").JSX.Element;
15
+ export default ResourceFile;
@@ -0,0 +1,3 @@
1
+ import { default as ResourceFile } from './ResourceFile';
2
+ export * from './ResourceFile';
3
+ export default ResourceFile;
@@ -0,0 +1,14 @@
1
+ import { MouseEvent } from 'react';
2
+ export type ResourceImageProps = {
3
+ className?: string;
4
+ id: string;
5
+ src: string;
6
+ title?: string;
7
+ removing?: boolean;
8
+ directoryName?: string;
9
+ isLoading?: boolean;
10
+ onClick?: () => void;
11
+ onRemove?: (e: MouseEvent) => void;
12
+ };
13
+ declare const ResourceImage: ({ className, id, title, src, removing, directoryName, isLoading, onClick, onRemove }: ResourceImageProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default ResourceImage;
@@ -0,0 +1,3 @@
1
+ import { default as ResourceImage } from './ResourceImage';
2
+ export * from './ResourceImage';
3
+ export default ResourceImage;
@@ -0,0 +1,13 @@
1
+ export type PluginContentProps = {
2
+ className?: string;
3
+ backgroundColor?: string;
4
+ icon?: string;
5
+ name?: string;
6
+ version?: string;
7
+ author?: string;
8
+ size?: number;
9
+ components?: string;
10
+ isUploaded?: boolean;
11
+ };
12
+ declare const PluginContent: ({ className, backgroundColor, icon, name, version, author, size, components, isUploaded }: PluginContentProps) => import("react/jsx-runtime").JSX.Element;
13
+ export default PluginContent;
@@ -0,0 +1,14 @@
1
+ import { PluginManifest } from '@plitzi/sdk-shared';
2
+ import { MouseEvent } from 'react';
3
+ export type ResourcePluginProps = {
4
+ className?: string;
5
+ id: string;
6
+ src: string;
7
+ metadata?: PluginManifest;
8
+ removing?: boolean;
9
+ isLoading?: boolean;
10
+ onClick?: () => void;
11
+ onRemove?: (e: MouseEvent) => void;
12
+ };
13
+ declare const ResourcePlugin: ({ className, metadata, removing, isLoading, onClick, onRemove }: ResourcePluginProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default ResourcePlugin;
@@ -0,0 +1,13 @@
1
+ import { MouseEvent } from 'react';
2
+ export type ResourceTemplateProps = {
3
+ className?: string;
4
+ id: string;
5
+ src: string;
6
+ title?: string;
7
+ removing?: boolean;
8
+ isLoading?: boolean;
9
+ onClick?: () => void;
10
+ onRemove?: (e: MouseEvent) => void;
11
+ };
12
+ declare const ResourceTemplate: ({ className, title, src, removing, isLoading, onClick, onRemove }: ResourceTemplateProps) => import("react/jsx-runtime").JSX.Element | undefined;
13
+ export default ResourceTemplate;
@@ -0,0 +1,8 @@
1
+ import { Schema, Style } from '@plitzi/sdk-shared';
2
+ export type TemplateContentProps = {
3
+ baseElementId: string;
4
+ schema: Schema;
5
+ style: Style;
6
+ };
7
+ declare const TemplateContent: ({ baseElementId, schema, style }: TemplateContentProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default TemplateContent;
@@ -0,0 +1,3 @@
1
+ import { default as ResourceTemplate } from './ResourceTemplate';
2
+ export * from './ResourceTemplate';
3
+ export default ResourceTemplate;
@@ -0,0 +1,14 @@
1
+ import { MouseEvent } from 'react';
2
+ export type ResourceVideoProps = {
3
+ className?: string;
4
+ id: string;
5
+ src: string;
6
+ title?: string;
7
+ removing?: boolean;
8
+ directoryName?: string;
9
+ isLoading?: boolean;
10
+ onClick?: () => void;
11
+ onRemove?: (e: MouseEvent) => void;
12
+ };
13
+ declare const ResourceVideo: ({ className, id, title, src, removing, directoryName, isLoading, onClick, onRemove }: ResourceVideoProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default ResourceVideo;
@@ -0,0 +1,3 @@
1
+ import { default as ResourceVideo } from './ResourceVideo';
2
+ export * from './ResourceVideo';
3
+ export default ResourceVideo;
@@ -0,0 +1,12 @@
1
+ import { PluginManifest, ResourceType } from '@plitzi/sdk-shared';
2
+ export type ResourceContentProps = {
3
+ className?: string;
4
+ src?: string;
5
+ type?: ResourceType;
6
+ title?: string;
7
+ metadata?: PluginManifest;
8
+ size?: number;
9
+ isUploaded?: boolean;
10
+ };
11
+ declare const ResourceContent: ({ className, src, type, title, metadata, size, isUploaded }: ResourceContentProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default ResourceContent;
@@ -0,0 +1,13 @@
1
+ export type ContentPluginProps = {
2
+ className?: string;
3
+ backgroundColor?: string;
4
+ icon?: string;
5
+ name?: string;
6
+ version?: string;
7
+ author?: string;
8
+ size?: number;
9
+ components?: string;
10
+ isUploaded?: boolean;
11
+ };
12
+ declare const ContentPlugin: ({ className, backgroundColor, icon, name, version, author, size, components, isUploaded }: ContentPluginProps) => import("react/jsx-runtime").JSX.Element;
13
+ export default ContentPlugin;
@@ -0,0 +1,3 @@
1
+ import { default as ResourceContent } from './ResourceContent';
2
+ export * from './ResourceContent';
3
+ export default ResourceContent;
@@ -0,0 +1,10 @@
1
+ import { ResourceFile, ResourceWithFile } from '@plitzi/sdk-shared';
2
+ export type ResourceManagerProps = {
3
+ className?: string;
4
+ cdnIdentifier?: string;
5
+ uploadTypes?: string[];
6
+ onUploaded?: (resource: ResourceWithFile) => void;
7
+ onUploadAdded?: (file: ResourceFile) => boolean;
8
+ };
9
+ declare const ResourceManager: ({ className, cdnIdentifier, uploadTypes, onUploaded, onUploadAdded }: ResourceManagerProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default ResourceManager;
@@ -0,0 +1,9 @@
1
+ export type ResourceUploadStatusProps = {
2
+ processing?: boolean;
3
+ progressUpload?: number;
4
+ isUploaded?: boolean;
5
+ onUpload?: () => void;
6
+ onCancel?: () => void;
7
+ };
8
+ declare const ResourceUploadStatus: ({ processing, progressUpload, isUploaded, onUpload, onCancel }: ResourceUploadStatusProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default ResourceUploadStatus;
@@ -0,0 +1,15 @@
1
+ import { PluginManifest, ResourceFile, ResourceType as TResourceType, ResourceWithFile } from '@plitzi/sdk-shared';
2
+ export type TemporalResourceProps = {
3
+ className?: string;
4
+ cdnIdentifier?: string;
5
+ id?: string;
6
+ file?: ResourceFile;
7
+ type?: TResourceType;
8
+ title?: string;
9
+ metadata?: PluginManifest;
10
+ onUploaded?: (resource: ResourceWithFile) => void;
11
+ onUploadCancel?: (file: File) => void;
12
+ onError?: (e: Error) => void;
13
+ };
14
+ declare const TemporalResource: ({ cdnIdentifier, id, type, title, className, file, metadata, onUploaded, onError: onErrorProp, onUploadCancel }: TemporalResourceProps) => import("react/jsx-runtime").JSX.Element;
15
+ export default TemporalResource;
@@ -0,0 +1,2 @@
1
+ declare function formatBytes(bytes: number, decimals?: number): string;
2
+ export default formatBytes;
@@ -0,0 +1,3 @@
1
+ import { PluginManifest } from '@plitzi/sdk-shared';
2
+ declare const getPluginManifest: (file: File) => Promise<PluginManifest | undefined>;
3
+ export default getPluginManifest;
@@ -0,0 +1,3 @@
1
+ import { default as ResourceManager } from './ResourceManager';
2
+ export * from './ResourceManager';
3
+ export default ResourceManager;
@@ -0,0 +1,12 @@
1
+ export type ResourcesCdnProps = {
2
+ identifier: string;
3
+ name: string;
4
+ prefix: string;
5
+ credentialIdentifier?: string;
6
+ isCollapsed?: boolean;
7
+ onCollapse?: (category: string, isCollapsed: boolean) => void;
8
+ onChange?: (identifier: string) => void;
9
+ onRemove?: (identifier: string) => void;
10
+ };
11
+ declare const ResourcesCdn: ({ identifier, name, prefix, credentialIdentifier, isCollapsed, onCollapse, onChange, onRemove }: ResourcesCdnProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default ResourcesCdn;
@@ -0,0 +1,3 @@
1
+ import { default as ResourcesCdn } from './ResourcesCdn';
2
+ export * from './ResourcesCdn';
3
+ export default ResourcesCdn;
@@ -0,0 +1,5 @@
1
+ import { ResourceDirectory } from './ResourcesList';
2
+ import { Resource } from '@plitzi/sdk-shared';
3
+ declare const sortDirectories: (a: ResourceDirectory, b: ResourceDirectory) => number;
4
+ declare const getDirectories: (prefix?: string, items?: Resource[]) => ResourceDirectory[];
5
+ export { getDirectories, sortDirectories };
@@ -0,0 +1,15 @@
1
+ import { Resource as TResource } from '@plitzi/sdk-shared';
2
+ export type ResourcesDirectoryProps = {
3
+ className?: string;
4
+ name?: string;
5
+ items: TResource[];
6
+ isDefault?: boolean;
7
+ canDrop?: boolean;
8
+ canRemove?: boolean;
9
+ cdnIdentifier: string;
10
+ onChange?: () => void;
11
+ onRemove?: (item: TResource) => void;
12
+ onRemoveDirectory?: (name?: string) => void;
13
+ };
14
+ declare const ResourceDirectory: ({ className, name, items, isDefault, canRemove, canDrop, cdnIdentifier, onChange, onRemove, onRemoveDirectory }: ResourcesDirectoryProps) => import("react/jsx-runtime").JSX.Element;
15
+ export default ResourceDirectory;
@@ -0,0 +1,18 @@
1
+ import { Resource as TResource } from '@plitzi/sdk-shared';
2
+ export type ResourcesListProps = {
3
+ className?: string;
4
+ items: TResource[];
5
+ prefix: string;
6
+ cdnIdentifier: string;
7
+ onChange?: () => void;
8
+ onRemove?: (item: TResource) => void;
9
+ };
10
+ export type ResourceDirectory = {
11
+ name: string;
12
+ items: TResource[];
13
+ canDrop: boolean;
14
+ isDefault: boolean;
15
+ canRemove: boolean;
16
+ };
17
+ declare const ResourcesList: ({ className, prefix, items, cdnIdentifier, onChange, onRemove }: ResourcesListProps) => import("react/jsx-runtime").JSX.Element;
18
+ export default ResourcesList;
@@ -0,0 +1,20 @@
1
+ import { ResourceType } from '@plitzi/sdk-shared';
2
+ import { Dispatch, ReactNode, SetStateAction } from 'react';
3
+ type ResourceDragging = {
4
+ id: string;
5
+ type: ResourceType;
6
+ directoryName: string;
7
+ };
8
+ export type ResourcesListContextValue = {
9
+ draggingFile?: ResourceDragging;
10
+ isFileMoving: boolean;
11
+ setDraggingFile: Dispatch<SetStateAction<ResourceDragging | undefined>>;
12
+ setIsFileMoving: Dispatch<SetStateAction<boolean>>;
13
+ };
14
+ declare const ResourcesListContext: import('react').Context<ResourcesListContextValue>;
15
+ export type ResourcesListProviderProps = {
16
+ children: ReactNode;
17
+ };
18
+ declare const ResourcesListProvider: ({ children }: ResourcesListProviderProps) => import("react/jsx-runtime").JSX.Element;
19
+ export { ResourcesListContext };
20
+ export default ResourcesListProvider;
@@ -0,0 +1,3 @@
1
+ import { default as ResourcesList } from './ResourcesList';
2
+ export * from './ResourcesList';
3
+ export default ResourcesList;
@@ -0,0 +1,3 @@
1
+ import { default as Resources } from './Resources';
2
+ export * from './Resources';
3
+ export default Resources;
@@ -0,0 +1,9 @@
1
+ import { Schema } from '@plitzi/sdk-shared';
2
+ import { ReactNode } from 'react';
3
+ export type SchemaContextProviderProps = {
4
+ children?: ReactNode;
5
+ schema?: Schema;
6
+ includeSubscriptions?: boolean;
7
+ };
8
+ declare const SchemaContextProvider: ({ children, schema: schemaProp, includeSubscriptions }: SchemaContextProviderProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default SchemaContextProvider;
@@ -0,0 +1,11 @@
1
+ import { SchemaVariable, Segment as TSegment } from '@plitzi/sdk-shared';
2
+ export type SegmentProps = {
3
+ id?: string;
4
+ identifier?: string;
5
+ name?: string;
6
+ description?: string;
7
+ variables?: SchemaVariable[];
8
+ onParentRefresh?: (identifier: string, segment?: TSegment) => void;
9
+ };
10
+ declare const Segment: ({ id, identifier, name, description, variables, onParentRefresh }: SegmentProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default Segment;
@@ -0,0 +1,2 @@
1
+ declare const Segments: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Segments;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ export type SegmentsContextProviderProps = {
3
+ children: ReactNode;
4
+ includeSubscriptions?: boolean;
5
+ };
6
+ declare const SegmentsContextProvider: ({ children, includeSubscriptions }: SegmentsContextProviderProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default SegmentsContextProvider;
@@ -0,0 +1,128 @@
1
+ import { DisplayMode, Element, SchemaVariable, Segment, Style, StyleItem, TagType, DropPosition, StyleVariableCategory, StyleVariableValue, StyleCategory, StyleState } from '@plitzi/sdk-shared';
2
+ export declare const SegmentsActions: {
3
+ readonly SEGMENTS_ADD: "SEGMENTS_ADD";
4
+ readonly SEGMENTS_UPDATE: "SEGMENTS_UPDATE";
5
+ readonly SEGMENTS_REMOVE: "SEGMENTS_REMOVE";
6
+ readonly SEGMENTS_ADD_TEMPLATE: "SEGMENTS_ADD_TEMPLATE";
7
+ readonly SEGMENTS_ADD_ELEMENT: "SEGMENTS_ADD_ELEMENT";
8
+ readonly SEGMENTS_REMOVE_ELEMENT: "SEGMENTS_REMOVE_ELEMENT";
9
+ readonly SEGMENTS_MOVE_ELEMENT: "SEGMENTS_MOVE_ELEMENT";
10
+ readonly SEGMENTS_CLONE_ELEMENT: "SEGMENTS_CLONE_ELEMENT";
11
+ readonly SEGMENTS_UPDATE_ELEMENT: "SEGMENTS_UPDATE_ELEMENT";
12
+ readonly SEGMENTS_SPACE_ADD_VARIABLE: "SEGMENTS_SPACE_ADD_VARIABLE";
13
+ readonly SEGMENTS_SPACE_UPDATE_VARIABLE: "SEGMENTS_SPACE_UPDATE_VARIABLE";
14
+ readonly SEGMENTS_SPACE_REMOVE_VARIABLE: "SEGMENTS_SPACE_REMOVE_VARIABLE";
15
+ readonly SEGMENTS_STYLE_ADD_SELECTOR: "SEGMENTS_STYLE_ADD_SELECTOR";
16
+ readonly SEGMENTS_STYLE_UPDATE_SELECTOR: "SEGMENTS_STYLE_UPDATE_SELECTOR";
17
+ readonly SEGMENTS_STYLE_REMOVE_SELECTOR: "SEGMENTS_STYLE_REMOVE_SELECTOR";
18
+ readonly SEGMENTS_STYLE_ADD_SELECTOR_VARIABLE: "SEGMENTS_STYLE_ADD_SELECTOR_VARIABLE";
19
+ readonly SEGMENTS_STYLE_UPDATE_SELECTOR_VARIABLE: "SEGMENTS_STYLE_UPDATE_SELECTOR_VARIABLE";
20
+ readonly SEGMENTS_STYLE_REMOVE_SELECTOR_VARIABLE: "SEGMENTS_STYLE_REMOVE_SELECTOR_VARIABLE";
21
+ readonly SEGMENTS_STYLE_ADD_VARIABLE: "SEGMENTS_STYLE_ADD_VARIABLE";
22
+ readonly SEGMENTS_STYLE_UPDATE_VARIABLE: "SEGMENTS_STYLE_UPDATE_VARIABLE";
23
+ readonly SEGMENTS_STYLE_REMOVE_VARIABLE: "SEGMENTS_STYLE_REMOVE_VARIABLE";
24
+ };
25
+ type SegmentsReducerActionsBase = {
26
+ segmentId: string;
27
+ segment?: Segment;
28
+ fromSubscriptions?: boolean;
29
+ };
30
+ export type SegmentsReducerActions = ({
31
+ type: 'SEGMENTS_ADD';
32
+ } & SegmentsReducerActionsBase) | ({
33
+ type: 'SEGMENTS_UPDATE';
34
+ } & SegmentsReducerActionsBase) | ({
35
+ type: 'SEGMENTS_REMOVE';
36
+ } & SegmentsReducerActionsBase) | ({
37
+ type: 'SEGMENTS_ADD_ELEMENT';
38
+ to: Element['id'];
39
+ data: Element;
40
+ dropPosition: DropPosition;
41
+ initialItems: Record<string, Element>;
42
+ variables: SchemaVariable[];
43
+ } & SegmentsReducerActionsBase) | ({
44
+ type: 'SEGMENTS_REMOVE_ELEMENT';
45
+ elementId: string;
46
+ } & SegmentsReducerActionsBase) | ({
47
+ type: 'SEGMENTS_CLONE_ELEMENT';
48
+ to: string;
49
+ data: Element;
50
+ dropPosition: DropPosition;
51
+ initialItems: Record<string, Element>;
52
+ } & SegmentsReducerActionsBase) | ({
53
+ type: 'SEGMENTS_MOVE_ELEMENT';
54
+ from: string;
55
+ to: string;
56
+ elementId: string;
57
+ dropPosition: DropPosition;
58
+ } & SegmentsReducerActionsBase) | ({
59
+ type: 'SEGMENTS_UPDATE_ELEMENT';
60
+ element: Element;
61
+ } & SegmentsReducerActionsBase) | ({
62
+ type: 'SEGMENTS_SPACE_ADD_VARIABLE' | 'SEGMENTS_SPACE_UPDATE_VARIABLE';
63
+ variable: SchemaVariable;
64
+ } & SegmentsReducerActionsBase) | ({
65
+ type: 'SEGMENTS_SPACE_REMOVE_VARIABLE';
66
+ name: string;
67
+ } & SegmentsReducerActionsBase) | ({
68
+ type: 'SEGMENTS_STYLE_ADD_SELECTOR';
69
+ displayMode: DisplayMode;
70
+ selector: string;
71
+ selectorType: TagType;
72
+ path?: StyleCategory;
73
+ value?: StyleItem['attributes'];
74
+ params: {
75
+ componentType?: string;
76
+ styleSelector?: string;
77
+ styleState?: StyleState;
78
+ styleVariant?: string;
79
+ };
80
+ } & SegmentsReducerActionsBase) | ({
81
+ type: 'SEGMENTS_STYLE_UPDATE_SELECTOR';
82
+ displayMode: DisplayMode;
83
+ selector: string;
84
+ path?: StyleCategory;
85
+ value?: StyleItem['attributes'];
86
+ params: {
87
+ componentType?: string;
88
+ styleSelector: string;
89
+ styleState?: StyleState;
90
+ styleVariant?: string;
91
+ };
92
+ } & SegmentsReducerActionsBase) | ({
93
+ type: 'SEGMENTS_STYLE_REMOVE_SELECTOR';
94
+ displayMode: DisplayMode;
95
+ selector: string;
96
+ } & SegmentsReducerActionsBase) | ({
97
+ type: 'SEGMENTS_STYLE_ADD_SELECTOR_VARIABLE' | 'SEGMENTS_STYLE_UPDATE_SELECTOR_VARIABLE';
98
+ displayMode: DisplayMode;
99
+ selector: string;
100
+ category: StyleVariableCategory;
101
+ name: string;
102
+ value: StyleVariableValue;
103
+ } & SegmentsReducerActionsBase) | ({
104
+ type: 'SEGMENTS_STYLE_REMOVE_SELECTOR_VARIABLE';
105
+ displayMode: DisplayMode;
106
+ selector: string;
107
+ category: StyleVariableCategory;
108
+ name: string;
109
+ } & SegmentsReducerActionsBase) | ({
110
+ type: 'SEGMENTS_STYLE_ADD_VARIABLE' | 'SEGMENTS_STYLE_UPDATE_VARIABLE';
111
+ category: StyleVariableCategory;
112
+ name: string;
113
+ value: StyleVariableValue;
114
+ } & SegmentsReducerActionsBase) | ({
115
+ type: 'SEGMENTS_STYLE_REMOVE_VARIABLE';
116
+ category: StyleVariableCategory;
117
+ name: string;
118
+ } & SegmentsReducerActionsBase) | ({
119
+ type: 'SEGMENTS_ADD_TEMPLATE';
120
+ to: string;
121
+ data: Element;
122
+ dropPosition: DropPosition;
123
+ initialItems: Record<string, Element>;
124
+ templatePlatform: Style['platform'];
125
+ variables: SchemaVariable[];
126
+ } & SegmentsReducerActionsBase);
127
+ declare const SegmentsReducer: (state: Record<string, Segment>, action: SegmentsReducerActions) => Omit<Record<string, Segment>, string>;
128
+ export default SegmentsReducer;
@@ -0,0 +1,3 @@
1
+ import { default as Segments } from './Segments';
2
+ export * from './Segments';
3
+ export default Segments;
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { Environment } from '@plitzi/sdk-shared';
3
+ import { MouseEvent } from 'react';
4
+ declare const publishFormSchema: z.ZodObject<{
5
+ environment: z.ZodEnum<{
6
+ production: "production";
7
+ staging: "staging";
8
+ development: "development";
9
+ }>;
10
+ description: z.ZodString;
11
+ }, z.core.$strip>;
12
+ export type PublishFormProps = {
13
+ environment?: Exclude<Environment, 'main'>;
14
+ description?: string;
15
+ onClose?: (e?: MouseEvent) => void;
16
+ onSubmit?: (e: MouseEvent | undefined, values: z.infer<typeof publishFormSchema>) => void;
17
+ };
18
+ declare const PublishForm: ({ environment, description, onClose, onSubmit }: PublishFormProps) => import("react/jsx-runtime").JSX.Element;
19
+ export default PublishForm;
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ import { MouseEvent } from 'react';
3
+ declare const segmentFormSchema: z.ZodObject<{
4
+ identifier: z.ZodString;
5
+ name: z.ZodString;
6
+ description: z.ZodString;
7
+ }, z.core.$strip>;
8
+ export type SegmentFormProps = {
9
+ className?: string;
10
+ identifier?: string;
11
+ name?: string;
12
+ description?: string;
13
+ onClose?: (e?: MouseEvent) => void;
14
+ onSubmit?: (e: MouseEvent | undefined, values: z.infer<typeof segmentFormSchema>) => void;
15
+ };
16
+ declare const SegmentForm: ({ identifier, name, description, onSubmit, onClose }: SegmentFormProps) => import("react/jsx-runtime").JSX.Element;
17
+ export default SegmentForm;
@@ -0,0 +1,40 @@
1
+ import { z } from 'zod';
2
+ import { SpaceCredentialProvider } from '@plitzi/sdk-shared';
3
+ import { MouseEvent } from 'react';
4
+ export declare const spaceCredentialFormSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5
+ provider: z.ZodLiteral<"s3">;
6
+ name: z.ZodString;
7
+ accessKeyId: z.ZodString;
8
+ secretAccessKey: z.ZodString;
9
+ }, z.core.$strip>, z.ZodObject<{
10
+ provider: z.ZodLiteral<"r2">;
11
+ name: z.ZodString;
12
+ accessKeyId: z.ZodString;
13
+ secretAccessKey: z.ZodString;
14
+ }, z.core.$strip>, z.ZodObject<{
15
+ provider: z.ZodLiteral<"ssr">;
16
+ name: z.ZodString;
17
+ fields: z.ZodDiscriminatedUnion<[z.ZodObject<{
18
+ type: z.ZodLiteral<"basic">;
19
+ user: z.ZodString;
20
+ pass: z.ZodString;
21
+ }, z.core.$strip>, z.ZodObject<{
22
+ type: z.ZodLiteral<"token">;
23
+ token: z.ZodString;
24
+ }, z.core.$strip>], "type">;
25
+ }, z.core.$strip>], "provider">;
26
+ export type SpaceCredentialFormProps = {
27
+ className?: string;
28
+ name?: string;
29
+ provider?: SpaceCredentialProvider;
30
+ accessKeyId?: string;
31
+ secretAccessKey?: string;
32
+ type?: 'basic' | 'token';
33
+ user?: string;
34
+ pass?: string;
35
+ token?: string;
36
+ onClose?: (e?: MouseEvent) => void;
37
+ onSubmit?: (e: MouseEvent | undefined, values: z.infer<typeof spaceCredentialFormSchema>) => void;
38
+ };
39
+ declare const SpaceCredentialForm: ({ name, provider, accessKeyId, secretAccessKey, type, user, pass, token, onSubmit, onClose }: SpaceCredentialFormProps) => import("react/jsx-runtime").JSX.Element;
40
+ export default SpaceCredentialForm;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export type SpaceContainerProps = {
3
+ children?: ReactNode;
4
+ };
5
+ declare const SpaceContainer: ({ children }: SpaceContainerProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default SpaceContainer;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export type SpaceContainerInternalProps = {
3
+ children?: ReactNode;
4
+ };
5
+ declare const SpaceContainerInternal: ({ children }: SpaceContainerInternalProps) => ReactNode;
6
+ export default SpaceContainerInternal;
@@ -0,0 +1,3 @@
1
+ export type SpaceContextValue = object;
2
+ declare const SpaceContext: import('react').Context<object>;
3
+ export default SpaceContext;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export type SpaceContextProviderProps = {
3
+ children?: ReactNode;
4
+ };
5
+ declare const SpaceContextProvider: ({ children }: SpaceContextProviderProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default SpaceContextProvider;
@@ -0,0 +1,11 @@
1
+ import { SpaceCredential, SpaceCredentialProvider } from '@plitzi/sdk-shared';
2
+ export type ModalBodyProps = {
3
+ providersSupported?: SpaceCredentialProvider[];
4
+ credentials?: SpaceCredential[];
5
+ credentialSelected?: string;
6
+ onClickAddCredential?: () => void;
7
+ onSelectCredential?: (identifier: string) => void;
8
+ onRemoveCredential?: (identifier: string) => void;
9
+ };
10
+ declare const ModalBody: ({ providersSupported, credentials, credentialSelected, onClickAddCredential, onSelectCredential, onRemoveCredential }: ModalBodyProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default ModalBody;
@@ -0,0 +1,11 @@
1
+ import { SpaceCredentialProvider } from '@plitzi/sdk-shared';
2
+ import { ReactNode } from 'react';
3
+ export type SpaceCredentialSelectorModalProps = {
4
+ className?: string;
5
+ children?: ReactNode;
6
+ selected?: string;
7
+ providersSupported?: SpaceCredentialProvider[];
8
+ onSelect?: (identifier: string) => void;
9
+ };
10
+ declare const SpaceCredentialSelectorModal: ({ providersSupported, children, className, selected: selectedProp, onSelect }: SpaceCredentialSelectorModalProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default SpaceCredentialSelectorModal;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export type SpaceCredentialsEmptyProps = {
3
+ children?: ReactNode;
4
+ };
5
+ declare const SpaceCredentialsEmpty: ({ children }: SpaceCredentialsEmptyProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default SpaceCredentialsEmpty;
@@ -0,0 +1,3 @@
1
+ import { default as SpaceCredentialSelectorModal } from './SpaceCredentialSelectorModal';
2
+ export * from './SpaceCredentialSelectorModal';
3
+ export default SpaceCredentialSelectorModal;
@@ -0,0 +1,19 @@
1
+ import { SpaceCredentialProvider } from '@plitzi/sdk-shared';
2
+ export type SpaceCredentialProps = {
3
+ providersSupported?: SpaceCredentialProvider[];
4
+ identifier: string;
5
+ name: string;
6
+ provider: SpaceCredentialProvider;
7
+ selected?: boolean;
8
+ inUse: boolean;
9
+ usedIn: {
10
+ usedFrom: string;
11
+ name: string;
12
+ }[];
13
+ createdAt: number;
14
+ updatedAt: number;
15
+ onSelect?: (identifier: string) => void;
16
+ onRemove?: (identifier: string) => void;
17
+ };
18
+ declare const SpaceCredential: ({ providersSupported, identifier, name, provider, selected, inUse, usedIn, createdAt, onSelect, onRemove }: SpaceCredentialProps) => import("react/jsx-runtime").JSX.Element;
19
+ export default SpaceCredential;