@plitzi/plitzi-builder 0.38.3 → 0.38.5

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 (265) hide show
  1. package/CHANGELOG.md +552 -0
  2. package/dist/index.html +2 -15
  3. package/dist/modules/App/AppContainer/containers/ContainerServer.d.ts +2 -2
  4. package/dist/modules/App/components/AppDirectory/Directory.d.ts +3 -1
  5. package/dist/modules/App/helpers/utils.d.ts +1 -3
  6. package/dist/modules/Builder/components/BuilderArea/canvasMotionCss.d.ts +11 -0
  7. package/dist/modules/Builder/components/BuilderArea/canvasMotionCss.test.d.ts +1 -0
  8. package/dist/modules/Builder/components/BuilderArea/liveCanvas.d.ts +13 -0
  9. package/dist/modules/Builder/components/BuilderArea/liveCanvas.test.d.ts +1 -0
  10. package/dist/modules/Builder/components/BuilderSearch/helpers.d.ts +0 -1
  11. package/dist/modules/Builder/components/BuilderTree/utils.d.ts +1 -0
  12. package/dist/modules/Builder/hooks/useRevealElement.d.ts +6 -2
  13. package/dist/modules/Components/Components.d.ts +1 -1
  14. package/dist/modules/Components/components/ComponentForm/helpers.d.ts +15 -0
  15. package/dist/modules/Components/components/ComponentForm/index.d.ts +1 -0
  16. package/dist/modules/Components/components/FormSection/FormSection.d.ts +10 -0
  17. package/dist/modules/Components/components/FormSection/index.d.ts +3 -0
  18. package/dist/modules/Components/components/PropsEditor/helpers.d.ts +7 -0
  19. package/dist/modules/Data/Data.d.ts +7 -0
  20. package/dist/modules/Data/components/DataEditor/DataEditor.d.ts +12 -0
  21. package/dist/modules/Data/components/DataEditor/index.d.ts +3 -0
  22. package/dist/modules/Data/components/DataHeader/DataHeader.d.ts +14 -0
  23. package/dist/modules/Data/components/DataHeader/index.d.ts +3 -0
  24. package/dist/modules/Data/components/DataProblems/DataProblems.d.ts +9 -0
  25. package/dist/modules/Data/components/DataProblems/index.d.ts +3 -0
  26. package/dist/modules/Data/components/DataSidebar/DataSidebar.d.ts +13 -0
  27. package/dist/modules/Data/components/DataSidebar/index.d.ts +3 -0
  28. package/dist/modules/Data/components/DataWelcome/DataWelcome.d.ts +6 -0
  29. package/dist/modules/Data/components/DataWelcome/index.d.ts +3 -0
  30. package/dist/modules/Data/helpers.d.ts +12 -0
  31. package/dist/modules/Data/index.d.ts +2 -0
  32. package/dist/modules/Data/useData.d.ts +12 -0
  33. package/dist/modules/Elements/CategoryChip.d.ts +11 -0
  34. package/dist/modules/Elements/Element.d.ts +2 -1
  35. package/dist/modules/Elements/ElementCategory.d.ts +6 -3
  36. package/dist/modules/Elements/ElementHelper.d.ts +12 -2
  37. package/dist/modules/Elements/Elements.d.ts +4 -0
  38. package/dist/modules/{Functions/components/FunctionsSidebar → FileTree}/components/FileItem/FileItem.d.ts +1 -1
  39. package/dist/modules/FileTree/components/NewFile/NewFile.d.ts +11 -0
  40. package/dist/modules/FileTree/components/SaveStateBadge/SaveStateBadge.d.ts +7 -0
  41. package/dist/modules/FileTree/components/SaveStateBadge/index.d.ts +2 -0
  42. package/dist/modules/FileTree/helpers.d.ts +39 -0
  43. package/dist/modules/FileTree/index.d.ts +7 -0
  44. package/dist/modules/Functions/components/FunctionsHeader/FunctionsHeader.d.ts +1 -1
  45. package/dist/modules/Functions/helpers.d.ts +0 -35
  46. package/dist/modules/Interactions/components/Workflow/helpers/whileRunning.d.ts +1 -1
  47. package/dist/modules/Usages/Usages.d.ts +10 -0
  48. package/dist/modules/Usages/components/UsageList/UsageList.d.ts +13 -0
  49. package/dist/modules/Usages/components/UsageList/index.d.ts +3 -0
  50. package/dist/modules/Usages/components/UsageRow/UsageRow.d.ts +11 -0
  51. package/dist/modules/Usages/components/UsageRow/components/UsageElement/UsageElement.d.ts +8 -0
  52. package/dist/modules/Usages/components/UsageRow/components/UsageElement/index.d.ts +3 -0
  53. package/dist/modules/Usages/components/UsageRow/components/UsageOwner/UsageOwner.d.ts +9 -0
  54. package/dist/modules/Usages/components/UsageRow/components/UsageOwner/index.d.ts +3 -0
  55. package/dist/modules/Usages/components/UsageRow/components/UsageReferences/UsageReferences.d.ts +7 -0
  56. package/dist/modules/Usages/components/UsageRow/components/UsageReferences/index.d.ts +3 -0
  57. package/dist/modules/Usages/components/UsageRow/components/UsageTreeGroup/UsageTreeGroup.d.ts +7 -0
  58. package/dist/modules/Usages/components/UsageRow/components/UsageTreeGroup/index.d.ts +3 -0
  59. package/dist/modules/Usages/components/UsageRow/index.d.ts +3 -0
  60. package/dist/modules/Usages/helpers/copy.d.ts +21 -0
  61. package/dist/modules/Usages/helpers/grouping.d.ts +14 -0
  62. package/dist/modules/Usages/helpers/grouping.test.d.ts +1 -0
  63. package/dist/modules/Usages/helpers/providerTypes.d.ts +7 -0
  64. package/dist/modules/Usages/helpers/unusedParity.test.d.ts +1 -0
  65. package/dist/modules/Usages/helpers/usageIndex.d.ts +67 -0
  66. package/dist/modules/Usages/helpers/usageIndex.test.d.ts +1 -0
  67. package/dist/modules/Usages/hooks/useUsageIndex.d.ts +9 -0
  68. package/dist/modules/Usages/index.d.ts +3 -0
  69. package/dist/package.json.d.ts +3 -21
  70. package/dist/plitzi-builder.css +1 -1
  71. package/dist/plitzi-builder.css.gz +0 -0
  72. package/dist/plitzi-builder.js +2636 -2830
  73. package/dist/plitzi-builder.js.gz +0 -0
  74. package/dist/plitzi-functions-worker.js +1 -1
  75. package/package.json +17 -35
  76. package/dist/modules/AI/AiChat.d.ts +0 -2
  77. package/dist/modules/AI/components/AiChatContent/AiChatContent.d.ts +0 -22
  78. package/dist/modules/AI/components/AiChatContent/index.d.ts +0 -3
  79. package/dist/modules/AI/components/AiChatHeader/AiChatHeader.d.ts +0 -6
  80. package/dist/modules/AI/components/AiChatHeader/components/ConversationButton/ConversationButton.d.ts +0 -2
  81. package/dist/modules/AI/components/AiChatHeader/components/ConversationButton/index.d.ts +0 -3
  82. package/dist/modules/AI/components/AiChatHeader/components/HeaderActions/HeaderActions.d.ts +0 -6
  83. package/dist/modules/AI/components/AiChatHeader/components/HeaderActions/index.d.ts +0 -3
  84. package/dist/modules/AI/components/AiChatHeader/helpers.d.ts +0 -1
  85. package/dist/modules/AI/components/AiChatHeader/index.d.ts +0 -3
  86. package/dist/modules/AI/components/AiProviderSettings/AiProviderSettings.d.ts +0 -10
  87. package/dist/modules/AI/components/AiProviderSettings/helpers/constants.d.ts +0 -6
  88. package/dist/modules/AI/components/AiProviderSettings/helpers/groupModels.d.ts +0 -4
  89. package/dist/modules/AI/components/AiProviderSettings/index.d.ts +0 -3
  90. package/dist/modules/AI/components/Chat/Chat.d.ts +0 -6
  91. package/dist/modules/AI/components/Chat/components/LiveEntry/LiveEntry.d.ts +0 -9
  92. package/dist/modules/AI/components/Chat/components/LiveEntry/components/LiveHeader/LiveHeader.d.ts +0 -10
  93. package/dist/modules/AI/components/Chat/components/LiveEntry/components/LiveHeader/index.d.ts +0 -3
  94. package/dist/modules/AI/components/Chat/components/LiveEntry/components/LiveThinking/LiveThinking.d.ts +0 -7
  95. package/dist/modules/AI/components/Chat/components/LiveEntry/components/LiveThinking/index.d.ts +0 -3
  96. package/dist/modules/AI/components/Chat/components/LiveEntry/index.d.ts +0 -3
  97. package/dist/modules/AI/components/Chat/helpers.d.ts +0 -2
  98. package/dist/modules/AI/components/Chat/index.d.ts +0 -3
  99. package/dist/modules/AI/components/ChatInput/ChatInput.d.ts +0 -19
  100. package/dist/modules/AI/components/ChatInput/components/AttachmentThumbnail/AttachmentThumbnail.d.ts +0 -7
  101. package/dist/modules/AI/components/ChatInput/components/AttachmentThumbnail/index.d.ts +0 -3
  102. package/dist/modules/AI/components/ChatInput/components/ButtonAttachments/ButtonAttachments.d.ts +0 -12
  103. package/dist/modules/AI/components/ChatInput/components/ButtonAttachments/index.d.ts +0 -3
  104. package/dist/modules/AI/components/ChatInput/components/ButtonSend/ButtonSend.d.ts +0 -12
  105. package/dist/modules/AI/components/ChatInput/components/ButtonSend/index.d.ts +0 -3
  106. package/dist/modules/AI/components/ChatInput/components/ChatInputControls/ChatInputControls.d.ts +0 -27
  107. package/dist/modules/AI/components/ChatInput/components/ChatInputControls/index.d.ts +0 -3
  108. package/dist/modules/AI/components/ChatInput/components/EffortSelector/EffortSelector.d.ts +0 -8
  109. package/dist/modules/AI/components/ChatInput/components/EffortSelector/components/EffortBars/EffortBars.d.ts +0 -7
  110. package/dist/modules/AI/components/ChatInput/components/EffortSelector/components/EffortBars/index.d.ts +0 -3
  111. package/dist/modules/AI/components/ChatInput/components/EffortSelector/components/EffortDropdown/EffortDropdown.d.ts +0 -7
  112. package/dist/modules/AI/components/ChatInput/components/EffortSelector/components/EffortDropdown/EffortDropdownItem.d.ts +0 -9
  113. package/dist/modules/AI/components/ChatInput/components/EffortSelector/components/EffortDropdown/index.d.ts +0 -3
  114. package/dist/modules/AI/components/ChatInput/components/EffortSelector/components/EffortTrigger/EffortTrigger.d.ts +0 -9
  115. package/dist/modules/AI/components/ChatInput/components/EffortSelector/components/EffortTrigger/index.d.ts +0 -3
  116. package/dist/modules/AI/components/ChatInput/components/EffortSelector/helpers.d.ts +0 -9
  117. package/dist/modules/AI/components/ChatInput/components/EffortSelector/index.d.ts +0 -2
  118. package/dist/modules/AI/components/ChatInput/components/ModelSelector/ModelSelector.d.ts +0 -10
  119. package/dist/modules/AI/components/ChatInput/components/ModelSelector/components/ModelOption/ModelOption.d.ts +0 -9
  120. package/dist/modules/AI/components/ChatInput/components/ModelSelector/components/ModelOption/index.d.ts +0 -2
  121. package/dist/modules/AI/components/ChatInput/components/ModelSelector/helpers.d.ts +0 -3
  122. package/dist/modules/AI/components/ChatInput/components/ModelSelector/index.d.ts +0 -2
  123. package/dist/modules/AI/components/ChatInput/components/QuestionInput/QuestionInput.d.ts +0 -8
  124. package/dist/modules/AI/components/ChatInput/components/QuestionInput/helpers.d.ts +0 -11
  125. package/dist/modules/AI/components/ChatInput/components/QuestionInput/index.d.ts +0 -4
  126. package/dist/modules/AI/components/ChatInput/components/SkillsManager/SkillsManager.d.ts +0 -8
  127. package/dist/modules/AI/components/ChatInput/components/SkillsManager/components/CategoryButton/CategoryButton.d.ts +0 -10
  128. package/dist/modules/AI/components/ChatInput/components/SkillsManager/components/CategoryButton/index.d.ts +0 -2
  129. package/dist/modules/AI/components/ChatInput/components/SkillsManager/components/SkillItem/SkillItem.d.ts +0 -7
  130. package/dist/modules/AI/components/ChatInput/components/SkillsManager/components/SkillItem/index.d.ts +0 -2
  131. package/dist/modules/AI/components/ChatInput/components/SkillsManager/components/SkillsButton/SkillsButton.d.ts +0 -8
  132. package/dist/modules/AI/components/ChatInput/components/SkillsManager/components/SkillsButton/index.d.ts +0 -2
  133. package/dist/modules/AI/components/ChatInput/components/SkillsManager/data.d.ts +0 -3
  134. package/dist/modules/AI/components/ChatInput/components/SkillsManager/helpers.d.ts +0 -7
  135. package/dist/modules/AI/components/ChatInput/components/SkillsManager/index.d.ts +0 -5
  136. package/dist/modules/AI/components/ChatInput/components/UsageBar/Ring.d.ts +0 -12
  137. package/dist/modules/AI/components/ChatInput/components/UsageBar/UsageBar.d.ts +0 -13
  138. package/dist/modules/AI/components/ChatInput/components/UsageBar/helpers.d.ts +0 -7
  139. package/dist/modules/AI/components/ChatInput/components/UsageBar/index.d.ts +0 -3
  140. package/dist/modules/AI/components/ChatInput/hooks/useMessageHistory.d.ts +0 -7
  141. package/dist/modules/AI/components/ChatInput/index.d.ts +0 -3
  142. package/dist/modules/AI/components/ChatMessage/ChatMessage.d.ts +0 -7
  143. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/AIBrandPreview.d.ts +0 -7
  144. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandColors/BrandColorItem.d.ts +0 -8
  145. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandColors/BrandColors.d.ts +0 -7
  146. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandColors/index.d.ts +0 -3
  147. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandConfirmPanel/BrandConfirmPanel.d.ts +0 -14
  148. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandConfirmPanel/index.d.ts +0 -3
  149. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandHeader/BrandHeader.d.ts +0 -11
  150. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandHeader/index.d.ts +0 -3
  151. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandHero/BrandHero.d.ts +0 -9
  152. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandHero/index.d.ts +0 -3
  153. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandPersonality/BrandPersonality.d.ts +0 -6
  154. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandPersonality/index.d.ts +0 -3
  155. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandTypography/BrandTypography.d.ts +0 -8
  156. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandTypography/index.d.ts +0 -3
  157. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandVoice/BrandVoice.d.ts +0 -6
  158. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/components/BrandVoice/index.d.ts +0 -3
  159. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/helpers.d.ts +0 -2
  160. package/dist/modules/AI/components/ChatMessage/components/AIBrandPreview/index.d.ts +0 -1
  161. package/dist/modules/AI/components/ChatMessage/components/AIColorPalettePreview/AIColorPalettePreview.d.ts +0 -7
  162. package/dist/modules/AI/components/ChatMessage/components/AIColorPalettePreview/components/ColorPaletteRow/ColorPaletteRow.d.ts +0 -9
  163. package/dist/modules/AI/components/ChatMessage/components/AIColorPalettePreview/components/ColorPaletteRow/index.d.ts +0 -3
  164. package/dist/modules/AI/components/ChatMessage/components/AIColorPalettePreview/components/ColorStripItem/ColorStripItem.d.ts +0 -7
  165. package/dist/modules/AI/components/ChatMessage/components/AIColorPalettePreview/components/ColorStripItem/index.d.ts +0 -3
  166. package/dist/modules/AI/components/ChatMessage/components/AIColorPalettePreview/helpers.d.ts +0 -5
  167. package/dist/modules/AI/components/ChatMessage/components/AIColorPalettePreview/index.d.ts +0 -1
  168. package/dist/modules/AI/components/ChatMessage/components/AISnippetPreview/AISnippetPreview.d.ts +0 -12
  169. package/dist/modules/AI/components/ChatMessage/components/AISnippetPreview/components/AISnippetHeader/AISnippetHeader.d.ts +0 -15
  170. package/dist/modules/AI/components/ChatMessage/components/AISnippetPreview/components/AISnippetHeader/DisplayModeButton.d.ts +0 -9
  171. package/dist/modules/AI/components/ChatMessage/components/AISnippetPreview/components/AISnippetHeader/index.d.ts +0 -3
  172. package/dist/modules/AI/components/ChatMessage/components/AISnippetPreview/components/ConfirmPanel/ConfirmPanel.d.ts +0 -12
  173. package/dist/modules/AI/components/ChatMessage/components/AISnippetPreview/components/ConfirmPanel/index.d.ts +0 -3
  174. package/dist/modules/AI/components/ChatMessage/components/AISnippetPreview/helpers.d.ts +0 -5
  175. package/dist/modules/AI/components/ChatMessage/components/AISnippetPreview/index.d.ts +0 -3
  176. package/dist/modules/AI/components/ChatMessage/components/AIStyleGuidePreview/AIStyleGuidePreview.d.ts +0 -7
  177. package/dist/modules/AI/components/ChatMessage/components/AIStyleGuidePreview/components/ColorScaleRow/ColorScaleRow.d.ts +0 -9
  178. package/dist/modules/AI/components/ChatMessage/components/AIStyleGuidePreview/components/ColorScaleRow/ColorShadeButton.d.ts +0 -9
  179. package/dist/modules/AI/components/ChatMessage/components/AIStyleGuidePreview/components/ColorScaleRow/index.d.ts +0 -3
  180. package/dist/modules/AI/components/ChatMessage/components/AIStyleGuidePreview/helpers.d.ts +0 -10
  181. package/dist/modules/AI/components/ChatMessage/components/AIStyleGuidePreview/index.d.ts +0 -1
  182. package/dist/modules/AI/components/ChatMessage/components/AIWireframePreview/AIWireframePreview.d.ts +0 -8
  183. package/dist/modules/AI/components/ChatMessage/components/AIWireframePreview/helpers.d.ts +0 -1
  184. package/dist/modules/AI/components/ChatMessage/components/AIWireframePreview/index.d.ts +0 -1
  185. package/dist/modules/AI/components/ChatMessage/components/ActionButtons/ActionButtons.d.ts +0 -6
  186. package/dist/modules/AI/components/ChatMessage/components/ActionButtons/index.d.ts +0 -3
  187. package/dist/modules/AI/components/ChatMessage/components/AssistantMessage/AssistantMessage.d.ts +0 -15
  188. package/dist/modules/AI/components/ChatMessage/components/AssistantMessage/index.d.ts +0 -3
  189. package/dist/modules/AI/components/ChatMessage/components/ResourceStep/ResourceStep.d.ts +0 -6
  190. package/dist/modules/AI/components/ChatMessage/components/ResourceStep/index.d.ts +0 -1
  191. package/dist/modules/AI/components/ChatMessage/components/SdkElementPreview/SdkElementPreview.d.ts +0 -8
  192. package/dist/modules/AI/components/ChatMessage/components/SdkElementPreview/index.d.ts +0 -3
  193. package/dist/modules/AI/components/ChatMessage/components/ThinkingBlock/ThinkingBlock.d.ts +0 -6
  194. package/dist/modules/AI/components/ChatMessage/components/ThinkingBlock/index.d.ts +0 -3
  195. package/dist/modules/AI/components/ChatMessage/components/UserMessage/UserMessage.d.ts +0 -11
  196. package/dist/modules/AI/components/ChatMessage/components/UserMessage/components/MessageActions/MessageActions.d.ts +0 -6
  197. package/dist/modules/AI/components/ChatMessage/components/UserMessage/components/MessageActions/index.d.ts +0 -2
  198. package/dist/modules/AI/components/ChatMessage/components/UserMessage/index.d.ts +0 -3
  199. package/dist/modules/AI/components/ChatMessage/helpers/extractToolVisual.d.ts +0 -30
  200. package/dist/modules/AI/components/ChatMessage/helpers/groupStepsIntoItems.d.ts +0 -29
  201. package/dist/modules/AI/components/ChatMessage/helpers/toolVisualTypes.d.ts +0 -103
  202. package/dist/modules/AI/components/ChatMessage/helpers/utils.d.ts +0 -1
  203. package/dist/modules/AI/components/ChatMessage/index.d.ts +0 -3
  204. package/dist/modules/AI/components/CopyButton/CopyButton.d.ts +0 -7
  205. package/dist/modules/AI/components/CopyButton/index.d.ts +0 -2
  206. package/dist/modules/AI/components/HistoryPanel/HistoryPanel.d.ts +0 -10
  207. package/dist/modules/AI/components/HistoryPanel/components/ConversationList/ConversationList.d.ts +0 -9
  208. package/dist/modules/AI/components/HistoryPanel/components/ConversationList/components/ConversationItem/ConversationItem.d.ts +0 -11
  209. package/dist/modules/AI/components/HistoryPanel/components/ConversationList/components/ConversationItem/index.d.ts +0 -3
  210. package/dist/modules/AI/components/HistoryPanel/components/ConversationList/index.d.ts +0 -3
  211. package/dist/modules/AI/components/HistoryPanel/components/HistoryFooter/HistoryFooter.d.ts +0 -5
  212. package/dist/modules/AI/components/HistoryPanel/components/HistoryFooter/index.d.ts +0 -3
  213. package/dist/modules/AI/components/HistoryPanel/components/HistorySearch/HistorySearch.d.ts +0 -6
  214. package/dist/modules/AI/components/HistoryPanel/components/HistorySearch/index.d.ts +0 -3
  215. package/dist/modules/AI/components/HistoryPanel/helpers.d.ts +0 -1
  216. package/dist/modules/AI/components/HistoryPanel/index.d.ts +0 -3
  217. package/dist/modules/AI/components/HistoryPanel/types.d.ts +0 -10
  218. package/dist/modules/AI/components/MessageTools/MessageTools.d.ts +0 -7
  219. package/dist/modules/AI/components/MessageTools/components/MessageTool/MessageTool.d.ts +0 -4
  220. package/dist/modules/AI/components/MessageTools/components/MessageTool/humanizeToolName.d.ts +0 -1
  221. package/dist/modules/AI/components/MessageTools/components/MessageTool/index.d.ts +0 -3
  222. package/dist/modules/AI/components/MessageTools/index.d.ts +0 -3
  223. package/dist/modules/AI/components/ModeLabel/ModeLabel.d.ts +0 -6
  224. package/dist/modules/AI/components/ModeLabel/index.d.ts +0 -3
  225. package/dist/modules/AI/components/QuotaCountdown/QuotaCountdown.d.ts +0 -5
  226. package/dist/modules/AI/components/QuotaCountdown/helpers/formatRetryDelay.d.ts +0 -2
  227. package/dist/modules/AI/components/QuotaCountdown/index.d.ts +0 -3
  228. package/dist/modules/AI/components/ToggleMode/ToggleMode.d.ts +0 -8
  229. package/dist/modules/AI/components/ToggleMode/index.d.ts +0 -3
  230. package/dist/modules/AI/components/ToolVisualRenderer/ToolVisualRenderer.d.ts +0 -10
  231. package/dist/modules/AI/components/ToolVisualRenderer/index.d.ts +0 -2
  232. package/dist/modules/AI/components/VoiceVisualizer/VoiceVisualizer.d.ts +0 -18
  233. package/dist/modules/AI/components/VoiceVisualizer/helpers/drawByBlob.d.ts +0 -11
  234. package/dist/modules/AI/components/VoiceVisualizer/helpers/drawByLiveStream.d.ts +0 -20
  235. package/dist/modules/AI/components/VoiceVisualizer/helpers/getBarsData.d.ts +0 -9
  236. package/dist/modules/AI/components/VoiceVisualizer/helpers/index.d.ts +0 -7
  237. package/dist/modules/AI/components/VoiceVisualizer/helpers/initialCanvasSetup.d.ts +0 -9
  238. package/dist/modules/AI/components/VoiceVisualizer/helpers/paintLine.d.ts +0 -9
  239. package/dist/modules/AI/components/VoiceVisualizer/helpers/paintLineFromCenterToRight.d.ts +0 -8
  240. package/dist/modules/AI/components/VoiceVisualizer/index.d.ts +0 -2
  241. package/dist/modules/AI/contexts/AiChatContext.d.ts +0 -37
  242. package/dist/modules/AI/contexts/AiChatProvider.d.ts +0 -9
  243. package/dist/modules/AI/helpers/computeUsageFromMessages.d.ts +0 -3
  244. package/dist/modules/AI/helpers/formatDuration.d.ts +0 -2
  245. package/dist/modules/AI/helpers/getDateGroup.d.ts +0 -2
  246. package/dist/modules/AI/helpers/parseAiStream.d.ts +0 -2
  247. package/dist/modules/AI/helpers/relativeTime.d.ts +0 -2
  248. package/dist/modules/AI/hooks/useAiChat.d.ts +0 -37
  249. package/dist/modules/AI/hooks/useAiErrors.d.ts +0 -11
  250. package/dist/modules/AI/hooks/useAiProviderSettings.d.ts +0 -9
  251. package/dist/modules/AI/hooks/useAiUsage.d.ts +0 -8
  252. package/dist/modules/AI/hooks/useLiveSteps.d.ts +0 -23
  253. package/dist/modules/AI/hooks/useMediaRecorder.d.ts +0 -18
  254. package/dist/modules/AI/hooks/useStreamingText.d.ts +0 -7
  255. package/dist/modules/AI/hooks/useVoice.d.ts +0 -11
  256. package/dist/modules/AI/index.d.ts +0 -1
  257. package/dist/modules/AI/types.d.ts +0 -150
  258. package/dist/modules/Functions/components/FunctionsSidebar/components/NewFile/NewFile.d.ts +0 -7
  259. package/dist/serviceWorker.d.ts +0 -2
  260. /package/dist/modules/{Functions/components/FunctionsSidebar → FileTree}/components/FileItem/index.d.ts +0 -0
  261. /package/dist/modules/{Functions/components/FunctionsSidebar → FileTree}/components/FolderItem/FolderItem.d.ts +0 -0
  262. /package/dist/modules/{Functions/components/FunctionsSidebar → FileTree}/components/FolderItem/index.d.ts +0 -0
  263. /package/dist/modules/{Functions/components/FunctionsSidebar → FileTree}/components/NewFile/index.d.ts +0 -0
  264. /package/dist/modules/{Functions/components/FunctionsSidebar → FileTree}/components/SidebarSection/SidebarSection.d.ts +0 -0
  265. /package/dist/modules/{Functions/components/FunctionsSidebar → FileTree}/components/SidebarSection/index.d.ts +0 -0
