@microverse.ts/host-surface 0.2.0 → 0.3.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 +45 -15
- package/dist/application/ports/ScriptReferenceResolverPort.d.ts +13 -0
- package/dist/application/ports/ScriptReferenceResolverPort.d.ts.map +1 -0
- package/dist/application/useCases/compileBridgeDeclarationsFromHostSurfaceSpec.d.ts +3 -3
- package/dist/application/useCases/compileBridgeDeclarationsFromHostSurfaceSpec.d.ts.map +1 -1
- package/dist/application/useCases/compileHostSurface.d.ts +4 -3
- package/dist/application/useCases/compileHostSurface.d.ts.map +1 -1
- package/dist/domain/componentSlotPrelude.d.ts +8 -0
- package/dist/domain/componentSlotPrelude.d.ts.map +1 -1
- package/dist/domain/componentTypeSpec.d.ts +12 -0
- package/dist/domain/componentTypeSpec.d.ts.map +1 -0
- package/dist/domain/hostSurfaceManifest.d.ts +3 -2
- package/dist/domain/hostSurfaceManifest.d.ts.map +1 -1
- package/dist/domain/hostSurfaceSpecTypes.d.ts +89 -0
- package/dist/domain/hostSurfaceSpecTypes.d.ts.map +1 -0
- package/dist/domain/hostSurfaceTypes.d.ts +11 -90
- package/dist/domain/hostSurfaceTypes.d.ts.map +1 -1
- package/dist/domain/safeObjectKey.d.ts +1 -1
- package/dist/domain/safeObjectKey.d.ts.map +1 -1
- package/dist/domain/scriptCatalogManifest.d.ts +14 -0
- package/dist/domain/scriptCatalogManifest.d.ts.map +1 -0
- package/dist/domain/scriptProfileSpec.d.ts +31 -0
- package/dist/domain/scriptProfileSpec.d.ts.map +1 -0
- package/dist/domain/surfaceCapabilities.d.ts +1 -1
- package/dist/domain/surfaceCapabilities.d.ts.map +1 -1
- package/dist/domain/surfaceMethodDef.d.ts +1 -1
- package/dist/domain/surfaceMethodDef.d.ts.map +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +616 -296
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/builders/bridgeMergeEnv.d.ts +5 -10
- package/dist/infrastructure/builders/bridgeMergeEnv.d.ts.map +1 -1
- package/dist/infrastructure/builders/filterBridgeDeclarations.d.ts +11 -0
- package/dist/infrastructure/builders/filterBridgeDeclarations.d.ts.map +1 -0
- package/dist/infrastructure/builders/surfaceBuilder.d.ts +7 -2
- package/dist/infrastructure/builders/surfaceBuilder.d.ts.map +1 -1
- package/dist/infrastructure/components/hostScriptSession.d.ts +20 -5
- package/dist/infrastructure/components/hostScriptSession.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
+
|
|
2
3
|
* Declarative **host surface** for Lua sandboxes: Zod-validated bridge methods, capability checks,
|
|
4
|
+
|
|
3
5
|
* `LuaDefManifest` generation for `.d.lua`, and {@link HostScriptSession} helpers.
|
|
6
|
+
|
|
4
7
|
*
|
|
8
|
+
|
|
5
9
|
* @packageDocumentation
|
|
10
|
+
|
|
6
11
|
*/
|
|
7
|
-
export {
|
|
12
|
+
export { buildBridgeMergeEnvForProfile, } from './infrastructure/builders/bridgeMergeEnv';
|
|
13
|
+
export type { ComponentTypeDefInput, ComponentTypeDefRegistry, } from './domain/componentTypeSpec';
|
|
14
|
+
export type { ScriptProfileDefRegistry, ResolvedScriptProfile, ResolvedScriptProfileRegistry, } from './domain/scriptProfileSpec';
|
|
15
|
+
export { resolveScriptProfile, buildResolvedScriptProfileRegistry, scriptProfileComponentClassName, scriptProfilePropsAlias, scriptProfileStateAlias, scriptProfileBridgesClassName, } from './domain/scriptProfileSpec';
|
|
16
|
+
export type { ScriptCatalogEntry } from './domain/scriptCatalogManifest';
|
|
17
|
+
export { buildScriptCatalogLuaDefManifest, scriptCatalogComponentAlias } from './domain/scriptCatalogManifest';
|
|
18
|
+
export type { ScriptReferenceResolverPort, ScriptReferenceWrapContext, } from './application/ports/ScriptReferenceResolverPort';
|
|
19
|
+
export { buildComponentTypeSingletonsPreludeLua } from './domain/componentSlotPrelude';
|
|
8
20
|
export { BridgeBuilder, defineHostSurface, defineHostSurfaceFor, SurfaceBuilder, type AnyHostSurfaceMethod, type HostFnContext, type HostSurface, type HostSurfaceCore, type HostSurfaceMethodEntry, type HostSurfaceSpec, type HostSurfaceSpecForHost, type HostComponentHooksSpec, type LuaDefManifestGeneratorOpts, type SurfaceMethodDef, } from './infrastructure/builders/defineHostSurfaceFacade';
|
|
9
21
|
export { compileHostSurface, compileHostSurfaceFor, } from './application/useCases/compileHostSurface';
|
|
10
22
|
export { createBridgeDeclarationsFromHostSurfaceSpec } from './application/useCases/compileBridgeDeclarationsFromHostSurfaceSpec';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAEL,6BAA6B,GAE9B,MAAM,0CAA0C,CAAC;AAElD,YAAY,EAEV,qBAAqB,EAErB,wBAAwB,GAEzB,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EAEV,wBAAwB,EAExB,qBAAqB,EAErB,6BAA6B,GAE9B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAEL,oBAAoB,EAEpB,kCAAkC,EAElC,+BAA+B,EAE/B,uBAAuB,EAEvB,uBAAuB,EAEvB,6BAA6B,GAE9B,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,OAAO,EAAE,gCAAgC,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAE/G,YAAY,EAEV,2BAA2B,EAE3B,0BAA0B,GAE3B,MAAM,iDAAiD,CAAC;AAEzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,+BAA+B,CAAC;AAEvF,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