@ankhorage/studio 0.0.20 → 0.1.0
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 +1 -2
- package/dist/cli/index.d.ts +4 -4
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +81 -56
- package/dist/cli/index.js.map +1 -1
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +17 -6
- package/dist/core/constants.js.map +1 -1
- package/dist/hooks/useProjects.js +1 -1
- package/dist/hooks/useProjects.js.map +1 -1
- package/dist/host/createStudioHost.d.ts +13 -0
- package/dist/host/createStudioHost.d.ts.map +1 -0
- package/dist/host/createStudioHost.js +16 -0
- package/dist/host/createStudioHost.js.map +1 -0
- package/dist/host/http/security.d.ts +2 -0
- package/dist/host/http/security.d.ts.map +1 -0
- package/dist/host/http/security.js +55 -0
- package/dist/host/http/security.js.map +1 -0
- package/dist/host/http/server.d.ts +16 -0
- package/dist/host/http/server.d.ts.map +1 -0
- package/dist/host/http/server.js +549 -0
- package/dist/host/http/server.js.map +1 -0
- package/dist/host/layout/auth/resolveAuthLayoutPlan.d.ts +38 -0
- package/dist/host/layout/auth/resolveAuthLayoutPlan.d.ts.map +1 -0
- package/dist/host/layout/auth/resolveAuthLayoutPlan.js +262 -0
- package/dist/host/layout/auth/resolveAuthLayoutPlan.js.map +1 -0
- package/dist/host/layout/layoutGenerator.d.ts +19 -0
- package/dist/host/layout/layoutGenerator.d.ts.map +1 -0
- package/dist/host/layout/layoutGenerator.js +418 -0
- package/dist/host/layout/layoutGenerator.js.map +1 -0
- package/dist/host/layout/templates/auth/adapter.d.ts +6 -0
- package/dist/host/layout/templates/auth/adapter.d.ts.map +1 -0
- package/dist/host/layout/templates/auth/adapter.js +94 -0
- package/dist/host/layout/templates/auth/adapter.js.map +1 -0
- package/dist/host/layout/templates/auth/screen.d.ts +12 -0
- package/dist/host/layout/templates/auth/screen.d.ts.map +1 -0
- package/dist/host/layout/templates/auth/screen.js +648 -0
- package/dist/host/layout/templates/auth/screen.js.map +1 -0
- package/dist/host/layout/templates/auth/session.d.ts +2 -0
- package/dist/host/layout/templates/auth/session.d.ts.map +1 -0
- package/dist/host/layout/templates/auth/session.js +326 -0
- package/dist/host/layout/templates/auth/session.js.map +1 -0
- package/dist/host/layout/templates/auth/signOut.d.ts +2 -0
- package/dist/host/layout/templates/auth/signOut.d.ts.map +1 -0
- package/dist/host/layout/templates/auth/signOut.js +43 -0
- package/dist/host/layout/templates/auth/signOut.js.map +1 -0
- package/dist/host/layout/templates/index.d.ts +11 -0
- package/dist/host/layout/templates/index.d.ts.map +1 -0
- package/dist/host/layout/templates/index.js +10 -0
- package/dist/host/layout/templates/index.js.map +1 -0
- package/dist/host/layout/templates/navigation.d.ts +16 -0
- package/dist/host/layout/templates/navigation.d.ts.map +1 -0
- package/dist/host/layout/templates/navigation.js +332 -0
- package/dist/host/layout/templates/navigation.js.map +1 -0
- package/dist/host/layout/templates/nestedLayout.d.ts +7 -0
- package/dist/host/layout/templates/nestedLayout.d.ts.map +1 -0
- package/dist/host/layout/templates/nestedLayout.js +56 -0
- package/dist/host/layout/templates/nestedLayout.js.map +1 -0
- package/dist/host/layout/templates/redirect.d.ts +2 -0
- package/dist/host/layout/templates/redirect.d.ts.map +1 -0
- package/dist/host/layout/templates/redirect.js +10 -0
- package/dist/host/layout/templates/redirect.js.map +1 -0
- package/dist/host/layout/templates/rootLayout.d.ts +28 -0
- package/dist/host/layout/templates/rootLayout.d.ts.map +1 -0
- package/dist/host/layout/templates/rootLayout.js +507 -0
- package/dist/host/layout/templates/rootLayout.js.map +1 -0
- package/dist/host/layout/templates/screen.d.ts +6 -0
- package/dist/host/layout/templates/screen.d.ts.map +1 -0
- package/dist/host/layout/templates/screen.js +94 -0
- package/dist/host/layout/templates/screen.js.map +1 -0
- package/dist/host/layout/templates/utils/routes.d.ts +3 -0
- package/dist/host/layout/templates/utils/routes.d.ts.map +1 -0
- package/dist/host/layout/templates/utils/routes.js +15 -0
- package/dist/host/layout/templates/utils/routes.js.map +1 -0
- package/dist/host/layout/templates/utils/strings.d.ts +3 -0
- package/dist/host/layout/templates/utils/strings.d.ts.map +1 -0
- package/dist/host/layout/templates/utils/strings.js +7 -0
- package/dist/host/layout/templates/utils/strings.js.map +1 -0
- package/dist/host/layout/utils/escapeStringLiteral.d.ts +2 -0
- package/dist/host/layout/utils/escapeStringLiteral.d.ts.map +1 -0
- package/dist/host/layout/utils/escapeStringLiteral.js +8 -0
- package/dist/host/layout/utils/escapeStringLiteral.js.map +1 -0
- package/dist/host/manifestSystem/auth/index.d.ts +2 -0
- package/dist/host/manifestSystem/auth/index.d.ts.map +1 -0
- package/dist/host/manifestSystem/auth/index.js +2 -0
- package/dist/host/manifestSystem/auth/index.js.map +1 -0
- package/dist/host/manifestSystem/auth/shared/global.auth.system.tpl.d.ts +4 -0
- package/dist/host/manifestSystem/auth/shared/global.auth.system.tpl.d.ts.map +1 -0
- package/dist/host/manifestSystem/auth/shared/global.auth.system.tpl.js +7 -0
- package/dist/host/manifestSystem/auth/shared/global.auth.system.tpl.js.map +1 -0
- package/dist/host/manifestSystem/auth/shared/index.d.ts +3 -0
- package/dist/host/manifestSystem/auth/shared/index.d.ts.map +1 -0
- package/dist/host/manifestSystem/auth/shared/index.js +8 -0
- package/dist/host/manifestSystem/auth/shared/index.js.map +1 -0
- package/dist/host/manifestSystem/index.d.ts +5 -0
- package/dist/host/manifestSystem/index.d.ts.map +1 -0
- package/dist/host/manifestSystem/index.js +23 -0
- package/dist/host/manifestSystem/index.js.map +1 -0
- package/dist/host/manifestSystem/types.d.ts +8 -0
- package/dist/host/manifestSystem/types.d.ts.map +1 -0
- package/dist/host/manifestSystem/types.js +2 -0
- package/dist/host/manifestSystem/types.js.map +1 -0
- package/dist/host/modules/catalog.d.ts +40 -0
- package/dist/host/modules/catalog.d.ts.map +1 -0
- package/dist/host/modules/catalog.js +112 -0
- package/dist/host/modules/catalog.js.map +1 -0
- package/dist/host/modules/layout.d.ts +7 -0
- package/dist/host/modules/layout.d.ts.map +1 -0
- package/dist/host/modules/layout.js +2 -0
- package/dist/host/modules/layout.js.map +1 -0
- package/dist/host/modules/runtime/LocalFsTargetAdapter.d.ts +34 -0
- package/dist/host/modules/runtime/LocalFsTargetAdapter.d.ts.map +1 -0
- package/dist/host/modules/runtime/LocalFsTargetAdapter.js +85 -0
- package/dist/host/modules/runtime/LocalFsTargetAdapter.js.map +1 -0
- package/dist/host/orchestrator/generatedAppFiles.d.ts +8 -0
- package/dist/host/orchestrator/generatedAppFiles.d.ts.map +1 -0
- package/dist/host/orchestrator/generatedAppFiles.js +125 -0
- package/dist/host/orchestrator/generatedAppFiles.js.map +1 -0
- package/dist/host/orchestrator/generatedRouteCleanup.d.ts +5 -0
- package/dist/host/orchestrator/generatedRouteCleanup.d.ts.map +1 -0
- package/dist/host/orchestrator/generatedRouteCleanup.js +117 -0
- package/dist/host/orchestrator/generatedRouteCleanup.js.map +1 -0
- package/dist/host/orchestrator/infraGenerator.d.ts +35 -0
- package/dist/host/orchestrator/infraGenerator.d.ts.map +1 -0
- package/dist/host/orchestrator/infraGenerator.js +135 -0
- package/dist/host/orchestrator/infraGenerator.js.map +1 -0
- package/dist/host/orchestrator/infraRuntime.d.ts +38 -0
- package/dist/host/orchestrator/infraRuntime.d.ts.map +1 -0
- package/dist/host/orchestrator/infraRuntime.js +227 -0
- package/dist/host/orchestrator/infraRuntime.js.map +1 -0
- package/dist/host/orchestrator/infraValidation.d.ts +3 -0
- package/dist/host/orchestrator/infraValidation.d.ts.map +1 -0
- package/dist/host/orchestrator/infraValidation.js +59 -0
- package/dist/host/orchestrator/infraValidation.js.map +1 -0
- package/dist/host/orchestrator/moduleManager.d.ts +86 -0
- package/dist/host/orchestrator/moduleManager.d.ts.map +1 -0
- package/dist/host/orchestrator/moduleManager.js +312 -0
- package/dist/host/orchestrator/moduleManager.js.map +1 -0
- package/dist/host/orchestrator/projectDeletion.d.ts +27 -0
- package/dist/host/orchestrator/projectDeletion.d.ts.map +1 -0
- package/dist/host/orchestrator/projectDeletion.js +242 -0
- package/dist/host/orchestrator/projectDeletion.js.map +1 -0
- package/dist/host/orchestrator/projectManager.d.ts +87 -0
- package/dist/host/orchestrator/projectManager.d.ts.map +1 -0
- package/dist/host/orchestrator/projectManager.js +371 -0
- package/dist/host/orchestrator/projectManager.js.map +1 -0
- package/dist/host/orchestrator/projectPaths.d.ts +4 -0
- package/dist/host/orchestrator/projectPaths.d.ts.map +1 -0
- package/dist/host/orchestrator/projectPaths.js +25 -0
- package/dist/host/orchestrator/projectPaths.js.map +1 -0
- package/dist/host/orchestrator/projectStore.d.ts +24 -0
- package/dist/host/orchestrator/projectStore.d.ts.map +1 -0
- package/dist/host/orchestrator/projectStore.js +155 -0
- package/dist/host/orchestrator/projectStore.js.map +1 -0
- package/dist/host/orchestrator/resolveMutations.d.ts +3 -0
- package/dist/host/orchestrator/resolveMutations.d.ts.map +1 -0
- package/dist/host/orchestrator/resolveMutations.js +12 -0
- package/dist/host/orchestrator/resolveMutations.js.map +1 -0
- package/dist/host/orchestrator/scaffolder.d.ts +33 -0
- package/dist/host/orchestrator/scaffolder.d.ts.map +1 -0
- package/dist/host/orchestrator/scaffolder.js +246 -0
- package/dist/host/orchestrator/scaffolder.js.map +1 -0
- package/dist/host/orchestrator/templates.d.ts +83 -0
- package/dist/host/orchestrator/templates.d.ts.map +1 -0
- package/dist/host/orchestrator/templates.js +355 -0
- package/dist/host/orchestrator/templates.js.map +1 -0
- package/dist/host/orchestrator/workspaceRuntime.d.ts +2 -0
- package/dist/host/orchestrator/workspaceRuntime.d.ts.map +1 -0
- package/dist/host/orchestrator/workspaceRuntime.js +82 -0
- package/dist/host/orchestrator/workspaceRuntime.js.map +1 -0
- package/dist/host/templateRegistry/index.d.ts +16 -0
- package/dist/host/templateRegistry/index.d.ts.map +1 -0
- package/dist/host/templateRegistry/index.js +74 -0
- package/dist/host/templateRegistry/index.js.map +1 -0
- package/dist/host/utils/requirementsInference.d.ts +4 -0
- package/dist/host/utils/requirementsInference.d.ts.map +1 -0
- package/dist/host/utils/requirementsInference.js +49 -0
- package/dist/host/utils/requirementsInference.js.map +1 -0
- package/dist/host/utils/trimOutput.d.ts +7 -0
- package/dist/host/utils/trimOutput.d.ts.map +1 -0
- package/dist/host/utils/trimOutput.js +32 -0
- package/dist/host/utils/trimOutput.js.map +1 -0
- package/dist/host/utils/workspaceRoot.d.ts +2 -0
- package/dist/host/utils/workspaceRoot.d.ts.map +1 -0
- package/dist/host/utils/workspaceRoot.js +33 -0
- package/dist/host/utils/workspaceRoot.js.map +1 -0
- package/dist/host/zoraExtensions/index.d.ts +11 -0
- package/dist/host/zoraExtensions/index.d.ts.map +1 -0
- package/dist/host/zoraExtensions/index.js +54 -0
- package/dist/host/zoraExtensions/index.js.map +1 -0
- package/dist/runtime/appExtensionRegistry.d.ts +3 -0
- package/dist/runtime/appExtensionRegistry.d.ts.map +1 -0
- package/dist/runtime/appExtensionRegistry.js +8 -0
- package/dist/runtime/appExtensionRegistry.js.map +1 -0
- package/dist/runtime/index.d.ts +8 -4
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +8 -4
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/registry.d.ts +7 -0
- package/dist/runtime/registry.d.ts.map +1 -0
- package/dist/runtime/registry.js +7 -0
- package/dist/runtime/registry.js.map +1 -0
- package/dist/runtime/runtimeActions.d.ts +19 -0
- package/dist/runtime/runtimeActions.d.ts.map +1 -0
- package/dist/runtime/runtimeActions.js +5 -0
- package/dist/runtime/runtimeActions.js.map +1 -0
- package/dist/runtime/useRuntimeAction.d.ts +10 -0
- package/dist/runtime/useRuntimeAction.d.ts.map +1 -0
- package/dist/runtime/useRuntimeAction.js +30 -0
- package/dist/runtime/useRuntimeAction.js.map +1 -0
- package/package.json +35 -3
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export function trimOutputForApi(text, maxChars) {
|
|
2
|
+
if (maxChars <= 0) {
|
|
3
|
+
return {
|
|
4
|
+
text: '',
|
|
5
|
+
truncated: text.length > 0,
|
|
6
|
+
originalLength: text.length,
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
if (text.length <= maxChars) {
|
|
10
|
+
return {
|
|
11
|
+
text,
|
|
12
|
+
truncated: false,
|
|
13
|
+
originalLength: text.length,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
const omitted = text.length - maxChars;
|
|
17
|
+
const marker = `\n...[truncated ${omitted} chars]`;
|
|
18
|
+
if (marker.length >= maxChars) {
|
|
19
|
+
return {
|
|
20
|
+
text: marker.slice(0, maxChars),
|
|
21
|
+
truncated: true,
|
|
22
|
+
originalLength: text.length,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
const keep = maxChars - marker.length;
|
|
26
|
+
return {
|
|
27
|
+
text: `${text.slice(0, keep)}${marker}`,
|
|
28
|
+
truncated: true,
|
|
29
|
+
originalLength: text.length,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=trimOutput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trimOutput.js","sourceRoot":"","sources":["../../../src/host/utils/trimOutput.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,gBAAgB,CAAC,IAAY,EAAE,QAAgB;IAC7D,IAAI,QAAQ,IAAI,CAAC,EAAE,CAAC;QAClB,OAAO;YACL,IAAI,EAAE,EAAE;YACR,SAAS,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC;YAC1B,cAAc,EAAE,IAAI,CAAC,MAAM;SAC5B,CAAC;IACJ,CAAC;IAED,IAAI,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,CAAC;QAC5B,OAAO;YACL,IAAI;YACJ,SAAS,EAAE,KAAK;YAChB,cAAc,EAAE,IAAI,CAAC,MAAM;SAC5B,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC;IACvC,MAAM,MAAM,GAAG,mBAAmB,OAAO,SAAS,CAAC;IAEnD,IAAI,MAAM,CAAC,MAAM,IAAI,QAAQ,EAAE,CAAC;QAC9B,OAAO;YACL,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC;YAC/B,SAAS,EAAE,IAAI;YACf,cAAc,EAAE,IAAI,CAAC,MAAM;SAC5B,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC;IACtC,OAAO;QACL,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,MAAM,EAAE;QACvC,SAAS,EAAE,IAAI;QACf,cAAc,EAAE,IAAI,CAAC,MAAM;KAC5B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceRoot.d.ts","sourceRoot":"","sources":["../../../src/host/utils/workspaceRoot.ts"],"names":[],"mappings":"AAKA,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAgB,UASxE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
const STUDIO_PACKAGE_NAME = '@ankhorage/studio';
|
|
4
|
+
export function resolveWorkspaceRoot(fromDir, cwd = process.cwd()) {
|
|
5
|
+
const candidates = [fromDir, cwd];
|
|
6
|
+
for (const candidate of candidates) {
|
|
7
|
+
const resolved = findStudioWorkspaceRoot(candidate);
|
|
8
|
+
if (resolved !== null)
|
|
9
|
+
return resolved;
|
|
10
|
+
}
|
|
11
|
+
throw new Error(`Could not resolve an ${STUDIO_PACKAGE_NAME} workspace from ${path.resolve(fromDir)} or ${path.resolve(cwd)}.`);
|
|
12
|
+
}
|
|
13
|
+
function findStudioWorkspaceRoot(startPath) {
|
|
14
|
+
let current = path.resolve(startPath);
|
|
15
|
+
for (;;) {
|
|
16
|
+
const packageJsonPath = path.join(current, 'package.json');
|
|
17
|
+
if (existsSync(packageJsonPath) && existsSync(path.join(current, 'apps'))) {
|
|
18
|
+
try {
|
|
19
|
+
const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8'));
|
|
20
|
+
if (packageJson.name === STUDIO_PACKAGE_NAME)
|
|
21
|
+
return current;
|
|
22
|
+
}
|
|
23
|
+
catch {
|
|
24
|
+
// Continue walking when a parent package.json is not valid JSON.
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
const parent = path.dirname(current);
|
|
28
|
+
if (parent === current)
|
|
29
|
+
return null;
|
|
30
|
+
current = parent;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=workspaceRoot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceRoot.js","sourceRoot":"","sources":["../../../src/host/utils/workspaceRoot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAEhD,MAAM,UAAU,oBAAoB,CAAC,OAAe,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE;IACvE,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IAClC,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,MAAM,QAAQ,GAAG,uBAAuB,CAAC,SAAS,CAAC,CAAC;QACpD,IAAI,QAAQ,KAAK,IAAI;YAAE,OAAO,QAAQ,CAAC;IACzC,CAAC;IACD,MAAM,IAAI,KAAK,CACb,wBAAwB,mBAAmB,mBAAmB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAC/G,CAAC;AACJ,CAAC;AAED,SAAS,uBAAuB,CAAC,SAAiB;IAChD,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC,SAAS,CAAC;QACR,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QAC3D,IAAI,UAAU,CAAC,eAAe,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;YAC1E,IAAI,CAAC;gBACH,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAuB,CAAC;gBAC5F,IAAI,WAAW,CAAC,IAAI,KAAK,mBAAmB;oBAAE,OAAO,OAAO,CAAC;YAC/D,CAAC;YAAC,MAAM,CAAC;gBACP,iEAAiE;YACnE,CAAC;QACH,CAAC;QACD,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACrC,IAAI,MAAM,KAAK,OAAO;YAAE,OAAO,IAAI,CAAC;QACpC,OAAO,GAAG,MAAM,CAAC;IACnB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ProjectTemplateSelection } from '../templateRegistry';
|
|
2
|
+
export interface ZoraExtensionDefinition {
|
|
3
|
+
packageName: string;
|
|
4
|
+
components: Record<string, string>;
|
|
5
|
+
dependencies?: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
export declare function resolveZoraExtensionsForTemplateSelection(selection: ProjectTemplateSelection): readonly ZoraExtensionDefinition[];
|
|
8
|
+
export declare function resolveZoraExtensionsFromDependencies(dependencies: Readonly<Record<string, string>>): readonly ZoraExtensionDefinition[];
|
|
9
|
+
export declare function mergeZoraExtensions(...extensionLists: readonly (readonly ZoraExtensionDefinition[])[]): readonly ZoraExtensionDefinition[];
|
|
10
|
+
export declare function collectZoraExtensionDependencies(extensions: readonly ZoraExtensionDefinition[]): Record<string, string>;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/host/zoraExtensions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAEpE,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC;AA6BD,wBAAgB,yCAAyC,CACvD,SAAS,EAAE,wBAAwB,GAClC,SAAS,uBAAuB,EAAE,CAUpC;AAED,wBAAgB,qCAAqC,CACnD,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAC7C,SAAS,uBAAuB,EAAE,CAEpC;AAED,wBAAgB,mBAAmB,CACjC,GAAG,cAAc,EAAE,SAAS,CAAC,SAAS,uBAAuB,EAAE,CAAC,EAAE,GACjE,SAAS,uBAAuB,EAAE,CAUpC;AAED,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,SAAS,uBAAuB,EAAE,GAC7C,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOxB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const ZORA_CHESS_EXTENSION = {
|
|
2
|
+
packageName: '@ankhorage/zora-chess',
|
|
3
|
+
components: {
|
|
4
|
+
ChessBoard: 'ChessBoard',
|
|
5
|
+
OpeningBook: 'OpeningBook',
|
|
6
|
+
},
|
|
7
|
+
dependencies: {
|
|
8
|
+
'@ankhorage/zora-chess': 'latest',
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
const ZORA_TABLETOP_EXTENSION = {
|
|
12
|
+
packageName: '@ankhorage/zora-tabletop',
|
|
13
|
+
components: {
|
|
14
|
+
TabletopTable: 'TabletopTable',
|
|
15
|
+
Table: 'TabletopTable',
|
|
16
|
+
'zora-tabletop/Table': 'TabletopTable',
|
|
17
|
+
'@ankhorage/zora-tabletop/Table': 'TabletopTable',
|
|
18
|
+
},
|
|
19
|
+
dependencies: {
|
|
20
|
+
'@ankhorage/zora-tabletop': 'latest',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
const KNOWN_ZORA_EXTENSIONS = [ZORA_CHESS_EXTENSION, ZORA_TABLETOP_EXTENSION];
|
|
24
|
+
const TABLETOP_TEMPLATE_IDS = new Set(['card-trainer', 'card_trainer', 'poker']);
|
|
25
|
+
export function resolveZoraExtensionsForTemplateSelection(selection) {
|
|
26
|
+
if (selection.category === 'games' && selection.templateId === 'chess') {
|
|
27
|
+
return [ZORA_CHESS_EXTENSION];
|
|
28
|
+
}
|
|
29
|
+
if (selection.category === 'games' && TABLETOP_TEMPLATE_IDS.has(selection.templateId)) {
|
|
30
|
+
return [ZORA_TABLETOP_EXTENSION];
|
|
31
|
+
}
|
|
32
|
+
return [];
|
|
33
|
+
}
|
|
34
|
+
export function resolveZoraExtensionsFromDependencies(dependencies) {
|
|
35
|
+
return KNOWN_ZORA_EXTENSIONS.filter((extension) => extension.packageName in dependencies);
|
|
36
|
+
}
|
|
37
|
+
export function mergeZoraExtensions(...extensionLists) {
|
|
38
|
+
const extensions = new Map();
|
|
39
|
+
for (const extensionList of extensionLists) {
|
|
40
|
+
for (const extension of extensionList) {
|
|
41
|
+
extensions.set(extension.packageName, extension);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return [...extensions.values()];
|
|
45
|
+
}
|
|
46
|
+
export function collectZoraExtensionDependencies(extensions) {
|
|
47
|
+
return extensions.reduce((dependencies, extension) => {
|
|
48
|
+
return {
|
|
49
|
+
...dependencies,
|
|
50
|
+
...(extension.dependencies ?? {}),
|
|
51
|
+
};
|
|
52
|
+
}, {});
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/host/zoraExtensions/index.ts"],"names":[],"mappings":"AAQA,MAAM,oBAAoB,GAAG;IAC3B,WAAW,EAAE,uBAAuB;IACpC,UAAU,EAAE;QACV,UAAU,EAAE,YAAY;QACxB,WAAW,EAAE,aAAa;KAC3B;IACD,YAAY,EAAE;QACZ,uBAAuB,EAAE,QAAQ;KAClC;CACgC,CAAC;AAEpC,MAAM,uBAAuB,GAAG;IAC9B,WAAW,EAAE,0BAA0B;IACvC,UAAU,EAAE;QACV,aAAa,EAAE,eAAe;QAC9B,KAAK,EAAE,eAAe;QACtB,qBAAqB,EAAE,eAAe;QACtC,gCAAgC,EAAE,eAAe;KAClD;IACD,YAAY,EAAE;QACZ,0BAA0B,EAAE,QAAQ;KACrC;CACgC,CAAC;AAEpC,MAAM,qBAAqB,GAAG,CAAC,oBAAoB,EAAE,uBAAuB,CAAU,CAAC;AACvF,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,CAAC,cAAc,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC;AAEjF,MAAM,UAAU,yCAAyC,CACvD,SAAmC;IAEnC,IAAI,SAAS,CAAC,QAAQ,KAAK,OAAO,IAAI,SAAS,CAAC,UAAU,KAAK,OAAO,EAAE,CAAC;QACvE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAChC,CAAC;IAED,IAAI,SAAS,CAAC,QAAQ,KAAK,OAAO,IAAI,qBAAqB,CAAC,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC;QACtF,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACnC,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,UAAU,qCAAqC,CACnD,YAA8C;IAE9C,OAAO,qBAAqB,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,WAAW,IAAI,YAAY,CAAC,CAAC;AAC5F,CAAC;AAED,MAAM,UAAU,mBAAmB,CACjC,GAAG,cAA+D;IAElE,MAAM,UAAU,GAAG,IAAI,GAAG,EAAmC,CAAC;IAE9D,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,KAAK,MAAM,SAAS,IAAI,aAAa,EAAE,CAAC;YACtC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;IAED,OAAO,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,UAA8C;IAE9C,OAAO,UAAU,CAAC,MAAM,CAAyB,CAAC,YAAY,EAAE,SAAS,EAAE,EAAE;QAC3E,OAAO;YACL,GAAG,YAAY;YACf,GAAG,CAAC,SAAS,CAAC,YAAY,IAAI,EAAE,CAAC;SAClC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appExtensionRegistry.d.ts","sourceRoot":"","sources":["../../src/runtime/appExtensionRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAI5D,eAAO,MAAM,gCAAgC,EAAE,iBAI9C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ChessBoard, OpeningBook } from '@ankhorage/zora-chess';
|
|
2
|
+
import { TabletopTable } from '@ankhorage/zora-tabletop';
|
|
3
|
+
export const APP_EXTENSION_COMPONENT_REGISTRY = {
|
|
4
|
+
ChessBoard,
|
|
5
|
+
OpeningBook,
|
|
6
|
+
TabletopTable,
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=appExtensionRegistry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appExtensionRegistry.js","sourceRoot":"","sources":["../../src/runtime/appExtensionRegistry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,CAAC,MAAM,gCAAgC,GAAsB;IACjE,UAAU;IACV,WAAW;IACX,aAAa;CACd,CAAC"}
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
export * from './actionSuppression';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
1
|
+
export * from './actionSuppression.js';
|
|
2
|
+
export * from './appExtensionRegistry.js';
|
|
3
|
+
export * from './localizationPreview.js';
|
|
4
|
+
export * from './previewRegistry.js';
|
|
5
|
+
export * from './previewRuntimeConfig.js';
|
|
6
|
+
export * from './registry.js';
|
|
7
|
+
export * from './runtimeActions.js';
|
|
8
|
+
export * from './useRuntimeAction.js';
|
|
5
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC"}
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
export * from './actionSuppression';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
1
|
+
export * from './actionSuppression.js';
|
|
2
|
+
export * from './appExtensionRegistry.js';
|
|
3
|
+
export * from './localizationPreview.js';
|
|
4
|
+
export * from './previewRegistry.js';
|
|
5
|
+
export * from './previewRuntimeConfig.js';
|
|
6
|
+
export * from './registry.js';
|
|
7
|
+
export * from './runtimeActions.js';
|
|
8
|
+
export * from './useRuntimeAction.js';
|
|
5
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentRegistry } from '@ankhorage/runtime';
|
|
2
|
+
export { APP_EXTENSION_COMPONENT_REGISTRY } from './appExtensionRegistry.js';
|
|
3
|
+
export { createComponentRegistry, SURFACE_COMPONENT_REGISTRY } from '@ankhorage/runtime';
|
|
4
|
+
export type { ComponentRegistry } from '@ankhorage/runtime';
|
|
5
|
+
export declare const ZORA_COMPONENT_REGISTRY: ComponentRegistry;
|
|
6
|
+
export { ZORA_COMPONENT_REGISTRY as DEFAULT_COMPONENT_REGISTRY };
|
|
7
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/runtime/registry.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EAAE,gCAAgC,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACzF,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,eAAO,MAAM,uBAAuB,EAAE,iBAGrC,CAAC;AAEF,OAAO,EAAE,uBAAuB,IAAI,0BAA0B,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createComponentRegistry, ZORA_COMPONENT_REGISTRY as BASE_ZORA_COMPONENT_REGISTRY, } from '@ankhorage/runtime';
|
|
2
|
+
import { APP_EXTENSION_COMPONENT_REGISTRY } from './appExtensionRegistry.js';
|
|
3
|
+
export { APP_EXTENSION_COMPONENT_REGISTRY } from './appExtensionRegistry.js';
|
|
4
|
+
export { createComponentRegistry, SURFACE_COMPONENT_REGISTRY } from '@ankhorage/runtime';
|
|
5
|
+
export const ZORA_COMPONENT_REGISTRY = createComponentRegistry(BASE_ZORA_COMPONENT_REGISTRY, APP_EXTENSION_COMPONENT_REGISTRY);
|
|
6
|
+
export { ZORA_COMPONENT_REGISTRY as DEFAULT_COMPONENT_REGISTRY };
|
|
7
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/runtime/registry.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EAEvB,uBAAuB,IAAI,4BAA4B,GACxD,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,gCAAgC,EAAE,MAAM,2BAA2B,CAAC;AAE7E,OAAO,EAAE,gCAAgC,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGzF,MAAM,CAAC,MAAM,uBAAuB,GAAsB,uBAAuB,CAC/E,4BAA4B,EAC5B,gCAAgC,CACjC,CAAC;AAEF,OAAO,EAAE,uBAAuB,IAAI,0BAA0B,EAAE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { RuntimeActionHandlers } from '@ankhorage/runtime';
|
|
2
|
+
interface RouterLike {
|
|
3
|
+
push: (args: {
|
|
4
|
+
pathname: string;
|
|
5
|
+
params: Record<string, number | string>;
|
|
6
|
+
}) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function executeRuntimeAction(args: {
|
|
9
|
+
action: unknown;
|
|
10
|
+
router: RouterLike;
|
|
11
|
+
mode: 'light' | 'dark';
|
|
12
|
+
setMode: (mode: 'light' | 'dark') => void;
|
|
13
|
+
actionHandlers?: RuntimeActionHandlers;
|
|
14
|
+
requestAnimationFrameImpl?: typeof requestAnimationFrame;
|
|
15
|
+
alertImpl?: typeof alert;
|
|
16
|
+
consoleImpl?: Pick<typeof console, 'log'>;
|
|
17
|
+
}): Promise<void>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=runtimeActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtimeActions.d.ts","sourceRoot":"","sources":["../../src/runtime/runtimeActions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,UAAU,UAAU;IAClB,IAAI,EAAE,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;KAAE,KAAK,IAAI,CAAC;CACrF;AAED,wBAAsB,oBAAoB,CAAC,IAAI,EAAE;IAC/C,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,KAAK,IAAI,CAAC;IAC1C,cAAc,CAAC,EAAE,qBAAqB,CAAC;IACvC,yBAAyB,CAAC,EAAE,OAAO,qBAAqB,CAAC;IACzD,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;IACzB,WAAW,CAAC,EAAE,IAAI,CAAC,OAAO,OAAO,EAAE,KAAK,CAAC,CAAC;CAC3C,GAAG,OAAO,CAAC,IAAI,CAAC,CAEhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtimeActions.js","sourceRoot":"","sources":["../../src/runtime/runtimeActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAOnE,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,IAS1C;IACC,OAAO,wBAAwB,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type RuntimeActionHandlers, type RuntimeRendererConfig } from '@ankhorage/runtime';
|
|
2
|
+
export interface UseRuntimeActionOptions {
|
|
3
|
+
actionHandlers?: RuntimeActionHandlers;
|
|
4
|
+
dbAdapter?: RuntimeRendererConfig['dbAdapter'];
|
|
5
|
+
consoleImpl?: Pick<typeof console, 'log'>;
|
|
6
|
+
}
|
|
7
|
+
export declare function useRuntimeAction(options?: UseRuntimeActionOptions): {
|
|
8
|
+
executeAction: import("@ankhorage/runtime").RuntimeActionHandler;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useRuntimeAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRuntimeAction.d.ts","sourceRoot":"","sources":["../../src/runtime/useRuntimeAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAC;AAO5B,MAAM,WAAW,uBAAuB;IACtC,cAAc,CAAC,EAAE,qBAAqB,CAAC;IACvC,SAAS,CAAC,EAAE,qBAAqB,CAAC,WAAW,CAAC,CAAC;IAC/C,WAAW,CAAC,EAAE,IAAI,CAAC,OAAO,OAAO,EAAE,KAAK,CAAC,CAAC;CAC3C;AAED,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,uBAA4B;;EA6BrE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createDbPersistActionHandler, } from '@ankhorage/runtime';
|
|
2
|
+
import { useZoraTheme } from '@ankhorage/zora';
|
|
3
|
+
import { useRouter } from 'expo-router';
|
|
4
|
+
import { useCallback, useMemo } from 'react';
|
|
5
|
+
import { executeRuntimeAction } from './runtimeActions.js';
|
|
6
|
+
export function useRuntimeAction(options = {}) {
|
|
7
|
+
const router = useRouter();
|
|
8
|
+
const { mode, setMode } = useZoraTheme();
|
|
9
|
+
const { actionHandlers, dbAdapter, consoleImpl = console } = options;
|
|
10
|
+
const effectiveActionHandlers = useMemo(() => {
|
|
11
|
+
if (!dbAdapter)
|
|
12
|
+
return actionHandlers;
|
|
13
|
+
return {
|
|
14
|
+
'db.persist': createDbPersistActionHandler({ dbAdapter }),
|
|
15
|
+
...(actionHandlers ?? {}),
|
|
16
|
+
};
|
|
17
|
+
}, [actionHandlers, dbAdapter]);
|
|
18
|
+
const executeAction = useCallback(async ({ action }) => {
|
|
19
|
+
await executeRuntimeAction({
|
|
20
|
+
action,
|
|
21
|
+
actionHandlers: effectiveActionHandlers,
|
|
22
|
+
consoleImpl,
|
|
23
|
+
mode,
|
|
24
|
+
router,
|
|
25
|
+
setMode,
|
|
26
|
+
});
|
|
27
|
+
}, [consoleImpl, effectiveActionHandlers, mode, router, setMode]);
|
|
28
|
+
return { executeAction };
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=useRuntimeAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRuntimeAction.js","sourceRoot":"","sources":["../../src/runtime/useRuntimeAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,GAI7B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAQ3D,MAAM,UAAU,gBAAgB,CAAC,UAAmC,EAAE;IACpE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,YAAY,EAAE,CAAC;IACzC,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,WAAW,GAAG,OAAO,EAAE,GAAG,OAAO,CAAC;IAErE,MAAM,uBAAuB,GAAG,OAAO,CAAC,GAAG,EAAE;QAC3C,IAAI,CAAC,SAAS;YAAE,OAAO,cAAc,CAAC;QAEtC,OAAO;YACL,YAAY,EAAE,4BAA4B,CAAC,EAAE,SAAS,EAAE,CAAC;YACzD,GAAG,CAAC,cAAc,IAAI,EAAE,CAAC;SACM,CAAC;IACpC,CAAC,EAAE,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC,CAAC;IAEhC,MAAM,aAAa,GAAG,WAAW,CAC/B,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;QACnB,MAAM,oBAAoB,CAAC;YACzB,MAAM;YACN,cAAc,EAAE,uBAAuB;YACvC,WAAW;YACX,IAAI;YACJ,MAAM;YACN,OAAO;SACR,CAAC,CAAC;IACL,CAAC,EACD,CAAC,WAAW,EAAE,uBAAuB,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAC9D,CAAC;IAEF,OAAO,EAAE,aAAa,EAAE,CAAC;AAC3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/studio",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Studio authoring package for Ankhorage apps",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/ankhorage/studio#readme",
|
|
@@ -60,6 +60,10 @@
|
|
|
60
60
|
"types": "./dist/runtime/actionSuppression.d.ts",
|
|
61
61
|
"import": "./dist/runtime/actionSuppression.js"
|
|
62
62
|
},
|
|
63
|
+
"./runtime/appExtensionRegistry": {
|
|
64
|
+
"types": "./dist/runtime/appExtensionRegistry.d.ts",
|
|
65
|
+
"import": "./dist/runtime/appExtensionRegistry.js"
|
|
66
|
+
},
|
|
63
67
|
"./runtime/localizationPreview": {
|
|
64
68
|
"types": "./dist/runtime/localizationPreview.d.ts",
|
|
65
69
|
"import": "./dist/runtime/localizationPreview.js"
|
|
@@ -72,6 +76,18 @@
|
|
|
72
76
|
"types": "./dist/runtime/previewRuntimeConfig.d.ts",
|
|
73
77
|
"import": "./dist/runtime/previewRuntimeConfig.js"
|
|
74
78
|
},
|
|
79
|
+
"./runtime/registry": {
|
|
80
|
+
"types": "./dist/runtime/registry.d.ts",
|
|
81
|
+
"import": "./dist/runtime/registry.js"
|
|
82
|
+
},
|
|
83
|
+
"./runtime/runtimeActions": {
|
|
84
|
+
"types": "./dist/runtime/runtimeActions.d.ts",
|
|
85
|
+
"import": "./dist/runtime/runtimeActions.js"
|
|
86
|
+
},
|
|
87
|
+
"./runtime/useRuntimeAction": {
|
|
88
|
+
"types": "./dist/runtime/useRuntimeAction.d.ts",
|
|
89
|
+
"import": "./dist/runtime/useRuntimeAction.js"
|
|
90
|
+
},
|
|
75
91
|
"./core/StudioContext": {
|
|
76
92
|
"types": "./dist/core/StudioContext.d.ts",
|
|
77
93
|
"import": "./dist/core/StudioContext.js"
|
|
@@ -147,6 +163,10 @@
|
|
|
147
163
|
"./studioSelectionModel": {
|
|
148
164
|
"types": "./dist/studioSelectionModel.d.ts",
|
|
149
165
|
"import": "./dist/studioSelectionModel.js"
|
|
166
|
+
},
|
|
167
|
+
"./host": {
|
|
168
|
+
"types": "./dist/host/index.d.ts",
|
|
169
|
+
"import": "./dist/host/index.js"
|
|
150
170
|
}
|
|
151
171
|
},
|
|
152
172
|
"ankh": {
|
|
@@ -176,7 +196,9 @@
|
|
|
176
196
|
"docs": "paradox",
|
|
177
197
|
"changeset": "changeset",
|
|
178
198
|
"changeset:status": "changeset status --since=origin/main",
|
|
179
|
-
"version-packages": "changeset version"
|
|
199
|
+
"version-packages": "changeset version",
|
|
200
|
+
"dev:host": "bun src/host/http/standalone.ts",
|
|
201
|
+
"test:host-smoke": "bun test src/host/hostLifecycle.smoke.test.ts"
|
|
180
202
|
},
|
|
181
203
|
"keywords": [
|
|
182
204
|
"ankhorage",
|
|
@@ -187,9 +209,19 @@
|
|
|
187
209
|
],
|
|
188
210
|
"dependencies": {
|
|
189
211
|
"@ankhorage/contracts": "^1.19.2",
|
|
212
|
+
"@ankhorage/expo-runtime": "^0.0.9",
|
|
190
213
|
"@ankhorage/react-native-reanimated-dnd-web": "^0.3.2",
|
|
191
214
|
"@ankhorage/runtime": "^0.2.1",
|
|
192
|
-
"@ankhorage/zora": "^2.8.1"
|
|
215
|
+
"@ankhorage/zora": "^2.8.1",
|
|
216
|
+
"@ankhorage/zora-chess": "^0.1.2",
|
|
217
|
+
"@ankhorage/zora-tabletop": "^0.0.5",
|
|
218
|
+
"@ankhorage/infra": "^0.3.1",
|
|
219
|
+
"@ankhorage/orchestrator": "^0.2.4",
|
|
220
|
+
"@ankhorage/orchestrator-module-expo-google-fonts": "^0.1.2",
|
|
221
|
+
"@ankhorage/orchestrator-module-expo-localization": "^0.1.5",
|
|
222
|
+
"@ankhorage/templates": "^1.9.2",
|
|
223
|
+
"@fastify/cors": "^11.2.0",
|
|
224
|
+
"fastify": "^5.7.4"
|
|
193
225
|
},
|
|
194
226
|
"peerDependencies": {
|
|
195
227
|
"@expo/vector-icons": "^15.0.3",
|