@@ -9,6 +9,8 @@ export type DirectoryProps = {
9
9
  isRootFolder?: boolean;
10
10
  currentPageId?: string;
11
11
  nestedLevel?: number;
12
+ isCollapsed?: (folderId: string) => boolean;
13
+ onCollapse?: (folderId: string, collapsed: boolean) => void;
12
14
  };
13
- declare const Directory: ({ id, name, slug, parentId, isRootFolder, currentPageId, nestedLevel, pageFolders, elements }: DirectoryProps) => import('react').JSX.Element;
15
+ declare const Directory: ({ id, name, slug, parentId, isRootFolder, currentPageId, nestedLevel, pageFolders, elements, isCollapsed, onCollapse }: DirectoryProps) => import('react').JSX.Element;
14
16
  export default Directory;
@@ -6,10 +6,8 @@ import { PopupInstance } from '@plitzi/plitzi-ui/components';
6
6
  export declare const FULL_VIEW_IDS: readonly ["server", "settings"];
7
7
  export type FullViewId = (typeof FULL_VIEW_IDS)[number];
8
8
  export declare const isFullViewId: (id: string | undefined) => id is FullViewId;
9
- export declare const getPopups: ({ activeIds, platformFlags }: {
9
+ export declare const getPopups: ({ activeIds }: {
10
10
  activeIds?: string[];
11
- /** The editor's own feature flags, as the platform resolved them for whoever opened it. */
12
- platformFlags?: Record<string, boolean>;
13
11
  }) => {
14
12
  left: PopupInstance[];
15
13
  right: PopupInstance[];
@@ -0,0 +1,11 @@
1
+ /**
2
+ * In preview, what the SDK's root does on a published page (`overflow-x: clip` on `.plitzi-sdk`): an arrival from the
3
+ * side starts beside where it lands, and until it has played that offset must not scroll the canvas sideways. The
4
+ * canvas's box already scrolls the other way, which makes `clip` compute to `hidden` — the same cut.
5
+ */
6
+ export declare const PREVIEW_CANVAS_CSS = ".builder-iframe { overflow-x: hidden; }";
7
+ /**
8
+ * How the canvas plays the declared motion. Editing, it is held at its end — or played from the start with Play; in
9
+ * preview it is not touched: the page plays it as a published page does.
10
+ */
11
+ export declare const canvasMotionCss: (previewMode: boolean, playing: boolean) => string;
@@ -0,0 +1,13 @@
1
+ export type LiveCanvasOptions = {
2
+ /**
3
+ * Whether an arrival that waits to be seen plays as it comes into view. Off while Play runs on the canvas being
4
+ * edited: there every arrival plays at once (`MOTION_PLAY_CSS`), in view or not.
5
+ */
6
+ reveal: boolean;
7
+ };
8
+ /**
9
+ * Makes the canvas under `root` live as the SDK's root makes a published page (`ThemedRoot`): `data-hydrated` lets the
10
+ * loops run — the declared ones and the space's own CSS keyed off it — and, with `reveal`, an arrival that waits to be
11
+ * seen plays as it comes into view. Answers the function that puts it back as it was.
12
+ */
13
+ export declare const liveCanvas: (root: Element, { reveal }: LiveCanvasOptions) => (() => void);
@@ -1,2 +1 @@
1
- /** ⌘P / Ctrl+P — not ⌘K, which the AI panel already takes for its conversation list. */
2
1
  export declare const isSearchShortcut: (e: KeyboardEvent) => boolean;
@@ -2,6 +2,7 @@ import { ComponentDefinition, Element } from '@plitzi/sdk-shared';
2
2
  type Node = {
3
3
  id: string;
4
4
  label: string;
5
+ hint?: string;
5
6
  icon: string;
6
7
  parentId?: string;
7
8
  items?: Node[];
@@ -1,13 +1,17 @@
1
1
  import { ElementMatch } from '../helpers/searchElements';
2
2
  export type RevealTarget = Pick<ElementMatch, 'id' | 'rootId' | 'ancestors'>;
3
3
  /**
4
- * Takes the author to an element anywhere in the space: its page or layout on screen, the tree opened down to it,
5
- * and the element selected.
4
+ * Takes the author to an element anywhere in the space: its page, layout or component on screen, the tree opened down
5
+ * to it, and the element selected.
6
6
  *
7
7
  * The branches go into the same `openedCache` the tree reads, so revealing a match and expanding a node by hand are
8
8
  * the same act — an element eight levels down is selected AND visible in the Layers panel, not selected somewhere
9
9
  * the panel is not showing.
10
10
  *
11
+ * An element a component holds is reached by opening that component, whatever the caller worked out as its root: the
12
+ * pages' `flat` does not hold it unless the component is already open. One on a page closes the component open, if
13
+ * any, since the canvas shows the component in its place while it is.
14
+ *
11
15
  * The switch always goes out, even to the root already on screen: the builder may be showing a layout on top of
12
16
  * the current page, and asking for the page is what brings it back. Asking for the root already open is a no-op.
13
17
  */
@@ -3,7 +3,7 @@ export type ComponentsProps = {
3
3
  filter: string;
4
4
  };
5
5
  /**
6
- * The space's components, at the foot of the element catalog: placed the way an element is, by dragging it onto a
6
+ * The space's components, a category of the element catalog: placed the way an element is, by dragging it onto a
7
7
  * page — with what each is called and how many places render it. Edited by opening it in the canvas, where its tree is
8
8
  * edited like a page's.
9
9
  */
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ import { PropEntry } from '../PropsEditor';
3
+ import { ProviderModalProps } from '@plitzi/plitzi-ui/Modal';
4
+ import { SpaceComponentDeclaration } from '@plitzi/sdk-shared';
5
+ export declare const componentFormSchema: z.ZodObject<{
6
+ label: z.ZodString;
7
+ folder: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ /**
10
+ * How the modal that holds the component's form opens: wide enough for a prop's name, kind and switches on one line.
11
+ * Its height is the form's to manage — the fields scroll and the buttons stay in view.
12
+ */
13
+ export declare const COMPONENT_MODAL: ProviderModalProps;
14
+ /** The props a declaration has, as the editor's rows. */
15
+ export declare const entriesOf: (declaration?: SpaceComponentDeclaration) => PropEntry[];
@@ -1 +1,2 @@
1
1
  export { default } from './ComponentForm';
2
+ export { COMPONENT_MODAL } from './helpers';
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ export type FormSectionProps = {
3
+ title: string;
4
+ /** What the section is for, in a line under its title. */
5
+ hint?: ReactNode;
6
+ children: ReactNode;
7
+ };
8
+ /** One part of the component's form: its title, what it is for, and its fields. */
9
+ declare const FormSection: ({ title, hint, children }: FormSectionProps) => import('react').JSX.Element;
10
+ export default FormSection;
@@ -0,0 +1,3 @@
1
+ import { default as FormSection } from './FormSection';
2
+ export * from './FormSection';
3
+ export default FormSection;
@@ -0,0 +1,7 @@
1
+ import { ComponentProp } from '@plitzi/sdk-shared';
2
+ /** The kinds a prop can be, as the kind picker lists them. */
3
+ export declare const TYPES: {
4
+ value: ComponentProp['type'];
5
+ label: string;
6
+ }[];
7
+ export declare const isPropType: (value: string) => value is ComponentProp["type"];
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The space's own data: JSON files its pages read on the server, edited here and saved as the draft — whole, against
3
+ * the copy this panel read, so one saved since from elsewhere (an agent, a project's `plitzi push`) is never
4
+ * overwritten unseen. The live site reads what the space was last published with.
5
+ */
6
+ declare const Data: () => import('react').JSX.Element;
7
+ export default Data;
@@ -0,0 +1,12 @@
1
+ export type DataEditorProps = {
2
+ file: string;
3
+ value: string;
4
+ modified: boolean;
5
+ /** What is wrong with the text as JSON, as it is typed — none when it reads. */
6
+ problem?: string;
7
+ theme: 'light' | 'dark';
8
+ onChange: (text: string) => void;
9
+ };
10
+ /** The file being edited, with the query a provider reads it by and whether it is JSON as it stands. */
11
+ declare const DataEditor: ({ file, value, modified, problem, theme, onChange }: DataEditorProps) => import('react').JSX.Element;
12
+ export default DataEditor;
@@ -0,0 +1,3 @@
1
+ import { default as DataEditor } from './DataEditor';
2
+ export * from './DataEditor';
3
+ export default DataEditor;
@@ -0,0 +1,14 @@
1
+ import { SaveState } from '../../../FileTree';
2
+ export type DataHeaderProps = {
3
+ /** Where the files stand — none for data never saved. */
4
+ state?: SaveState;
5
+ canSave: boolean;
6
+ isSaving: boolean;
7
+ /** Whether there are changes to discard. */
8
+ canDiscard: boolean;
9
+ onSave: () => void;
10
+ onDiscard: () => void;
11
+ };
12
+ /** The panel's name and what it is for, where the files stand, and saving them. */
13
+ declare const DataHeader: ({ state, canSave, isSaving, canDiscard, onSave, onDiscard }: DataHeaderProps) => import('react').JSX.Element;
14
+ export default DataHeader;
@@ -0,0 +1,3 @@
1
+ import { default as DataHeader } from './DataHeader';
2
+ export * from './DataHeader';
3
+ export default DataHeader;
@@ -0,0 +1,9 @@
1
+ import { DataProblem } from '@plitzi/sdk-shared';
2
+ export type DataProblemsProps = {
3
+ problems: DataProblem[];
4
+ /** The file a problem is about, to open. */
5
+ onSelect: (file: string) => void;
6
+ };
7
+ /** What the last save found wrong, by file: nothing was kept. */
8
+ declare const DataProblems: ({ problems, onSelect }: DataProblemsProps) => import('react').JSX.Element;
9
+ export default DataProblems;
@@ -0,0 +1,3 @@
1
+ import { default as DataProblems } from './DataProblems';
2
+ export * from './DataProblems';
3
+ export default DataProblems;
@@ -0,0 +1,13 @@
1
+ export type DataSidebarProps = {
2
+ files: string[];
3
+ selectedFile: string;
4
+ modified: string[];
5
+ /** The files whose text is not JSON yet: marked, as a save would refuse them. */
6
+ broken: string[];
7
+ onSelectFile: (file: string) => void;
8
+ onAddFile: (file: string) => void;
9
+ onRemoveFile: (file: string) => void;
10
+ };
11
+ /** The data's files as a tree, the one that is open, and adding or removing one. */
12
+ declare const DataSidebar: ({ files, selectedFile, modified, broken, onSelectFile, onAddFile, onRemoveFile }: DataSidebarProps) => import('react').JSX.Element;
13
+ export default DataSidebar;
@@ -0,0 +1,3 @@
1
+ import { default as DataSidebar } from './DataSidebar';
2
+ export * from './DataSidebar';
3
+ export default DataSidebar;
@@ -0,0 +1,6 @@
1
+ export type DataWelcomeProps = {
2
+ onStart: () => void;
3
+ };
4
+ /** A space with no data yet: what it is for, and a file written already to change rather than a blank one. */
5
+ declare const DataWelcome: ({ onStart }: DataWelcomeProps) => import('react').JSX.Element;
6
+ export default DataWelcome;
@@ -0,0 +1,3 @@
1
+ import { default as DataWelcome } from './DataWelcome';
2
+ export * from './DataWelcome';
3
+ export default DataWelcome;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The space's own data, as its panel edits it: JSON files a provider of the space reads on the server — `query:
3
+ * '/data/<file>'` with `runtime: 'server'` — never served.
4
+ */
5
+ /** What a space with no data starts from: one file, a list, to change rather than a blank page. */
6
+ export declare const STARTER_FILES: Record<string, string>;
7
+ /** A new file's name as typed, made a data file's: trimmed, and a `.json` one when it says nothing else. */
8
+ export declare const dataFileName: (typed: string) => string;
9
+ /** What is wrong with a file's text as JSON, as the parser says it — or nothing, when it reads. */
10
+ export declare const jsonProblemOf: (text: string) => string | undefined;
11
+ /** The query a provider reads a file by. */
12
+ export declare const queryOf: (file: string) => string;
@@ -0,0 +1,2 @@
1
+ import { default as Data } from './Data';
2
+ export default Data;
@@ -0,0 +1,12 @@
1
+ import { DataDraft, DataSaveResult } from '@plitzi/sdk-shared';
2
+ /**
3
+ * The space's data draft, and saving it — through the same operation an agent's MCP and a project's `plitzi push` end
4
+ * in (`SpaceSaveData`): whole, against the version it was read at.
5
+ */
6
+ declare const useData: () => {
7
+ draft: DataDraft | undefined;
8
+ error: string;
9
+ isLoading: boolean;
10
+ save: (files: DataDraft["files"]) => Promise<DataSaveResult | undefined>;
11
+ };
12
+ export default useData;
@@ -0,0 +1,11 @@
1
+ export type CategoryChipProps = {
2
+ id: string;
3
+ label: string;
4
+ icon: string;
5
+ count: number;
6
+ active: boolean;
7
+ onSelect: (id: string) => void;
8
+ };
9
+ /** One category to show, chosen in a row of them: its name, how many it holds, and whether it is the one shown. */
10
+ declare const CategoryChip: ({ id, label, icon, count, active, onSelect }: CategoryChipProps) => import('react').JSX.Element;
11
+ export default CategoryChip;
@@ -2,5 +2,6 @@ import { ComponentDefinition } from '@plitzi/sdk-shared';
2
2
  export type ElementProps = {
3
3
  component: ComponentDefinition;
4
4
  };
5
- declare const Element: ({ component: { market: { icon }, definition: { label, type } } }: ElementProps) => import('react').JSX.Element;
5
+ /** One element of the catalog, dragged onto the canvas or into Layers: its icon, its whole name, what it is on hover. */
6
+ declare const Element: ({ component }: ElementProps) => import('react').JSX.Element;
6
7
  export default Element;
@@ -1,7 +1,10 @@
1
1
  import { ComponentDefinition } from '@plitzi/sdk-shared';
2
2
  export type ElementCategoryProps = {
3
- components?: ComponentDefinition[];
4
- category?: string;
3
+ components: ComponentDefinition[];
4
+ category: string;
5
+ /** Said above the grid — when a search lists several categories at once. */
6
+ titled?: boolean;
5
7
  };
6
- declare const ElementCategory: ({ components, category }: ElementCategoryProps) => import('react').JSX.Element | undefined;
8
+ /** The elements of one category, as a compact grid to drag from. */
9
+ declare const ElementCategory: ({ components, category, titled }: ElementCategoryProps) => import('react').JSX.Element;
7
10
  export default ElementCategory;
@@ -11,5 +11,15 @@ export declare const getInitialItems: (parentId: string, items: string[] | undef
11
11
  directItems: Record<string, Element>;
12
12
  items: Record<string, Element>;
13
13
  };
14
- /** The catalog as the elements panel lists it: every definition whose label matches `filter`, grouped by category. */
15
- export declare const definitionsByCategory: (definitions: Record<string, ComponentDefinition>, filter: string) => Record<string, ComponentDefinition[]>;
14
+ /** How a category is shown: its name and icon — a plugin's own category by the name it gave. */
15
+ export declare const categoryDisplay: (category: string) => {
16
+ label: string;
17
+ icon: string;
18
+ };
19
+ /** A definition's description, cut to its first sentence: what the panel says of it on hover. */
20
+ export declare const summaryOf: (definition: ComponentDefinition) => string;
21
+ /**
22
+ * The catalog as the elements panel lists it: every definition an author can drag in whose label or type matches
23
+ * `filter`, grouped by category — the categories in the panel's order, the elements in each by their label.
24
+ */
25
+ export declare const definitionsByCategory: (definitions: Record<string, ComponentDefinition>, filter: string) => [string, ComponentDefinition[]][];
@@ -1,2 +1,6 @@
1
+ /**
2
+ * What can be dropped on a page: one category at a time, chosen in a row of chips — so the panel stays the same height
3
+ * however many elements plugins add — and the space's components as one more. A search looks through all of them.
4
+ */
1
5
  declare const Elements: () => import('react').JSX.Element;
2
6
  export default Elements;
@@ -4,7 +4,7 @@ export type FileItemProps = {
4
4
  depth: number;
5
5
  selected: boolean;
6
6
  modified: boolean;
7
- /** `index.ts` is what everything starts from: it is never removed. */
7
+ /** Whether it may be removed — not the file everything starts from (the functions' `index.ts`). */
8
8
  removable: boolean;
9
9
  onSelect: (file: string) => void;
10
10
  onRemove: (file: string) => void;
@@ -0,0 +1,11 @@
1
+ export type NewFileProps = {
2
+ /** An example of a name, shown while there is none: `lib/feed.ts`. */
3
+ placeholder: string;
4
+ /** The file a typed name is — trimmed, with the extension the list's files have when it says none. */
5
+ nameOf: (typed: string) => string;
6
+ onAdd: (file: string) => void;
7
+ onCancel: () => void;
8
+ };
9
+ /** A new file's name, typed where the list starts: Enter adds it — `lib/feed.ts` makes the folder too — Escape lets it go. */
10
+ declare const NewFile: ({ placeholder, nameOf, onAdd, onCancel }: NewFileProps) => import('react').JSX.Element;
11
+ export default NewFile;
@@ -0,0 +1,7 @@
1
+ import { SaveState } from '../../helpers';
2
+ export type SaveStateBadgeProps = {
3
+ state: SaveState;
4
+ };
5
+ /** Where the files stand, as a header shows it: a dot and a few words, in the tone of what it says. */
6
+ declare const SaveStateBadge: ({ state }: SaveStateBadgeProps) => import('react').JSX.Element;
7
+ export default SaveStateBadge;
@@ -0,0 +1,2 @@
1
+ import { default as SaveStateBadge } from './SaveStateBadge';
2
+ export default SaveStateBadge;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * A list of files edited in a panel — the functions' source, the data's JSON: how it reads as a tree, how a save is
3
+ * asked for, and where the files stand.
4
+ */
5
+ /** The editor filling the space it is given, so CodeMirror scrolls its own lines and keeps its gutter in place. */
6
+ export declare const EDITOR_CLASS_NAME: {
7
+ root: string;
8
+ inputContainer: string;
9
+ };
10
+ /** How far a file or a folder is indented for each folder it is in, in pixels. */
11
+ export declare const FILE_INDENT_PX = 12;
12
+ /** One row of the file list: a folder, or a file under the folders before it. */
13
+ export type FileRow = {
14
+ kind: 'folder';
15
+ path: string;
16
+ depth: number;
17
+ } | {
18
+ kind: 'file';
19
+ path: string;
20
+ name: string;
21
+ depth: number;
22
+ };
23
+ /**
24
+ * The files as a tree reads, top to bottom: each folder once, before what is in it, and every name indented by how
25
+ * deep it is — `first` before them all, when it is the file everything starts from (the functions' `index.ts`).
26
+ */
27
+ export declare const fileRows: (files: readonly string[], first?: string) => FileRow[];
28
+ /** Whether a key press is "save": ⌘S on a Mac, Ctrl+S elsewhere. */
29
+ export declare const isSaveKey: (event: KeyboardEvent) => boolean;
30
+ /** Where the files stand, in a few words and a tone: what the header shows. */
31
+ export type SaveState = {
32
+ label: string;
33
+ tone: 'unsaved' | 'problems' | 'saved';
34
+ };
35
+ /**
36
+ * Where the files stand: what the last save found wrong, changes not saved yet — in how many files — or saved, which is
37
+ * what the builder runs. Nothing for files never saved.
38
+ */
39
+ export declare const saveState: (modified: number, problems: number, saved: boolean) => SaveState | undefined;
@@ -0,0 +1,7 @@
1
+ export { default as FileItem } from './components/FileItem';
2
+ export { default as FolderItem } from './components/FolderItem';
3
+ export { default as NewFile } from './components/NewFile';
4
+ export { default as SaveStateBadge } from './components/SaveStateBadge';
5
+ export { default as SidebarSection } from './components/SidebarSection';
6
+ export { EDITOR_CLASS_NAME, FILE_INDENT_PX, fileRows, isSaveKey, saveState } from './helpers';
7
+ export type { FileRow, SaveState } from './helpers';
@@ -1,4 +1,4 @@
1
- import { SaveState } from '../../helpers';
1
+ import { SaveState } from '../../../FileTree';
2
2
  export type FunctionsHeaderProps = {
3
3
  /** Where the files stand — none for a space with no functions yet. */
4
4
  state?: SaveState;
@@ -20,40 +20,10 @@ export declare const routeParts: (route: string, prefix: string) => {
20
20
  method: string;
21
21
  path: string;
22
22
  };
23
- /** How far a file or a folder is indented for each folder it is in, in pixels. */
24
- export declare const FILE_INDENT_PX = 12;
25
23
  /** A new file's name as typed, made a file's: trimmed, and a TypeScript one when it says nothing else. */
26
24
  export declare const newFileName: (typed: string) => string;
27
- /** One row of the file list: a folder, or a file under the folders before it. */
28
- export type FileRow = {
29
- kind: 'folder';
30
- path: string;
31
- depth: number;
32
- } | {
33
- kind: 'file';
34
- path: string;
35
- name: string;
36
- depth: number;
37
- };
38
- /**
39
- * The files as a tree reads, top to bottom: each folder once, before what is in it, and every name indented by how
40
- * deep it is — `index.ts` first, as the file everything starts from.
41
- */
42
- export declare const fileRows: (files: readonly string[]) => FileRow[];
43
25
  /** A param's value as a field shows it: text as it is, a number as its digits, anything else as nothing. */
44
26
  export declare const fieldText: (value: unknown) => string;
45
- /** Whether a key press is "save": ⌘S on a Mac, Ctrl+S elsewhere. */
46
- export declare const isSaveKey: (event: KeyboardEvent) => boolean;
47
- /** Where the files stand, in a few words and a tone: what the header shows. */
48
- export type SaveState = {
49
- label: string;
50
- tone: 'unsaved' | 'problems' | 'saved';
51
- };
52
- /**
53
- * Where the files stand: what the last save found wrong, changes not saved yet — in how many files — or saved, which is
54
- * what the builder runs. Nothing for a space with no functions.
55
- */
56
- export declare const saveState: (modified: number, problems: number, saved: boolean) => SaveState | undefined;
57
27
  /**
58
28
  * The CPU a task may ask for from the panel, in milliseconds: from the default an invocation gets to a second, in steps
59
29
  * a person can tell apart. More than that is asked for in the code, up to what the server allows.
@@ -122,8 +92,3 @@ export declare const withCpu: (limits: FunctionTimeLimits | undefined, cpuMs: nu
122
92
  export declare const limitsBlockedBy: (ready: boolean, task: ListedTask) => string;
123
93
  /** The task written around an offset of a file — the one the cursor is in — or none. */
124
94
  export declare const taskAt: (tasks: readonly ListedTask[], file: string, offset: number) => ListedTask | undefined;
125
- /** The editor filling the space it is given, so CodeMirror scrolls its own lines and keeps its gutter in place. */
126
- export declare const EDITOR_CLASS_NAME: {
127
- root: string;
128
- inputContainer: string;
129
- };
@@ -1,6 +1,6 @@
1
1
  import { Option, OptionGroup } from '@plitzi/plitzi-ui/Select2';
2
2
  import { WhileRunning } from '@plitzi/sdk-shared';
3
- /** The three answers to "fired again while this flow runs", as the trigger's panel offers them. */
3
+ /** The answers to "fired again while this flow runs", as the trigger's panel offers them. */
4
4
  export declare const WHILE_RUNNING_OPTIONS: (Exclude<Option, OptionGroup> & {
5
5
  value: WhileRunning;
6
6
  })[];
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Where the space uses what it declares — components, classes, style tokens and space variables, data sources — and
3
+ * what nothing uses. Every use is a link to the element, on whichever page, layout or component it is.
4
+ *
5
+ * A panel beside the canvas rather than a dialog over it: following uses one after another is the job, and the list
6
+ * has to stay where it is while each one is looked at. The kinds are picked from a list rather than tabs, so each can
7
+ * say how many there are, and how many nobody uses, at the panel's narrowest.
8
+ */
9
+ declare const Usages: () => import('react').JSX.Element;
10
+ export default Usages;
@@ -0,0 +1,13 @@
1
+ import { UsageCategory, UsageItem } from '../../helpers/usageIndex';
2
+ export type UsageListProps = {
3
+ category: UsageCategory;
4
+ items: UsageItem[];
5
+ };
6
+ /**
7
+ * What the space declares of one kind, each with where it is used — and, filtered, what nothing uses.
8
+ *
9
+ * The search, the filter and the row open are kept among the builder's preferences: opening a component from here
10
+ * draws every panel again inside it, and the list has to be where it was when that is done.
11
+ */
12
+ declare const UsageList: ({ category, items }: UsageListProps) => import('react').JSX.Element;
13
+ export default UsageList;
@@ -0,0 +1,3 @@
1
+ import { default as UsageList } from './UsageList';
2
+ export * from './UsageList';
3
+ export default UsageList;
@@ -0,0 +1,11 @@
1
+ import { UsageCategory, UsageItem } from '../../helpers/usageIndex';
2
+ export type UsageRowProps = {
3
+ item: UsageItem;
4
+ category: UsageCategory;
5
+ open: boolean;
6
+ /** Said under the name when nothing uses it. */
7
+ unusedText: string;
8
+ onToggle: (key: string) => void;
9
+ };
10
+ declare const _default: import('react').MemoExoticComponent<({ item, category, open, unusedText, onToggle }: UsageRowProps) => import('react').JSX.Element>;
11
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { ElementUsage } from '../../../../helpers/usageIndex';
2
+ export type UsageElementProps = {
3
+ usage: ElementUsage;
4
+ onReveal: (usage: ElementUsage) => void;
5
+ };
6
+ /** An element that uses the item, and how: a link that takes the author to it. */
7
+ declare const UsageElement: ({ usage, onReveal }: UsageElementProps) => import('react').JSX.Element;
8
+ export default UsageElement;
@@ -0,0 +1,3 @@
1
+ import { default as UsageElement } from './UsageElement';
2
+ export * from './UsageElement';
3
+ export default UsageElement;
@@ -0,0 +1,9 @@
1
+ import { ElementUsage } from '../../../../helpers/usageIndex';
2
+ export type UsageOwnerProps = {
3
+ owner: ElementUsage;
4
+ /** A component's root, which the link opens; otherwise the element that provides the item. */
5
+ opensComponent: boolean;
6
+ };
7
+ /** Where the item is declared — a component's own tree, a data source's provider — and the way to it. */
8
+ declare const UsageOwner: ({ owner, opensComponent }: UsageOwnerProps) => import('react').JSX.Element;
9
+ export default UsageOwner;
@@ -0,0 +1,3 @@
1
+ import { default as UsageOwner } from './UsageOwner';
2
+ export * from './UsageOwner';
3
+ export default UsageOwner;
@@ -0,0 +1,7 @@
1
+ import { SpaceReference } from '../../../../helpers/usageIndex';
2
+ export type UsageReferencesProps = {
3
+ references: SpaceReference[];
4
+ };
5
+ /** What uses the item and is not an element: the selectors and tokens that read it, the custom CSS, computed values. */
6
+ declare const UsageReferences: ({ references }: UsageReferencesProps) => import('react').JSX.Element;
7
+ export default UsageReferences;
@@ -0,0 +1,3 @@
1
+ import { default as UsageReferences } from './UsageReferences';
2
+ export * from './UsageReferences';
3
+ export default UsageReferences;
@@ -0,0 +1,7 @@
1
+ import { TreeGroup } from '../../../../helpers/grouping';
2
+ export type UsageTreeGroupProps = {
3
+ group: TreeGroup;
4
+ };
5
+ /** The uses in one page, layout or component, under its name. */
6
+ declare const UsageTreeGroup: ({ group }: UsageTreeGroupProps) => import('react').JSX.Element;
7
+ export default UsageTreeGroup;
@@ -0,0 +1,3 @@
1
+ import { default as UsageTreeGroup } from './UsageTreeGroup';
2
+ export * from './UsageTreeGroup';
3
+ export default UsageTreeGroup;
@@ -0,0 +1,3 @@
1
+ import { default as UsageRow } from './UsageRow';
2
+ export * from './UsageRow';
3
+ export default UsageRow;