@plitzi/plitzi-builder 0.37.2 → 0.37.3
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 +1161 -0
- package/dist/App.d.ts +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.html +3 -2
- package/dist/modules/AI/components/ChatInput/components/ModelSelector/components/ModelOption/ModelOption.d.ts +2 -1
- package/dist/modules/App/AppContainer/containers/ContainerFunctions.d.ts +2 -0
- package/dist/modules/App/AppContainer/containers/ContainerRuntime.d.ts +2 -0
- package/dist/modules/App/AppContainer/containers/ContainerVisitors.d.ts +2 -0
- package/dist/modules/App/AppContext.d.ts +2 -0
- package/dist/modules/App/AppMain.d.ts +2 -1
- package/dist/modules/App/components/AppHeader/IssuesButton/IssuesButton.d.ts +2 -0
- package/dist/modules/App/components/AppHeader/IssuesButton/helpers.d.ts +4 -0
- package/dist/modules/App/components/AppHeader/IssuesButton/index.d.ts +3 -0
- package/dist/modules/App/components/AppHeader/RuntimeIdleNotice/RuntimeIdleNotice.d.ts +2 -0
- package/dist/modules/App/components/AppHeader/RuntimeIdleNotice/index.d.ts +1 -0
- package/dist/modules/App/components/AppHeader/RuntimeIdleNotice/timeLeftOf.d.ts +3 -0
- package/dist/modules/Builder/components/BuilderOverlay/BuilderOverlayDrag.d.ts +0 -2
- package/dist/modules/Builder/helpers/elementChain.d.ts +1 -2
- package/dist/modules/Elements/ElementHelper.d.ts +2 -0
- package/dist/modules/Functions/Functions.d.ts +7 -0
- package/dist/modules/Functions/components/FunctionsDeclared/FunctionsDeclared.d.ts +10 -0
- package/dist/modules/Functions/components/FunctionsDeclared/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionsFiles/FunctionsFiles.d.ts +11 -0
- package/dist/modules/Functions/components/FunctionsFiles/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionsProblems/FunctionsProblems.d.ts +8 -0
- package/dist/modules/Functions/components/FunctionsProblems/index.d.ts +3 -0
- package/dist/modules/Functions/components/FunctionsTry/FunctionsTry.d.ts +13 -0
- package/dist/modules/Functions/components/FunctionsTry/index.d.ts +3 -0
- package/dist/modules/Functions/editor/functionsEnvironment.d.ts +6 -0
- package/dist/modules/Functions/editor/useFunctionsTypeScript.d.ts +13 -0
- package/dist/modules/Functions/helpers.d.ts +11 -0
- package/dist/modules/Functions/index.d.ts +2 -0
- package/dist/modules/Functions/useFunctions.d.ts +14 -0
- package/dist/modules/History/History.d.ts +7 -0
- package/dist/modules/History/components/ChangeEntry/ChangeEntry.d.ts +7 -0
- package/dist/modules/History/components/ChangeEntry/index.d.ts +3 -0
- package/dist/modules/History/components/ChangeGroup/ChangeGroup.d.ts +10 -0
- package/dist/modules/History/components/ChangeGroup/index.d.ts +3 -0
- package/dist/modules/History/components/ChangeLine/ChangeLine.d.ts +10 -0
- package/dist/modules/History/components/ChangeLine/index.d.ts +3 -0
- package/dist/modules/History/components/LineLabel/LineLabel.d.ts +7 -0
- package/dist/modules/History/components/LineLabel/index.d.ts +3 -0
- package/dist/modules/History/components/SaveDetail/SaveDetail.d.ts +7 -0
- package/dist/modules/History/components/SaveDetail/index.d.ts +3 -0
- package/dist/modules/History/components/SnapshotMarker/SnapshotMarker.d.ts +7 -0
- package/dist/modules/History/components/SnapshotMarker/index.d.ts +3 -0
- package/dist/modules/History/helpers.d.ts +63 -0
- package/dist/modules/History/hooks/useSpaceChanges.d.ts +22 -0
- package/dist/modules/History/index.d.ts +3 -0
- package/dist/modules/Interactions/components/Workflow/WorkflowNode/NodeWhileRunning.d.ts +15 -0
- package/dist/modules/Interactions/components/Workflow/WorkflowNode/WorkflowNode.d.ts +3 -2
- package/dist/modules/Interactions/components/Workflow/helpers/whileRunning.d.ts +8 -0
- package/dist/modules/Queue/QueueContext.d.ts +0 -6
- package/dist/modules/Queue/helpers.d.ts +14 -0
- package/dist/modules/Queue/hooks/useQueueManager.d.ts +2 -6
- package/dist/modules/Queue/hooks/useQueueManager.test.d.ts +1 -0
- package/dist/modules/Resources/components/Resource/components/PluginInUse/PluginInUse.d.ts +7 -0
- package/dist/modules/Resources/components/Resource/components/PluginInUse/index.d.ts +3 -0
- package/dist/modules/Resources/components/Resource/subTypes/ResourceMedia/ResourceMedia.d.ts +15 -0
- package/dist/modules/Resources/components/Resource/subTypes/ResourceMedia/index.d.ts +3 -0
- package/dist/modules/Resources/components/ResourceContent/components/ContentPlugin/helpers.d.ts +2 -0
- package/dist/modules/Resources/components/ResourceContent/components/ContentPlugin/index.d.ts +3 -0
- package/dist/modules/Resources/helpers.d.ts +6 -0
- package/dist/modules/Resources/helpers.test.d.ts +1 -0
- package/dist/modules/Runtime/Runtime.d.ts +8 -0
- package/dist/modules/Runtime/components/RuntimeCodeNote/RuntimeCodeNote.d.ts +12 -0
- package/dist/modules/Runtime/components/RuntimeCodeNote/index.d.ts +2 -0
- package/dist/modules/Runtime/components/RuntimeEnvironments/RuntimeEnvironments.d.ts +13 -0
- package/dist/modules/Runtime/components/RuntimeEnvironments/index.d.ts +2 -0
- package/dist/modules/Runtime/components/RuntimePower/RuntimePower.d.ts +15 -0
- package/dist/modules/Runtime/components/RuntimePower/index.d.ts +2 -0
- package/dist/modules/Runtime/components/RuntimeSize/RuntimeSize.d.ts +17 -0
- package/dist/modules/Runtime/components/RuntimeSize/index.d.ts +2 -0
- package/dist/modules/Runtime/components/RuntimeVariables/RuntimeVariables.d.ts +11 -0
- package/dist/modules/Runtime/components/RuntimeVariables/index.d.ts +2 -0
- package/dist/modules/Runtime/helpers/idleDurationOf.d.ts +6 -0
- package/dist/modules/Runtime/helpers/idleDurationOf.test.d.ts +1 -0
- package/dist/modules/Runtime/helpers/stopMomentOf.d.ts +6 -0
- package/dist/modules/Runtime/index.d.ts +1 -0
- package/dist/modules/Schema/helpers/templateProblem.d.ts +8 -0
- package/dist/modules/Schema/helpers/templateProblem.test.d.ts +1 -0
- package/dist/modules/Space/components/SpaceIssues/SpaceIssues.d.ts +16 -0
- package/dist/modules/Space/components/SpaceIssues/components/IssueGroup/IssueGroup.d.ts +10 -0
- package/dist/modules/Space/components/SpaceIssues/components/IssueGroup/index.d.ts +3 -0
- package/dist/modules/Space/components/SpaceIssues/components/IssueItem/IssueItem.d.ts +15 -0
- package/dist/modules/Space/components/SpaceIssues/components/IssueItem/index.d.ts +3 -0
- package/dist/modules/Space/components/SpaceIssues/helpers.d.ts +4 -0
- package/dist/modules/Space/components/SpaceIssues/index.d.ts +3 -0
- package/dist/modules/Space/helpers/spaceIssues.d.ts +15 -0
- package/dist/modules/Space/helpers/spaceIssues.test.d.ts +1 -0
- package/dist/modules/Space/hooks/useFixSpaceIssues.d.ts +9 -0
- package/dist/modules/Space/hooks/useShowSpaceIssues.d.ts +8 -0
- package/dist/modules/Space/hooks/useSpaceIssues.d.ts +14 -0
- package/dist/modules/Undoable/UndoableContext.d.ts +0 -1
- package/dist/modules/Visitors/Visitors.d.ts +8 -0
- package/dist/modules/Visitors/components/VisitorGrants/VisitorGrants.d.ts +12 -0
- package/dist/modules/Visitors/components/VisitorGrants/index.d.ts +2 -0
- package/dist/modules/Visitors/components/VisitorRoles/VisitorRoles.d.ts +13 -0
- package/dist/modules/Visitors/components/VisitorRoles/index.d.ts +2 -0
- package/dist/modules/Visitors/index.d.ts +1 -0
- package/dist/package.json.d.ts +13 -6
- package/dist/plitzi-builder.css +1 -1
- package/dist/plitzi-builder.css.gz +0 -0
- package/dist/plitzi-builder.js +2716 -2485
- package/dist/plitzi-builder.js.gz +0 -0
- package/dist/plitzi-functions-worker.js +6 -0
- package/package.json +26 -19
- package/dist/modules/AI/components/ChatInput/components/ButtonVoice/ButtonVoice.d.ts +0 -9
- package/dist/modules/AI/components/ChatInput/components/ButtonVoice/index.d.ts +0 -3
- package/dist/modules/AI/components/ToggleMode/components/ToggleItem/ToggleItem.d.ts +0 -10
- package/dist/modules/AI/components/ToggleMode/components/ToggleItem/index.d.ts +0 -3
- package/dist/modules/App/AppContainer/containers/ContainerIntegrations.d.ts +0 -2
- package/dist/modules/App/AppContainer/containers/ContainerMarketplace.d.ts +0 -2
- package/dist/modules/Marketplace/Marketplace.d.ts +0 -2
- package/dist/modules/Marketplace/components/MarketNews/MarketNews.d.ts +0 -2
- package/dist/modules/Marketplace/components/MarketNews/index.d.ts +0 -3
- package/dist/modules/Marketplace/components/MarketPlugins/MarketPlugins.d.ts +0 -2
- package/dist/modules/Marketplace/components/MarketPlugins/PluginDetails/DetailsContent.d.ts +0 -2
- package/dist/modules/Marketplace/components/MarketPlugins/PluginDetails/DetailsSidebar.d.ts +0 -19
- package/dist/modules/Marketplace/components/MarketPlugins/PluginDetails/PluginDetails.d.ts +0 -23
- package/dist/modules/Marketplace/components/MarketPlugins/PluginDetails/index.d.ts +0 -3
- package/dist/modules/Marketplace/components/MarketPlugins/PluginItem.d.ts +0 -14
- package/dist/modules/Marketplace/components/MarketPlugins/PluginList.d.ts +0 -7
- package/dist/modules/Marketplace/components/MarketPlugins/PluginsFilter/FilterCategory.d.ts +0 -9
- package/dist/modules/Marketplace/components/MarketPlugins/PluginsFilter/PluginsFilter.d.ts +0 -13
- package/dist/modules/Marketplace/components/MarketPlugins/PluginsFilter/index.d.ts +0 -3
- package/dist/modules/Marketplace/components/MarketPlugins/index.d.ts +0 -3
- package/dist/modules/Marketplace/components/MarketSidebar.d.ts +0 -6
- package/dist/modules/Marketplace/components/MarketSidebarItem.d.ts +0 -9
- package/dist/modules/Marketplace/components/MarketTemplates/MarketTemplates.d.ts +0 -2
- package/dist/modules/Marketplace/components/MarketTemplates/index.d.ts +0 -3
- package/dist/modules/Marketplace/helpers/PluginHelper.d.ts +0 -2
- package/dist/modules/Marketplace/index.d.ts +0 -3
- package/dist/modules/Marketplace/types/index.d.ts +0 -44
- package/dist/modules/Network/hooks/useInfiniteGraphQL.d.ts +0 -18
- package/dist/modules/Resources/Models/PluginSettingsForm.d.ts +0 -8
- package/dist/modules/Resources/components/Resource/subTypes/ResourceImage/ResourceImage.d.ts +0 -14
- package/dist/modules/Resources/components/Resource/subTypes/ResourceImage/index.d.ts +0 -3
- package/dist/modules/Resources/components/Resource/subTypes/ResourcePlugin/PluginContent.d.ts +0 -13
- package/dist/modules/Resources/components/Resource/subTypes/ResourceVideo/ResourceVideo.d.ts +0 -14
- package/dist/modules/Resources/components/Resource/subTypes/ResourceVideo/index.d.ts +0 -3
- package/dist/modules/Resources/components/ResourceManager/helpers/formatBytes.d.ts +0 -2
- package/dist/modules/Space/SpaceContext.d.ts +0 -3
- package/dist/modules/Space/SpaceContextProvider.d.ts +0 -6
- package/dist/modules/Space/helpers/elementsByRoot.d.ts +0 -19
- /package/dist/modules/{AI/components/ChatMessage/helpers/formatTime.d.ts → App/components/AppHeader/RuntimeIdleNotice/timeLeftOf.test.d.ts} +0 -0
- /package/dist/modules/{Integrations/Integrations.d.ts → Functions/editor/functionsEnvironment.test.d.ts} +0 -0
- /package/dist/modules/{Plugins/index.d.ts → Functions/editor/typescriptWorker.d.ts} +0 -0
- /package/dist/modules/{Space/helpers/elementsByRoot.test.d.ts → History/helpers.test.d.ts} +0 -0
- /package/dist/modules/{index.d.ts → Interactions/components/Workflow/helpers/whileRunning.test.d.ts} +0 -0
- /package/dist/modules/Resources/components/{ResourceManager/ResourceContent → ResourceContent}/ResourceContent.d.ts +0 -0
- /package/dist/modules/Resources/components/{ResourceManager/ResourceContent/contents → ResourceContent/components/ContentPlugin}/ContentPlugin.d.ts +0 -0
- /package/dist/modules/Resources/components/{ResourceManager/ResourceContent → ResourceContent}/index.d.ts +0 -0
package/dist/App.d.ts
CHANGED
|
@@ -8,6 +8,11 @@ export type AppProps = {
|
|
|
8
8
|
includeSubscriptions?: boolean;
|
|
9
9
|
userKey?: string;
|
|
10
10
|
debugMode?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Where the TypeScript worker the Functions panel types a space's code with is served — `plitzi-functions-worker.js`
|
|
13
|
+
* of this package, from wherever the host serves the builder's files. Absent, the panel edits and saves without it.
|
|
14
|
+
*/
|
|
15
|
+
functionsWorkerUrl?: string;
|
|
11
16
|
};
|
|
12
17
|
declare const App: (props: AppProps) => import('react').JSX.Element;
|
|
13
18
|
export default App;
|
package/dist/index.d.ts
CHANGED
package/dist/index.html
CHANGED
|
@@ -56,11 +56,12 @@
|
|
|
56
56
|
render(
|
|
57
57
|
'plitzi',
|
|
58
58
|
{
|
|
59
|
-
webKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
|
|
59
|
+
webKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwib3JpZ2lucyI6WyJodHRwczovL3dlYnNpdGUucGxpdHppLmFwcCIsImh0dHBzOi8vcGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDAiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMSIsImh0dHBzOi8vc3NyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImh0dHA6Ly9sb2NhbGhvc3Q6MzAwMCIsImh0dHA6Ly9sb2NhbGhvc3Q6ODA4MCIsImh0dHA6Ly8xMjcuMC4wLjE6ODA4MCIsImh0dHBzOi8vZGV2LnBsaXR6aS5jb20iLCJodHRwczovL3BsaXR6aS5jb20iLCJodHRwczovL3N0Zy5wbGl0emkuY29tIl0sImlzcyI6Imh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImF1ZCI6WyJodHRwczovL3BsaXR6aS5sb2NhbCIsImh0dHBzOi8vYXBwLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vYXBwLnBsaXR6aS5sb2NhbDozMDAwIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDEiLCJodHRwczovL2FwaS5wbGl0emkubG9jYWwiLCJodHRwczovL3Nzci5wbGl0emkubG9jYWwiLCJodHRwczovL3NlcnZlci5wbGl0emkubG9jYWwiLCJodHRwczovL21jcC5wbGl0emkubG9jYWwiLCJodHRwczovL2F1dGgucGxpdHppLmxvY2FsIiwiaHR0cDovLzEyNy4wLjAuMTo1MzAwIiwiaHR0cDovL2xvY2FsaG9zdDo1MTgwIl0sInNjb3BlIjoic3BhY2U6cmVuZGVyIiwiaWF0IjoxNzkwMjEzMjg5LCJqdGkiOiJhZDgyN2EyMjliZjhlMzk3IiwibmJmIjoxNzkwMjEzMjg5fQ.dedpVVA5Nv3Xr7nEOZ8UmEJcIamF9AHGnLgqQyDV8-k',
|
|
60
60
|
// The actor. Without it the builder loads and every write is refused, since authorization is
|
|
61
61
|
// can(actor, space, permission). Both halves come from `yarn token 1 --user admin` in plitzi-sdk-server.
|
|
62
|
-
userKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
|
|
62
|
+
userKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwiaXNzIjoiaHR0cHM6Ly9zZXJ2ZXIucGxpdHppLmxvY2FsIiwiYXVkIjpbImh0dHBzOi8vcGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsIiwiaHR0cHM6Ly9hcHAucGxpdHppLmxvY2FsOjMwMDAiLCJodHRwczovL2FwcC5wbGl0emkubG9jYWw6MzAwMSIsImh0dHBzOi8vYXBpLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc3NyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vc2VydmVyLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vbWNwLnBsaXR6aS5sb2NhbCIsImh0dHBzOi8vYXV0aC5wbGl0emkubG9jYWwiLCJodHRwOi8vMTI3LjAuMC4xOjUzMDAiLCJodHRwOi8vbG9jYWxob3N0OjUxODAiXSwic2NvcGUiOiJ1c2VyIiwiZXhwIjoxNzkwMjg3MDg0LCJpYXQiOjE3OTAyMDA2ODQsImp0aSI6ImNiZWE3MDZlNzYyZGFiNGUiLCJuYmYiOjE3OTAyMDA2ODR9.IpPxIRFRi6KXz0yCC1fPQF6hLubU_7u0fTcgQohmB10',
|
|
63
63
|
environment: 'main',
|
|
64
|
+
functionsWorkerUrl: '/plitzi-functions-worker.js',
|
|
64
65
|
server: {
|
|
65
66
|
basePath: '',
|
|
66
67
|
// Dashboard
|
|
@@ -2,7 +2,8 @@ import { AiModelInfo } from '../../../../../../types';
|
|
|
2
2
|
export type ModelOptionProps = {
|
|
3
3
|
model: AiModelInfo;
|
|
4
4
|
isActive: boolean;
|
|
5
|
+
isHighlighted?: boolean;
|
|
5
6
|
onSelect: (id: string) => void;
|
|
6
7
|
};
|
|
7
|
-
declare const ModelOption: ({ model, isActive, onSelect }: ModelOptionProps) => import('react').JSX.Element;
|
|
8
|
+
declare const ModelOption: ({ model, isActive, isHighlighted, onSelect }: ModelOptionProps) => import('react').JSX.Element;
|
|
8
9
|
export default ModelOption;
|
|
@@ -12,6 +12,8 @@ export type AppContextValue = {
|
|
|
12
12
|
setDisplayMode: Dispatch<SetStateAction<DisplayMode>>;
|
|
13
13
|
mobilePreview: boolean;
|
|
14
14
|
setMobilePreview: Dispatch<SetStateAction<boolean>>;
|
|
15
|
+
/** Where the Functions panel's TypeScript worker is served; empty when the host serves none. */
|
|
16
|
+
functionsWorkerUrl: string;
|
|
15
17
|
};
|
|
16
18
|
declare const AppContext: import('react').Context<AppContextValue>;
|
|
17
19
|
export default AppContext;
|
|
@@ -13,6 +13,7 @@ export type AppMainProps = {
|
|
|
13
13
|
state?: Record<string, unknown>;
|
|
14
14
|
children?: ReactNode;
|
|
15
15
|
debugMode?: boolean;
|
|
16
|
+
functionsWorkerUrl?: string;
|
|
16
17
|
};
|
|
17
|
-
declare const AppMain: ({ webKey, webId, userKey, instanceId, server, environment, includeSubscriptions, includeRealTime, externalStyle, debugMode }: AppMainProps) => import('react').JSX.Element;
|
|
18
|
+
declare const AppMain: ({ webKey, webId, userKey, instanceId, server, environment, includeSubscriptions, includeRealTime, externalStyle, debugMode, functionsWorkerUrl }: AppMainProps) => import('react').JSX.Element;
|
|
18
19
|
export default AppMain;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './RuntimeIdleNotice';
|
|
@@ -12,8 +12,7 @@ export type ElementLookup = Record<string, Element | undefined>;
|
|
|
12
12
|
*
|
|
13
13
|
* Walked through `parentId` rather than read off `rootId`, because the tree the panel opens is the chain of
|
|
14
14
|
* PARENTS: revealing a match six levels down means opening all six, and `rootId` names only the far end of it. The
|
|
15
|
-
*
|
|
16
|
-
* this loops forever inside a render.
|
|
15
|
+
* walk is sdk-schema's `parentChain`, the one every reader of the tree shares.
|
|
17
16
|
*/
|
|
18
17
|
export declare const chainOf: (flat: ElementLookup, id: string) => {
|
|
19
18
|
rootId: string;
|
|
@@ -10,3 +10,5 @@ export declare const getInitialItems: (parentId: string, items: string[] | undef
|
|
|
10
10
|
directItems: Record<string, Element>;
|
|
11
11
|
items: Record<string, Element>;
|
|
12
12
|
};
|
|
13
|
+
/** The catalog as the elements panel lists it: every definition whose label matches `filter`, grouped by category. */
|
|
14
|
+
export declare const definitionsByCategory: (definitions: Record<string, ComponentDefinition>, filter: string) => Record<string, ComponentDefinition[]>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The space's own server code: its files, edited with TypeScript that knows the contract, saved as the draft
|
|
3
|
+
* — built and checked on the platform, problems shown where they are — and tried in the sandbox. The live site runs
|
|
4
|
+
* what the space was last published with. A project's `plitzi functions pull` edits the same files.
|
|
5
|
+
*/
|
|
6
|
+
declare const Functions: () => import('react').JSX.Element;
|
|
7
|
+
export default Functions;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FunctionsManifest } from '@plitzi/sdk-shared';
|
|
2
|
+
export type FunctionsDeclaredProps = {
|
|
3
|
+
manifest: FunctionsManifest;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* What the saved code declares — its steps, its routes and every host it may reach — so whoever reviews the space sees
|
|
7
|
+
* what it does and where it goes without reading the code.
|
|
8
|
+
*/
|
|
9
|
+
declare const FunctionsDeclared: ({ manifest }: FunctionsDeclaredProps) => import('react').JSX.Element;
|
|
10
|
+
export default FunctionsDeclared;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type FunctionsFilesProps = {
|
|
2
|
+
files: string[];
|
|
3
|
+
selected: string;
|
|
4
|
+
/** The files whose text differs from what was last saved. */
|
|
5
|
+
modified: string[];
|
|
6
|
+
onSelect: (file: string) => void;
|
|
7
|
+
onAdd: (file: string) => void;
|
|
8
|
+
onRemove: (file: string) => void;
|
|
9
|
+
};
|
|
10
|
+
declare const FunctionsFiles: ({ files, selected, modified, onSelect, onAdd, onRemove }: FunctionsFilesProps) => import('react').JSX.Element;
|
|
11
|
+
export default FunctionsFiles;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FunctionsProblem } from '@plitzi/sdk-shared';
|
|
2
|
+
export type FunctionsProblemsProps = {
|
|
3
|
+
problems: FunctionsProblem[];
|
|
4
|
+
onSelect: (file: string) => void;
|
|
5
|
+
};
|
|
6
|
+
/** What the last save found wrong, where it is: the build's and the platform's checks, before anything ran. */
|
|
7
|
+
declare const FunctionsProblems: ({ problems, onSelect }: FunctionsProblemsProps) => import('react').JSX.Element;
|
|
8
|
+
export default FunctionsProblems;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ActionRunReport, FunctionTaskManifest } from '@plitzi/sdk-shared';
|
|
2
|
+
export type FunctionsTryProps = {
|
|
3
|
+
tasks: FunctionTaskManifest[];
|
|
4
|
+
/** Why it cannot run now — unsaved edits, say — or nothing. */
|
|
5
|
+
disabledReason?: string;
|
|
6
|
+
onTry: (task: string, params: Record<string, unknown>) => Promise<ActionRunReport | undefined>;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* One task of the saved draft, run in the sandbox as you — the value it answers, what it logged, how long it took and
|
|
10
|
+
* why it failed. Its fetches and its writes are real, and it counts like any other run.
|
|
11
|
+
*/
|
|
12
|
+
declare const FunctionsTry: ({ tasks, disabledReason, onTry }: FunctionsTryProps) => import('react').JSX.Element;
|
|
13
|
+
export default FunctionsTry;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { VirtualTypeScriptEnvironment } from '@typescript/vfs';
|
|
2
|
+
/**
|
|
3
|
+
* The TypeScript a space's functions are checked with: the libs, the contract at `@plitzi/sdk-server/functions`, and
|
|
4
|
+
* nothing else — the space's own files are added as the editor opens and changes them.
|
|
5
|
+
*/
|
|
6
|
+
export declare const createFunctionsEnvironment: () => VirtualTypeScriptEnvironment;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Extension } from '@codemirror/state';
|
|
2
|
+
/** Where a file of the space's functions lives in the worker — the same root the worker keeps them under. */
|
|
3
|
+
export declare const workerPathOf: (file: string) => string;
|
|
4
|
+
/**
|
|
5
|
+
* The TypeScript worker for one open panel: started from where the host serves it, given every file of the space so
|
|
6
|
+
* their imports of each other resolve, and turned into the editor extensions for the file being edited. Without a
|
|
7
|
+
* worker URL, or before it is ready, there are no extensions — the editor still edits, and a save still checks.
|
|
8
|
+
*/
|
|
9
|
+
declare const useFunctionsTypeScript: (workerUrl: string, files: Record<string, string>) => {
|
|
10
|
+
ready: boolean;
|
|
11
|
+
extensionsFor: (file: string) => Extension[];
|
|
12
|
+
};
|
|
13
|
+
export default useFunctionsTypeScript;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FunctionsProblem } from '@plitzi/sdk-shared';
|
|
2
|
+
/** What a space's functions start as: one file and one task already written, to change rather than to learn from blank. */
|
|
3
|
+
export declare const STARTER_FILES: Record<string, string>;
|
|
4
|
+
/** Where a problem is, as a person reads it: `lib/feed.ts:12:4`. */
|
|
5
|
+
export declare const problemPlace: ({ file, line, column }: FunctionsProblem) => string;
|
|
6
|
+
/** The params a Try sends, from what was typed: a JSON object, or the reason it is not one. */
|
|
7
|
+
export declare const readParams: (text: string) => {
|
|
8
|
+
params: Record<string, unknown>;
|
|
9
|
+
} | {
|
|
10
|
+
error: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ActionRunReport, FunctionsDraft, FunctionsSaveResult } from '@plitzi/sdk-shared';
|
|
2
|
+
/**
|
|
3
|
+
* The space's functions draft, and the three things the panel does to it — save, remove, try — through the same
|
|
4
|
+
* operations a project's CLI and an agent use (`SpaceSaveFunctions`, `SpaceRemoveFunctions`, `SpaceTryFunction`).
|
|
5
|
+
*/
|
|
6
|
+
declare const useFunctions: () => {
|
|
7
|
+
draft: FunctionsDraft | undefined;
|
|
8
|
+
error: string;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
save: (files: FunctionsDraft["files"]) => Promise<FunctionsSaveResult | undefined>;
|
|
11
|
+
remove: () => Promise<void>;
|
|
12
|
+
tryTask: (task: string, params: Record<string, unknown>) => Promise<ActionRunReport | undefined>;
|
|
13
|
+
};
|
|
14
|
+
export default useFunctions;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The space's change history: every save of its schema and style, by whoever made it — a person, an agent, the
|
|
3
|
+
* autofix — newest first, with the published revisions marked where they fall. Read-only: it answers "what changed,
|
|
4
|
+
* who did it and what exactly", and never writes anything back.
|
|
5
|
+
*/
|
|
6
|
+
declare const History: () => import('react').JSX.Element;
|
|
7
|
+
export default History;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ChangeEntry as Entry } from '@plitzi/sdk-shared';
|
|
2
|
+
export type ChangeEntryProps = {
|
|
3
|
+
entry: Entry;
|
|
4
|
+
};
|
|
5
|
+
/** The fields an edit changed, each as `field: before → after`. Its line above already says what the entity is. */
|
|
6
|
+
declare const ChangeEntry: ({ entry }: ChangeEntryProps) => import('react').JSX.Element;
|
|
7
|
+
export default ChangeEntry;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChangeGroup as Group } from '../../helpers';
|
|
2
|
+
export type ChangeGroupProps = {
|
|
3
|
+
group: Group;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* A row of the timeline: who, from where and when, and what it did — one line per thing. Unfolded, every save it groups
|
|
7
|
+
* on its own, with the fields each one changed.
|
|
8
|
+
*/
|
|
9
|
+
declare const ChangeGroup: ({ group }: ChangeGroupProps) => import('react').JSX.Element;
|
|
10
|
+
export default ChangeGroup;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChangeLine as Line } from '@plitzi/sdk-shared/history';
|
|
2
|
+
export type ChangeLineProps = {
|
|
3
|
+
line: Line;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* One thing a save did. When it is about an element that is still in the space, the line is the way to it — the same
|
|
7
|
+
* way the problems list takes someone to an element.
|
|
8
|
+
*/
|
|
9
|
+
declare const ChangeLine: ({ line }: ChangeLineProps) => import('react').JSX.Element;
|
|
10
|
+
export default ChangeLine;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ChangeLine } from '@plitzi/sdk-shared/history';
|
|
2
|
+
export type LineLabelProps = {
|
|
3
|
+
line: ChangeLine;
|
|
4
|
+
};
|
|
5
|
+
/** A line's icon and words: what was done is read from the icon, what it was done to from the words. */
|
|
6
|
+
declare const LineLabel: ({ line }: LineLabelProps) => import('react').JSX.Element;
|
|
7
|
+
export default LineLabel;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ChangeRecord } from '../../helpers';
|
|
2
|
+
export type SaveDetailProps = {
|
|
3
|
+
change: ChangeRecord;
|
|
4
|
+
};
|
|
5
|
+
/** One save of a row: its number and time in a narrow column, what it did beside it, and the fields each edit changed. */
|
|
6
|
+
declare const SaveDetail: ({ change }: SaveDetailProps) => import('react').JSX.Element;
|
|
7
|
+
export default SaveDetail;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TSnapshotMarker } from '@plitzi/sdk-shared';
|
|
2
|
+
export type SnapshotMarkerProps = {
|
|
3
|
+
snapshot: TSnapshotMarker;
|
|
4
|
+
};
|
|
5
|
+
/** Where a published revision falls on the timeline: what sits below it is what it includes. */
|
|
6
|
+
declare const SnapshotMarker: ({ snapshot }: SnapshotMarkerProps) => import('react').JSX.Element;
|
|
7
|
+
export default SnapshotMarker;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ChangeEntry, ChangeKind, ChangeOrigin, TSnapshotMarker, TSpaceChanges } from '@plitzi/sdk-shared';
|
|
2
|
+
import { ChangeAction } from '@plitzi/sdk-shared/history';
|
|
3
|
+
export type ChangeRecord = TSpaceChanges['changes'][number];
|
|
4
|
+
/** Saves close enough together to read as one piece of work. A guess to revisit against real sessions (RFC 0003). */
|
|
5
|
+
export declare const GROUP_WINDOW_MS = 60000;
|
|
6
|
+
/** Consecutive saves by the same author from the same place: one request, or a burst of editing. */
|
|
7
|
+
export type ChangeGroup = {
|
|
8
|
+
key: string;
|
|
9
|
+
changes: ChangeRecord[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The timeline as a person reads it: a builder save per keystroke is noise, so consecutive saves by the same author from
|
|
13
|
+
* the same place are one row when they came from one request, or followed each other within {@link GROUP_WINDOW_MS}.
|
|
14
|
+
* `changes` arrives newest first and stays that way.
|
|
15
|
+
*/
|
|
16
|
+
export declare const groupChanges: (changes: ChangeRecord[]) => ChangeGroup[];
|
|
17
|
+
export type TimelineRow = {
|
|
18
|
+
type: 'group';
|
|
19
|
+
group: ChangeGroup;
|
|
20
|
+
} | {
|
|
21
|
+
type: 'snapshot';
|
|
22
|
+
snapshot: TSnapshotMarker;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Each published revision drawn right above the last change it includes — so what sits below a marker is in that
|
|
26
|
+
* revision, and what sits above is not. A revision older than everything loaded waits for the page that reaches it,
|
|
27
|
+
* unless the timeline is over.
|
|
28
|
+
*/
|
|
29
|
+
export declare const placeSnapshots: (groups: ChangeGroup[], snapshots: TSnapshotMarker[], complete: boolean) => TimelineRow[];
|
|
30
|
+
/** A value as one short line: long ones are cut, since the diff is for spotting a change, not for reading a document. */
|
|
31
|
+
export declare const formatValue: (value: unknown) => string;
|
|
32
|
+
export declare const ORIGIN_LABEL: Record<ChangeOrigin, string>;
|
|
33
|
+
export declare const ORIGIN_TONE: Record<ChangeOrigin, string>;
|
|
34
|
+
/** Each action in its own colour and shape, so a folded row is scanned by its icons before its words. */
|
|
35
|
+
export declare const ACTION_TONE: Record<ChangeAction, string>;
|
|
36
|
+
export declare const ACTION_ICON: Record<ChangeAction, string>;
|
|
37
|
+
export declare const MUTED = "text-zinc-500 dark:text-zinc-400";
|
|
38
|
+
/** When, in the reader's own time zone: this is a person looking back at their day, not a log line. */
|
|
39
|
+
export declare const formatTime: (at: number) => string;
|
|
40
|
+
/** Just the time of day, for a save listed under a row that already says the date. */
|
|
41
|
+
export declare const formatClock: (at: number) => string;
|
|
42
|
+
/** Who, as a timeline says it: the person, or the kind of writer when no person was behind it. */
|
|
43
|
+
export declare const authorLabel: (change: ChangeRecord) => string;
|
|
44
|
+
export declare const ORIGIN_FILTERS: ('' | ChangeOrigin)[];
|
|
45
|
+
/** A choice of the "made by" filter: an origin, or no filter at all. */
|
|
46
|
+
export declare const originFilterLabel: (origin: "" | ChangeOrigin) => string;
|
|
47
|
+
export declare const KIND_LABEL: Record<ChangeKind, string>;
|
|
48
|
+
/** What a row of saves did, each thing on its own line and said once — ten keystrokes in one text are one line. */
|
|
49
|
+
export declare const groupLines: (group: ChangeGroup) => import('@plitzi/sdk-shared').ChangeLine[];
|
|
50
|
+
/** How many lines a folded row shows before it says how many more there are. */
|
|
51
|
+
export declare const FOLDED_LINES = 5;
|
|
52
|
+
/** What the detail of an entry shows: the fields that changed, less the tree. */
|
|
53
|
+
export declare const detailOf: (entry: ChangeEntry) => import('@plitzi/sdk-shared').FieldChange[];
|
|
54
|
+
/**
|
|
55
|
+
* The entries a save's detail lists: what was edited in more than its place in the tree. An add, a removal or a move is
|
|
56
|
+
* already its line, and the line is the link to the element.
|
|
57
|
+
*/
|
|
58
|
+
export declare const detailedEntries: (entries: ChangeEntry[]) => ChangeEntry[];
|
|
59
|
+
/** A published revision, as its marker names it, and how far into the timeline it reaches. */
|
|
60
|
+
export declare const snapshotLabel: ({ revision, environment, description, upToSeq }: TSnapshotMarker) => string;
|
|
61
|
+
/** The changes a row covers, by number: `#50`, or `#48–50` for several saves. */
|
|
62
|
+
export declare const groupRange: (group: ChangeGroup) => string;
|
|
63
|
+
export declare const rowKey: (row: TimelineRow) => string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ChangeOrigin } from '@plitzi/sdk-shared';
|
|
2
|
+
export type ChangeFilters = {
|
|
3
|
+
origin?: ChangeOrigin;
|
|
4
|
+
entityId?: string;
|
|
5
|
+
since?: number;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* The space's change history, a page at a time, newest first.
|
|
9
|
+
*
|
|
10
|
+
* Read again each time the save queue drains, like the problems list: the server records a change when it saves, so
|
|
11
|
+
* that is when there is something new to show — and every loaded page is revalidated, since a filter can move rows.
|
|
12
|
+
*/
|
|
13
|
+
declare const useSpaceChanges: (filters: ChangeFilters) => {
|
|
14
|
+
changes: Omit<import('@plitzi/sdk-shared').SpaceChange, "environment" | "spaceId">[];
|
|
15
|
+
snapshots: import('@plitzi/sdk-shared').TSnapshotMarker[];
|
|
16
|
+
complete: boolean;
|
|
17
|
+
loading: boolean;
|
|
18
|
+
error: Error | undefined;
|
|
19
|
+
loadMore: () => undefined;
|
|
20
|
+
refresh: () => undefined;
|
|
21
|
+
};
|
|
22
|
+
export default useSpaceChanges;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WhileRunning } from '@plitzi/sdk-shared';
|
|
2
|
+
export type NodeWhileRunningProps = {
|
|
3
|
+
whileRunning?: WhileRunning;
|
|
4
|
+
onChange?: (data: {
|
|
5
|
+
whileRunning: WhileRunning | undefined;
|
|
6
|
+
}) => void;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* What the trigger does when it fires again while its flow is still running — shown on the trigger alone.
|
|
10
|
+
*
|
|
11
|
+
* `skip` is written as nothing: it is what a flow does without the setting, and a document that spells out a default
|
|
12
|
+
* is one that reads as a decision somebody made.
|
|
13
|
+
*/
|
|
14
|
+
declare const NodeWhileRunning: ({ whileRunning, onChange }: NodeWhileRunningProps) => import('react').JSX.Element;
|
|
15
|
+
export default NodeWhileRunning;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RuleGroup } from '@plitzi/plitzi-ui/QueryBuilder';
|
|
2
|
-
import { InteractionCallbackParamValues, InteractionCallbackType } from '@plitzi/sdk-shared';
|
|
2
|
+
import { InteractionCallbackParamValues, InteractionCallbackType, WhileRunning } from '@plitzi/sdk-shared';
|
|
3
3
|
export type WorkflowNodeProps = {
|
|
4
4
|
id?: string;
|
|
5
5
|
title?: string;
|
|
@@ -13,10 +13,11 @@ export type WorkflowNodeProps = {
|
|
|
13
13
|
triggerId?: string;
|
|
14
14
|
params?: InteractionCallbackParamValues;
|
|
15
15
|
when?: RuleGroup;
|
|
16
|
+
whileRunning?: WhileRunning;
|
|
16
17
|
preview?: Record<string, unknown>;
|
|
17
18
|
isOpened?: boolean;
|
|
18
19
|
onOpened?: (id: string, isOpened: boolean) => void;
|
|
19
20
|
onRemove?: (id: string) => void;
|
|
20
21
|
};
|
|
21
|
-
declare const _default: import('react').MemoExoticComponent<({ id, title, type, canDelete, action, elementId, enabled, beforeNode, afterNode, triggerId, params, when, preview, isOpened, onOpened, onRemove }: WorkflowNodeProps) => import('react').JSX.Element>;
|
|
22
|
+
declare const _default: import('react').MemoExoticComponent<({ id, title, type, canDelete, action, elementId, enabled, beforeNode, afterNode, triggerId, params, when, whileRunning, preview, isOpened, onOpened, onRemove }: WorkflowNodeProps) => import('react').JSX.Element>;
|
|
22
23
|
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Option, OptionGroup } from '@plitzi/plitzi-ui/Select2';
|
|
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. */
|
|
4
|
+
export declare const WHILE_RUNNING_OPTIONS: (Exclude<Option, OptionGroup> & {
|
|
5
|
+
value: WhileRunning;
|
|
6
|
+
})[];
|
|
7
|
+
/** What a choice is stored as: the mode, or nothing for `skip` — the default, which a document need not spell out. */
|
|
8
|
+
export declare const storedMode: (value: string | undefined) => WhileRunning | undefined;
|
|
@@ -10,13 +10,7 @@ export type QueueItem<TState = any, TDispatchAction = any> = {
|
|
|
10
10
|
state: TState;
|
|
11
11
|
dispatch: ActionDispatch<[action: TDispatchAction]>;
|
|
12
12
|
};
|
|
13
|
-
export type QueuePriority = 'normal' | 'urgent' | 'all';
|
|
14
13
|
export type QueueContextValue = {
|
|
15
|
-
queueManager: {
|
|
16
|
-
count: (priority?: QueuePriority) => number;
|
|
17
|
-
enqueue: (items?: QueueItem | QueueItem[], priority?: QueuePriority) => void;
|
|
18
|
-
getIsProcessing: () => boolean;
|
|
19
|
-
};
|
|
20
14
|
enqueueMiddleware: ReducerMiddlewareCallback<Schema | Style | Record<string, Segment>, [
|
|
21
15
|
action: StyleReducerActions | SchemaReducerActions | SegmentsReducerActions
|
|
22
16
|
]>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** What one queued write answered: nothing when there was nothing to send, else what the network layer reported. */
|
|
2
|
+
export type QueueOutcome = {
|
|
3
|
+
success: boolean;
|
|
4
|
+
error?: string | Error;
|
|
5
|
+
} | null;
|
|
6
|
+
/** A write the server did not store. Nothing sent is not a failure — there was nothing to store. */
|
|
7
|
+
export declare const writeFailed: (outcome: QueueOutcome) => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Whether sending the same write again could change the answer.
|
|
10
|
+
*
|
|
11
|
+
* Only when the server never answered: a refusal it did answer — the change would break the space, the element is not
|
|
12
|
+
* there — is its reading of that very change, and it reads it the same way every time.
|
|
13
|
+
*/
|
|
14
|
+
export declare const worthRetrying: (outcome: QueueOutcome) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QueueItem
|
|
1
|
+
import { QueueItem } from '../QueueContext';
|
|
2
2
|
import { BuilderMutationsMap, BuilderQueriesMap } from '@plitzi/sdk-shared';
|
|
3
3
|
import { NetworkContextValue } from '@plitzi/sdk-shared/network/NetworkContext';
|
|
4
4
|
export type UseQueueManagerProps = {
|
|
@@ -9,11 +9,7 @@ export type UseQueueManagerProps = {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
};
|
|
11
11
|
declare const useQueueManager: ({ delay, mutate, maxRetries, retryTimeout, disabled }: UseQueueManagerProps) => {
|
|
12
|
-
|
|
13
|
-
count: (priority?: QueuePriority) => number;
|
|
14
|
-
enqueue: (items?: QueueItem | QueueItem[], priority?: QueuePriority) => void;
|
|
15
|
-
getIsProcessing: () => boolean;
|
|
16
|
-
};
|
|
12
|
+
enqueue: (item: QueueItem) => void;
|
|
17
13
|
processing: boolean;
|
|
18
14
|
};
|
|
19
15
|
export default useQueueManager;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RootElements } from '@plitzi/sdk-schema/helpers/elementTree';
|
|
2
|
+
export type PluginInUseProps = {
|
|
3
|
+
usage: RootElements[];
|
|
4
|
+
};
|
|
5
|
+
/** What removing a plugin leaves behind: the pages whose elements of it will render as not found. */
|
|
6
|
+
declare const PluginInUse: ({ usage }: PluginInUseProps) => import('react').JSX.Element | null;
|
|
7
|
+
export default PluginInUse;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
export type ResourceMediaProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
id: string;
|
|
5
|
+
type: 'image' | 'video';
|
|
6
|
+
src: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
removing?: boolean;
|
|
9
|
+
directoryName?: string;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
onRemove?: (e: MouseEvent) => void;
|
|
13
|
+
};
|
|
14
|
+
declare const ResourceMedia: ({ className, id, type, title, src, removing, directoryName, isLoading, onClick, onRemove }: ResourceMediaProps) => import('react').JSX.Element;
|
|
15
|
+
export default ResourceMedia;
|