@plitzi/plitzi-builder 0.39.4 → 0.39.7
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 +60 -0
- package/dist/modules/App/components/AppDirectory/ItemActions.d.ts +3 -1
- package/dist/modules/App/components/AppDirectory/protection.d.ts +16 -0
- package/dist/modules/App/components/AppHeader/HeaderMenu.d.ts +33 -0
- package/dist/modules/App/components/AppHeader/HeaderPopover.d.ts +19 -0
- package/dist/modules/App/components/AppHeader/QuotaBreakdown.d.ts +4 -5
- package/dist/modules/App/components/AppHeader/ReleaseCluster/DraftPanel.d.ts +22 -0
- package/dist/modules/App/components/AppHeader/ReleaseCluster/draftStatus.d.ts +7 -0
- package/dist/modules/App/components/AppHeader/ReleaseCluster/targetAttention.d.ts +14 -0
- package/dist/modules/App/components/AppHeader/ReleaseCluster/useDraftStatus.d.ts +12 -0
- package/dist/modules/App/components/AppHeader/useAnchoredOverlay.d.ts +16 -0
- package/dist/modules/App/components/ChangesSummary/ChangesSummary.d.ts +13 -0
- package/dist/modules/App/components/ChangesSummary/helpers.d.ts +9 -0
- package/dist/modules/App/components/ChangesSummary/index.d.ts +4 -0
- package/dist/modules/App/components/ChangesSummary/useVersionChanges.d.ts +16 -0
- package/dist/modules/App/components/EnvironmentSegments/EnvironmentSegments.d.ts +21 -0
- package/dist/modules/App/components/EnvironmentSegments/index.d.ts +2 -0
- package/dist/modules/App/components/PanelSections/PanelSections.d.ts +1 -1
- package/dist/modules/App/components/SnapshotPruneNotice/SnapshotPruneNotice.d.ts +1 -1
- package/dist/modules/App/components/SnapshotPruneNotice/helpers.d.ts +2 -2
- package/dist/modules/App/components/ViewSection/ViewSection.d.ts +5 -1
- package/dist/modules/App/helpers/age.d.ts +7 -0
- package/dist/modules/App/helpers/environments.d.ts +21 -0
- package/dist/modules/App/helpers/modalSizes.d.ts +12 -0
- package/dist/modules/App/hooks/useLatestSnapshots.d.ts +16 -0
- package/dist/modules/App/hooks/useSpaceTargets.d.ts +11 -0
- package/dist/modules/App/models/PublishSheet/AccessPicker.d.ts +20 -0
- package/dist/modules/App/models/PublishSheet/DeployProgress.d.ts +14 -0
- package/dist/modules/App/models/PublishSheet/DomainCard.d.ts +11 -0
- package/dist/modules/App/models/PublishSheet/DomainList.d.ts +23 -0
- package/dist/modules/App/models/PublishSheet/OwnAddressRow.d.ts +14 -0
- package/dist/modules/App/models/PublishSheet/PublishDone.d.ts +11 -0
- package/dist/modules/App/models/PublishSheet/PublishSheet.d.ts +20 -0
- package/dist/modules/App/models/PublishSheet/ReleaseHistory.d.ts +16 -0
- package/dist/modules/App/models/PublishSheet/RevisionList.d.ts +16 -0
- package/dist/modules/App/models/PublishSheet/RevisionOption.d.ts +11 -0
- package/dist/modules/App/models/PublishSheet/RevisionRow.d.ts +11 -0
- package/dist/modules/App/models/PublishSheet/RollbackConfirm.d.ts +12 -0
- package/dist/modules/App/models/PublishSheet/SaveFirst.d.ts +18 -0
- package/dist/modules/App/models/PublishSheet/ScheduleRow.d.ts +9 -0
- package/dist/modules/App/models/PublishSheet/ScheduledPublishes.d.ts +7 -0
- package/dist/modules/App/models/PublishSheet/SheetFooter.d.ts +24 -0
- package/dist/modules/App/models/PublishSheet/SheetFrame.d.ts +9 -0
- package/dist/modules/App/models/PublishSheet/SheetTabs.d.ts +8 -0
- package/dist/modules/App/models/PublishSheet/ShowWhat.d.ts +34 -0
- package/dist/modules/App/models/PublishSheet/TargetAutomation.d.ts +13 -0
- package/dist/modules/App/models/PublishSheet/TargetNotices.d.ts +10 -0
- package/dist/modules/App/models/PublishSheet/TargetSettings.d.ts +18 -0
- package/dist/modules/App/models/PublishSheet/VersionChoice.d.ts +21 -0
- package/dist/modules/App/models/PublishSheet/WhatHappens.d.ts +24 -0
- package/dist/modules/App/models/PublishSheet/helpers.d.ts +30 -0
- package/dist/modules/App/models/PublishSheet/index.d.ts +2 -0
- package/dist/modules/App/models/SnapshotForm/SnapshotForm.d.ts +26 -0
- package/dist/modules/App/models/SnapshotForm/index.d.ts +2 -0
- package/dist/modules/Builder/Builder.d.ts +4 -1
- package/dist/modules/Builder/components/BuilderArea/BuilderArea.d.ts +6 -1
- package/dist/modules/Components/components/ComponentBanner/ComponentBanner.d.ts +10 -2
- package/dist/modules/Components/components/ComponentDetails/ComponentDetails.d.ts +10 -0
- package/dist/modules/Components/components/ComponentDetails/index.d.ts +3 -0
- package/dist/modules/Components/components/ComponentItem/ComponentItem.d.ts +4 -1
- package/dist/modules/Components/components/ComponentPreview/ComponentPreview.d.ts +10 -0
- package/dist/modules/Components/components/ComponentPreview/index.d.ts +3 -0
- package/dist/modules/Components/preview.d.ts +28 -0
- package/dist/modules/Components/useOpenComponent.d.ts +15 -6
- package/dist/modules/History/helpers.d.ts +1 -1
- package/dist/modules/Space/Models/SpaceCredentialForm/SpaceCredentialForm.d.ts +20 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/CredentialEditor/CredentialEditor.d.ts +17 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/CredentialEditor/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/CredentialFields/CredentialFields.d.ts +7 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/CredentialFields/components/CredentialField/CredentialField.d.ts +10 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/CredentialFields/components/CredentialField/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/CredentialFields/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/NamedValues/NamedValues.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/NamedValues/components/ValuesInput/ValuesInput.d.ts +8 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/NamedValues/components/ValuesInput/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/NamedValues/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/ObtainGuide/ObtainGuide.d.ts +7 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/ObtainGuide/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/ProviderPicker/ProviderPicker.d.ts +9 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/ProviderPicker/components/ProviderOption/ProviderOption.d.ts +8 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/ProviderPicker/components/ProviderOption/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/ProviderPicker/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/ProviderSummary/ProviderSummary.d.ts +9 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/components/ProviderSummary/index.d.ts +3 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/helpers.d.ts +26 -0
- package/dist/modules/Space/Models/SpaceCredentialForm/index.d.ts +4 -0
- package/dist/modules/Space/components/SpaceIssues/SpaceIssues.d.ts +3 -3
- package/dist/modules/Space/components/SpaceIssues/components/CodeGroup/CodeGroup.d.ts +23 -0
- package/dist/modules/Space/components/SpaceIssues/components/CodeGroup/index.d.ts +3 -0
- package/dist/modules/Space/components/SpaceIssues/components/CodeText/CodeText.d.ts +7 -0
- package/dist/modules/Space/components/SpaceIssues/components/CodeText/index.d.ts +3 -0
- package/dist/modules/Space/components/SpaceIssues/components/IssueGroup/IssueGroup.d.ts +2 -2
- package/dist/modules/Space/components/SpaceIssues/components/IssueItem/IssueItem.d.ts +2 -4
- package/dist/modules/Space/components/SpaceIssues/components/Message/Message.d.ts +9 -0
- package/dist/modules/Space/components/SpaceIssues/components/Message/index.d.ts +3 -0
- package/dist/modules/Space/components/SpaceIssues/components/SuggestionGroup/SuggestionGroup.d.ts +5 -2
- package/dist/modules/Space/components/SpaceIssues/components/SuggestionItem/SuggestionItem.d.ts +2 -2
- package/dist/modules/Space/components/SpaceIssues/helpers.d.ts +23 -1
- package/dist/modules/Space/hooks/useSpaceIssues.d.ts +8 -2
- package/dist/modules/StateManager/StateManager.d.ts +5 -0
- package/dist/modules/StateManager/components/ComputedTab/ComputedTab.d.ts +6 -0
- package/dist/modules/StateManager/components/ComputedTab/index.d.ts +3 -0
- package/dist/modules/StateManager/components/Kept/Kept.d.ts +7 -0
- package/dist/modules/StateManager/components/Kept/index.d.ts +3 -0
- package/dist/modules/StateManager/components/Scenarios/Scenarios.d.ts +6 -0
- package/dist/modules/StateManager/components/Scenarios/index.d.ts +3 -0
- package/dist/modules/StateManager/components/StateJson/StateJson.d.ts +7 -0
- package/dist/modules/StateManager/components/StateJson/index.d.ts +3 -0
- package/dist/modules/StateManager/components/StateRow/StateRow.d.ts +16 -0
- package/dist/modules/StateManager/components/StateRow/index.d.ts +3 -0
- package/dist/modules/StateManager/components/StateTab/StateTab.d.ts +8 -0
- package/dist/modules/StateManager/components/StateTab/index.d.ts +3 -0
- package/dist/modules/StateManager/components/SubPathRow/SubPathRow.d.ts +20 -0
- package/dist/modules/StateManager/components/SubPathRow/index.d.ts +3 -0
- package/dist/modules/StateManager/components/UseCounts/UseCounts.d.ts +9 -0
- package/dist/modules/StateManager/components/UseCounts/index.d.ts +3 -0
- package/dist/modules/StateManager/components/UsedBy/UsedBy.d.ts +7 -0
- package/dist/modules/StateManager/components/UsedBy/index.d.ts +3 -0
- package/dist/modules/StateManager/components/ValueEditor/ValueEditor.d.ts +12 -0
- package/dist/modules/StateManager/components/ValueEditor/index.d.ts +3 -0
- package/dist/modules/StateManager/components/ValueJson/ValueJson.d.ts +7 -0
- package/dist/modules/StateManager/components/ValueJson/index.d.ts +3 -0
- package/dist/modules/StateManager/components/VisitorTab/VisitorTab.d.ts +6 -0
- package/dist/modules/StateManager/components/VisitorTab/index.d.ts +3 -0
- package/dist/modules/StateManager/helpers.d.ts +54 -0
- package/dist/modules/StateManager/hooks/useCanvasVisitor.d.ts +21 -0
- package/dist/modules/StateManager/hooks/useStateChanges.d.ts +19 -0
- package/dist/modules/StateManager/layout.d.ts +2 -0
- package/dist/modules/Usages/components/UsageRow/components/UsageTreeGroup/UsageTreeGroup.d.ts +4 -2
- package/dist/modules/Usages/helpers/usageIndex.d.ts +6 -1
- package/dist/modules/Usages/index.d.ts +3 -0
- package/dist/package.json.d.ts +14 -14
- package/dist/plitzi-builder.css +1 -1
- package/dist/plitzi-builder.css.gz +0 -0
- package/dist/plitzi-builder.js +2839 -2675
- package/dist/plitzi-builder.js.gz +0 -0
- package/dist/plitzi-functions-worker.js +1 -1
- package/package.json +28 -28
- package/dist/modules/App/models/DeployForm/DeployForm.d.ts +0 -24
- package/dist/modules/App/models/DeployForm/InputEnvironment.d.ts +0 -2
- package/dist/modules/App/models/DeployForm/index.d.ts +0 -3
- package/dist/modules/App/models/PublishForm.d.ts +0 -20
- package/dist/modules/Space/Models/SpaceCredentialForm.d.ts +0 -63
- package/dist/modules/Space/helpers/buildCredentialData.d.ts +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/plitzi-builder",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.7",
|
|
4
4
|
"homepage": "./",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"files": [
|
|
@@ -26,37 +26,37 @@
|
|
|
26
26
|
"./plitzi-builder-dev-vendor.js.map": "./dist/plitzi-builder-dev-vendor.js.map"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@apollo/client": "^4.3.
|
|
29
|
+
"@apollo/client": "^4.3.8",
|
|
30
30
|
"@codemirror/autocomplete": "^6.20.4",
|
|
31
|
-
"@codemirror/lint": "^6.9.
|
|
31
|
+
"@codemirror/lint": "^6.9.8",
|
|
32
32
|
"@codemirror/state": "^6.7.6",
|
|
33
33
|
"@codemirror/view": "^6.43.15",
|
|
34
34
|
"@fortawesome/fontawesome-free": "^7.3.1",
|
|
35
|
-
"@plitzi/nexus": "^1.
|
|
36
|
-
"@plitzi/plitzi-sdk": "0.39.
|
|
37
|
-
"@plitzi/plitzi-ui": "^1.6.
|
|
38
|
-
"@plitzi/sdk-auth": "0.39.
|
|
39
|
-
"@plitzi/sdk-authoring": "0.39.
|
|
40
|
-
"@plitzi/sdk-dev-tools": "0.39.
|
|
41
|
-
"@plitzi/sdk-elements": "0.39.
|
|
42
|
-
"@plitzi/sdk-event-bridge": "0.39.
|
|
43
|
-
"@plitzi/sdk-interactions": "0.39.
|
|
44
|
-
"@plitzi/sdk-navigation": "0.39.
|
|
45
|
-
"@plitzi/sdk-plugins": "0.39.
|
|
46
|
-
"@plitzi/sdk-schema": "0.39.
|
|
47
|
-
"@plitzi/sdk-shared": "0.39.
|
|
48
|
-
"@plitzi/sdk-style": "0.39.
|
|
49
|
-
"@plitzi/sdk-variables": "0.39.
|
|
35
|
+
"@plitzi/nexus": "^1.5.1",
|
|
36
|
+
"@plitzi/plitzi-sdk": "0.39.7",
|
|
37
|
+
"@plitzi/plitzi-ui": "^1.6.40",
|
|
38
|
+
"@plitzi/sdk-auth": "0.39.7",
|
|
39
|
+
"@plitzi/sdk-authoring": "0.39.7",
|
|
40
|
+
"@plitzi/sdk-dev-tools": "0.39.7",
|
|
41
|
+
"@plitzi/sdk-elements": "0.39.7",
|
|
42
|
+
"@plitzi/sdk-event-bridge": "0.39.7",
|
|
43
|
+
"@plitzi/sdk-interactions": "0.39.7",
|
|
44
|
+
"@plitzi/sdk-navigation": "0.39.7",
|
|
45
|
+
"@plitzi/sdk-plugins": "0.39.7",
|
|
46
|
+
"@plitzi/sdk-schema": "0.39.7",
|
|
47
|
+
"@plitzi/sdk-shared": "0.39.7",
|
|
48
|
+
"@plitzi/sdk-style": "0.39.7",
|
|
49
|
+
"@plitzi/sdk-variables": "0.39.7",
|
|
50
50
|
"@typescript/vfs": "^1.6.6",
|
|
51
51
|
"@valtown/codemirror-ts": "^2.3.1",
|
|
52
52
|
"apollo-upload-client": "^20.0.0",
|
|
53
53
|
"clsx": "^2.1.1",
|
|
54
54
|
"comlink": "^4.4.2",
|
|
55
55
|
"graphql": "^17.1.0",
|
|
56
|
-
"graphql-ws": "^6.4.
|
|
57
|
-
"immer": "^11.2.
|
|
56
|
+
"graphql-ws": "^6.4.2",
|
|
57
|
+
"immer": "^11.2.10",
|
|
58
58
|
"jszip": "^3.10.2",
|
|
59
|
-
"react-hook-form": "^7.
|
|
59
|
+
"react-hook-form": "^7.92.0",
|
|
60
60
|
"react-router-dom": "^7.18.5",
|
|
61
61
|
"swr": "^2.5.1",
|
|
62
62
|
"uuid": "^14.0.3",
|
|
@@ -67,23 +67,23 @@
|
|
|
67
67
|
"react-dom": "^19"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@plitzi/sdk-runtime": "0.39.
|
|
70
|
+
"@plitzi/sdk-runtime": "0.39.7",
|
|
71
71
|
"@tailwindcss/forms": "^0.5.11",
|
|
72
72
|
"@tailwindcss/postcss": "^4.3.5",
|
|
73
73
|
"eslint": "^9.39.5",
|
|
74
|
-
"postcss": "^8.5.
|
|
74
|
+
"postcss": "^8.5.33",
|
|
75
75
|
"postcss-scss": "^4.0.9",
|
|
76
|
-
"prettier": "^3.
|
|
76
|
+
"prettier": "^3.10.1",
|
|
77
77
|
"react": "^19.3.1",
|
|
78
78
|
"react-dom": "^19.3.1",
|
|
79
|
-
"sass": "^1.108.
|
|
80
|
-
"sass-embedded": "^1.108.
|
|
79
|
+
"sass": "^1.108.2",
|
|
80
|
+
"sass-embedded": "^1.108.2",
|
|
81
81
|
"stylelint": "^18.0.0",
|
|
82
82
|
"stylelint-order": "^8.1.3",
|
|
83
|
-
"stylelint-scss": "^7.
|
|
83
|
+
"stylelint-scss": "^7.5.0",
|
|
84
84
|
"terser": "^5.51.2",
|
|
85
85
|
"typescript": "^6.0.3",
|
|
86
|
-
"vite": "^8.3.
|
|
86
|
+
"vite": "^8.3.8",
|
|
87
87
|
"vite-plugin-dts": "^5.1.2",
|
|
88
88
|
"vite-plugin-ejs": "^2.0.0",
|
|
89
89
|
"vite-plugin-mkcert": "^2.1.0",
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { Environment } from '@plitzi/sdk-shared';
|
|
3
|
-
import { MouseEvent } from 'react';
|
|
4
|
-
export declare const deployFormSchema: z.ZodObject<{
|
|
5
|
-
environment: z.ZodEnum<{
|
|
6
|
-
production: "production";
|
|
7
|
-
staging: "staging";
|
|
8
|
-
development: "development";
|
|
9
|
-
main: "main";
|
|
10
|
-
}>;
|
|
11
|
-
domain: z.ZodString;
|
|
12
|
-
revision: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
13
|
-
credentialIdentifier: z.ZodOptional<z.ZodString>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
export type DeployFormProps = {
|
|
16
|
-
environment?: Environment;
|
|
17
|
-
domain?: string;
|
|
18
|
-
revision?: number;
|
|
19
|
-
credentialIdentifier?: string;
|
|
20
|
-
onClose?: (e?: MouseEvent) => void;
|
|
21
|
-
onSubmit?: (e: MouseEvent | undefined, values: z.infer<typeof deployFormSchema>) => void;
|
|
22
|
-
};
|
|
23
|
-
declare const DeployForm: ({ environment, domain, revision, credentialIdentifier, onClose, onSubmit }: DeployFormProps) => import('react').JSX.Element;
|
|
24
|
-
export default DeployForm;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { Environment } from '@plitzi/sdk-shared';
|
|
3
|
-
import { MouseEvent } from 'react';
|
|
4
|
-
declare const publishFormSchema: z.ZodObject<{
|
|
5
|
-
environment: z.ZodEnum<{
|
|
6
|
-
production: "production";
|
|
7
|
-
staging: "staging";
|
|
8
|
-
development: "development";
|
|
9
|
-
}>;
|
|
10
|
-
description: z.ZodString;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
export type PublishFormProps = {
|
|
13
|
-
className?: string;
|
|
14
|
-
environment?: Exclude<Environment, 'main'>;
|
|
15
|
-
description?: string;
|
|
16
|
-
onClose?: (e?: MouseEvent) => void;
|
|
17
|
-
onSubmit?: (e: MouseEvent | undefined, values: z.infer<typeof publishFormSchema>) => void;
|
|
18
|
-
};
|
|
19
|
-
declare const PublishForm: ({ environment, description, onClose, onSubmit }: PublishFormProps) => import('react').JSX.Element;
|
|
20
|
-
export default PublishForm;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { SpaceCredentialProvider } from '@plitzi/sdk-shared';
|
|
3
|
-
import { MouseEvent } from 'react';
|
|
4
|
-
export declare const spaceCredentialFormSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
|
-
provider: z.ZodLiteral<"s3">;
|
|
6
|
-
name: z.ZodString;
|
|
7
|
-
accessKeyId: z.ZodString;
|
|
8
|
-
secretAccessKey: z.ZodString;
|
|
9
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
10
|
-
provider: z.ZodLiteral<"r2">;
|
|
11
|
-
name: z.ZodString;
|
|
12
|
-
accessKeyId: z.ZodString;
|
|
13
|
-
secretAccessKey: z.ZodString;
|
|
14
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
-
provider: z.ZodLiteral<"custom">;
|
|
16
|
-
name: z.ZodString;
|
|
17
|
-
data: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
provider: z.ZodLiteral<"smtp">;
|
|
20
|
-
name: z.ZodString;
|
|
21
|
-
host: z.ZodString;
|
|
22
|
-
port: z.ZodString;
|
|
23
|
-
security: z.ZodEnum<{
|
|
24
|
-
none: "none";
|
|
25
|
-
tls: "tls";
|
|
26
|
-
starttls: "starttls";
|
|
27
|
-
}>;
|
|
28
|
-
username: z.ZodString;
|
|
29
|
-
password: z.ZodString;
|
|
30
|
-
fromEmail: z.ZodString;
|
|
31
|
-
fromName: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
provider: z.ZodLiteral<"ssr">;
|
|
34
|
-
name: z.ZodString;
|
|
35
|
-
fields: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
|
-
type: z.ZodLiteral<"basic">;
|
|
37
|
-
user: z.ZodString;
|
|
38
|
-
pass: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
type: z.ZodLiteral<"token">;
|
|
41
|
-
token: z.ZodString;
|
|
42
|
-
}, z.core.$strip>], "type">;
|
|
43
|
-
}, z.core.$strip>], "provider">;
|
|
44
|
-
export type SpaceCredentialFormProps = {
|
|
45
|
-
className?: string;
|
|
46
|
-
name?: string;
|
|
47
|
-
provider?: SpaceCredentialProvider;
|
|
48
|
-
accessKeyId?: string;
|
|
49
|
-
secretAccessKey?: string;
|
|
50
|
-
type?: 'basic' | 'token';
|
|
51
|
-
user?: string;
|
|
52
|
-
pass?: string;
|
|
53
|
-
token?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Replaces the values of a credential that already exists. Its provider is fixed — a CDN, a deployment or a flow
|
|
56
|
-
* reads its keys as that provider's — and nothing it holds is shown: every value is typed again and all are replaced.
|
|
57
|
-
*/
|
|
58
|
-
editing?: boolean;
|
|
59
|
-
onClose?: (e?: MouseEvent) => void;
|
|
60
|
-
onSubmit?: (e: MouseEvent | undefined, values: z.infer<typeof spaceCredentialFormSchema>) => void;
|
|
61
|
-
};
|
|
62
|
-
declare const SpaceCredentialForm: ({ name, provider, accessKeyId, secretAccessKey, type, user, pass, token, editing, onSubmit, onClose }: SpaceCredentialFormProps) => import('react').JSX.Element;
|
|
63
|
-
export default SpaceCredentialForm;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { spaceCredentialFormSchema } from '../Models/SpaceCredentialForm';
|
|
2
|
-
import { default as z } from 'zod';
|
|
3
|
-
/**
|
|
4
|
-
* Turns a submitted credential form into the bag the API stores.
|
|
5
|
-
*
|
|
6
|
-
* Each provider keeps a different shape, and a `custom` credential keeps whatever keys its connector manifest names —
|
|
7
|
-
* which is why the value is parsed here rather than typed: the set of keys is the author's, not ours.
|
|
8
|
-
*/
|
|
9
|
-
export declare const buildCredentialData: (values: z.infer<typeof spaceCredentialFormSchema>) => Record<string, string> | {
|
|
10
|
-
type: "basic";
|
|
11
|
-
user: string;
|
|
12
|
-
pass: string;
|
|
13
|
-
} | {
|
|
14
|
-
type: "token";
|
|
15
|
-
token: string;
|
|
16
|
-
};
|
|
17
|
-
export default buildCredentialData;
|