@almadar/ui 4.51.8 → 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.
@@ -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
- void runtime.register(schema);
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, schema]);
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
@@ -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
- void runtime.register(schema);
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, schema]);
59027
+ }, [runtime]);
59020
59028
  const transport = useMemo(() => ({
59021
59029
  register: async (s) => {
59022
59030
  await runtime.register(s);
@@ -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
- void runtime.register(schema);
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, schema]);
46964
+ }, [runtime]);
46957
46965
  const transport = React80.useMemo(() => ({
46958
46966
  register: async (s) => {
46959
46967
  await runtime.register(s);
@@ -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
- void runtime.register(schema);
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, schema]);
46918
+ }, [runtime]);
46911
46919
  const transport = useMemo(() => ({
46912
46920
  register: async (s) => {
46913
46921
  await runtime.register(s);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "4.51.8",
3
+ "version": "4.51.9",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "sideEffects": [