@plitzi/plitzi-builder 0.37.8 → 0.37.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +847 -0
- package/dist/config/index.d.ts +0 -4
- package/dist/index.html +4 -2
- package/dist/modules/AI/components/ChatMessage/components/{AITemplatePreview/AITemplatePreview.d.ts → AISnippetPreview/AISnippetPreview.d.ts} +3 -3
- package/dist/modules/AI/components/ChatMessage/components/{AITemplatePreview/components/AITemplateHeader/AITemplateHeader.d.ts → AISnippetPreview/components/AISnippetHeader/AISnippetHeader.d.ts} +3 -3
- package/dist/modules/AI/components/ChatMessage/components/AISnippetPreview/components/AISnippetHeader/index.d.ts +3 -0
- package/dist/modules/AI/components/ChatMessage/components/AISnippetPreview/index.d.ts +3 -0
- package/dist/modules/AI/hooks/useAiChat.d.ts +2 -1
- package/dist/modules/Actions/ActionsContext.d.ts +0 -1
- package/dist/modules/App/AppContainer/components/NotificationsSettings/NotificationsSettings.d.ts +7 -0
- package/dist/modules/App/AppContainer/components/NotificationsSettings/index.d.ts +2 -0
- package/dist/modules/App/AppContainer/containers/ContainerServer.d.ts +7 -0
- package/dist/modules/App/AppContainer/containers/ContainerSettings.d.ts +1 -0
- package/dist/modules/App/AppContainer/containers/GeneralSettings.d.ts +2 -0
- package/dist/modules/App/AppContext.d.ts +3 -0
- package/dist/modules/App/components/AppHeader/GridButton.d.ts +3 -0
- package/dist/modules/App/components/AppHeader/IssuesButton/helpers.d.ts +2 -0
- package/dist/modules/App/components/AppHeader/QuotaBreakdown.d.ts +7 -6
- package/dist/modules/App/components/EmptyState/EmptyState.d.ts +12 -0
- package/dist/modules/App/components/EmptyState/index.d.ts +3 -0
- package/dist/modules/App/components/PanelSections/PanelSections.d.ts +27 -0
- package/dist/modules/App/components/PanelSections/index.d.ts +3 -0
- package/dist/modules/App/components/ResourceRow/ResourceRow.d.ts +19 -0
- package/dist/modules/App/components/ResourceRow/index.d.ts +3 -0
- package/dist/modules/App/components/SitemapDiagram/SitemapDiagram.d.ts +25 -0
- package/dist/modules/App/components/SitemapDiagram/components/SitemapChip/SitemapChip.d.ts +21 -0
- package/dist/modules/App/components/SitemapDiagram/components/SitemapChip/index.d.ts +3 -0
- package/dist/modules/App/components/SitemapDiagram/components/SitemapLegend/SitemapLegend.d.ts +3 -0
- package/dist/modules/App/components/SitemapDiagram/components/SitemapLegend/index.d.ts +2 -0
- package/dist/modules/App/components/SitemapDiagram/components/SitemapNode/SitemapNode.d.ts +15 -0
- package/dist/modules/App/components/SitemapDiagram/components/SitemapNode/index.d.ts +3 -0
- package/dist/modules/App/components/SitemapDiagram/components/SitemapPath/SitemapPath.d.ts +6 -0
- package/dist/modules/App/components/SitemapDiagram/components/SitemapPath/index.d.ts +3 -0
- package/dist/modules/App/components/SitemapDiagram/components/SitemapToolbar/SitemapToolbar.d.ts +16 -0
- package/dist/modules/App/components/SitemapDiagram/components/SitemapToolbar/index.d.ts +3 -0
- package/dist/modules/App/components/SitemapDiagram/helpers/schemaToSitemap.d.ts +10 -0
- package/dist/modules/App/components/SitemapDiagram/helpers/schemaToSitemap.test.d.ts +1 -0
- package/dist/modules/App/components/SitemapDiagram/helpers/searchSitemap.d.ts +12 -0
- package/dist/modules/App/components/SitemapDiagram/index.d.ts +4 -0
- package/dist/modules/App/components/SitemapDiagram/types.d.ts +36 -0
- package/dist/modules/App/components/VersionContents/PluginList.d.ts +7 -0
- package/dist/modules/App/components/VersionContents/VersionContents.d.ts +14 -0
- package/dist/modules/App/components/VersionContents/helpers.d.ts +8 -0
- package/dist/modules/App/components/VersionContents/helpers.test.d.ts +1 -0
- package/dist/modules/App/components/VersionContents/index.d.ts +2 -0
- package/dist/modules/App/components/VersionContents/useVersionContents.d.ts +8 -0
- package/dist/modules/App/components/ViewPage/ViewPage.d.ts +22 -0
- package/dist/modules/App/components/ViewPage/index.d.ts +3 -0
- package/dist/modules/App/components/ViewSection/ViewSection.d.ts +10 -0
- package/dist/modules/App/components/ViewSection/index.d.ts +3 -0
- package/dist/modules/App/helpers/utils.d.ts +10 -1
- package/dist/modules/App/hooks/useSitemapOpen.d.ts +7 -0
- package/dist/modules/Builder/BuilderHelper.d.ts +4 -4
- package/dist/modules/Builder/BuilderProvider.d.ts +1 -1
- package/dist/modules/Builder/Models/SnippetForm.d.ts +16 -0
- package/dist/modules/Builder/components/BuilderContextMenu/BuilderContextMenuItem.d.ts +6 -1
- package/dist/modules/Builder/components/BuilderElementTools/ElementAnchor.d.ts +11 -0
- package/dist/modules/Builder/components/BuilderElementTools/ElementDefinitionSettings.d.ts +3 -1
- package/dist/modules/Builder/components/BuilderElementTools/ElementFlagGate.d.ts +16 -0
- package/dist/modules/Builder/components/BuilderElementTools/NothingSelected.d.ts +6 -0
- package/dist/modules/Builder/helpers/reuse.d.ts +16 -0
- package/dist/modules/Builder/hooks/useSaveAsSnippet.d.ts +8 -0
- package/dist/modules/Components/Components.d.ts +11 -0
- package/dist/modules/Components/components/ComponentBanner/ComponentBanner.d.ts +7 -0
- package/dist/modules/Components/components/ComponentBanner/index.d.ts +1 -0
- package/dist/modules/Components/components/ComponentForm/ComponentForm.d.ts +19 -0
- package/dist/modules/Components/components/ComponentForm/SlotChoice.d.ts +8 -0
- package/dist/modules/Components/components/ComponentForm/index.d.ts +1 -0
- package/dist/modules/Components/components/ComponentItem/ComponentItem.d.ts +12 -0
- package/dist/modules/Components/components/ComponentItem/index.d.ts +1 -0
- package/dist/modules/Components/components/InstanceTools/InstanceTools.d.ts +10 -0
- package/dist/modules/Components/components/InstanceTools/SlotRow.d.ts +13 -0
- package/dist/modules/Components/components/InstanceTools/index.d.ts +1 -0
- package/dist/modules/Components/components/PropsEditor/PropRow.d.ts +14 -0
- package/dist/modules/Components/components/PropsEditor/PropsEditor.d.ts +11 -0
- package/dist/modules/Components/components/PropsEditor/index.d.ts +2 -0
- package/dist/modules/Components/helpers.d.ts +17 -0
- package/dist/modules/Components/helpers.test.d.ts +1 -0
- package/dist/modules/Components/index.d.ts +2 -0
- package/dist/modules/Components/slotChoices.d.ts +9 -0
- package/dist/modules/Components/useOpenComponent.d.ts +13 -0
- package/dist/modules/Components/useSaveAsComponent.d.ts +7 -0
- package/dist/modules/Connectors/ConnectorsContext.d.ts +0 -2
- package/dist/modules/Connectors/helpers/manifestDoc.d.ts +0 -1
- package/dist/modules/Credentials/Credentials.d.ts +0 -7
- package/dist/modules/Elements/ElementHelper.d.ts +3 -2
- package/dist/modules/Elements/hooks/useDragElement.d.ts +5 -4
- package/dist/modules/Flags/Flags.d.ts +9 -0
- package/dist/modules/Flags/components/FlagForm/FlagForm.d.ts +15 -0
- package/dist/modules/Flags/components/FlagForm/FlagRule.d.ts +11 -0
- package/dist/modules/Flags/components/FlagForm/index.d.ts +3 -0
- package/dist/modules/Flags/components/FlagForm/ruleGroup.d.ts +5 -0
- package/dist/modules/Flags/components/FlagForm/ruleGroup.test.d.ts +1 -0
- package/dist/modules/Flags/components/FlagItem/FlagItem.d.ts +14 -0
- package/dist/modules/Flags/components/FlagItem/FlagPreviewOption.d.ts +13 -0
- package/dist/modules/Flags/components/FlagItem/FlagPreviewToggle.d.ts +9 -0
- package/dist/modules/Flags/components/FlagItem/index.d.ts +3 -0
- package/dist/modules/Flags/components/PublishFlagsForm/PublishFlagsForm.d.ts +21 -0
- package/dist/modules/Flags/components/PublishFlagsForm/index.d.ts +3 -0
- package/dist/modules/Flags/helpers/flagRuleFields.d.ts +11 -0
- package/dist/modules/Flags/index.d.ts +3 -0
- package/dist/modules/Functions/Functions.d.ts +4 -3
- package/dist/modules/Functions/components/FunctionInspector/FunctionInspector.d.ts +20 -0
- package/dist/modules/Functions/components/FunctionInspector/components/InspectorSection/InspectorSection.d.ts +10 -0
- package/dist/modules/Functions/components/FunctionInspector/components/InspectorSection/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionInspector/components/TaskTest/TaskTest.d.ts +16 -0
- package/dist/modules/Functions/components/FunctionInspector/components/TaskTest/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionInspector/components/TimeLimit/TimeLimit.d.ts +16 -0
- package/dist/modules/Functions/components/FunctionInspector/components/TimeLimit/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionInspector/components/TryField/TryField.d.ts +10 -0
- package/dist/modules/Functions/components/FunctionInspector/components/TryField/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionInspector/components/TryResult/TryResult.d.ts +9 -0
- package/dist/modules/Functions/components/FunctionInspector/components/TryResult/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionInspector/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionsEditor/FunctionsEditor.d.ts +20 -0
- package/dist/modules/Functions/components/FunctionsEditor/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionsGuide/FunctionsGuide.d.ts +7 -0
- package/dist/modules/Functions/components/FunctionsGuide/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionsHeader/FunctionsHeader.d.ts +17 -0
- package/dist/modules/Functions/components/FunctionsHeader/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionsProblems/FunctionsProblems.d.ts +2 -1
- package/dist/modules/Functions/components/FunctionsSidebar/FunctionsSidebar.d.ts +30 -0
- package/dist/modules/Functions/components/FunctionsSidebar/components/FileItem/FileItem.d.ts +14 -0
- package/dist/modules/Functions/components/FunctionsSidebar/components/FileItem/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionsSidebar/components/FolderItem/FolderItem.d.ts +7 -0
- package/dist/modules/Functions/components/FunctionsSidebar/components/FolderItem/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionsSidebar/components/NewFile/NewFile.d.ts +7 -0
- package/dist/modules/Functions/components/FunctionsSidebar/components/NewFile/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionsSidebar/components/NewTask/NewTask.d.ts +13 -0
- package/dist/modules/Functions/components/FunctionsSidebar/components/NewTask/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionsSidebar/components/RouteItem/RouteItem.d.ts +9 -0
- package/dist/modules/Functions/components/FunctionsSidebar/components/RouteItem/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionsSidebar/components/SidebarSection/SidebarSection.d.ts +13 -0
- package/dist/modules/Functions/components/FunctionsSidebar/components/SidebarSection/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionsSidebar/components/TaskItem/TaskItem.d.ts +16 -0
- package/dist/modules/Functions/components/FunctionsSidebar/components/TaskItem/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionsSidebar/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionsWelcome/FunctionsWelcome.d.ts +6 -0
- package/dist/modules/Functions/components/FunctionsWelcome/index.d.ts +3 -0
- package/dist/modules/Functions/editor/paths.d.ts +9 -0
- package/dist/modules/Functions/editor/source.d.ts +60 -0
- package/dist/modules/Functions/editor/source.test.d.ts +1 -0
- package/dist/modules/Functions/editor/typescriptWorker.d.ts +26 -0
- package/dist/modules/Functions/editor/useFunctionsTypeScript.d.ts +5 -2
- package/dist/modules/Functions/helpers.d.ts +119 -1
- package/dist/modules/History/History.d.ts +5 -1
- package/dist/modules/History/components/ChangeGroup/ChangeGroup.d.ts +2 -1
- package/dist/modules/History/components/ChangeLine/ChangeLine.d.ts +3 -1
- package/dist/modules/History/components/SaveDetail/SaveDetail.d.ts +2 -1
- package/dist/modules/Interactions/components/Workflow/helpers/nodeOptions.d.ts +22 -0
- package/dist/modules/Interactions/components/Workflow/helpers/nodeOptions.test.d.ts +1 -0
- package/dist/modules/Keyboard/index.d.ts +4 -0
- package/dist/modules/Keyboard/platform.d.ts +7 -0
- package/dist/modules/Network/hooks/useBuilderNetwork.d.ts +12 -0
- package/dist/modules/Queue/QueueContext.d.ts +2 -5
- package/dist/modules/Resources/components/Resource/subTypes/ResourceSnippet/ResourceSnippet.d.ts +13 -0
- package/dist/modules/Resources/components/Resource/subTypes/ResourceSnippet/SnippetContent.d.ts +8 -0
- package/dist/modules/Resources/components/Resource/subTypes/ResourceSnippet/UnreadableSnippet.d.ts +12 -0
- package/dist/modules/Resources/components/Resource/subTypes/ResourceSnippet/index.d.ts +3 -0
- package/dist/modules/Resources/components/ResourceManager/helpers/isSnippetFile.d.ts +3 -0
- package/dist/modules/Resources/components/ResourceManager/helpers/isSnippetFile.test.d.ts +1 -0
- package/dist/modules/Resources/components/ResourcesCdnBucket/ResourcesCdnBucket.d.ts +1 -1
- package/dist/modules/Runtime/components/RuntimeCodeNote/RuntimeCodeNote.d.ts +1 -4
- package/dist/modules/Space/components/SpaceIssues/SpaceIssues.d.ts +2 -1
- package/dist/modules/Space/components/SpaceIssues/components/ElementChip/ElementChip.d.ts +12 -0
- package/dist/modules/Space/components/SpaceIssues/components/ElementChip/index.d.ts +3 -0
- package/dist/modules/Space/components/SpaceIssues/components/IssueFix/IssueFix.d.ts +12 -0
- package/dist/modules/Space/components/SpaceIssues/components/IssueFix/index.d.ts +3 -0
- package/dist/modules/Space/components/SpaceIssues/components/IssueItem/IssueItem.d.ts +1 -5
- package/dist/modules/Space/components/SpaceIssues/components/SuggestionGroup/SuggestionGroup.d.ts +8 -0
- package/dist/modules/Space/components/SpaceIssues/components/SuggestionGroup/index.d.ts +3 -0
- package/dist/modules/Space/components/SpaceIssues/components/SuggestionItem/SuggestionItem.d.ts +12 -0
- package/dist/modules/Space/components/SpaceIssues/components/SuggestionItem/index.d.ts +3 -0
- package/dist/modules/Space/components/SpaceIssues/helpers.d.ts +2 -0
- package/dist/modules/Space/hooks/useSpaceUsage.d.ts +36 -0
- package/dist/modules/Undoable/UndoableContext.d.ts +2 -5
- package/dist/package.json.d.ts +4 -4
- package/dist/plitzi-builder.css +1 -1
- package/dist/plitzi-builder.css.gz +0 -0
- package/dist/plitzi-builder.js +2803 -2451
- package/dist/plitzi-builder.js.gz +0 -0
- package/dist/plitzi-functions-worker.js +3 -3
- package/package.json +18 -18
- package/dist/modules/AI/components/ChatInput/helpers.d.ts +0 -1
- package/dist/modules/AI/components/ChatMessage/components/AITemplatePreview/components/AITemplateHeader/index.d.ts +0 -3
- package/dist/modules/AI/components/ChatMessage/components/AITemplatePreview/index.d.ts +0 -3
- package/dist/modules/App/AppContainer/containers/ContainerActions.d.ts +0 -2
- package/dist/modules/App/AppContainer/containers/ContainerConnectors.d.ts +0 -2
- package/dist/modules/App/AppContainer/containers/ContainerCredentials.d.ts +0 -2
- package/dist/modules/App/AppContainer/containers/ContainerFunctions.d.ts +0 -2
- package/dist/modules/App/AppContainer/containers/ContainerRuntime.d.ts +0 -2
- package/dist/modules/App/AppContainer/containers/ContainerVisitors.d.ts +0 -2
- package/dist/modules/App/components/WorkflowDiagram/WorkflowDiagram.d.ts +0 -37
- package/dist/modules/App/components/WorkflowDiagram/components/CustomEdge.d.ts +0 -3
- package/dist/modules/App/components/WorkflowDiagram/components/CustomNode.d.ts +0 -5
- package/dist/modules/App/components/WorkflowDiagram/helpers/schemaToSitemap.d.ts +0 -11
- package/dist/modules/App/components/WorkflowDiagram/helpers/sitemapToFlow.d.ts +0 -20
- package/dist/modules/App/components/WorkflowDiagram/index.d.ts +0 -3
- package/dist/modules/Builder/BuilderPopup.d.ts +0 -6
- package/dist/modules/Builder/Models/TemplateForm.d.ts +0 -16
- package/dist/modules/Functions/components/FunctionsDeclared/FunctionsDeclared.d.ts +0 -10
- package/dist/modules/Functions/components/FunctionsDeclared/index.d.ts +0 -3
- package/dist/modules/Functions/components/FunctionsFiles/FunctionsFiles.d.ts +0 -11
- package/dist/modules/Functions/components/FunctionsFiles/index.d.ts +0 -3
- package/dist/modules/Functions/components/FunctionsTry/FunctionsTry.d.ts +0 -13
- package/dist/modules/Functions/components/FunctionsTry/index.d.ts +0 -3
- package/dist/modules/Resources/components/Resource/subTypes/ResourceTemplate/ResourceTemplate.d.ts +0 -13
- package/dist/modules/Resources/components/Resource/subTypes/ResourceTemplate/TemplateContent.d.ts +0 -8
- package/dist/modules/Resources/components/Resource/subTypes/ResourceTemplate/index.d.ts +0 -3
- package/dist/modules/Segments/Segment.d.ts +0 -11
- package/dist/modules/Segments/Segments.d.ts +0 -2
- package/dist/modules/Segments/SegmentsContextProvider.d.ts +0 -7
- package/dist/modules/Segments/SegmentsReducer.d.ts +0 -133
- package/dist/modules/Segments/index.d.ts +0 -3
- package/dist/modules/Segments/models/PublishForm.d.ts +0 -19
- package/dist/modules/Segments/models/SegmentForm.d.ts +0 -17
- package/dist/modules/Space/hooks/useAccountUsage.d.ts +0 -60
- package/dist/patches/useSyncExternalStoreWithSelector.d.ts +0 -4
- /package/dist/modules/AI/components/ChatMessage/components/{AITemplatePreview/components/AITemplateHeader → AISnippetPreview/components/AISnippetHeader}/DisplayModeButton.d.ts +0 -0
- /package/dist/modules/AI/components/ChatMessage/components/{AITemplatePreview → AISnippetPreview}/components/ConfirmPanel/ConfirmPanel.d.ts +0 -0
- /package/dist/modules/AI/components/ChatMessage/components/{AITemplatePreview → AISnippetPreview}/components/ConfirmPanel/index.d.ts +0 -0
- /package/dist/modules/AI/components/ChatMessage/components/{AITemplatePreview → AISnippetPreview}/helpers.d.ts +0 -0
- /package/dist/modules/{AI/components → Keyboard}/KeyboardKey/KeyboardKey.d.ts +0 -0
- /package/dist/modules/{AI/components → Keyboard}/KeyboardKey/index.d.ts +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Option, OptionGroup } from '@plitzi/plitzi-ui/Select2';
|
|
2
|
+
import { InteractionCallback, InteractionCallbackType } from '@plitzi/sdk-shared';
|
|
3
|
+
/** One step the picker offers, with what it takes to find its definition again once picked. */
|
|
4
|
+
export type NodeOption = Exclude<Option, OptionGroup> & {
|
|
5
|
+
type: InteractionCallbackType;
|
|
6
|
+
elementId?: string;
|
|
7
|
+
};
|
|
8
|
+
/** A heading of the picker and the steps under it — all of one type, though one type may have several headings. */
|
|
9
|
+
export type NodeOptionGroup = {
|
|
10
|
+
type: InteractionCallbackType;
|
|
11
|
+
label: string;
|
|
12
|
+
options: NodeOption[];
|
|
13
|
+
};
|
|
14
|
+
/** A step's value in the picker: `${elementId}_${action}`, an empty segment for a step on no element. */
|
|
15
|
+
export declare const nodeOptionValue: (definition: Pick<InteractionCallback, "elementId" | "action">) => string;
|
|
16
|
+
/**
|
|
17
|
+
* Every step but the triggers, under its heading: its own `group` when it has one — a space's functions are tasks to
|
|
18
|
+
* the run, and a category of their own to whoever picks one — or its type's.
|
|
19
|
+
*/
|
|
20
|
+
export declare const nodeOptionGroups: (definitions: readonly InteractionCallback[]) => NodeOptionGroup[];
|
|
21
|
+
/** The option a node is set to, looked for under every heading of its type. */
|
|
22
|
+
export declare const selectedNodeOption: (groups: readonly NodeOptionGroup[], type: InteractionCallbackType, elementId: string, action: string) => NodeOption | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const isMac: boolean;
|
|
2
|
+
/** The modifier a shortcut is written with on this machine: the command key on a Mac, Control everywhere else. */
|
|
3
|
+
export declare const modifierKey: string;
|
|
4
|
+
/** A shortcut as this machine writes it: `⌘C` on a Mac, `Ctrl+C` everywhere else. */
|
|
5
|
+
export declare const withModifier: (key: string) => string;
|
|
6
|
+
/** The key that removes what is selected, as its keycap reads. */
|
|
7
|
+
export declare const deleteKey: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BuilderMutationsMap, BuilderQueriesMap } from '@plitzi/sdk-shared';
|
|
2
|
+
import { BuilderNetworkContextValue } from '@plitzi/sdk-shared/network/NetworkContext';
|
|
3
|
+
import { SpaceEventMap } from '@plitzi/sdk-shared/network/spaceEvents';
|
|
4
|
+
export type BuilderNetwork = BuilderNetworkContextValue<BuilderQueriesMap, BuilderMutationsMap, SpaceEventMap>;
|
|
5
|
+
/**
|
|
6
|
+
* The builder's network: its queries, mutations and the space's events, typed by what the builder asks for.
|
|
7
|
+
*
|
|
8
|
+
* The context is shared with the SDK, which fills it with less, so it is typed for both. Inside the builder its value
|
|
9
|
+
* is always the one `NetworkContextProvider` writes — that is what makes this the one place it is read as that.
|
|
10
|
+
*/
|
|
11
|
+
declare const useBuilderNetwork: () => BuilderNetwork;
|
|
12
|
+
export default useBuilderNetwork;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ReducerMiddlewareCallback } from '@plitzi/plitzi-ui/hooks/useReducerWithMiddleware';
|
|
2
2
|
import { SchemaReducerActions } from '@plitzi/sdk-schema/SchemaReducer';
|
|
3
|
-
import { Schema,
|
|
3
|
+
import { Schema, Style } from '@plitzi/sdk-shared';
|
|
4
4
|
import { StyleReducerActions } from '@plitzi/sdk-style/StyleReducer';
|
|
5
|
-
import { SegmentsReducerActions } from '../Segments/SegmentsReducer';
|
|
6
5
|
import { ActionDispatch } from 'react';
|
|
7
6
|
export type QueueItem<TState = any, TDispatchAction = any> = {
|
|
8
7
|
action: TDispatchAction;
|
|
@@ -11,9 +10,7 @@ export type QueueItem<TState = any, TDispatchAction = any> = {
|
|
|
11
10
|
dispatch: ActionDispatch<[action: TDispatchAction]>;
|
|
12
11
|
};
|
|
13
12
|
export type QueueContextValue = {
|
|
14
|
-
enqueueMiddleware: ReducerMiddlewareCallback<Schema | Style
|
|
15
|
-
action: StyleReducerActions | SchemaReducerActions | SegmentsReducerActions
|
|
16
|
-
]>;
|
|
13
|
+
enqueueMiddleware: ReducerMiddlewareCallback<Schema | Style, [action: StyleReducerActions | SchemaReducerActions]>;
|
|
17
14
|
};
|
|
18
15
|
declare const QueueContext: import('react').Context<QueueContextValue>;
|
|
19
16
|
export default QueueContext;
|
package/dist/modules/Resources/components/Resource/subTypes/ResourceSnippet/ResourceSnippet.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
export type ResourceSnippetProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
id: string;
|
|
5
|
+
src: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
removing?: boolean;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
onRemove?: (e: MouseEvent) => void;
|
|
11
|
+
};
|
|
12
|
+
declare const ResourceSnippet: ({ className, title, src, removing, isLoading, onClick, onRemove }: ResourceSnippetProps) => import('react').JSX.Element | undefined;
|
|
13
|
+
export default ResourceSnippet;
|
package/dist/modules/Resources/components/Resource/subTypes/ResourceSnippet/SnippetContent.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Snippet } from '@plitzi/sdk-shared';
|
|
2
|
+
export type SnippetContentProps = {
|
|
3
|
+
baseElementId: string;
|
|
4
|
+
schema: Snippet['schema'];
|
|
5
|
+
style: Snippet['style'];
|
|
6
|
+
};
|
|
7
|
+
declare const SnippetContent: ({ baseElementId, schema, style }: SnippetContentProps) => import('react').JSX.Element;
|
|
8
|
+
export default SnippetContent;
|
package/dist/modules/Resources/components/Resource/subTypes/ResourceSnippet/UnreadableSnippet.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
export type UnreadableSnippetProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
onRemove?: (e: MouseEvent) => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* A file among the snippets that is not one — unreachable, or a JSON of some other shape. Shown rather than left out,
|
|
9
|
+
* so whoever put it there sees it and can take it away.
|
|
10
|
+
*/
|
|
11
|
+
declare const UnreadableSnippet: ({ className, title, onRemove }: UnreadableSnippetProps) => import('react').JSX.Element;
|
|
12
|
+
export default UnreadableSnippet;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,7 +10,7 @@ export type ResourcesCdnBucketProps = {
|
|
|
10
10
|
onChange?: () => void;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
|
-
* One bucket of a CDN and the space's files in it. A public one takes uploads — plugins, images,
|
|
13
|
+
* One bucket of a CDN and the space's files in it. A public one takes uploads — plugins, images, snippets — and serves
|
|
14
14
|
* them at its domain; a private one keeps the space's server code, written when it is saved or pushed, and serves
|
|
15
15
|
* nothing.
|
|
16
16
|
*/
|
|
@@ -4,9 +4,6 @@ export type RuntimeCodeNoteProps = {
|
|
|
4
4
|
/** How long a runtime may go unused before it is stopped; 0 when the platform never stops one. */
|
|
5
5
|
idleMinutes: number;
|
|
6
6
|
};
|
|
7
|
-
/**
|
|
8
|
-
* Where a runtime's code comes from, said where the question comes up: nothing in the builder changes it. It is a
|
|
9
|
-
* project of the space owner's own — Node, its packages — packed and pushed from there, and published with the space.
|
|
10
|
-
*/
|
|
7
|
+
/** How a runtime gets here: it is written in a project of the author's and pushed, never edited in the builder. */
|
|
11
8
|
declare const RuntimeCodeNote: ({ pushed, idleMinutes }: RuntimeCodeNoteProps) => import('react').JSX.Element;
|
|
12
9
|
export default RuntimeCodeNote;
|
|
@@ -10,7 +10,8 @@ export type SpaceIssuesProps = {
|
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* Everything the linter found in the saved space: errors first, since they are what stops a publish, then what renders
|
|
13
|
-
* but most likely not as meant. Each one names its
|
|
13
|
+
* but most likely not as meant, then the shorter ways to the same page. Each one names its elements and takes you to
|
|
14
|
+
* them.
|
|
14
15
|
*/
|
|
15
16
|
declare const SpaceIssues: ({ issues, intro, onDismiss, onFix }: SpaceIssuesProps) => import('react').JSX.Element;
|
|
16
17
|
export default SpaceIssues;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ElementChipProps = {
|
|
2
|
+
elementId: string;
|
|
3
|
+
/** Called once the element is on screen, so whatever holds the list can get out of the way. */
|
|
4
|
+
onDismiss: () => void;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* An element named in the list, and the way to it: a link that opens its page or layout, unfolds the tree down to it
|
|
8
|
+
* and selects it. One deleted since the space was saved is named but not linked — there is nothing left to take anyone
|
|
9
|
+
* to, and what named it goes away with the next save.
|
|
10
|
+
*/
|
|
11
|
+
declare const ElementChip: ({ elementId, onDismiss }: ElementChipProps) => import('react').JSX.Element;
|
|
12
|
+
export default ElementChip;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type IssueFixProps = {
|
|
2
|
+
/** What to write instead, as the code table has it: Markdown whose `code` is in backticks. */
|
|
3
|
+
fix: string;
|
|
4
|
+
/** What leads it — a problem's fix, or a suggestion's short way. */
|
|
5
|
+
label?: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* What to write instead, under the problem it settles — the row the issue's code is filed under, so the panel says the
|
|
9
|
+
* fix the authoring page and an agent over MCP are told, not one of its own.
|
|
10
|
+
*/
|
|
11
|
+
declare const IssueFix: ({ fix, label }: IssueFixProps) => import('react').JSX.Element;
|
|
12
|
+
export default IssueFix;
|
|
@@ -6,10 +6,6 @@ export type IssueItemProps = {
|
|
|
6
6
|
/** Called once the element is on screen, so whatever holds the list can get out of the way. */
|
|
7
7
|
onDismiss: () => void;
|
|
8
8
|
};
|
|
9
|
-
/**
|
|
10
|
-
* One issue, and the way to it: the element it names is a link that opens its page or layout, unfolds the tree down
|
|
11
|
-
* to it and selects it. An element deleted since the space was saved is named but not linked — there is nothing left
|
|
12
|
-
* to take anyone to, and the issue goes away with the next save.
|
|
13
|
-
*/
|
|
9
|
+
/** One issue, what to write instead, and the element it names — a link to it. */
|
|
14
10
|
declare const IssueItem: ({ issue, severity, onDismiss }: IssueItemProps) => import('react').JSX.Element;
|
|
15
11
|
export default IssueItem;
|
package/dist/modules/Space/components/SpaceIssues/components/SuggestionGroup/SuggestionGroup.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TSpaceSuggestion } from '@plitzi/sdk-shared';
|
|
2
|
+
export type SuggestionGroupProps = {
|
|
3
|
+
suggestions: TSpaceSuggestion[];
|
|
4
|
+
onDismiss: () => void;
|
|
5
|
+
};
|
|
6
|
+
/** The shorter ways to the same page, the ones that save the most elements first. Nothing in it blocks a publish. */
|
|
7
|
+
declare const SuggestionGroup: ({ suggestions, onDismiss }: SuggestionGroupProps) => import('react').JSX.Element | null;
|
|
8
|
+
export default SuggestionGroup;
|
package/dist/modules/Space/components/SpaceIssues/components/SuggestionItem/SuggestionItem.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TSpaceSuggestion } from '@plitzi/sdk-shared';
|
|
2
|
+
export type SuggestionItemProps = {
|
|
3
|
+
suggestion: TSpaceSuggestion;
|
|
4
|
+
/** Called once an element is on screen, so whatever holds the list can get out of the way. */
|
|
5
|
+
onDismiss: () => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* A shorter way to the same page: what it is, the short way, what taking it saves, and the elements it is about —
|
|
9
|
+
* the copies of a header, the buttons holding a text — each a link to it.
|
|
10
|
+
*/
|
|
11
|
+
declare const SuggestionItem: ({ suggestion, onDismiss }: SuggestionItemProps) => import('react').JSX.Element;
|
|
12
|
+
export default SuggestionItem;
|
|
@@ -2,3 +2,5 @@ export type IssueSeverity = 'error' | 'warning';
|
|
|
2
2
|
export declare const SEVERITY_TEXT: Record<IssueSeverity, string>;
|
|
3
3
|
export declare const SEVERITY_ICON: Record<IssueSeverity, string>;
|
|
4
4
|
export declare const MUTED = "text-zinc-500 dark:text-zinc-400";
|
|
5
|
+
/** A suggestion is no problem at all: it reads in the accent, beside the red and the amber of what is wrong. */
|
|
6
|
+
export declare const SUGGESTION_TEXT = "text-indigo-600 dark:text-indigo-400";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** One page of the space and what it spent of the allowance this period. */
|
|
2
|
+
export interface UsagePage {
|
|
3
|
+
path: string;
|
|
4
|
+
views: number;
|
|
5
|
+
}
|
|
6
|
+
/** Where this space's page views went this period, as `/spaces/:spaceId/usage` answers it. */
|
|
7
|
+
export interface SpaceUsage {
|
|
8
|
+
planName: string;
|
|
9
|
+
periodEndsAt: string;
|
|
10
|
+
/** What this space spent; none where its plan sets no ceiling of its own. */
|
|
11
|
+
space: {
|
|
12
|
+
views: number;
|
|
13
|
+
} | null;
|
|
14
|
+
/** The heaviest pages, by page views. */
|
|
15
|
+
pages: UsagePage[];
|
|
16
|
+
/**
|
|
17
|
+
* What the page rows add up to, which is not the same as the space's views: an RSC refresh and a server action are
|
|
18
|
+
* charged to the space and answered at their own endpoints, so they belong to no page.
|
|
19
|
+
*/
|
|
20
|
+
pagesTotal: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Where the allowance of the space being edited went, page by page — and only that space's: whoever edits a space is
|
|
24
|
+
* asking about that one, and may be a guest with no business reading the rest of its workspace.
|
|
25
|
+
*
|
|
26
|
+
* The ceilings themselves come over GraphQL (`SpaceQuota`) and are what the header meter is made of. This is the other
|
|
27
|
+
* half of the answer, asked for only while the panel showing it is mounted. It reads the API role, where the endpoint
|
|
28
|
+
* lives; the builder's user token rides in the header every other call uses. Fetched once per panel: these are period
|
|
29
|
+
* totals, not something that moves while somebody reads them.
|
|
30
|
+
*/
|
|
31
|
+
declare const useSpaceUsage: (spaceId: number) => {
|
|
32
|
+
usage: SpaceUsage | undefined;
|
|
33
|
+
error: string | undefined;
|
|
34
|
+
loading: boolean;
|
|
35
|
+
};
|
|
36
|
+
export default useSpaceUsage;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { UndoableReducerActions } from './UndoableReducer';
|
|
2
2
|
import { ReducerMiddlewareCallback } from '@plitzi/plitzi-ui/hooks/useReducerWithMiddleware';
|
|
3
3
|
import { SchemaReducerActions } from '@plitzi/sdk-schema/SchemaReducer';
|
|
4
|
-
import { Schema,
|
|
4
|
+
import { Schema, Style } from '@plitzi/sdk-shared';
|
|
5
5
|
import { StyleReducerActions } from '@plitzi/sdk-style/StyleReducer';
|
|
6
|
-
import { SegmentsReducerActions } from '../Segments/SegmentsReducer';
|
|
7
6
|
import { ActionDispatch } from 'react';
|
|
8
7
|
export type UndoableItem<TState = any, TDispatchAction = any> = {
|
|
9
8
|
action: TDispatchAction;
|
|
@@ -19,9 +18,7 @@ export type UndoableContextValue = {
|
|
|
19
18
|
undoableUndo: () => void;
|
|
20
19
|
undoableRedo: () => void;
|
|
21
20
|
undoableClearHistory: () => void;
|
|
22
|
-
undoableMiddleware: ReducerMiddlewareCallback<Schema | Style
|
|
23
|
-
action: StyleReducerActions | SchemaReducerActions | SegmentsReducerActions
|
|
24
|
-
]>;
|
|
21
|
+
undoableMiddleware: ReducerMiddlewareCallback<Schema | Style, [action: StyleReducerActions | SchemaReducerActions]>;
|
|
25
22
|
};
|
|
26
23
|
declare const UndoableContext: import('react').Context<UndoableContextValue>;
|
|
27
24
|
export default UndoableContext;
|
package/dist/package.json.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"name": "@plitzi/plitzi-builder",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.10",
|
|
4
4
|
"homepage": "./",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"files": [
|
|
@@ -30,10 +30,11 @@ declare const _default: {
|
|
|
30
30
|
"@codemirror/autocomplete": "^6",
|
|
31
31
|
"@codemirror/lint": "^6",
|
|
32
32
|
"@codemirror/state": "^6",
|
|
33
|
+
"@codemirror/view": "^6",
|
|
33
34
|
"@fortawesome/fontawesome-free": "^7.3.1",
|
|
34
|
-
"@plitzi/nexus": "^1.
|
|
35
|
+
"@plitzi/nexus": "^1.4.0",
|
|
35
36
|
"@plitzi/plitzi-sdk": "workspace:*",
|
|
36
|
-
"@plitzi/plitzi-ui": "^1.6.
|
|
37
|
+
"@plitzi/plitzi-ui": "^1.6.29",
|
|
37
38
|
"@plitzi/sdk-auth": "workspace:*",
|
|
38
39
|
"@plitzi/sdk-authoring": "workspace:*",
|
|
39
40
|
"@plitzi/sdk-dev-tools": "workspace:*",
|
|
@@ -49,7 +50,6 @@ declare const _default: {
|
|
|
49
50
|
"@tanstack/react-virtual": "^3.14.13",
|
|
50
51
|
"@typescript/vfs": "^1.6.5",
|
|
51
52
|
"@valtown/codemirror-ts": "^2.3.1",
|
|
52
|
-
"@xyflow/react": "^12.11.6",
|
|
53
53
|
"apollo-upload-client": "^20.0.0",
|
|
54
54
|
"clsx": "^2.1.1",
|
|
55
55
|
"comlink": "^4.4.2",
|