@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.
- package/CHANGELOG.md +2862 -0
- package/README.md +3 -0
- package/dist/App.d.ts +13 -0
- package/dist/config/index.d.ts +6 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.html +82 -0
- package/dist/modules/AI/AiChat.d.ts +2 -0
- package/dist/modules/AI/AiChatPreview.d.ts +2 -0
- package/dist/modules/AI/components/AiChatHeader.d.ts +16 -0
- package/dist/modules/AI/components/AiProviderSettings/AiProviderSettings.d.ts +10 -0
- package/dist/modules/AI/components/Chat/Chat.d.ts +11 -0
- package/dist/modules/AI/components/Chat/LiveEntry.d.ts +8 -0
- package/dist/modules/AI/components/Chat/TimelineDot.d.ts +6 -0
- package/dist/modules/AI/components/Chat/index.d.ts +2 -0
- package/dist/modules/AI/components/ChatInput/AttachmentThumbnail.d.ts +7 -0
- package/dist/modules/AI/components/ChatInput/ChatInput.d.ts +14 -0
- package/dist/modules/AI/components/ChatInput/index.d.ts +2 -0
- package/dist/modules/AI/components/ChatMessage/ActionButtons.d.ts +6 -0
- package/dist/modules/AI/components/ChatMessage/ChatMessage.d.ts +3 -0
- package/dist/modules/AI/components/ChatMessage/ThinkingBlock.d.ts +6 -0
- package/dist/modules/AI/components/ChatMessage/components/AITemplatePreview/AITemplateHeader.d.ts +9 -0
- package/dist/modules/AI/components/ChatMessage/components/AITemplatePreview/AITemplatePreview.d.ts +8 -0
- package/dist/modules/AI/components/ChatMessage/components/AITemplatePreview/index.d.ts +3 -0
- package/dist/modules/AI/components/ChatMessage/components/SdkElementPreview/SdkElementPreview.d.ts +5 -0
- package/dist/modules/AI/components/ChatMessage/components/SdkElementPreview/index.d.ts +3 -0
- package/dist/modules/AI/components/ChatMessage/index.d.ts +1 -0
- package/dist/modules/AI/components/ToolActivity.d.ts +5 -0
- package/dist/modules/AI/components/ToolCall.d.ts +3 -0
- package/dist/modules/AI/components/ToolCallGroup.d.ts +7 -0
- package/dist/modules/AI/components/VoiceVisualizer/VoiceVisualizer.d.ts +18 -0
- package/dist/modules/AI/components/VoiceVisualizer/helpers/drawByBlob.d.ts +11 -0
- package/dist/modules/AI/components/VoiceVisualizer/helpers/drawByLiveStream.d.ts +20 -0
- package/dist/modules/AI/components/VoiceVisualizer/helpers/getBarsData.d.ts +9 -0
- package/dist/modules/AI/components/VoiceVisualizer/helpers/index.d.ts +7 -0
- package/dist/modules/AI/components/VoiceVisualizer/helpers/initialCanvasSetup.d.ts +9 -0
- package/dist/modules/AI/components/VoiceVisualizer/helpers/paintLine.d.ts +9 -0
- package/dist/modules/AI/components/VoiceVisualizer/helpers/paintLineFromCenterToRight.d.ts +8 -0
- package/dist/modules/AI/components/VoiceVisualizer/index.d.ts +2 -0
- package/dist/modules/AI/helpers/getRootNode.d.ts +9 -0
- package/dist/modules/AI/hooks/useAiChat.d.ts +15 -0
- package/dist/modules/AI/hooks/useAiProviderSettings.d.ts +9 -0
- package/dist/modules/AI/hooks/useAiTools.d.ts +3 -0
- package/dist/modules/AI/hooks/useMediaRecorder.d.ts +18 -0
- package/dist/modules/AI/hooks/useVoice.d.ts +11 -0
- package/dist/modules/AI/index.d.ts +2 -0
- package/dist/modules/AI/tools/getBuilderContext.d.ts +13 -0
- package/dist/modules/AI/tools/index.d.ts +14 -0
- package/dist/modules/AI/tools/stagePreview.d.ts +25 -0
- package/dist/modules/AI/types.d.ts +98 -0
- package/dist/modules/App/AppContainer/AppContainer.d.ts +5 -0
- package/dist/modules/App/AppContainer/containers/ContainerCollections.d.ts +2 -0
- package/dist/modules/App/AppContainer/containers/ContainerDefault.d.ts +6 -0
- package/dist/modules/App/AppContainer/containers/ContainerIntegrations.d.ts +2 -0
- package/dist/modules/App/AppContainer/containers/ContainerMarketplace.d.ts +2 -0
- package/dist/modules/App/AppContainer/containers/ContainerSettings.d.ts +2 -0
- package/dist/modules/App/AppContainer/containers/ContainerSitemap.d.ts +2 -0
- package/dist/modules/App/AppContainer/index.d.ts +3 -0
- package/dist/modules/App/AppContext.d.ts +17 -0
- package/dist/modules/App/AppMain.d.ts +18 -0
- package/dist/modules/App/AppProvider.d.ts +17 -0
- package/dist/modules/App/components/AppDirectory/AppDirectory.d.ts +2 -0
- package/dist/modules/App/components/AppDirectory/Directory.d.ts +14 -0
- package/dist/modules/App/components/AppDirectory/DirectoryHeader.d.ts +6 -0
- package/dist/modules/App/components/AppDirectory/DirectoryItem.d.ts +8 -0
- package/dist/modules/App/components/AppDirectory/ItemActions.d.ts +11 -0
- package/dist/modules/App/components/AppDirectory/index.d.ts +3 -0
- package/dist/modules/App/components/AppHeader/AppHeader.d.ts +2 -0
- package/dist/modules/App/components/AppHeader/BorderButton.d.ts +2 -0
- package/dist/modules/App/components/AppHeader/DisplayModeButtons.d.ts +2 -0
- package/dist/modules/App/components/AppHeader/HistoryButtons.d.ts +2 -0
- package/dist/modules/App/components/AppHeader/PageHeader.d.ts +2 -0
- package/dist/modules/App/components/AppHeader/PreviewModeButtons.d.ts +2 -0
- package/dist/modules/App/components/AppHeader/ZoomButtons.d.ts +2 -0
- package/dist/modules/App/components/AppHeader/index.d.ts +3 -0
- package/dist/modules/App/components/WorkflowDiagram/WorkflowDiagram.d.ts +37 -0
- package/dist/modules/App/components/WorkflowDiagram/components/CustomEdge.d.ts +3 -0
- package/dist/modules/App/components/WorkflowDiagram/components/CustomNode.d.ts +5 -0
- package/dist/modules/App/components/WorkflowDiagram/helpers/schemaToSitemap.d.ts +11 -0
- package/dist/modules/App/components/WorkflowDiagram/helpers/sitemapToFlow.d.ts +20 -0
- package/dist/modules/App/components/WorkflowDiagram/index.d.ts +3 -0
- package/dist/modules/App/helpers/utils.d.ts +8 -0
- package/dist/modules/App/models/DeployForm/DeployForm.d.ts +24 -0
- package/dist/modules/App/models/DeployForm/InputEnvironment.d.ts +2 -0
- package/dist/modules/App/models/DeployForm/index.d.ts +3 -0
- package/dist/modules/App/models/LayoutForm.d.ts +16 -0
- package/dist/modules/App/models/PageFolderForm.d.ts +18 -0
- package/dist/modules/App/models/PageForm.d.ts +18 -0
- package/dist/modules/App/models/PublishForm.d.ts +20 -0
- package/dist/modules/Builder/Builder.d.ts +10 -0
- package/dist/modules/Builder/BuilderHelper.d.ts +44 -0
- package/dist/modules/Builder/BuilderPlugin.d.ts +11 -0
- package/dist/modules/Builder/BuilderPopup.d.ts +6 -0
- package/dist/modules/Builder/BuilderProvider.d.ts +11 -0
- package/dist/modules/Builder/Models/TemplateForm.d.ts +16 -0
- package/dist/modules/Builder/components/BuilderArea/BuilderArea.d.ts +14 -0
- package/dist/modules/Builder/components/BuilderArea/BuilderAreaHeader.d.ts +10 -0
- package/dist/modules/Builder/components/BuilderArea/BuilderAreaOverlay.d.ts +11 -0
- package/dist/modules/Builder/components/BuilderArea/BuilderAreaTracking.d.ts +12 -0
- package/dist/modules/Builder/components/BuilderArea/index.d.ts +3 -0
- package/dist/modules/Builder/components/BuilderAreaPreview/BuilderAreaPreview.d.ts +7 -0
- package/dist/modules/Builder/components/BuilderAreaPreview/index.d.ts +3 -0
- package/dist/modules/Builder/components/BuilderBreadcrumb/BuilderBreadcrumb.d.ts +5 -0
- package/dist/modules/Builder/components/BuilderBreadcrumb/BuilderBreadcrumbItem.d.ts +12 -0
- package/dist/modules/Builder/components/BuilderBreadcrumb/ItemIcon.d.ts +4 -0
- package/dist/modules/Builder/components/BuilderBreadcrumb/index.d.ts +3 -0
- package/dist/modules/Builder/components/BuilderCollaborator/BuilderCollaboratorArea.d.ts +13 -0
- package/dist/modules/Builder/components/BuilderCollaborator/BuilderCollaboratorCursor.d.ts +9 -0
- package/dist/modules/Builder/components/BuilderCollaborator/BuilderCollaboratorHeaderUser.d.ts +9 -0
- package/dist/modules/Builder/components/BuilderContextMenu/BuilderContextMenu.d.ts +8 -0
- package/dist/modules/Builder/components/BuilderContextMenu/BuilderContextMenuItem.d.ts +11 -0
- package/dist/modules/Builder/components/BuilderContextMenu/BuilderContextSubMenu.d.ts +12 -0
- package/dist/modules/Builder/components/BuilderContextMenu/index.d.ts +3 -0
- package/dist/modules/Builder/components/BuilderElementTools/BuilderElementTools.d.ts +5 -0
- package/dist/modules/Builder/components/BuilderElementTools/ElementDefinitionSettings.d.ts +7 -0
- package/dist/modules/Builder/components/BuilderElementTools/ElementSettings.d.ts +8 -0
- package/dist/modules/Builder/components/BuilderElementTools/index.d.ts +3 -0
- package/dist/modules/Builder/components/BuilderOverlay/BuilderOverlay.d.ts +16 -0
- package/dist/modules/Builder/components/BuilderOverlay/BuilderOverlayDistance.d.ts +11 -0
- package/dist/modules/Builder/components/BuilderOverlay/BuilderOverlayDrag.d.ts +10 -0
- package/dist/modules/Builder/components/BuilderOverlay/BuilderOverlayHelper.d.ts +72 -0
- package/dist/modules/Builder/components/BuilderOverlay/BuilderOverlayHelper.test.d.ts +1 -0
- package/dist/modules/Builder/components/BuilderOverlay/OverlayButton.d.ts +9 -0
- package/dist/modules/Builder/components/BuilderOverlay/OverlayButtonContainer.d.ts +13 -0
- package/dist/modules/Builder/components/BuilderOverlay/OverlayButtonResize.d.ts +20 -0
- package/dist/modules/Builder/components/BuilderOverlay/OverlayNormal.d.ts +20 -0
- package/dist/modules/Builder/components/BuilderOverlay/OverlaySpacing.d.ts +11 -0
- package/dist/modules/Builder/components/BuilderOverlay/index.d.ts +3 -0
- package/dist/modules/Builder/components/BuilderTree/BuilderTree.d.ts +2 -0
- package/dist/modules/Builder/components/BuilderTree/BuilderTreeNodeControls.d.ts +7 -0
- package/dist/modules/Builder/components/BuilderTree/index.d.ts +3 -0
- package/dist/modules/Builder/components/BuilderTree/utils.d.ts +10 -0
- package/dist/modules/Builder/components/ToolsList/ToolsList.d.ts +6 -0
- package/dist/modules/Builder/components/ToolsList/ToolsListItem.d.ts +8 -0
- package/dist/modules/Builder/components/ToolsList/index.d.ts +3 -0
- package/dist/modules/Builder/hooks/useNormalizedCursor.d.ts +25 -0
- package/dist/modules/Builder/index.d.ts +3 -0
- package/dist/modules/Collection/CollectionContextProvider.d.ts +8 -0
- package/dist/modules/Collection/Collections.d.ts +2 -0
- package/dist/modules/Collection/Models/CollectionFieldForm.d.ts +41 -0
- package/dist/modules/Collection/Models/CollectionForm.d.ts +13 -0
- package/dist/modules/Collection/Models/CollectionRecordForm/CollectionRecordForm.d.ts +14 -0
- package/dist/modules/Collection/Models/CollectionRecordForm/CollectionRecordFormHelper.d.ts +19 -0
- package/dist/modules/Collection/Models/CollectionRecordForm/index.d.ts +3 -0
- package/dist/modules/Collection/components/Collection/Collection.d.ts +9 -0
- package/dist/modules/Collection/components/Collection/index.d.ts +3 -0
- package/dist/modules/Collection/components/CollectionContainer/CollectionContainer.d.ts +10 -0
- package/dist/modules/Collection/components/CollectionContainer/CollectionRecord.d.ts +13 -0
- package/dist/modules/Collection/components/CollectionContainer/CollectionRecords.d.ts +10 -0
- package/dist/modules/Collection/components/CollectionContainer/index.d.ts +3 -0
- package/dist/modules/Collection/components/CollectionField.d.ts +11 -0
- package/dist/modules/Collection/index.d.ts +1 -0
- package/dist/modules/DataSource/BindingSelected.d.ts +18 -0
- package/dist/modules/DataSource/DataSourceBinding.d.ts +9 -0
- package/dist/modules/DataSource/helpers/transformerString.d.ts +6 -0
- package/dist/modules/DataSource/helpers/whenString.d.ts +3 -0
- package/dist/modules/DataSource/models/BindingForm/BindingForm.d.ts +30 -0
- package/dist/modules/DataSource/models/BindingForm/index.d.ts +3 -0
- package/dist/modules/DataSource/models/BindingForm/steps/StepPreview.d.ts +8 -0
- package/dist/modules/DataSource/models/BindingForm/steps/StepSettings.d.ts +11 -0
- package/dist/modules/DataSource/models/BindingForm/steps/StepSource.d.ts +6 -0
- package/dist/modules/DataSource/models/BindingForm/steps/StepTransformers/StepTransformers.d.ts +6 -0
- package/dist/modules/DataSource/models/BindingForm/steps/StepTransformers/TransformerParam.d.ts +16 -0
- package/dist/modules/DataSource/models/BindingForm/steps/StepTransformers/index.d.ts +3 -0
- package/dist/modules/DataSource/models/BindingForm/steps/StepWhen.d.ts +6 -0
- package/dist/modules/Elements/Element.d.ts +6 -0
- package/dist/modules/Elements/ElementCategory.d.ts +7 -0
- package/dist/modules/Elements/ElementHelper.d.ts +5 -0
- package/dist/modules/Elements/Elements.d.ts +2 -0
- package/dist/modules/Elements/hooks/useDragElement.d.ts +13 -0
- package/dist/modules/Elements/index.d.ts +3 -0
- package/dist/modules/Integrations/Integrations.d.ts +1 -0
- package/dist/modules/Interactions/Interactions.d.ts +9 -0
- package/dist/modules/Interactions/InteractionsBuilderContextProvider.d.ts +7 -0
- package/dist/modules/Interactions/components/Workflow/Workflow.d.ts +11 -0
- package/dist/modules/Interactions/components/Workflow/WorkflowAddNode.d.ts +10 -0
- package/dist/modules/Interactions/components/Workflow/WorkflowContext.d.ts +21 -0
- package/dist/modules/Interactions/components/Workflow/WorkflowContextProvider.d.ts +12 -0
- package/dist/modules/Interactions/components/Workflow/WorkflowFlow.d.ts +9 -0
- package/dist/modules/Interactions/components/Workflow/WorkflowHeader.d.ts +14 -0
- package/dist/modules/Interactions/components/Workflow/WorkflowNode/NodeBody.d.ts +15 -0
- package/dist/modules/Interactions/components/Workflow/WorkflowNode/NodeBodyParam.d.ts +22 -0
- package/dist/modules/Interactions/components/Workflow/WorkflowNode/NodeFooter.d.ts +5 -0
- package/dist/modules/Interactions/components/Workflow/WorkflowNode/NodeHeader.d.ts +21 -0
- package/dist/modules/Interactions/components/Workflow/WorkflowNode/NodePreview.d.ts +8 -0
- package/dist/modules/Interactions/components/Workflow/WorkflowNode/NodeWhen.d.ts +10 -0
- package/dist/modules/Interactions/components/Workflow/WorkflowNode/ParamBinding.d.ts +10 -0
- package/dist/modules/Interactions/components/Workflow/WorkflowNode/WorkflowNode.d.ts +22 -0
- package/dist/modules/Interactions/components/Workflow/WorkflowNode/index.d.ts +3 -0
- package/dist/modules/Interactions/components/Workflow/index.d.ts +3 -0
- package/dist/modules/Interactions/sources/CollectionSource/CollectionInteractions.d.ts +6 -0
- package/dist/modules/Interactions/sources/PageSource/PageInteractions.d.ts +7 -0
- package/dist/modules/Marketplace/Marketplace.d.ts +2 -0
- package/dist/modules/Marketplace/components/MarketNews/MarketNews.d.ts +2 -0
- package/dist/modules/Marketplace/components/MarketNews/index.d.ts +3 -0
- package/dist/modules/Marketplace/components/MarketPlugins/MarketPlugins.d.ts +2 -0
- package/dist/modules/Marketplace/components/MarketPlugins/PluginDetails/DetailsContent.d.ts +2 -0
- package/dist/modules/Marketplace/components/MarketPlugins/PluginDetails/DetailsSidebar.d.ts +19 -0
- package/dist/modules/Marketplace/components/MarketPlugins/PluginDetails/PluginDetails.d.ts +23 -0
- package/dist/modules/Marketplace/components/MarketPlugins/PluginDetails/index.d.ts +3 -0
- package/dist/modules/Marketplace/components/MarketPlugins/PluginItem.d.ts +14 -0
- package/dist/modules/Marketplace/components/MarketPlugins/PluginList.d.ts +7 -0
- package/dist/modules/Marketplace/components/MarketPlugins/PluginsFilter/FilterCategory.d.ts +9 -0
- package/dist/modules/Marketplace/components/MarketPlugins/PluginsFilter/PluginsFilter.d.ts +13 -0
- package/dist/modules/Marketplace/components/MarketPlugins/PluginsFilter/index.d.ts +3 -0
- package/dist/modules/Marketplace/components/MarketPlugins/index.d.ts +3 -0
- package/dist/modules/Marketplace/components/MarketSidebar.d.ts +6 -0
- package/dist/modules/Marketplace/components/MarketSidebarItem.d.ts +9 -0
- package/dist/modules/Marketplace/components/MarketTemplates/MarketTemplates.d.ts +2 -0
- package/dist/modules/Marketplace/components/MarketTemplates/index.d.ts +3 -0
- package/dist/modules/Marketplace/helpers/PluginHelper.d.ts +2 -0
- package/dist/modules/Marketplace/index.d.ts +3 -0
- package/dist/modules/Marketplace/types/index.d.ts +44 -0
- package/dist/modules/Navigation/NavigationContextProvider.d.ts +7 -0
- package/dist/modules/Network/NetworkContextProvider.d.ts +13 -0
- package/dist/modules/Network/NetworkSubscriptionsContextProvider.d.ts +8 -0
- package/dist/modules/Network/contexts/BuilderSubscriptionsContext.d.ts +11 -0
- package/dist/modules/Network/helpers/customFetch.d.ts +12 -0
- package/dist/modules/Network/hooks/useGraphQL.d.ts +15 -0
- package/dist/modules/Network/hooks/useInfiniteGraphQL.d.ts +18 -0
- package/dist/modules/Network/hooks/useSubscriptionsManager.d.ts +21 -0
- package/dist/modules/Network/hooks/useWebsocket.d.ts +20 -0
- package/dist/modules/OpenAI_Deprecated/OpenAIChat.d.ts +2 -0
- package/dist/modules/OpenAI_Deprecated/components/Chat/Chat.d.ts +8 -0
- package/dist/modules/OpenAI_Deprecated/components/Chat/ChatMessage.d.ts +8 -0
- package/dist/modules/OpenAI_Deprecated/components/Chat/Message/Message.d.ts +9 -0
- package/dist/modules/OpenAI_Deprecated/components/Chat/Message/index.d.ts +3 -0
- package/dist/modules/OpenAI_Deprecated/components/Chat/Message/modes/MessageHtml.d.ts +5 -0
- package/dist/modules/OpenAI_Deprecated/components/Chat/Message/modes/MessageText.d.ts +7 -0
- package/dist/modules/OpenAI_Deprecated/components/Chat/index.d.ts +3 -0
- package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/VoiceVisualizer.d.ts +18 -0
- package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/helpers/drawByBlob.d.ts +11 -0
- package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/helpers/drawByLiveStream.d.ts +20 -0
- package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/helpers/getBarsData.d.ts +9 -0
- package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/helpers/index.d.ts +7 -0
- package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/helpers/initialCanvasSetup.d.ts +9 -0
- package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/helpers/paintLine.d.ts +9 -0
- package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/helpers/paintLineFromCenterToRight.d.ts +8 -0
- package/dist/modules/OpenAI_Deprecated/components/VoiceVisualizer/index.d.ts +3 -0
- package/dist/modules/OpenAI_Deprecated/hooks/useMediaRecorder.d.ts +18 -0
- package/dist/modules/OpenAI_Deprecated/hooks/useWebWorker.d.ts +10 -0
- package/dist/modules/OpenAI_Deprecated/index.d.ts +1 -0
- package/dist/modules/OpenAI_Deprecated/types/openAI.d.ts +20 -0
- package/dist/modules/Plugins/PluginsContextProvider.d.ts +8 -0
- package/dist/modules/Plugins/PluginsReducer.d.ts +25 -0
- package/dist/modules/Plugins/index.d.ts +1 -0
- package/dist/modules/Queue/QueueContext.d.ts +25 -0
- package/dist/modules/Queue/QueueContextProvider.d.ts +7 -0
- package/dist/modules/Queue/QueueStatusContext.d.ts +3 -0
- package/dist/modules/Queue/hooks/useQueueManager.d.ts +19 -0
- package/dist/modules/Resources/Models/PluginSettingsForm.d.ts +8 -0
- package/dist/modules/Resources/Models/ResourceCdnForm.d.ts +30 -0
- package/dist/modules/Resources/Models/ResourceDirectoryForm.d.ts +15 -0
- package/dist/modules/Resources/Resources.d.ts +2 -0
- package/dist/modules/Resources/components/Resource/Resource.d.ts +15 -0
- package/dist/modules/Resources/components/Resource/ResourceLoading.d.ts +2 -0
- package/dist/modules/Resources/components/Resource/ResourceName.d.ts +6 -0
- package/dist/modules/Resources/components/Resource/ResourceRemoveButton.d.ts +6 -0
- package/dist/modules/Resources/components/Resource/index.d.ts +3 -0
- package/dist/modules/Resources/components/Resource/subTypes/ResourceFile/ResourceFile.d.ts +15 -0
- package/dist/modules/Resources/components/Resource/subTypes/ResourceFile/index.d.ts +3 -0
- package/dist/modules/Resources/components/Resource/subTypes/ResourceImage/ResourceImage.d.ts +14 -0
- package/dist/modules/Resources/components/Resource/subTypes/ResourceImage/index.d.ts +3 -0
- package/dist/modules/Resources/components/Resource/subTypes/ResourcePlugin/PluginContent.d.ts +13 -0
- package/dist/modules/Resources/components/Resource/subTypes/ResourcePlugin/ResourcePlugin.d.ts +14 -0
- package/dist/modules/Resources/components/Resource/subTypes/ResourceTemplate/ResourceTemplate.d.ts +13 -0
- package/dist/modules/Resources/components/Resource/subTypes/ResourceTemplate/TemplateContent.d.ts +8 -0
- package/dist/modules/Resources/components/Resource/subTypes/ResourceTemplate/index.d.ts +3 -0
- package/dist/modules/Resources/components/Resource/subTypes/ResourceVideo/ResourceVideo.d.ts +14 -0
- package/dist/modules/Resources/components/Resource/subTypes/ResourceVideo/index.d.ts +3 -0
- package/dist/modules/Resources/components/ResourceManager/ResourceContent/ResourceContent.d.ts +12 -0
- package/dist/modules/Resources/components/ResourceManager/ResourceContent/contents/ContentPlugin.d.ts +13 -0
- package/dist/modules/Resources/components/ResourceManager/ResourceContent/index.d.ts +3 -0
- package/dist/modules/Resources/components/ResourceManager/ResourceManager.d.ts +10 -0
- package/dist/modules/Resources/components/ResourceManager/ResourceUploadStatus.d.ts +9 -0
- package/dist/modules/Resources/components/ResourceManager/TemporalResource.d.ts +15 -0
- package/dist/modules/Resources/components/ResourceManager/helpers/formatBytes.d.ts +2 -0
- package/dist/modules/Resources/components/ResourceManager/helpers/getPluginManifest.d.ts +3 -0
- package/dist/modules/Resources/components/ResourceManager/index.d.ts +3 -0
- package/dist/modules/Resources/components/ResourcesCdn/ResourcesCdn.d.ts +12 -0
- package/dist/modules/Resources/components/ResourcesCdn/index.d.ts +3 -0
- package/dist/modules/Resources/components/ResourcesList/ListHelper.d.ts +5 -0
- package/dist/modules/Resources/components/ResourcesList/ResourceDirectory.d.ts +15 -0
- package/dist/modules/Resources/components/ResourcesList/ResourcesList.d.ts +18 -0
- package/dist/modules/Resources/components/ResourcesList/ResourcesListProvider.d.ts +20 -0
- package/dist/modules/Resources/components/ResourcesList/index.d.ts +3 -0
- package/dist/modules/Resources/index.d.ts +3 -0
- package/dist/modules/Schema/SchemaContextProvider.d.ts +9 -0
- package/dist/modules/Segments/Segment.d.ts +11 -0
- package/dist/modules/Segments/Segments.d.ts +2 -0
- package/dist/modules/Segments/SegmentsContextProvider.d.ts +7 -0
- package/dist/modules/Segments/SegmentsReducer.d.ts +128 -0
- package/dist/modules/Segments/index.d.ts +3 -0
- package/dist/modules/Segments/models/PublishForm.d.ts +19 -0
- package/dist/modules/Segments/models/SegmentForm.d.ts +17 -0
- package/dist/modules/Space/Models/SpaceCredentialForm.d.ts +40 -0
- package/dist/modules/Space/SpaceContainer.d.ts +6 -0
- package/dist/modules/Space/SpaceContainerInternal.d.ts +6 -0
- package/dist/modules/Space/SpaceContext.d.ts +3 -0
- package/dist/modules/Space/SpaceContextProvider.d.ts +6 -0
- package/dist/modules/Space/components/SpaceCredentialSelectorModal/ModalBody.d.ts +11 -0
- package/dist/modules/Space/components/SpaceCredentialSelectorModal/SpaceCredentialSelectorModal.d.ts +11 -0
- package/dist/modules/Space/components/SpaceCredentialSelectorModal/SpaceCredentialsEmpty.d.ts +6 -0
- package/dist/modules/Space/components/SpaceCredentialSelectorModal/index.d.ts +3 -0
- package/dist/modules/Space/components/SpaceCredentials/SpaceCredential.d.ts +19 -0
- package/dist/modules/Space/components/SpaceCredentials/SpaceCredentials.d.ts +10 -0
- package/dist/modules/Space/components/SpaceCredentials/index.d.ts +3 -0
- package/dist/modules/StateManager/StateManager.d.ts +5 -0
- package/dist/modules/Style/StyleContextProvider.d.ts +6 -0
- package/dist/modules/Transformers/Transform.d.ts +2 -0
- package/dist/modules/Transformers/TransformActions.d.ts +14 -0
- package/dist/modules/Transformers/TransformLayout.d.ts +9 -0
- package/dist/modules/Transformers/TransformPreview.d.ts +13 -0
- package/dist/modules/Undoable/UndoableContext.d.ts +28 -0
- package/dist/modules/Undoable/UndoableContextProducer.d.ts +6 -0
- package/dist/modules/Undoable/UndoableReducer.d.ts +23 -0
- package/dist/modules/Variables/Variables.d.ts +2 -0
- package/dist/modules/Variables/index.d.ts +3 -0
- package/dist/modules/index.d.ts +1 -0
- package/dist/patches/useSyncExternalStoreWithSelector.d.ts +4 -0
- package/dist/plitzi-builder-dev-vendor.js +15564 -0
- package/dist/plitzi-builder-dev-vendor.js.gz +0 -0
- package/dist/plitzi-builder-dev-vendor.js.map +1 -0
- package/dist/plitzi-builder-dev-vendor.js.map.gz +0 -0
- package/dist/plitzi-builder-vendor.js +1 -0
- package/dist/plitzi-builder-vendor.js.gz +0 -0
- package/dist/plitzi-builder.css +3 -0
- package/dist/plitzi-builder.css.gz +0 -0
- package/dist/plitzi-builder.js +4186 -0
- package/dist/plitzi-builder.js.gz +0 -0
- package/dist/robots.txt +2 -0
- package/dist/serviceWorker.d.ts +2 -0
- package/dist/vendor-entry.d.ts +17 -0
- package/package.json +140 -0
package/README.md
ADDED
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Server } from '@plitzi/sdk-shared';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export type AppProps = {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
server?: Partial<Server>;
|
|
7
|
+
webKey: string;
|
|
8
|
+
includeSubscriptions?: boolean;
|
|
9
|
+
userKey?: string;
|
|
10
|
+
debugMode?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const App: (props: AppProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default App;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { default as ComponentProvider } from '@plitzi/sdk-elements/Component/ComponentProvider';
|
|
2
|
+
import { default as withElement } from '@plitzi/sdk-elements/Element/hocs/withElement';
|
|
3
|
+
import { default as JsxManager } from '@plitzi/sdk-elements/Element/JsxManager';
|
|
4
|
+
import { default as PluginManager } from '@plitzi/sdk-elements/Element/PluginManager';
|
|
5
|
+
import { default as PluginRemote } from '@plitzi/sdk-elements/Element/PluginRemote';
|
|
6
|
+
import { default as ReplicaProvider } from '@plitzi/sdk-elements/Element/ReplicaProvider';
|
|
7
|
+
import { default as RootElement } from '@plitzi/sdk-elements/Element/RootElement';
|
|
8
|
+
import { default as ComponentContext } from '@plitzi/sdk-shared/elements/ComponentContext';
|
|
9
|
+
import { default as ElementContext } from '@plitzi/sdk-shared/elements/ElementContext';
|
|
10
|
+
import { default as useElement } from '@plitzi/sdk-shared/elements/hooks/useElement';
|
|
11
|
+
import { default as usePlitziServiceContext, PlitziServiceProvider } from '@plitzi/sdk-shared/hooks/usePlitziServiceContext';
|
|
12
|
+
import { default as useRscData } from '@plitzi/sdk-shared/server/hooks/useRscData';
|
|
13
|
+
import { AppProps } from './App';
|
|
14
|
+
import { ComponentPlugin, RenderMode, Server } from '@plitzi/sdk-shared';
|
|
15
|
+
import { ReactNode } from 'react';
|
|
16
|
+
export declare function render(widgetContainer: string, params?: AppProps, plugins?: Record<string, ComponentPlugin>, debugMode?: boolean): void;
|
|
17
|
+
export type PlitziBuilderProps = {
|
|
18
|
+
className?: string;
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
webKey: string;
|
|
21
|
+
environment?: string;
|
|
22
|
+
currentPageId?: string;
|
|
23
|
+
userKey?: string;
|
|
24
|
+
server?: Partial<Server>;
|
|
25
|
+
includeSubscriptions?: boolean;
|
|
26
|
+
includeRealTime?: boolean;
|
|
27
|
+
renderMode?: RenderMode;
|
|
28
|
+
externalStyle?: string;
|
|
29
|
+
state?: object;
|
|
30
|
+
debugMode?: boolean;
|
|
31
|
+
};
|
|
32
|
+
declare const PlitziBuilder: {
|
|
33
|
+
(props: PlitziBuilderProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
Plugin: (_props: import('./modules/Builder/BuilderPlugin').BuilderPluginProps) => undefined;
|
|
35
|
+
};
|
|
36
|
+
export declare const version: string;
|
|
37
|
+
export { ComponentProvider, ComponentContext, usePlitziServiceContext, PlitziServiceProvider, RootElement, withElement, JsxManager, PluginManager, PluginRemote, ReplicaProvider, useElement, useRscData, ElementContext };
|
|
38
|
+
export default PlitziBuilder;
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>Plitzi SDK Builder</title>
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<link rel="shortcut icon" href="https://cdn.plitzi.com/resources/img/favicon.svg" />
|
|
8
|
+
|
|
9
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
|
10
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
11
|
+
<link rel="preconnect" href="https://cdn.plitzi.com" />
|
|
12
|
+
<link rel="preconnect" href="https://server.plitzi.local:8888" />
|
|
13
|
+
<link rel="preconnect" href="https://api.plitzi.local" />
|
|
14
|
+
<link rel="preconnect" href="https://ssr.plitzi.local:4000" />
|
|
15
|
+
|
|
16
|
+
<link rel="modulepreload" href="/plitzi-builder-vendor.js" crossorigin />
|
|
17
|
+
<link rel="modulepreload" href="/plitzi-builder-vendor.js" crossorigin />
|
|
18
|
+
<link rel="modulepreload" href="/plitzi-builder.js" />
|
|
19
|
+
|
|
20
|
+
<script type="importmap">
|
|
21
|
+
{
|
|
22
|
+
"imports": {
|
|
23
|
+
"react": "/plitzi-builder-vendor.js",
|
|
24
|
+
"react-dom": "/plitzi-builder-vendor.js",
|
|
25
|
+
"react-dom/client": "/plitzi-builder-vendor.js",
|
|
26
|
+
"react/jsx-runtime": "/plitzi-builder-vendor.js",
|
|
27
|
+
"@plitzi/plitzi-sdk": "/plitzi-builder.js"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
</script>
|
|
31
|
+
<link
|
|
32
|
+
rel="preload"
|
|
33
|
+
href="https://fonts.googleapis.com/icon?family=Material+Icons"
|
|
34
|
+
as="style"
|
|
35
|
+
onload="
|
|
36
|
+
this.onload = null;
|
|
37
|
+
this.rel = 'stylesheet';
|
|
38
|
+
"
|
|
39
|
+
/>
|
|
40
|
+
<noscript>
|
|
41
|
+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
|
42
|
+
</noscript>
|
|
43
|
+
|
|
44
|
+
<link href="/plitzi-builder.css" rel="preload" as="style" />
|
|
45
|
+
<link href="/plitzi-builder.css" rel="stylesheet" />
|
|
46
|
+
</head>
|
|
47
|
+
|
|
48
|
+
<body>
|
|
49
|
+
<noscript> You need to enable JavaScript to run this app. </noscript>
|
|
50
|
+
|
|
51
|
+
<div id="plitzi" class="plitzi-root-container"></div>
|
|
52
|
+
|
|
53
|
+
<script type="module">
|
|
54
|
+
import { render } from '/plitzi-builder.js';
|
|
55
|
+
|
|
56
|
+
render(
|
|
57
|
+
'plitzi',
|
|
58
|
+
{
|
|
59
|
+
webKey:
|
|
60
|
+
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NzY5NzExMDMsImlzcyI6Imh0dHBzOlwvXC9hcGkucGxpdHppLmxvY2FsIiwibmJmIjoxNzc2OTcxMTAzLCJhdWQiOlsiaHR0cHM6XC9cL2FwcC5wbGl0emkubG9jYWwiLCJodHRwczpcL1wvc3NyLnBsaXR6aS5sb2NhbDo0MDAwIiwiaHR0cHM6XC9cL3NlcnZlci5wbGl0emkubG9jYWw6ODg4OCIsImh0dHBzXC9cL2FwcC5wbGl0emkubG9jYWw6MzAwMCIsImh0dHBzOlwvXC9hcHAucGxpdHppLmxvY2FsOjMwMDEiLCJodHRwczpcL1wvd2Vic2l0ZS5wbGl0emkuYXBwIl0sImRhdGEiOnsic3BhY2VJZCI6MX0sInZlcnNpb24iOjF9.D7-CrIEmSoJMwlReT3Qe1zgZjovzEFVw7Ybnni3bfko',
|
|
61
|
+
environment: 'main',
|
|
62
|
+
revision: 0,
|
|
63
|
+
renderMode: 'raw',
|
|
64
|
+
server: {
|
|
65
|
+
basePath: '',
|
|
66
|
+
// Dashboard
|
|
67
|
+
apiServer: 'https://api.plitzi.local',
|
|
68
|
+
ssrServer: 'https://ssr.plitzi.local:4000',
|
|
69
|
+
// SDK
|
|
70
|
+
nodeServer: 'https://server.plitzi.local:8888',
|
|
71
|
+
graphqlServer: 'https://server.plitzi.local:8888/graphql',
|
|
72
|
+
websocketServer: 'wss://server.plitzi.local:8888',
|
|
73
|
+
subscriptionServer: 'wss://server.plitzi.local:8888/subscriptions'
|
|
74
|
+
},
|
|
75
|
+
state: {}
|
|
76
|
+
},
|
|
77
|
+
{},
|
|
78
|
+
true
|
|
79
|
+
);
|
|
80
|
+
</script>
|
|
81
|
+
</body>
|
|
82
|
+
</html>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AiProviderSettings, AiUsage } from '../types';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
type AiChatHeaderProps = {
|
|
4
|
+
onClear: () => void;
|
|
5
|
+
onCompact?: () => void;
|
|
6
|
+
isStreaming: boolean;
|
|
7
|
+
messageCount?: number;
|
|
8
|
+
badge?: string;
|
|
9
|
+
extra?: ReactNode;
|
|
10
|
+
providerSettings?: AiProviderSettings;
|
|
11
|
+
usage?: AiUsage;
|
|
12
|
+
isSettingsOpen?: boolean;
|
|
13
|
+
onSettingsToggle?: () => void;
|
|
14
|
+
};
|
|
15
|
+
declare const AiChatHeader: ({ onClear, onCompact, isStreaming, messageCount, badge, extra, providerSettings, usage, isSettingsOpen, onSettingsToggle }: AiChatHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default AiChatHeader;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AiModelInfo, AiProviderSettings } from '../../types';
|
|
2
|
+
export type AiProviderSettingsProps = {
|
|
3
|
+
settings: AiProviderSettings;
|
|
4
|
+
models: AiModelInfo[];
|
|
5
|
+
modelsLoading: boolean;
|
|
6
|
+
modelsError?: string;
|
|
7
|
+
onChange: (updates: Partial<AiProviderSettings>) => void;
|
|
8
|
+
};
|
|
9
|
+
declare const AiProviderSettings: ({ settings, models, modelsLoading, modelsError, onChange }: AiProviderSettingsProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default AiProviderSettings;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AiMessage, AiToolCall } from '../../types';
|
|
2
|
+
import { RefObject } from 'react';
|
|
3
|
+
export type ChatProps = {
|
|
4
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
5
|
+
messages: AiMessage[];
|
|
6
|
+
streamingText?: string;
|
|
7
|
+
liveThinking?: string;
|
|
8
|
+
liveTools?: AiToolCall[];
|
|
9
|
+
};
|
|
10
|
+
declare const Chat: ({ ref, messages, streamingText, liveThinking, liveTools }: ChatProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default Chat;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AiToolCall } from '../../types';
|
|
2
|
+
type LiveEntryProps = {
|
|
3
|
+
streamingText?: string;
|
|
4
|
+
liveThinking?: string;
|
|
5
|
+
liveTools?: AiToolCall[];
|
|
6
|
+
};
|
|
7
|
+
declare const LiveEntry: ({ streamingText, liveThinking, liveTools }: LiveEntryProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default LiveEntry;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AiAttachment } from '../../types';
|
|
2
|
+
type AttachmentThumbnailProps = {
|
|
3
|
+
attachment: AiAttachment;
|
|
4
|
+
onRemove: (id: string) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const AttachmentThumbnail: ({ attachment, onRemove }: AttachmentThumbnailProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default AttachmentThumbnail;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AiAttachment } from '../../types';
|
|
2
|
+
export type ChatInputHandle = {
|
|
3
|
+
appendText: (text: string) => void;
|
|
4
|
+
};
|
|
5
|
+
type ChatInputProps = {
|
|
6
|
+
isStreaming: boolean;
|
|
7
|
+
isListening: boolean;
|
|
8
|
+
isVoiceSupported: boolean;
|
|
9
|
+
audioData: Uint8Array<ArrayBuffer> | null;
|
|
10
|
+
onSend: (message: string, attachments: AiAttachment[]) => void;
|
|
11
|
+
onVoiceToggle: () => void;
|
|
12
|
+
};
|
|
13
|
+
declare const ChatInput: import('react').ForwardRefExoticComponent<ChatInputProps & import('react').RefAttributes<ChatInputHandle>>;
|
|
14
|
+
export default ChatInput;
|
package/dist/modules/AI/components/ChatMessage/components/AITemplatePreview/AITemplateHeader.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DisplayMode } from '@plitzi/sdk-shared';
|
|
2
|
+
export type AITemplateHeaderProps = {
|
|
3
|
+
baseElementId: string;
|
|
4
|
+
displayMode: DisplayMode;
|
|
5
|
+
onDisplayMode: (mode: DisplayMode) => void;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
};
|
|
8
|
+
declare const AITemplateHeader: ({ baseElementId, displayMode, onDisplayMode, onClick }: AITemplateHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default AITemplateHeader;
|
package/dist/modules/AI/components/ChatMessage/components/AITemplatePreview/AITemplatePreview.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Schema, Style } from '@plitzi/sdk-shared';
|
|
2
|
+
export type AITemplatePreviewProps = {
|
|
3
|
+
baseElementId: string;
|
|
4
|
+
schema: Pick<Schema, 'flat'>;
|
|
5
|
+
style: Pick<Style, 'platform' | 'cache'>;
|
|
6
|
+
};
|
|
7
|
+
declare const AITemplatePreview: ({ baseElementId, schema, style }: AITemplatePreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default AITemplatePreview;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ChatMessage';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AiToolCall } from '../types';
|
|
2
|
+
type ToolCallGroupProps = {
|
|
3
|
+
tools: AiToolCall[];
|
|
4
|
+
defaultOpen?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const ToolCallGroup: ({ tools, defaultOpen }: ToolCallGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ToolCallGroup;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
export type VoiceVisualizerProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
audioData?: Uint8Array<ArrayBuffer> | null;
|
|
5
|
+
recordingPaused?: boolean;
|
|
6
|
+
isRecording?: boolean;
|
|
7
|
+
speed?: number;
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
mainBarColor?: string;
|
|
10
|
+
barWidth?: number;
|
|
11
|
+
gap?: number;
|
|
12
|
+
rounded?: number;
|
|
13
|
+
animateCurrentPick?: boolean;
|
|
14
|
+
fullscreen?: boolean;
|
|
15
|
+
ref?: RefObject<HTMLCanvasElement | null>;
|
|
16
|
+
};
|
|
17
|
+
declare const VoiceVisualizer: ({ ref, className, audioData, recordingPaused, isRecording, speed, backgroundColor, mainBarColor, barWidth, gap, rounded, animateCurrentPick, fullscreen }: VoiceVisualizerProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default VoiceVisualizer;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const drawByBlob: ({ barsData, canvas, barWidth, gap, backgroundColor, mainBarColor, rounded }: {
|
|
2
|
+
barsData: {
|
|
3
|
+
max: number;
|
|
4
|
+
}[];
|
|
5
|
+
canvas: HTMLCanvasElement;
|
|
6
|
+
barWidth: number;
|
|
7
|
+
gap: number;
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
mainBarColor: string;
|
|
10
|
+
rounded: number;
|
|
11
|
+
}) => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
export declare const drawByLiveStream: ({ audioData, unit, index, index2, canvas, isRecording, isPausedRecording, picks, backgroundColor, barWidth, mainBarColor, rounded, animateCurrentPick, fullscreen }: {
|
|
3
|
+
audioData?: Uint8Array<ArrayBuffer> | null;
|
|
4
|
+
unit: number;
|
|
5
|
+
index: RefObject<number>;
|
|
6
|
+
index2: RefObject<number>;
|
|
7
|
+
canvas: HTMLCanvasElement;
|
|
8
|
+
isRecording: boolean;
|
|
9
|
+
isPausedRecording: boolean;
|
|
10
|
+
picks: ({
|
|
11
|
+
startY: number;
|
|
12
|
+
barHeight: number;
|
|
13
|
+
} | null)[];
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
barWidth: number;
|
|
16
|
+
mainBarColor: string;
|
|
17
|
+
rounded: number;
|
|
18
|
+
animateCurrentPick: boolean;
|
|
19
|
+
fullscreen: boolean;
|
|
20
|
+
}) => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { drawByBlob } from './drawByBlob';
|
|
2
|
+
import { drawByLiveStream } from './drawByLiveStream';
|
|
3
|
+
import { getBarsData } from './getBarsData';
|
|
4
|
+
import { initialCanvasSetup } from './initialCanvasSetup';
|
|
5
|
+
import { paintLine } from './paintLine';
|
|
6
|
+
import { paintLineFromCenterToRight } from './paintLineFromCenterToRight';
|
|
7
|
+
export { paintLine, drawByBlob, initialCanvasSetup, drawByLiveStream, paintLineFromCenterToRight, getBarsData };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AiFrontendToolRunner } from '../tools';
|
|
2
|
+
import { AiAttachment, AiContext, AiMessage, AiProviderSettings, AiToolCall, AiUsage } from '../types';
|
|
3
|
+
declare const useAiChat: (runClientTool?: AiFrontendToolRunner, providerSettings?: AiProviderSettings) => {
|
|
4
|
+
messages: AiMessage[];
|
|
5
|
+
streamingText: string;
|
|
6
|
+
liveThinking: string;
|
|
7
|
+
liveTools: AiToolCall[];
|
|
8
|
+
isStreaming: boolean;
|
|
9
|
+
usage: AiUsage | undefined;
|
|
10
|
+
initConversation: () => Promise<void>;
|
|
11
|
+
sendMessage: (message: string, context: AiContext, attachments?: AiAttachment[]) => Promise<void>;
|
|
12
|
+
clearConversation: () => void;
|
|
13
|
+
compact: () => Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
export default useAiChat;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AiModelInfo, AiProviderSettings } from '../types';
|
|
2
|
+
declare const useAiProviderSettings: (enabled?: boolean) => {
|
|
3
|
+
settings: AiProviderSettings;
|
|
4
|
+
models: AiModelInfo[];
|
|
5
|
+
modelsLoading: boolean;
|
|
6
|
+
modelsError: string | undefined;
|
|
7
|
+
updateSettings: (updates: Partial<AiProviderSettings>) => void;
|
|
8
|
+
};
|
|
9
|
+
export default useAiProviderSettings;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type UseMediaRecorderProps = {
|
|
2
|
+
mimeType?: string;
|
|
3
|
+
onPausedRecording?: () => void;
|
|
4
|
+
onResumedRecording?: () => void;
|
|
5
|
+
onUpdate?: (chunks: Blob[], chunk: Blob) => void;
|
|
6
|
+
onFinish?: (audioUrl: string, audioBlob: Blob) => void | Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
declare const useMediaRecorder: ({ mimeType, onPausedRecording, onResumedRecording, onUpdate, onFinish }: UseMediaRecorderProps) => {
|
|
9
|
+
start: () => Promise<void>;
|
|
10
|
+
resume: () => void;
|
|
11
|
+
pause: () => void;
|
|
12
|
+
stop: () => void;
|
|
13
|
+
recording: boolean;
|
|
14
|
+
error: string | undefined;
|
|
15
|
+
audioData: Uint8Array<ArrayBuffer>;
|
|
16
|
+
paused: boolean;
|
|
17
|
+
};
|
|
18
|
+
export default useMediaRecorder;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type UseVoiceOptions = {
|
|
2
|
+
onTranscript: (text: string) => void;
|
|
3
|
+
};
|
|
4
|
+
declare const useVoice: ({ onTranscript }: UseVoiceOptions) => {
|
|
5
|
+
start: () => Promise<void>;
|
|
6
|
+
stop: () => void;
|
|
7
|
+
isListening: boolean;
|
|
8
|
+
isSupported: boolean;
|
|
9
|
+
audioData: Uint8Array<ArrayBuffer>;
|
|
10
|
+
};
|
|
11
|
+
export default useVoice;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Schema } from '@plitzi/sdk-shared';
|
|
2
|
+
export type BuilderContextElement = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
type: string;
|
|
6
|
+
parentId?: string;
|
|
7
|
+
};
|
|
8
|
+
export type BuilderContextResult = {
|
|
9
|
+
currentPageId: string | undefined;
|
|
10
|
+
selectedElementId: string | undefined;
|
|
11
|
+
elements: BuilderContextElement[];
|
|
12
|
+
};
|
|
13
|
+
export declare const buildBuilderContext: (schema: Schema | undefined, currentPageId: string | undefined, selectedElementId: string | undefined) => BuilderContextResult;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AiMessagePreview } from '../types';
|
|
2
|
+
export { transformStagePreview } from './stagePreview';
|
|
3
|
+
export type { PreviewElement, StagePreviewArgs, StagePreviewResult } from './stagePreview';
|
|
4
|
+
export { buildBuilderContext } from './getBuilderContext';
|
|
5
|
+
export type { BuilderContextResult } from './getBuilderContext';
|
|
6
|
+
export type AiFrontendToolResult = {
|
|
7
|
+
toolResult: unknown;
|
|
8
|
+
pendingPreview?: Extract<AiMessagePreview, {
|
|
9
|
+
baseElementId: string;
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
12
|
+
export type AiFrontendToolRunner = (name: string, args: Record<string, unknown>) => Promise<AiFrontendToolResult>;
|
|
13
|
+
export declare const CLIENT_TOOL_NAMES: readonly ["stage_preview"];
|
|
14
|
+
export type ClientToolName = (typeof CLIENT_TOOL_NAMES)[number];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AiMessagePreview } from '../types';
|
|
2
|
+
export type PreviewElement = {
|
|
3
|
+
id: string;
|
|
4
|
+
type: string;
|
|
5
|
+
label: string;
|
|
6
|
+
parentId?: string;
|
|
7
|
+
children?: string[];
|
|
8
|
+
attributes?: Record<string, unknown>;
|
|
9
|
+
styles?: Record<string, string>;
|
|
10
|
+
tablet?: Record<string, string>;
|
|
11
|
+
mobile?: Record<string, string>;
|
|
12
|
+
};
|
|
13
|
+
export type StagePreviewArgs = {
|
|
14
|
+
baseElementId: string;
|
|
15
|
+
elements: PreviewElement[];
|
|
16
|
+
};
|
|
17
|
+
export type StagePreviewResult = {
|
|
18
|
+
success: true;
|
|
19
|
+
elementCount: number;
|
|
20
|
+
};
|
|
21
|
+
type TemplatePreview = Extract<AiMessagePreview, {
|
|
22
|
+
baseElementId: string;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const transformStagePreview: (args: StagePreviewArgs) => TemplatePreview;
|
|
25
|
+
export {};
|