@almadar/ui 4.51.7 → 4.51.9
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/avl/index.cjs +11 -3
- package/dist/avl/index.js +11 -3
- package/dist/runtime/index.cjs +11 -3
- package/dist/runtime/index.js +11 -3
- package/package.json +1 -1
package/dist/avl/index.cjs
CHANGED
|
@@ -57221,7 +57221,7 @@ function useResolvedSchema(schema, pageName) {
|
|
|
57221
57221
|
const ir = React93.useMemo(() => {
|
|
57222
57222
|
if (!schema) return null;
|
|
57223
57223
|
try {
|
|
57224
|
-
const resolved = core.schemaToIR(schema
|
|
57224
|
+
const resolved = core.schemaToIR(schema);
|
|
57225
57225
|
const callSiteListensByTrait = /* @__PURE__ */ new Map();
|
|
57226
57226
|
for (const orb of schema.orbitals) {
|
|
57227
57227
|
for (const traitRef of orb.traits ?? []) {
|
|
@@ -59047,6 +59047,7 @@ function OrbPreview({
|
|
|
59047
59047
|
);
|
|
59048
59048
|
}
|
|
59049
59049
|
OrbPreview.displayName = "OrbPreview";
|
|
59050
|
+
var playgroundLog = logger.createLogger("almadar:ui:browser-playground");
|
|
59050
59051
|
function BrowserPlayground({
|
|
59051
59052
|
schema,
|
|
59052
59053
|
mode = "mock",
|
|
@@ -59058,11 +59059,18 @@ function BrowserPlayground({
|
|
|
59058
59059
|
() => new OrbitalServerRuntime.OrbitalServerRuntime({ mode, debug: false })
|
|
59059
59060
|
);
|
|
59060
59061
|
React93.useEffect(() => {
|
|
59061
|
-
|
|
59062
|
+
const orbitalNames = schema.orbitals.map((o) => o.name);
|
|
59063
|
+
playgroundLog.debug("register:start", { schema: schema.name, orbitalNames });
|
|
59064
|
+
void runtime.register(schema).then(() => {
|
|
59065
|
+
playgroundLog.debug("register:done", { schema: schema.name, orbitalNames });
|
|
59066
|
+
});
|
|
59067
|
+
}, [runtime, schema]);
|
|
59068
|
+
React93.useEffect(() => {
|
|
59062
59069
|
return () => {
|
|
59070
|
+
playgroundLog.debug("unregisterAll:unmount");
|
|
59063
59071
|
runtime.unregisterAll();
|
|
59064
59072
|
};
|
|
59065
|
-
}, [runtime
|
|
59073
|
+
}, [runtime]);
|
|
59066
59074
|
const transport = React93.useMemo(() => ({
|
|
59067
59075
|
register: async (s) => {
|
|
59068
59076
|
await runtime.register(s);
|
package/dist/avl/index.js
CHANGED
|
@@ -57175,7 +57175,7 @@ function useResolvedSchema(schema, pageName) {
|
|
|
57175
57175
|
const ir = useMemo(() => {
|
|
57176
57176
|
if (!schema) return null;
|
|
57177
57177
|
try {
|
|
57178
|
-
const resolved = schemaToIR(schema
|
|
57178
|
+
const resolved = schemaToIR(schema);
|
|
57179
57179
|
const callSiteListensByTrait = /* @__PURE__ */ new Map();
|
|
57180
57180
|
for (const orb of schema.orbitals) {
|
|
57181
57181
|
for (const traitRef of orb.traits ?? []) {
|
|
@@ -59001,6 +59001,7 @@ function OrbPreview({
|
|
|
59001
59001
|
);
|
|
59002
59002
|
}
|
|
59003
59003
|
OrbPreview.displayName = "OrbPreview";
|
|
59004
|
+
var playgroundLog = createLogger("almadar:ui:browser-playground");
|
|
59004
59005
|
function BrowserPlayground({
|
|
59005
59006
|
schema,
|
|
59006
59007
|
mode = "mock",
|
|
@@ -59012,11 +59013,18 @@ function BrowserPlayground({
|
|
|
59012
59013
|
() => new OrbitalServerRuntime({ mode, debug: false })
|
|
59013
59014
|
);
|
|
59014
59015
|
useEffect(() => {
|
|
59015
|
-
|
|
59016
|
+
const orbitalNames = schema.orbitals.map((o) => o.name);
|
|
59017
|
+
playgroundLog.debug("register:start", { schema: schema.name, orbitalNames });
|
|
59018
|
+
void runtime.register(schema).then(() => {
|
|
59019
|
+
playgroundLog.debug("register:done", { schema: schema.name, orbitalNames });
|
|
59020
|
+
});
|
|
59021
|
+
}, [runtime, schema]);
|
|
59022
|
+
useEffect(() => {
|
|
59016
59023
|
return () => {
|
|
59024
|
+
playgroundLog.debug("unregisterAll:unmount");
|
|
59017
59025
|
runtime.unregisterAll();
|
|
59018
59026
|
};
|
|
59019
|
-
}, [runtime
|
|
59027
|
+
}, [runtime]);
|
|
59020
59028
|
const transport = useMemo(() => ({
|
|
59021
59029
|
register: async (s) => {
|
|
59022
59030
|
await runtime.register(s);
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -45846,7 +45846,7 @@ function useResolvedSchema(schema, pageName) {
|
|
|
45846
45846
|
const ir = React80.useMemo(() => {
|
|
45847
45847
|
if (!schema) return null;
|
|
45848
45848
|
try {
|
|
45849
|
-
const resolved = core.schemaToIR(schema
|
|
45849
|
+
const resolved = core.schemaToIR(schema);
|
|
45850
45850
|
const callSiteListensByTrait = /* @__PURE__ */ new Map();
|
|
45851
45851
|
for (const orb of schema.orbitals) {
|
|
45852
45852
|
for (const traitRef of orb.traits ?? []) {
|
|
@@ -46938,6 +46938,7 @@ function OrbPreview({
|
|
|
46938
46938
|
);
|
|
46939
46939
|
}
|
|
46940
46940
|
OrbPreview.displayName = "OrbPreview";
|
|
46941
|
+
var playgroundLog = logger.createLogger("almadar:ui:browser-playground");
|
|
46941
46942
|
function BrowserPlayground({
|
|
46942
46943
|
schema,
|
|
46943
46944
|
mode = "mock",
|
|
@@ -46949,11 +46950,18 @@ function BrowserPlayground({
|
|
|
46949
46950
|
() => new OrbitalServerRuntime.OrbitalServerRuntime({ mode, debug: false })
|
|
46950
46951
|
);
|
|
46951
46952
|
React80.useEffect(() => {
|
|
46952
|
-
|
|
46953
|
+
const orbitalNames = schema.orbitals.map((o) => o.name);
|
|
46954
|
+
playgroundLog.debug("register:start", { schema: schema.name, orbitalNames });
|
|
46955
|
+
void runtime.register(schema).then(() => {
|
|
46956
|
+
playgroundLog.debug("register:done", { schema: schema.name, orbitalNames });
|
|
46957
|
+
});
|
|
46958
|
+
}, [runtime, schema]);
|
|
46959
|
+
React80.useEffect(() => {
|
|
46953
46960
|
return () => {
|
|
46961
|
+
playgroundLog.debug("unregisterAll:unmount");
|
|
46954
46962
|
runtime.unregisterAll();
|
|
46955
46963
|
};
|
|
46956
|
-
}, [runtime
|
|
46964
|
+
}, [runtime]);
|
|
46957
46965
|
const transport = React80.useMemo(() => ({
|
|
46958
46966
|
register: async (s) => {
|
|
46959
46967
|
await runtime.register(s);
|
package/dist/runtime/index.js
CHANGED
|
@@ -45800,7 +45800,7 @@ function useResolvedSchema(schema, pageName) {
|
|
|
45800
45800
|
const ir = useMemo(() => {
|
|
45801
45801
|
if (!schema) return null;
|
|
45802
45802
|
try {
|
|
45803
|
-
const resolved = schemaToIR(schema
|
|
45803
|
+
const resolved = schemaToIR(schema);
|
|
45804
45804
|
const callSiteListensByTrait = /* @__PURE__ */ new Map();
|
|
45805
45805
|
for (const orb of schema.orbitals) {
|
|
45806
45806
|
for (const traitRef of orb.traits ?? []) {
|
|
@@ -46892,6 +46892,7 @@ function OrbPreview({
|
|
|
46892
46892
|
);
|
|
46893
46893
|
}
|
|
46894
46894
|
OrbPreview.displayName = "OrbPreview";
|
|
46895
|
+
var playgroundLog = createLogger("almadar:ui:browser-playground");
|
|
46895
46896
|
function BrowserPlayground({
|
|
46896
46897
|
schema,
|
|
46897
46898
|
mode = "mock",
|
|
@@ -46903,11 +46904,18 @@ function BrowserPlayground({
|
|
|
46903
46904
|
() => new OrbitalServerRuntime({ mode, debug: false })
|
|
46904
46905
|
);
|
|
46905
46906
|
useEffect(() => {
|
|
46906
|
-
|
|
46907
|
+
const orbitalNames = schema.orbitals.map((o) => o.name);
|
|
46908
|
+
playgroundLog.debug("register:start", { schema: schema.name, orbitalNames });
|
|
46909
|
+
void runtime.register(schema).then(() => {
|
|
46910
|
+
playgroundLog.debug("register:done", { schema: schema.name, orbitalNames });
|
|
46911
|
+
});
|
|
46912
|
+
}, [runtime, schema]);
|
|
46913
|
+
useEffect(() => {
|
|
46907
46914
|
return () => {
|
|
46915
|
+
playgroundLog.debug("unregisterAll:unmount");
|
|
46908
46916
|
runtime.unregisterAll();
|
|
46909
46917
|
};
|
|
46910
|
-
}, [runtime
|
|
46918
|
+
}, [runtime]);
|
|
46911
46919
|
const transport = useMemo(() => ({
|
|
46912
46920
|
register: async (s) => {
|
|
46913
46921
|
await runtime.register(s);
|