@ankhorage/studio 0.0.2 → 0.0.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/dist/index.d.ts +206 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ActionType, AppDataManifest, AppManifest, AuthOAuthProviderConfig, ComponentDataBindingRegistry, DataSourceRegistry, NavigatorType, RouteDefinition, ThemeConfig, ThemeModeConfig, UiNode } from '@ankhorage/contracts';
|
|
1
2
|
export declare const STUDIO_PACKAGE_NAME: "@ankhorage/studio";
|
|
2
3
|
export interface StudioPackageBoundary {
|
|
3
4
|
readonly owns: readonly string[];
|
|
@@ -5,4 +6,209 @@ export interface StudioPackageBoundary {
|
|
|
5
6
|
readonly doesNotOwn: readonly string[];
|
|
6
7
|
}
|
|
7
8
|
export declare const STUDIO_PACKAGE_BOUNDARY: StudioPackageBoundary;
|
|
9
|
+
export declare const STUDIO_PUBLIC_CONTRACTS: readonly ["StudioManifest", "StudioContextValue", "StudioSelectionState", "NodePlacement", "InsertCatalogEntry", "ActionDefinition", "StudioCommand", "StudioEvent"];
|
|
10
|
+
export type StudioPublicContract = (typeof STUDIO_PUBLIC_CONTRACTS)[number];
|
|
11
|
+
export type StudioProjectId = string;
|
|
12
|
+
export type StudioSessionId = string;
|
|
13
|
+
export type StudioNodeId = string;
|
|
14
|
+
export type StudioScreenId = string;
|
|
15
|
+
export type StudioModuleId = string;
|
|
16
|
+
export type StudioLocale = string;
|
|
17
|
+
export type StudioMode = 'light' | 'dark';
|
|
18
|
+
export type StudioSaveStatus = 'idle' | 'saving' | 'saved' | 'error';
|
|
19
|
+
export type StudioPanelId = 'layers' | 'modules' | 'localization';
|
|
20
|
+
export type StudioAdminRoutePath = '/' | '/ankh/apis' | '/ankh/auth' | '/ankh/properties' | '/ankh/theme';
|
|
21
|
+
export type StudioManifest = AppManifest & {
|
|
22
|
+
infra: AppManifest['infra'] & {
|
|
23
|
+
modulesConfig?: Record<string, unknown>;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export type ThemeUpdates = Partial<Omit<ThemeConfig, 'light' | 'dark'>> & {
|
|
27
|
+
light?: Partial<ThemeModeConfig>;
|
|
28
|
+
dark?: Partial<ThemeModeConfig>;
|
|
29
|
+
};
|
|
30
|
+
export interface StudioSelectionState {
|
|
31
|
+
activeScreenId: StudioScreenId | null;
|
|
32
|
+
selectedNodeId: StudioNodeId | null;
|
|
33
|
+
activePanelId: StudioPanelId | null;
|
|
34
|
+
activeAdminRoutePath: StudioAdminRoutePath;
|
|
35
|
+
activeCanvasDragNodeId: StudioNodeId | null;
|
|
36
|
+
}
|
|
37
|
+
export interface StudioSessionState {
|
|
38
|
+
projectId: StudioProjectId;
|
|
39
|
+
sessionId?: StudioSessionId;
|
|
40
|
+
activeLocale: StudioLocale;
|
|
41
|
+
studioMode: StudioMode;
|
|
42
|
+
previewMode: boolean;
|
|
43
|
+
saveStatus: StudioSaveStatus;
|
|
44
|
+
isLoading: boolean;
|
|
45
|
+
error: string | null;
|
|
46
|
+
}
|
|
47
|
+
export type PlacementKind = 'inside' | 'before' | 'after';
|
|
48
|
+
export interface NodePlacement {
|
|
49
|
+
parentId: StudioNodeId;
|
|
50
|
+
index: number;
|
|
51
|
+
kind: PlacementKind;
|
|
52
|
+
referenceId?: StudioNodeId;
|
|
53
|
+
}
|
|
54
|
+
export type PlacementFailureCode = 'missing-root' | 'missing-target' | 'missing-parent' | 'child-not-allowed' | 'invalid-index' | 'no-valid-target' | 'cannot-move-root' | 'cannot-move-into-self' | 'cannot-move-into-descendant' | 'no-op';
|
|
55
|
+
export interface PlacementFailureReason {
|
|
56
|
+
code: PlacementFailureCode;
|
|
57
|
+
message: string;
|
|
58
|
+
}
|
|
59
|
+
export type PlacementValidationResult = {
|
|
60
|
+
ok: true;
|
|
61
|
+
} | {
|
|
62
|
+
ok: false;
|
|
63
|
+
reason: PlacementFailureReason;
|
|
64
|
+
};
|
|
65
|
+
export type PlacementResolutionResult = {
|
|
66
|
+
ok: true;
|
|
67
|
+
placement: NodePlacement;
|
|
68
|
+
} | {
|
|
69
|
+
ok: false;
|
|
70
|
+
reason: PlacementFailureReason;
|
|
71
|
+
};
|
|
72
|
+
export type InsertCatalogEntryKind = 'component' | 'recipe';
|
|
73
|
+
export type InsertCatalogEntryStatus = 'enabled' | 'disabled';
|
|
74
|
+
export type InsertCatalogDisabledReasonCode = 'missing-meta' | 'invalid-recipe' | 'no-placement' | 'not-direct';
|
|
75
|
+
export interface InsertRecipeNode {
|
|
76
|
+
type: string;
|
|
77
|
+
children?: InsertRecipeNode[];
|
|
78
|
+
}
|
|
79
|
+
export interface InsertRecipe {
|
|
80
|
+
id: string;
|
|
81
|
+
label: string;
|
|
82
|
+
description?: string;
|
|
83
|
+
category: string;
|
|
84
|
+
root: InsertRecipeNode;
|
|
85
|
+
}
|
|
86
|
+
export interface InsertRecipeIssue {
|
|
87
|
+
code: 'missing-meta' | 'child-not-allowed';
|
|
88
|
+
path: string[];
|
|
89
|
+
nodeType: string;
|
|
90
|
+
childType?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface InsertCatalogDisabledReason {
|
|
93
|
+
code: InsertCatalogDisabledReasonCode;
|
|
94
|
+
detail: string;
|
|
95
|
+
issue?: InsertRecipeIssue;
|
|
96
|
+
}
|
|
97
|
+
export interface InsertCatalogEntryBase {
|
|
98
|
+
id: string;
|
|
99
|
+
label: string;
|
|
100
|
+
description?: string;
|
|
101
|
+
category: string;
|
|
102
|
+
rootType: string;
|
|
103
|
+
kind: InsertCatalogEntryKind;
|
|
104
|
+
status: InsertCatalogEntryStatus;
|
|
105
|
+
disabledReason?: InsertCatalogDisabledReason;
|
|
106
|
+
placement?: NodePlacement;
|
|
107
|
+
}
|
|
108
|
+
export interface InsertCatalogComponentEntry extends InsertCatalogEntryBase {
|
|
109
|
+
kind: 'component';
|
|
110
|
+
componentType: string;
|
|
111
|
+
}
|
|
112
|
+
export interface InsertCatalogRecipeEntry extends InsertCatalogEntryBase {
|
|
113
|
+
kind: 'recipe';
|
|
114
|
+
recipe: InsertRecipe;
|
|
115
|
+
}
|
|
116
|
+
export type InsertCatalogEntry = InsertCatalogComponentEntry | InsertCatalogRecipeEntry;
|
|
117
|
+
export type StudioActionPayloadPrimitive = 'string' | 'number' | 'boolean' | 'object';
|
|
118
|
+
export interface StudioActionPayloadField {
|
|
119
|
+
type: StudioActionPayloadPrimitive;
|
|
120
|
+
label: string;
|
|
121
|
+
required?: boolean;
|
|
122
|
+
}
|
|
123
|
+
export type StudioActionPayloadSchema = Record<string, StudioActionPayloadField>;
|
|
124
|
+
export interface ActionDefinition {
|
|
125
|
+
type: ActionType;
|
|
126
|
+
label: string;
|
|
127
|
+
description: string;
|
|
128
|
+
requiresPayload: boolean;
|
|
129
|
+
payloadSchema?: StudioActionPayloadSchema;
|
|
130
|
+
}
|
|
131
|
+
export interface ModuleDefinition {
|
|
132
|
+
id: StudioModuleId;
|
|
133
|
+
name: string;
|
|
134
|
+
description: string;
|
|
135
|
+
ui?: {
|
|
136
|
+
modal?: {
|
|
137
|
+
title: string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
export type StudioCommand = {
|
|
142
|
+
type: 'studio.selectNode';
|
|
143
|
+
nodeId: StudioNodeId | null;
|
|
144
|
+
} | {
|
|
145
|
+
type: 'studio.setActivePanel';
|
|
146
|
+
panelId: StudioPanelId | null;
|
|
147
|
+
} | {
|
|
148
|
+
type: 'studio.setActiveAdminRoute';
|
|
149
|
+
routePath: StudioAdminRoutePath;
|
|
150
|
+
} | {
|
|
151
|
+
type: 'studio.setActiveCanvasDragNode';
|
|
152
|
+
nodeId: StudioNodeId | null;
|
|
153
|
+
} | {
|
|
154
|
+
type: 'studio.setActiveScreen';
|
|
155
|
+
screenId: StudioScreenId;
|
|
156
|
+
} | {
|
|
157
|
+
type: 'studio.setStudioMode';
|
|
158
|
+
mode: StudioMode;
|
|
159
|
+
} | {
|
|
160
|
+
type: 'studio.togglePreviewMode';
|
|
161
|
+
};
|
|
162
|
+
export type StudioEvent = {
|
|
163
|
+
type: 'studio.nodeSelected';
|
|
164
|
+
nodeId: StudioNodeId | null;
|
|
165
|
+
} | {
|
|
166
|
+
type: 'studio.panelChanged';
|
|
167
|
+
panelId: StudioPanelId | null;
|
|
168
|
+
} | {
|
|
169
|
+
type: 'studio.adminRouteChanged';
|
|
170
|
+
routePath: StudioAdminRoutePath;
|
|
171
|
+
} | {
|
|
172
|
+
type: 'studio.screenChanged';
|
|
173
|
+
screenId: StudioScreenId;
|
|
174
|
+
} | {
|
|
175
|
+
type: 'studio.saveStatusChanged';
|
|
176
|
+
status: StudioSaveStatus;
|
|
177
|
+
};
|
|
178
|
+
export interface StudioContextValue extends StudioSelectionState, StudioSessionState {
|
|
179
|
+
manifest: StudioManifest | null;
|
|
180
|
+
rootNode: UiNode | null;
|
|
181
|
+
selectNode: (id: StudioNodeId | null) => void;
|
|
182
|
+
setActivePanelId: (panelId: StudioPanelId | null) => void;
|
|
183
|
+
setActiveAdminRoutePath: (routePath: StudioAdminRoutePath) => void;
|
|
184
|
+
setActiveCanvasDragNodeId: (nodeId: StudioNodeId | null) => void;
|
|
185
|
+
updateNode: (nodeId: StudioNodeId, props: Record<string, unknown>) => void;
|
|
186
|
+
updateAppData: (data: AppDataManifest) => void;
|
|
187
|
+
updateDataBindings: (dataBindings: ComponentDataBindingRegistry) => void;
|
|
188
|
+
updateDataSources: (dataSources: DataSourceRegistry) => void;
|
|
189
|
+
deleteNode: (id: StudioNodeId) => void;
|
|
190
|
+
insertFromCatalogEntry: (entry: InsertCatalogEntry) => boolean;
|
|
191
|
+
moveNodeToPlacement: (nodeId: StudioNodeId, placement: NodePlacement) => boolean;
|
|
192
|
+
addScreen: (name: string) => void;
|
|
193
|
+
deleteScreen: (id: StudioScreenId) => void;
|
|
194
|
+
setNavigatorType: (type: NavigatorType) => void;
|
|
195
|
+
setNavigatorInitialRoute: (routeName: string) => void;
|
|
196
|
+
addTheme: () => void;
|
|
197
|
+
updateTheme: (id: string, updates: ThemeUpdates) => void;
|
|
198
|
+
deleteTheme: (id: string) => void;
|
|
199
|
+
setActiveThemeId: (id: string) => void;
|
|
200
|
+
setActiveThemeMode: (mode: StudioMode) => void;
|
|
201
|
+
updateModuleConfig: (moduleId: StudioModuleId, config: Record<string, unknown>) => void;
|
|
202
|
+
updateOAuthProviders: (providers: AuthOAuthProviderConfig[]) => void;
|
|
203
|
+
moveNode: (id: StudioNodeId, direction: 'up' | 'down') => void;
|
|
204
|
+
reorderScreens: (newRoutes: RouteDefinition[]) => void;
|
|
205
|
+
setActiveScreenId: (id: StudioScreenId) => void;
|
|
206
|
+
findNode: (root: UiNode, id: StudioNodeId) => UiNode | null;
|
|
207
|
+
setStudioMode: (mode: StudioMode) => void;
|
|
208
|
+
togglePreviewMode: () => void;
|
|
209
|
+
t: (key: string) => string;
|
|
210
|
+
setActiveLocale: (locale: StudioLocale) => void;
|
|
211
|
+
reloadDictionaries: () => Promise<void>;
|
|
212
|
+
refetchManifest: () => Promise<void>;
|
|
213
|
+
}
|
|
8
214
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAG,mBAA4B,CAAC;AAEhE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC;AAED,eAAO,MAAM,uBAAuB,EAAE,
|
|
1
|
+
{"version":3,"file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
4
|
+
'Studio authoring contracts',
|
|
5
|
+
'Studio product contracts',
|
|
6
|
+
'Studio manifest editing contracts',
|
|
7
|
+
'Studio command and event contracts',
|
|
8
|
+
],
|
|
4
9
|
consumes: [
|
|
10
|
+
'@ankhorage/contracts',
|
|
5
11
|
'@ankhorage/runtime',
|
|
6
12
|
'@ankhorage/expo-runtime',
|
|
7
13
|
'@ankhorage/templates',
|
|
@@ -14,6 +20,19 @@ export const STUDIO_PACKAGE_BOUNDARY = {
|
|
|
14
20
|
'generated-app overlay code',
|
|
15
21
|
'template catalog content',
|
|
16
22
|
'root command bus behavior',
|
|
23
|
+
'React Native UI components',
|
|
24
|
+
'DnD implementation',
|
|
25
|
+
'Supabase storage implementation',
|
|
17
26
|
],
|
|
18
27
|
};
|
|
28
|
+
export const STUDIO_PUBLIC_CONTRACTS = [
|
|
29
|
+
'StudioManifest',
|
|
30
|
+
'StudioContextValue',
|
|
31
|
+
'StudioSelectionState',
|
|
32
|
+
'NodePlacement',
|
|
33
|
+
'InsertCatalogEntry',
|
|
34
|
+
'ActionDefinition',
|
|
35
|
+
'StudioCommand',
|
|
36
|
+
'StudioEvent',
|
|
37
|
+
];
|
|
19
38
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAA4B,CAAC;AAQhE,MAAM,CAAC,MAAM,uBAAuB,GAA0B;IAC5D,IAAI,EAAE;QACJ,4BAA4B;QAC5B,0BAA0B;QAC1B,mCAAmC;QACnC,oCAAoC;KACrC;IACD,QAAQ,EAAE;QACR,sBAAsB;QACtB,oBAAoB;QACpB,yBAAyB;QACzB,sBAAsB;QACtB,iBAAiB;KAClB;IACD,UAAU,EAAE;QACV,mCAAmC;QACnC,qCAAqC;QACrC,uBAAuB;QACvB,4BAA4B;QAC5B,0BAA0B;QAC1B,2BAA2B;QAC3B,4BAA4B;QAC5B,oBAAoB;QACpB,iCAAiC;KAClC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,gBAAgB;IAChB,oBAAoB;IACpB,sBAAsB;IACtB,eAAe;IACf,oBAAoB;IACpB,kBAAkB;IAClB,eAAe;IACf,aAAa;CACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/studio",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Studio authoring package for Ankhorage apps",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/ankhorage/studio#readme",
|
|
@@ -51,9 +51,12 @@
|
|
|
51
51
|
"react-native",
|
|
52
52
|
"app-builder"
|
|
53
53
|
],
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@ankhorage/contracts": "^1.19.1"
|
|
56
|
+
},
|
|
54
57
|
"devDependencies": {
|
|
55
58
|
"@ankhorage/devtools": "^1.1.0",
|
|
56
|
-
"@ankhorage/paradox": "^0.1.
|
|
59
|
+
"@ankhorage/paradox": "^0.1.10",
|
|
57
60
|
"@changesets/cli": "^2.31.0",
|
|
58
61
|
"@types/bun": "^1.3.13",
|
|
59
62
|
"@types/node": "^25.6.0",
|