tokensafe-ui 0.1.9 → 0.1.10
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/{chunk-GVVBOP4E.js → chunk-4E3ZOBB5.js} +2 -2
- package/dist/{chunk-LFFVZCNL.js → chunk-IYLKNCN7.js} +3 -3
- package/dist/{chunk-GBP5S5VP.js → chunk-PRDRKCKA.js} +42 -0
- package/dist/{chunk-4PIOAQC3.js → chunk-QM2CUNVR.js} +1 -1
- package/dist/{chunk-2YH7IQ3P.js → chunk-RFQ234HI.js} +1 -1
- package/dist/cli.js +4 -4
- package/dist/index.cjs +42 -0
- package/dist/index.js +1 -1
- package/dist/mcp.js +4 -4
- package/dist/observer.js +2 -2
- package/dist/oumv.js +4 -4
- package/dist/react.js +4 -4
- package/dist/testing.js +1 -1
- package/dist/vite.js +1 -1
- package/dist/vue.js +4 -4
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildDependencyGraph,
|
|
3
3
|
observeDiff
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QM2CUNVR.js";
|
|
5
5
|
import {
|
|
6
6
|
applyPatch
|
|
7
7
|
} from "./chunk-N7XIVYCL.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
activeInstances,
|
|
10
10
|
testAction,
|
|
11
11
|
testEffect
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PRDRKCKA.js";
|
|
13
13
|
|
|
14
14
|
// ../mcp/dist/index.js
|
|
15
15
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
atomicApplySourceEdit,
|
|
3
3
|
validateWorkspacePath
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4E3ZOBB5.js";
|
|
5
5
|
import {
|
|
6
6
|
buildDependencyGraph,
|
|
7
7
|
observe
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QM2CUNVR.js";
|
|
9
9
|
import {
|
|
10
10
|
testAction
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PRDRKCKA.js";
|
|
12
12
|
|
|
13
13
|
// ../oumv/dist/chunk-ONAJHNWR.js
|
|
14
14
|
import fs from "fs";
|
|
@@ -1050,6 +1050,46 @@ function hydrateNode(domNode, vnode, instance) {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
|
+
var idSeq = 0;
|
|
1054
|
+
var fallbackDispatcher = {
|
|
1055
|
+
readContext: (ctx) => ctx?._currentValue,
|
|
1056
|
+
useCallback: (fn) => fn,
|
|
1057
|
+
useContext: (ctx) => ctx?._currentValue,
|
|
1058
|
+
useEffect: () => {
|
|
1059
|
+
},
|
|
1060
|
+
useImperativeHandle: () => {
|
|
1061
|
+
},
|
|
1062
|
+
useInsertionEffect: () => {
|
|
1063
|
+
},
|
|
1064
|
+
useLayoutEffect: () => {
|
|
1065
|
+
},
|
|
1066
|
+
useMemo: (fn) => fn(),
|
|
1067
|
+
useReducer: (_, init) => [init, () => {
|
|
1068
|
+
}],
|
|
1069
|
+
useRef: (init) => ({ current: init }),
|
|
1070
|
+
useState: (init) => [typeof init === "function" ? init() : init, () => {
|
|
1071
|
+
}],
|
|
1072
|
+
useDebugValue: () => {
|
|
1073
|
+
},
|
|
1074
|
+
useDeferredValue: (v) => v,
|
|
1075
|
+
useTransition: () => [false, (fn) => fn()],
|
|
1076
|
+
useId: () => `:r${++idSeq}:`
|
|
1077
|
+
};
|
|
1078
|
+
function ensureReactDispatcher() {
|
|
1079
|
+
try {
|
|
1080
|
+
const React = globalThis.React || typeof window !== "undefined" && window.React;
|
|
1081
|
+
if (!React) return;
|
|
1082
|
+
const clientInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
1083
|
+
if (clientInternals && !clientInternals.H) {
|
|
1084
|
+
clientInternals.H = fallbackDispatcher;
|
|
1085
|
+
}
|
|
1086
|
+
const secretInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1087
|
+
if (secretInternals?.ReactCurrentDispatcher && !secretInternals.ReactCurrentDispatcher.current) {
|
|
1088
|
+
secretInternals.ReactCurrentDispatcher.current = fallbackDispatcher;
|
|
1089
|
+
}
|
|
1090
|
+
} catch {
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1053
1093
|
function convertReactNode(rn) {
|
|
1054
1094
|
if (!rn || typeof rn !== "object") return rn;
|
|
1055
1095
|
if (Array.isArray(rn)) return rn.map(convertReactNode);
|
|
@@ -1121,6 +1161,7 @@ function renderVNode(node, instance) {
|
|
|
1121
1161
|
targetType = targetType.type;
|
|
1122
1162
|
}
|
|
1123
1163
|
if (typeof targetType.render === "function") {
|
|
1164
|
+
ensureReactDispatcher();
|
|
1124
1165
|
const rendered = targetType.render(vnode.props, vnode.props?.ref || null);
|
|
1125
1166
|
return renderVNode(convertReactNode(rendered), instance);
|
|
1126
1167
|
}
|
|
@@ -1453,6 +1494,7 @@ function vnodeToString(node) {
|
|
|
1453
1494
|
targetType = targetType.type;
|
|
1454
1495
|
}
|
|
1455
1496
|
if (typeof targetType.render === "function") {
|
|
1497
|
+
ensureReactDispatcher();
|
|
1456
1498
|
const rendered = targetType.render(vnode.props, vnode.props?.ref || null);
|
|
1457
1499
|
return vnodeToString(convertReactNode(rendered));
|
|
1458
1500
|
}
|
package/dist/cli.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
startMcpServer
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-RFQ234HI.js";
|
|
4
|
+
import "./chunk-4E3ZOBB5.js";
|
|
5
|
+
import "./chunk-QM2CUNVR.js";
|
|
6
6
|
import "./chunk-N7XIVYCL.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-PRDRKCKA.js";
|
|
8
8
|
|
|
9
9
|
// src/cli.ts
|
|
10
10
|
function parseCliArgs(argv) {
|
package/dist/index.cjs
CHANGED
|
@@ -1110,6 +1110,46 @@ function hydrateNode(domNode, vnode, instance) {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
1112
|
}
|
|
1113
|
+
var idSeq = 0;
|
|
1114
|
+
var fallbackDispatcher = {
|
|
1115
|
+
readContext: (ctx) => ctx?._currentValue,
|
|
1116
|
+
useCallback: (fn) => fn,
|
|
1117
|
+
useContext: (ctx) => ctx?._currentValue,
|
|
1118
|
+
useEffect: () => {
|
|
1119
|
+
},
|
|
1120
|
+
useImperativeHandle: () => {
|
|
1121
|
+
},
|
|
1122
|
+
useInsertionEffect: () => {
|
|
1123
|
+
},
|
|
1124
|
+
useLayoutEffect: () => {
|
|
1125
|
+
},
|
|
1126
|
+
useMemo: (fn) => fn(),
|
|
1127
|
+
useReducer: (_, init) => [init, () => {
|
|
1128
|
+
}],
|
|
1129
|
+
useRef: (init) => ({ current: init }),
|
|
1130
|
+
useState: (init) => [typeof init === "function" ? init() : init, () => {
|
|
1131
|
+
}],
|
|
1132
|
+
useDebugValue: () => {
|
|
1133
|
+
},
|
|
1134
|
+
useDeferredValue: (v) => v,
|
|
1135
|
+
useTransition: () => [false, (fn) => fn()],
|
|
1136
|
+
useId: () => `:r${++idSeq}:`
|
|
1137
|
+
};
|
|
1138
|
+
function ensureReactDispatcher() {
|
|
1139
|
+
try {
|
|
1140
|
+
const React = globalThis.React || typeof window !== "undefined" && window.React;
|
|
1141
|
+
if (!React) return;
|
|
1142
|
+
const clientInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
1143
|
+
if (clientInternals && !clientInternals.H) {
|
|
1144
|
+
clientInternals.H = fallbackDispatcher;
|
|
1145
|
+
}
|
|
1146
|
+
const secretInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1147
|
+
if (secretInternals?.ReactCurrentDispatcher && !secretInternals.ReactCurrentDispatcher.current) {
|
|
1148
|
+
secretInternals.ReactCurrentDispatcher.current = fallbackDispatcher;
|
|
1149
|
+
}
|
|
1150
|
+
} catch {
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1113
1153
|
function convertReactNode(rn) {
|
|
1114
1154
|
if (!rn || typeof rn !== "object") return rn;
|
|
1115
1155
|
if (Array.isArray(rn)) return rn.map(convertReactNode);
|
|
@@ -1181,6 +1221,7 @@ function renderVNode(node, instance) {
|
|
|
1181
1221
|
targetType = targetType.type;
|
|
1182
1222
|
}
|
|
1183
1223
|
if (typeof targetType.render === "function") {
|
|
1224
|
+
ensureReactDispatcher();
|
|
1184
1225
|
const rendered = targetType.render(vnode.props, vnode.props?.ref || null);
|
|
1185
1226
|
return renderVNode(convertReactNode(rendered), instance);
|
|
1186
1227
|
}
|
|
@@ -1513,6 +1554,7 @@ function vnodeToString(node) {
|
|
|
1513
1554
|
targetType = targetType.type;
|
|
1514
1555
|
}
|
|
1515
1556
|
if (typeof targetType.render === "function") {
|
|
1557
|
+
ensureReactDispatcher();
|
|
1516
1558
|
const rendered = targetType.render(vnode.props, vnode.props?.ref || null);
|
|
1517
1559
|
return vnodeToString(convertReactNode(rendered));
|
|
1518
1560
|
}
|
package/dist/index.js
CHANGED
package/dist/mcp.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
startMcpServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RFQ234HI.js";
|
|
4
4
|
import {
|
|
5
5
|
MCP_SERVER_VERSION,
|
|
6
6
|
atomicApplySourceEdit,
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
inspectComponentContract,
|
|
11
11
|
validateSourceSyntaxAndTypes,
|
|
12
12
|
validateWorkspacePath
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-4E3ZOBB5.js";
|
|
14
|
+
import "./chunk-QM2CUNVR.js";
|
|
15
15
|
import "./chunk-N7XIVYCL.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-PRDRKCKA.js";
|
|
17
17
|
export {
|
|
18
18
|
MCP_SERVER_VERSION,
|
|
19
19
|
atomicApplySourceEdit,
|
package/dist/observer.js
CHANGED
package/dist/oumv.js
CHANGED
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
isReducerLike,
|
|
10
10
|
isReduxStore,
|
|
11
11
|
isZustandStore
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-IYLKNCN7.js";
|
|
13
|
+
import "./chunk-4E3ZOBB5.js";
|
|
14
|
+
import "./chunk-QM2CUNVR.js";
|
|
15
15
|
import "./chunk-N7XIVYCL.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-PRDRKCKA.js";
|
|
17
17
|
export {
|
|
18
18
|
connectContext,
|
|
19
19
|
connectReducer,
|
package/dist/react.js
CHANGED
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
isReducerLike,
|
|
8
8
|
isReduxStore,
|
|
9
9
|
isZustandStore
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-IYLKNCN7.js";
|
|
11
|
+
import "./chunk-4E3ZOBB5.js";
|
|
12
|
+
import "./chunk-QM2CUNVR.js";
|
|
13
13
|
import "./chunk-N7XIVYCL.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-PRDRKCKA.js";
|
|
15
15
|
export {
|
|
16
16
|
connectContext,
|
|
17
17
|
connectReducer,
|
package/dist/testing.js
CHANGED
package/dist/vite.js
CHANGED
package/dist/vue.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createVueAdapter
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-IYLKNCN7.js";
|
|
4
|
+
import "./chunk-4E3ZOBB5.js";
|
|
5
|
+
import "./chunk-QM2CUNVR.js";
|
|
6
6
|
import "./chunk-N7XIVYCL.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-PRDRKCKA.js";
|
|
8
8
|
export {
|
|
9
9
|
createVueAdapter
|
|
10
10
|
};
|