@monotykamary/dsh-client-ui-renderer 0.1.8 → 0.1.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/README.i18n.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  # Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
- # pnpm run verify-translation-pairing --write packages/client/ui-renderer/README.md
4
+ # bun run verify-translation-pairing --write packages/client/ui-renderer/README.md
5
5
  README.md: 604b563b5b0e5c4e8ac99ed27dda1b16ada1443b
6
6
  README.zh.md: 2f8a71fb4100922aa18458cb272d6024c250cc84
package/lib/client.js CHANGED
@@ -12,7 +12,7 @@ window.__ModuleLoader__.load({
12
12
  let react_dom_client = require("react-dom/client");
13
13
  let react_jsx_runtime = require("react/jsx-runtime");
14
14
  let _monotykamary_dsh_client_ui_slots = require("@monotykamary/dsh-client-ui-slots");
15
- //#region ../../../node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js
15
+ //#region ../../../../../../../.bun/install/cache/links/use-sync-external-store@1.2.0+f4eacebf2041cd4f-1f71cdb57ede23ab/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js
16
16
  /**
17
17
  * @license React
18
18
  * use-sync-external-store-shim.production.min.js
@@ -27,7 +27,11 @@ window.__ModuleLoader__.load({
27
27
  function h(a, b) {
28
28
  return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
29
29
  }
30
- var k = "function" === typeof Object.is ? Object.is : h, l = e.useState, m = e.useEffect, n = e.useLayoutEffect, p = e.useDebugValue;
30
+ var k = "function" === typeof Object.is ? Object.is : h;
31
+ var l = e.useState;
32
+ var m = e.useEffect;
33
+ var n = e.useLayoutEffect;
34
+ var p = e.useDebugValue;
31
35
  function q(a, b) {
32
36
  var d = b(), f = l({ inst: {
33
37
  value: d,
@@ -68,12 +72,12 @@ window.__ModuleLoader__.load({
68
72
  exports.useSyncExternalStore = void 0 !== e.useSyncExternalStore ? e.useSyncExternalStore : u;
69
73
  }));
70
74
  //#endregion
71
- //#region ../../../node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.js
75
+ //#region ../../../../../../../.bun/install/cache/links/use-sync-external-store@1.2.0+f4eacebf2041cd4f-1f71cdb57ede23ab/node_modules/use-sync-external-store/shim/index.js
72
76
  var require_shim = /* @__PURE__ */ __commonJSMin(((exports, module) => {
73
77
  module.exports = require_use_sync_external_store_shim_production_min();
74
78
  }));
75
79
  //#endregion
76
- //#region ../../../node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js
80
+ //#region ../../../../../../../.bun/install/cache/links/use-sync-external-store@1.2.0+f4eacebf2041cd4f-1f71cdb57ede23ab/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js
77
81
  /**
78
82
  * @license React
79
83
  * use-sync-external-store-shim/with-selector.production.min.js
@@ -84,11 +88,17 @@ window.__ModuleLoader__.load({
84
88
  * LICENSE file in the root directory of this source tree.
85
89
  */
86
90
  var require_with_selector_production_min = /* @__PURE__ */ __commonJSMin(((exports) => {
87
- var h = require("react"), n = require_shim();
91
+ var h = require("react");
92
+ var n = require_shim();
88
93
  function p(a, b) {
89
94
  return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
90
95
  }
91
- var q = "function" === typeof Object.is ? Object.is : p, r = n.useSyncExternalStore, t = h.useRef, u = h.useEffect, v = h.useMemo, w = h.useDebugValue;
96
+ var q = "function" === typeof Object.is ? Object.is : p;
97
+ var r = n.useSyncExternalStore;
98
+ var t = h.useRef;
99
+ var u = h.useEffect;
100
+ var v = h.useMemo;
101
+ var w = h.useDebugValue;
92
102
  exports.useSyncExternalStoreWithSelector = function(a, b, e, l, g) {
93
103
  var c = t(null);
94
104
  if (null === c.current) {
@@ -742,10 +752,11 @@ window.__ModuleLoader__.load({
742
752
  const host = useHost();
743
753
  (0, react.useSyncExternalStore)((fn) => host.subscribe(slotKey, fn), () => host.getVersion(slotKey));
744
754
  useLocaleRevision(host.locale);
755
+ const sessionInfo = useSessionMaybeProvideInfo();
745
756
  return (0, react_jsx_runtime.jsx)("div", {
746
757
  "data-slot": slotKey,
747
758
  style: ANCHOR_STYLE,
748
- children: renderOutletContent(host, slotKey, ownerProps, opts, useSessionMaybeProvideInfo())
759
+ children: renderOutletContent(host, slotKey, ownerProps, opts, sessionInfo)
749
760
  });
750
761
  }
751
762
  /** Kind dispatch behind the outlet anchor (single/keyed/list/chain, fallbacks, crash faces). */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@monotykamary/dsh-client-ui-renderer",
3
3
  "description": "Browser UI renderer: React slot bindings, ctx.uiRenderer, and the assembled application root",
4
- "version": "0.1.8",
4
+ "version": "0.1.9",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -38,34 +38,34 @@
38
38
  "immediately": true
39
39
  }
40
40
  },
41
+ "scripts": {
42
+ "bundle": "tsdown",
43
+ "watch": "tsdown --watch"
44
+ },
41
45
  "license": "MIT",
42
46
  "dependencies": {
43
47
  "use-sync-external-store": "1.2.0"
44
48
  },
45
49
  "peerDependencies": {
46
- "@monotykamary/dsh-client-runtime": "^0.1.8",
47
- "@monotykamary/cordis": "^4.0.1",
48
- "@monotykamary/dsh-invariants": "^0.1.8"
50
+ "@monotykamary/dsh-client-runtime": "^0.1.9",
51
+ "@monotykamary/dsh-invariants": "^0.1.9",
52
+ "@monotykamary/cordis": "^4.0.1"
49
53
  },
50
54
  "devDependencies": {
55
+ "@monotykamary/dsh-client-runtime": "^0.1.9",
56
+ "@monotykamary/dsh-client-test-runtime": "^0.1.9",
57
+ "@monotykamary/dsh-client-ui-slots": "^0.1.9",
58
+ "@monotykamary/dsh-invariants": "^0.1.9",
51
59
  "@types/react": "~18.3.1",
52
60
  "@types/react-dom": "~18.3.0",
61
+ "@monotykamary/cordis": "^4.0.1",
53
62
  "react": "^18.2.0",
54
- "react-dom": "^18.2.0",
55
- "@monotykamary/dsh-client-runtime": "^0.1.8",
56
- "@monotykamary/dsh-client-test-runtime": "^0.1.8",
57
- "@monotykamary/dsh-client-ui-slots": "^0.1.8",
58
- "@monotykamary/dsh-invariants": "^0.1.8",
59
- "@monotykamary/cordis": "^4.0.1"
63
+ "react-dom": "^18.2.0"
60
64
  },
61
65
  "files": [
62
66
  "lib/index.js",
63
67
  "lib/invariant.js",
64
68
  "lib/client.js",
65
69
  "lib/types/**/*.d.ts"
66
- ],
67
- "scripts": {
68
- "bundle": "tsdown",
69
- "watch": "tsdown --watch"
70
- }
71
- }
70
+ ]
71
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 DeepSeek
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.