@aotter/mantle 0.2.0-alpha.4 → 0.2.0-alpha.6
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/README.md +2 -2
- package/dist/admin/createAdminSurface.d.ts +3 -0
- package/dist/admin/createAdminSurface.d.ts.map +1 -1
- package/dist/admin/createAdminSurface.js +51 -8
- package/dist/admin/createAdminSurface.js.map +1 -1
- package/dist/admin/extensions.d.ts +290 -0
- package/dist/admin/extensions.d.ts.map +1 -0
- package/dist/admin/extensions.js +532 -0
- package/dist/admin/extensions.js.map +1 -0
- package/dist/admin/index.d.ts +1 -0
- package/dist/admin/index.d.ts.map +1 -1
- package/dist/admin/index.js +1 -0
- package/dist/admin/index.js.map +1 -1
- package/dist/auth/buildAuth.d.ts +3 -1
- package/dist/auth/buildAuth.d.ts.map +1 -1
- package/dist/auth/buildAuth.js +3 -2
- package/dist/auth/buildAuth.js.map +1 -1
- package/dist/auth/callerResolver.d.ts +4 -0
- package/dist/auth/callerResolver.d.ts.map +1 -1
- package/dist/auth/callerResolver.js +4 -1
- package/dist/auth/callerResolver.js.map +1 -1
- package/dist/auth/createMantleAuth.d.ts.map +1 -1
- package/dist/auth/createMantleAuth.js +3 -2
- package/dist/auth/createMantleAuth.js.map +1 -1
- package/dist/auth/db.d.ts +1 -0
- package/dist/auth/db.d.ts.map +1 -1
- package/dist/auth/db.js +6 -3
- package/dist/auth/db.js.map +1 -1
- package/dist/bun/index.d.ts +0 -44
- package/dist/bun/index.d.ts.map +1 -1
- package/dist/bun/index.js +0 -84
- package/dist/bun/index.js.map +1 -1
- package/dist/cli/generate.js +3 -3
- package/dist/cli/generate.js.map +1 -1
- package/dist/cli/preset.d.ts.map +1 -1
- package/dist/cli/preset.js +80 -28
- package/dist/cli/preset.js.map +1 -1
- package/dist/cloudflare/index.d.ts +4 -0
- package/dist/cloudflare/index.d.ts.map +1 -1
- package/dist/cloudflare/index.js +2 -0
- package/dist/cloudflare/index.js.map +1 -1
- package/dist/core/dialect.d.ts +13 -1
- package/dist/core/dialect.d.ts.map +1 -1
- package/dist/core/driver.d.ts +7 -0
- package/dist/core/driver.d.ts.map +1 -1
- package/dist/core/runtime/createRuntime.js +1 -1
- package/dist/core/runtime/createRuntime.js.map +1 -1
- package/dist/core/sessionUser.d.ts +14 -0
- package/dist/core/sessionUser.d.ts.map +1 -0
- package/dist/core/sessionUser.js +4 -0
- package/dist/core/sessionUser.js.map +1 -0
- package/dist/core/sql/allowlist.d.ts +2 -0
- package/dist/core/sql/allowlist.d.ts.map +1 -1
- package/dist/core/sql/allowlist.js +43 -11
- package/dist/core/sql/allowlist.js.map +1 -1
- package/dist/core/sql/ast.js +1 -1
- package/dist/core/sql/ast.js.map +1 -1
- package/dist/core/sql/compile.js +1 -1
- package/dist/core/sql/compile.js.map +1 -1
- package/dist/core/sql/policy.d.ts +2 -0
- package/dist/core/sql/policy.d.ts.map +1 -1
- package/dist/core/sql/policy.js +25 -6
- package/dist/core/sql/policy.js.map +1 -1
- package/dist/core/sql/run.d.ts +0 -8
- package/dist/core/sql/run.d.ts.map +1 -1
- package/dist/core/sql/run.js +152 -35
- package/dist/core/sql/run.js.map +1 -1
- package/dist/d1/executor.d.ts +2 -0
- package/dist/d1/executor.d.ts.map +1 -1
- package/dist/d1/executor.js +6 -1
- package/dist/d1/executor.js.map +1 -1
- package/dist/mcp/createMcpSurface.d.ts +5 -2
- package/dist/mcp/createMcpSurface.d.ts.map +1 -1
- package/dist/mcp/createMcpSurface.js +14 -3
- package/dist/mcp/createMcpSurface.js.map +1 -1
- package/dist/mcp/media.d.ts +9 -0
- package/dist/mcp/media.d.ts.map +1 -0
- package/dist/mcp/media.js +33 -0
- package/dist/mcp/media.js.map +1 -0
- package/dist/postgres/adapter.d.ts +5 -2
- package/dist/postgres/adapter.d.ts.map +1 -1
- package/dist/postgres/adapter.js +7 -1
- package/dist/postgres/adapter.js.map +1 -1
- package/dist/postgres/compile/index.d.ts +1 -1
- package/dist/postgres/compile/index.js +1 -1
- package/dist/postgres/driver.d.ts +38 -21
- package/dist/postgres/driver.d.ts.map +1 -1
- package/dist/postgres/driver.js +100 -24
- package/dist/postgres/driver.js.map +1 -1
- package/dist/postgres/executor.d.ts +8 -0
- package/dist/postgres/executor.d.ts.map +1 -1
- package/dist/postgres/executor.js +40 -13
- package/dist/postgres/executor.js.map +1 -1
- package/dist/postgres/index.d.ts +2 -1
- package/dist/postgres/index.d.ts.map +1 -1
- package/dist/postgres/index.js +1 -0
- package/dist/postgres/index.js.map +1 -1
- package/dist/postgres/lower.d.ts.map +1 -1
- package/dist/postgres/lower.js +3 -8
- package/dist/postgres/lower.js.map +1 -1
- package/dist/postgres/print.d.ts.map +1 -1
- package/dist/postgres/print.js +2 -15
- package/dist/postgres/print.js.map +1 -1
- package/dist/postgres/session.d.ts +9 -0
- package/dist/postgres/session.d.ts.map +1 -0
- package/dist/postgres/session.js +111 -0
- package/dist/postgres/session.js.map +1 -0
- package/dist/postgres/storage.d.ts +14 -1
- package/dist/postgres/storage.d.ts.map +1 -1
- package/dist/postgres/storage.js +136 -54
- package/dist/postgres/storage.js.map +1 -1
- package/dist/postgres/validator.d.ts +4 -3
- package/dist/postgres/validator.d.ts.map +1 -1
- package/dist/postgres/validator.js +13 -6
- package/dist/postgres/validator.js.map +1 -1
- package/dist/spec/domain/model/ManifestGrammar.d.ts +4 -0
- package/dist/spec/domain/model/ManifestGrammar.d.ts.map +1 -1
- package/dist/spec/domain/model/ManifestGrammar.js +4 -0
- package/dist/spec/domain/model/ManifestGrammar.js.map +1 -1
- package/dist/spec/domain/service/SchemaAdminUiChecker.d.ts +2 -0
- package/dist/spec/domain/service/SchemaAdminUiChecker.d.ts.map +1 -1
- package/dist/spec/domain/service/SchemaAdminUiChecker.js +50 -6
- package/dist/spec/domain/service/SchemaAdminUiChecker.js.map +1 -1
- package/dist/spec/domain/service/ViewAdminUiChecker.d.ts +1 -1
- package/dist/spec/domain/service/ViewAdminUiChecker.d.ts.map +1 -1
- package/dist/spec/domain/service/ViewAdminUiChecker.js +7 -2
- package/dist/spec/domain/service/ViewAdminUiChecker.js.map +1 -1
- package/dist/spec/infrastructure/sql/compilePlan.d.ts.map +1 -1
- package/dist/spec/infrastructure/sql/compilePlan.js +5 -0
- package/dist/spec/infrastructure/sql/compilePlan.js.map +1 -1
- package/dist/spec/kernel/diagnostic.d.ts +1 -1
- package/dist/spec/kernel/diagnostic.d.ts.map +1 -1
- package/dist/spec/kernel/diagnostic.js +5 -0
- package/dist/spec/kernel/diagnostic.js.map +1 -1
- package/dist/testing/cases/corpus.d.ts +2 -0
- package/dist/testing/cases/corpus.d.ts.map +1 -1
- package/dist/testing/cases/corpus.js +7 -5
- package/dist/testing/cases/corpus.js.map +1 -1
- package/dist/testing/cases/policy.d.ts +14 -1
- package/dist/testing/cases/policy.d.ts.map +1 -1
- package/dist/testing/cases/policy.js +3 -2
- package/dist/testing/cases/policy.js.map +1 -1
- package/dist/testing/cases/printer.d.ts.map +1 -1
- package/dist/testing/cases/printer.js +3 -1
- package/dist/testing/cases/printer.js.map +1 -1
- package/dist/testing/cases/report-view.d.ts.map +1 -1
- package/dist/testing/cases/report-view.js +18 -0
- package/dist/testing/cases/report-view.js.map +1 -1
- package/docs/adr/0031-host-cloud-core-contract.md +62 -1
- package/docs/adr/0032-store-centric-core-and-service-contract.md +17 -0
- package/docs/adr/0037-postgresql-is-the-reference-dialect.md +2 -1
- package/docs/adr/0039-postgresql-is-native.md +130 -0
- package/docs/adr/README.md +2 -0
- package/docs/adr/adr-lite-1376-admin-extensions.md +330 -0
- package/docs/examples/commerce-inventory.md +18 -1
- package/docs/examples/reference-service/package.json +2 -2
- package/docs/handbook/cloudflare/authentication.md +3 -3
- package/docs/handbook/cloudflare/deploy-and-operate.md +4 -1
- package/docs/handbook/cloudflare/media-r2.md +59 -8
- package/docs/handbook/concepts/mcp-and-agents.md +12 -4
- package/docs/handbook/concepts/runtime-and-adapters.md +74 -33
- package/docs/handbook/concepts/views.md +1 -1
- package/docs/handbook/guides/admin-extensions.md +191 -0
- package/docs/handbook/guides/admin-ui.md +2 -1
- package/docs/handbook/navigation.json +2 -1
- package/docs/handbook/reference/diagnostics.md +1 -0
- package/docs/handbook/reference/procedure.md +2 -1
- package/docs/handbook/reference/schema.md +6 -3
- package/docs/handbook/reference/surface.md +6 -2
- package/docs/handbook/reference/view.md +7 -5
- package/docs/handbook/releases/index.md +78 -4
- package/docs/handbook/start/project-and-cli.md +20 -12
- package/docs/skills/develop/SKILL.md +8 -2
- package/docs/skills/provision/SKILL.md +4 -1
- package/docs/skills/update/SKILL.md +3 -0
- package/docs/upgrade-0.1-to-0.2.md +1 -1
- package/package.json +6 -5
- package/dist/postgres/textRows.d.ts +0 -10
- package/dist/postgres/textRows.d.ts.map +0 -1
- package/dist/postgres/textRows.js +0 -44
- package/dist/postgres/textRows.js.map +0 -1
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import { type JsonSchema, type LocalizedText, type RuntimePlan, type StaffRole } from "../spec/domain/index.js";
|
|
2
|
+
import type { Caller } from "../core/index.js";
|
|
3
|
+
export type AdminExtensionCaller = Extract<Caller, {
|
|
4
|
+
kind: "user";
|
|
5
|
+
}> & {
|
|
6
|
+
readonly role: StaffRole;
|
|
7
|
+
};
|
|
8
|
+
export declare const ADMIN_EXTENSION_TARGETS: {
|
|
9
|
+
readonly action: readonly ["record/v1", "list.selection/v1", "list.toolbar/v1"];
|
|
10
|
+
readonly panel: readonly ["record.sidebar/v1", "home/v1"];
|
|
11
|
+
readonly field: readonly ["field.input/v1", "field.cell/v1"];
|
|
12
|
+
};
|
|
13
|
+
export type AdminActionTarget = (typeof ADMIN_EXTENSION_TARGETS.action)[number];
|
|
14
|
+
export type AdminPanelTarget = (typeof ADMIN_EXTENSION_TARGETS.panel)[number];
|
|
15
|
+
export type AdminFieldTarget = (typeof ADMIN_EXTENSION_TARGETS.field)[number];
|
|
16
|
+
/** Where a contribution applies, by name only, so the server can evaluate it. `format` matches `x-mcp-hint` or `format`. */
|
|
17
|
+
export interface AdminExtensionWhen {
|
|
18
|
+
readonly schema?: readonly string[];
|
|
19
|
+
readonly field?: readonly string[];
|
|
20
|
+
readonly format?: readonly string[];
|
|
21
|
+
}
|
|
22
|
+
export interface AdminExtensionPage {
|
|
23
|
+
readonly id: string;
|
|
24
|
+
readonly title: LocalizedText;
|
|
25
|
+
readonly role: StaffRole;
|
|
26
|
+
readonly nav?: {
|
|
27
|
+
readonly group: "more" | "settings";
|
|
28
|
+
readonly order?: number;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/** A settings page Admin renders from `schema` (the form subset) with no client code. */
|
|
32
|
+
export interface AdminExtensionSettings {
|
|
33
|
+
readonly id: string;
|
|
34
|
+
readonly title: LocalizedText;
|
|
35
|
+
readonly role: StaffRole;
|
|
36
|
+
readonly schema: JsonSchema;
|
|
37
|
+
}
|
|
38
|
+
export interface AdminExtensionAction {
|
|
39
|
+
readonly id: string;
|
|
40
|
+
readonly title: LocalizedText;
|
|
41
|
+
readonly role: StaffRole;
|
|
42
|
+
readonly target: AdminActionTarget;
|
|
43
|
+
/** `run` calls the server at once, `confirm` asks first, `dialog` mounts the module's renderer in an Admin dialog. */
|
|
44
|
+
readonly presentation: "run" | "confirm" | "dialog";
|
|
45
|
+
readonly destructive?: boolean;
|
|
46
|
+
readonly when?: AdminExtensionWhen;
|
|
47
|
+
}
|
|
48
|
+
export interface AdminExtensionPanel {
|
|
49
|
+
readonly id: string;
|
|
50
|
+
readonly title: LocalizedText;
|
|
51
|
+
readonly role: StaffRole;
|
|
52
|
+
readonly target: AdminPanelTarget;
|
|
53
|
+
readonly when?: AdminExtensionWhen;
|
|
54
|
+
}
|
|
55
|
+
export interface AdminExtensionField {
|
|
56
|
+
readonly id: string;
|
|
57
|
+
readonly target: AdminFieldTarget;
|
|
58
|
+
/** Default `contributor`: a viewer below it gets Admin's own widget. */
|
|
59
|
+
readonly role?: StaffRole;
|
|
60
|
+
readonly when?: AdminExtensionWhen;
|
|
61
|
+
/** The form subset `uiSchema` `options` must satisfy; without it, `options` is refused. */
|
|
62
|
+
readonly optionsSchema?: JsonSchema;
|
|
63
|
+
}
|
|
64
|
+
export interface AdminExtensionContributions {
|
|
65
|
+
readonly pages?: readonly AdminExtensionPage[];
|
|
66
|
+
readonly settings?: readonly AdminExtensionSettings[];
|
|
67
|
+
readonly actions?: readonly AdminExtensionAction[];
|
|
68
|
+
readonly panels?: readonly AdminExtensionPanel[];
|
|
69
|
+
readonly fields?: readonly AdminExtensionField[];
|
|
70
|
+
}
|
|
71
|
+
export interface AdminExtensionRecordRef {
|
|
72
|
+
readonly schema: string;
|
|
73
|
+
readonly id: string;
|
|
74
|
+
readonly version?: number;
|
|
75
|
+
}
|
|
76
|
+
export interface AdminExtensionSelection {
|
|
77
|
+
readonly schema: string;
|
|
78
|
+
readonly ids: readonly string[];
|
|
79
|
+
}
|
|
80
|
+
export interface AdminExtensionHandlers {
|
|
81
|
+
/** `{basePath}/api/x/{extension}/api/{path}`, for the extension's lowest contribution role and above; `null` answers 404. */
|
|
82
|
+
readonly api?: (request: Request, context: {
|
|
83
|
+
readonly caller: AdminExtensionCaller;
|
|
84
|
+
readonly extension: string;
|
|
85
|
+
readonly path: string;
|
|
86
|
+
}) => Response | null | Promise<Response | null>;
|
|
87
|
+
readonly settings?: Readonly<Record<string, {
|
|
88
|
+
load(caller: AdminExtensionCaller): unknown;
|
|
89
|
+
/** Receives a value already checked against the settings `schema`; may return the stored value. */
|
|
90
|
+
save(caller: AdminExtensionCaller, value: Readonly<Record<string, unknown>>): unknown;
|
|
91
|
+
}>>;
|
|
92
|
+
readonly actions?: Readonly<Record<string, {
|
|
93
|
+
run(caller: AdminExtensionCaller, input: {
|
|
94
|
+
readonly record?: AdminExtensionRecordRef;
|
|
95
|
+
readonly selection?: AdminExtensionSelection;
|
|
96
|
+
readonly schema?: string;
|
|
97
|
+
}): unknown;
|
|
98
|
+
}>>;
|
|
99
|
+
}
|
|
100
|
+
export interface AdminExtension {
|
|
101
|
+
readonly apiVersion: 1;
|
|
102
|
+
/** Kebab-case, unique per Admin, and never changed once deployed. */
|
|
103
|
+
readonly id: string;
|
|
104
|
+
readonly title: LocalizedText;
|
|
105
|
+
/** A same-origin ESM path the host serves, whose default export is `defineAdminExtension({...})`. */
|
|
106
|
+
readonly module?: string;
|
|
107
|
+
/** Subresource Integrity for `module`, enforced through Admin's import map. */
|
|
108
|
+
readonly integrity?: string;
|
|
109
|
+
/**
|
|
110
|
+
* The module's code, which Admin serves itself at `{basePath}/extensions/{id}.js` to staff whose role reaches the
|
|
111
|
+
* extension, with its integrity computed. Plain ESM needs no build: Admin's import map resolves `react`,
|
|
112
|
+
* `react/jsx-runtime`, `react-dom/client`, `@aotter/mantle-ui/kit` and `@aotter/mantle-ui/extension`.
|
|
113
|
+
*/
|
|
114
|
+
readonly source?: string | (() => string | Promise<string>);
|
|
115
|
+
readonly contributes: AdminExtensionContributions;
|
|
116
|
+
readonly handlers?: AdminExtensionHandlers;
|
|
117
|
+
}
|
|
118
|
+
/** Why `schema` is outside the form subset Admin renders and checks, or `null`. */
|
|
119
|
+
export declare function formSchemaProblem(schema: unknown): string | null;
|
|
120
|
+
/** Checks `value` against a form-subset `schema`: the errors by field, empty when it passes. */
|
|
121
|
+
export declare function checkFormValue(schema: JsonSchema, value: unknown): Readonly<Record<string, string>>;
|
|
122
|
+
/** Validates every declaration and their handlers; throws `UI_EXTENSION_INVALID` naming the first problem. */
|
|
123
|
+
export declare function validateAdminExtensions(extensions: readonly AdminExtension[]): void;
|
|
124
|
+
/** Every `<extension>/<contribution>` the plan's `uiSchema` names, with the target its key needs. */
|
|
125
|
+
export declare function planUiExtensionRefs(plan: Pick<RuntimePlan, "schemas" | "views" | "procedures">): {
|
|
126
|
+
readonly path: string;
|
|
127
|
+
readonly ref: string;
|
|
128
|
+
readonly target: AdminFieldTarget | AdminPanelTarget;
|
|
129
|
+
readonly options?: unknown;
|
|
130
|
+
}[];
|
|
131
|
+
/** Checks that each contribution the plan names exists, has the target its key needs, and accepts its `options`. */
|
|
132
|
+
export declare function checkPlanUiExtensions(plan: Pick<RuntimePlan, "schemas" | "views" | "procedures">, extensions: readonly AdminExtension[]): void;
|
|
133
|
+
/** The declarations (never handlers or integrity) of the contributions `role` reaches; extensions with none are left out. */
|
|
134
|
+
export declare function adminExtensionsFor(extensions: readonly AdminExtension[], role: StaffRole, basePath?: string): {
|
|
135
|
+
contributes: {
|
|
136
|
+
pages: AdminExtensionPage[];
|
|
137
|
+
settings: AdminExtensionSettings[];
|
|
138
|
+
actions: AdminExtensionAction[];
|
|
139
|
+
panels: AdminExtensionPanel[];
|
|
140
|
+
fields: AdminExtensionField[];
|
|
141
|
+
};
|
|
142
|
+
module?: string | undefined;
|
|
143
|
+
id: string;
|
|
144
|
+
title: LocalizedText;
|
|
145
|
+
}[];
|
|
146
|
+
export declare const extensionSourcePath: (basePath: string, id: string) => string;
|
|
147
|
+
/** The code Admin serves for a `source` extension and its sha384 integrity, read once. */
|
|
148
|
+
export declare function extensionSource(e: AdminExtension): Promise<{
|
|
149
|
+
code: string;
|
|
150
|
+
integrity: string;
|
|
151
|
+
}> | null;
|
|
152
|
+
/** `{basePath}/extensions/{id}.js`: a `source` extension's module, for staff whose role reaches one of its contributions. */
|
|
153
|
+
export declare function adminExtensionModule(extensions: readonly AdminExtension[], id: string, caller: AdminExtensionCaller): Promise<Response>;
|
|
154
|
+
/**
|
|
155
|
+
* Answers `{basePath}/api/x/{extension}/...` after Admin's session checks: `settings/{id}` (GET loads, PATCH saves),
|
|
156
|
+
* `actions/{id}` (POST runs) and `api/{path}` (the extension's own API). `null` when the path is not an extension's.
|
|
157
|
+
*/
|
|
158
|
+
export declare function adminExtensionRoute(extensions: readonly AdminExtension[], request: Request, rest: string, caller: AdminExtensionCaller): Promise<Response>;
|
|
159
|
+
export interface AdminExtensionChange {
|
|
160
|
+
readonly change: "added" | "removed" | "changed";
|
|
161
|
+
/** `<extension>` or `<extension>/<contribution>` */
|
|
162
|
+
readonly ref: string;
|
|
163
|
+
/** For `changed`: the keys that differ, e.g. `role`, `target`, `module`. */
|
|
164
|
+
readonly keys?: readonly string[];
|
|
165
|
+
}
|
|
166
|
+
/** What changed between two sets of declarations, for review screens. Handlers are code and are not compared. */
|
|
167
|
+
export declare function diffAdminExtensions(previous: readonly AdminExtension[], next: readonly AdminExtension[]): readonly AdminExtensionChange[];
|
|
168
|
+
/** JSON Schema of one extension's declaration (handlers excluded), for tooling and agents. */
|
|
169
|
+
export declare const ADMIN_EXTENSION_JSON_SCHEMA: {
|
|
170
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
171
|
+
readonly title: "Mantle Admin extension declaration";
|
|
172
|
+
readonly type: "object";
|
|
173
|
+
readonly additionalProperties: false;
|
|
174
|
+
readonly required: readonly ["apiVersion", "id", "title", "contributes"];
|
|
175
|
+
readonly properties: {
|
|
176
|
+
readonly apiVersion: {
|
|
177
|
+
readonly const: 1;
|
|
178
|
+
};
|
|
179
|
+
readonly id: {
|
|
180
|
+
type: string;
|
|
181
|
+
pattern: string;
|
|
182
|
+
};
|
|
183
|
+
readonly title: {
|
|
184
|
+
anyOf: ({
|
|
185
|
+
type: string;
|
|
186
|
+
minLength: number;
|
|
187
|
+
additionalProperties?: undefined;
|
|
188
|
+
minProperties?: undefined;
|
|
189
|
+
} | {
|
|
190
|
+
type: string;
|
|
191
|
+
additionalProperties: {
|
|
192
|
+
type: string;
|
|
193
|
+
minLength: number;
|
|
194
|
+
};
|
|
195
|
+
minProperties: number;
|
|
196
|
+
minLength?: undefined;
|
|
197
|
+
})[];
|
|
198
|
+
};
|
|
199
|
+
readonly module: {
|
|
200
|
+
readonly type: "string";
|
|
201
|
+
readonly pattern: string;
|
|
202
|
+
};
|
|
203
|
+
readonly integrity: {
|
|
204
|
+
readonly type: "string";
|
|
205
|
+
readonly pattern: string;
|
|
206
|
+
};
|
|
207
|
+
readonly source: {
|
|
208
|
+
readonly type: "string";
|
|
209
|
+
readonly minLength: 1;
|
|
210
|
+
};
|
|
211
|
+
readonly contributes: {
|
|
212
|
+
readonly type: "object";
|
|
213
|
+
readonly additionalProperties: false;
|
|
214
|
+
readonly minProperties: 1;
|
|
215
|
+
readonly properties: {
|
|
216
|
+
readonly pages: {
|
|
217
|
+
readonly type: "array";
|
|
218
|
+
readonly items: {
|
|
219
|
+
type: string;
|
|
220
|
+
additionalProperties: boolean;
|
|
221
|
+
required: string[];
|
|
222
|
+
properties: {
|
|
223
|
+
id: {
|
|
224
|
+
type: string;
|
|
225
|
+
pattern: string;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
readonly settings: {
|
|
231
|
+
readonly type: "array";
|
|
232
|
+
readonly items: {
|
|
233
|
+
type: string;
|
|
234
|
+
additionalProperties: boolean;
|
|
235
|
+
required: string[];
|
|
236
|
+
properties: {
|
|
237
|
+
id: {
|
|
238
|
+
type: string;
|
|
239
|
+
pattern: string;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
readonly actions: {
|
|
245
|
+
readonly type: "array";
|
|
246
|
+
readonly items: {
|
|
247
|
+
type: string;
|
|
248
|
+
additionalProperties: boolean;
|
|
249
|
+
required: string[];
|
|
250
|
+
properties: {
|
|
251
|
+
id: {
|
|
252
|
+
type: string;
|
|
253
|
+
pattern: string;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
readonly panels: {
|
|
259
|
+
readonly type: "array";
|
|
260
|
+
readonly items: {
|
|
261
|
+
type: string;
|
|
262
|
+
additionalProperties: boolean;
|
|
263
|
+
required: string[];
|
|
264
|
+
properties: {
|
|
265
|
+
id: {
|
|
266
|
+
type: string;
|
|
267
|
+
pattern: string;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
readonly fields: {
|
|
273
|
+
readonly type: "array";
|
|
274
|
+
readonly items: {
|
|
275
|
+
type: string;
|
|
276
|
+
additionalProperties: boolean;
|
|
277
|
+
required: string[];
|
|
278
|
+
properties: {
|
|
279
|
+
id: {
|
|
280
|
+
type: string;
|
|
281
|
+
pattern: string;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
//# sourceMappingURL=extensions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../src/admin/extensions.ts"],"names":[],"mappings":"AAMA,OAAO,EAA4C,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC1J,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG/C,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAEpG,eAAO,MAAM,uBAAuB;;;;CAI1B,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAChF,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,uBAAuB,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAC9E,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,uBAAuB,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,4HAA4H;AAC5H,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAA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