@reactpy/client 1.0.1 → 1.0.3
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/LICENSE +9 -0
- package/dist/bind.d.ts +6 -0
- package/dist/bind.d.ts.map +1 -0
- package/dist/bind.js +53 -0
- package/dist/bind.js.map +1 -0
- package/dist/components.d.ts +3 -2
- package/dist/components.d.ts.map +1 -1
- package/dist/components.js +14 -7
- package/dist/components.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +0 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/vdom.d.ts +3 -3
- package/dist/vdom.d.ts.map +1 -1
- package/dist/vdom.js +89 -9
- package/dist/vdom.js.map +1 -1
- package/package.json +7 -2
- package/src/bind.tsx +59 -0
- package/src/components.tsx +25 -12
- package/src/index.ts +1 -0
- package/src/types.ts +0 -1
- package/src/vdom.tsx +113 -18
- package/tsconfig.json +0 -14
- package/tsconfig.tsbuildinfo +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Reactive Python and affiliates.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/dist/bind.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bind.d.ts","sourceRoot":"","sources":["../src/bind.tsx"],"names":[],"mappings":"AAEA,wBAAsB,2BAA2B,mBAM/B,WAAW;mBA0BV,GAAG,SAAS,GAAG,aAAa,GAAG,EAAE;sBAE9B,GAAG;;GApBxB"}
|
package/dist/bind.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as preact from "preact";
|
|
2
|
+
export async function infer_bind_from_environment() {
|
|
3
|
+
try {
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
const React = await import("react");
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
const ReactDOM = await import("react-dom/client");
|
|
8
|
+
return (node) => reactjs_bind(node, React, ReactDOM);
|
|
9
|
+
}
|
|
10
|
+
catch {
|
|
11
|
+
console.error("Unknown error occurred: 'react' is missing within this ReactPy environment! \
|
|
12
|
+
Your JavaScript components may not work as expected!");
|
|
13
|
+
return (node) => local_preact_bind(node);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function local_preact_bind(node) {
|
|
17
|
+
return {
|
|
18
|
+
create: (type, props, children) => preact.createElement(type, props, ...(children || [])),
|
|
19
|
+
render: (element) => {
|
|
20
|
+
preact.render(element, node);
|
|
21
|
+
},
|
|
22
|
+
unmount: () => preact.render(null, node),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
const roots = new WeakMap();
|
|
26
|
+
function reactjs_bind(node, React, ReactDOM) {
|
|
27
|
+
let root = null;
|
|
28
|
+
return {
|
|
29
|
+
create: (type, props, children) => React.createElement(type, props, ...(children || [])),
|
|
30
|
+
render: (element) => {
|
|
31
|
+
if (!root) {
|
|
32
|
+
if (!roots.get(node)) {
|
|
33
|
+
root = ReactDOM.createRoot(node);
|
|
34
|
+
roots.set(node, root);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
root = roots.get(node);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
root.render(element);
|
|
41
|
+
},
|
|
42
|
+
unmount: () => {
|
|
43
|
+
if (root) {
|
|
44
|
+
root.unmount();
|
|
45
|
+
if (roots.get(node) === root) {
|
|
46
|
+
roots.delete(node);
|
|
47
|
+
}
|
|
48
|
+
root = null;
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=bind.js.map
|
package/dist/bind.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bind.js","sourceRoot":"","sources":["../src/bind.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,KAAK,UAAU,2BAA2B;IAC/C,IAAI,CAAC;QACH,aAAa;QACb,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC;QACpC,aAAa;QACb,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAClD,OAAO,CAAC,IAAiB,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IACpE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,CAAC,KAAK,CACX;2DACqD,CACtD,CAAC;QACF,OAAO,CAAC,IAAiB,EAAE,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;AACH,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAiB;IAC1C,OAAO;QACL,MAAM,EAAE,CAAC,IAAS,EAAE,KAAU,EAAE,QAAgB,EAAE,EAAE,CAClD,M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AC;oBAC7B,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBACrB,CAAC;gBACD,IAAI,GAAG,IAAI,CAAC;YACd,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/components.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type JSX } from "preact";
|
|
2
|
-
import type { ReactPyVdom
|
|
2
|
+
import type { ReactPyVdom } from "./types";
|
|
3
|
+
import type { ReactPyClient } from "./client";
|
|
3
4
|
export declare function Layout(props: {
|
|
4
|
-
client:
|
|
5
|
+
client: ReactPyClient;
|
|
5
6
|
}): JSX.Element;
|
|
6
7
|
export declare function Element({ model }: {
|
|
7
8
|
model: ReactPyVdom;
|
package/dist/components.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,GAAG,EAET,MAAM,QAAQ,CAAC;AAEhB,OAAO,KAAK,EAGV,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAI9C,wBAAgB,MAAM,CAAC,KAAK,EAAE;IAAE,MAAM,EAAE,aAAa,CAAA;CAAE,GAAG,GAAG,CAAC,OAAO,CAsBpE;AAED,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,WAAW,CAAA;CAAE,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAoB7E"}
|
package/dist/components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "preact/jsx-runtime";
|
|
2
2
|
import { set as setJsonPointer } from "json-pointer";
|
|
3
|
-
import { createContext, createElement, Fragment } from "preact";
|
|
3
|
+
import { createContext, createElement, Fragment, } from "preact";
|
|
4
4
|
import { useContext, useEffect, useRef, useState } from "preact/hooks";
|
|
5
5
|
import { createAttributes, createChildren, loadImportSource } from "./vdom";
|
|
6
6
|
const ClientContext = createContext(null);
|
|
@@ -46,7 +46,7 @@ function StandardElement({ model }) {
|
|
|
46
46
|
// having keys. Warning about this must now be the responsibility of the client
|
|
47
47
|
// providing the models instead of the client rendering them.
|
|
48
48
|
return createElement(model.tagName === "" ? Fragment : model.tagName, createAttributes(model, client), ...createChildren(model, (child) => {
|
|
49
|
-
return _jsx(Element, { model: child }, child.key);
|
|
49
|
+
return _jsx(Element, { model: child }, child.attributes?.key);
|
|
50
50
|
}));
|
|
51
51
|
}
|
|
52
52
|
function UserInputElement({ model }) {
|
|
@@ -71,7 +71,7 @@ function UserInputElement({ model }) {
|
|
|
71
71
|
// providing the models instead of the client rendering them.
|
|
72
72
|
return createElement(model.tagName,
|
|
73
73
|
// overwrite
|
|
74
|
-
{ ...props, value }, ...createChildren(model, (child) => (_jsx(Element, { model: child }, child.key))));
|
|
74
|
+
{ ...props, value }, ...createChildren(model, (child) => (_jsx(Element, { model: child }, child.attributes?.key))));
|
|
75
75
|
}
|
|
76
76
|
function ScriptElement({ model }) {
|
|
77
77
|
const ref = useRef(null);
|
|
@@ -96,7 +96,7 @@ function ScriptElement({ model }) {
|
|
|
96
96
|
return () => {
|
|
97
97
|
ref.current?.removeChild(scriptElement);
|
|
98
98
|
};
|
|
99
|
-
}, [model.key]);
|
|
99
|
+
}, [model.attributes?.key]);
|
|
100
100
|
return _jsx("div", { ref: ref });
|
|
101
101
|
}
|
|
102
102
|
function ImportedElement({ model }) {
|
|
@@ -132,21 +132,25 @@ function useImportSource(model) {
|
|
|
132
132
|
const mountPoint = useRef(null);
|
|
133
133
|
const client = useContext(ClientContext);
|
|
134
134
|
const [binding, setBinding] = useState(null);
|
|
135
|
+
const bindingSource = useRef(null);
|
|
135
136
|
useEffect(() => {
|
|
136
137
|
let unmounted = false;
|
|
138
|
+
let currentBinding = null;
|
|
137
139
|
if (vdomImportSource) {
|
|
138
140
|
loadImportSource(vdomImportSource, client).then((bind) => {
|
|
139
141
|
if (!unmounted && mountPoint.current) {
|
|
140
|
-
|
|
142
|
+
currentBinding = bind(mountPoint.current);
|
|
143
|
+
bindingSource.current = vdomImportSourceJsonString;
|
|
144
|
+
setBinding(currentBinding);
|
|
141
145
|
}
|
|
142
146
|
});
|
|
143
147
|
}
|
|
144
148
|
return () => {
|
|
145
149
|
unmounted = true;
|
|
146
|
-
if (
|
|
150
|
+
if (currentBinding &&
|
|
147
151
|
vdomImportSource &&
|
|
148
152
|
!vdomImportSource.unmountBeforeUpdate) {
|
|
149
|
-
|
|
153
|
+
currentBinding.unmount();
|
|
150
154
|
}
|
|
151
155
|
};
|
|
152
156
|
}, [client, vdomImportSourceJsonString, setBinding, mountPoint.current]);
|
|
@@ -155,6 +159,9 @@ function useImportSource(model) {
|
|
|
155
159
|
if (!(binding && vdomImportSource)) {
|
|
156
160
|
return;
|
|
157
161
|
}
|
|
162
|
+
if (bindingSource.current !== vdomImportSourceJsonString) {
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
158
165
|
binding.render(model);
|
|
159
166
|
if (vdomImportSource.unmountBeforeUpdate) {
|
|
160
167
|
return binding.unmount;
|
package/dist/components.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,IAAI,cAAc,EAAE,MAAM,cAAc,CAAC;AAErD,OAAO,
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,IAAI,cAAc,EAAE,MAAM,cAAc,CAAC;AAErD,OAAO,EACL,aAAa,EACb,aAAa,EACb,QAAQ,GAGT,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,UAAU,EAAE,S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ChB,CAAC,gBAAgB,CAAC,mBAAmB,EACrC,CAAC;gBACD,cAAc,CAAC,OAAO,EAAE,CAAC;YAC3B,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,MAAM,EAAE,0BAA0B,EAAE,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;IAEzE,gEAAgE;IAChE,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,CAAC,OAAO,IAAI,gBAAgB,CAAC,EAAE,CAAC;YACnC,OAAO;QACT,CAAC;QACD,IAAI,aAAa,CAAC,OAAO,KAAK,0BAA0B,EAAE,CAAC;YACzD,OAAO;QACT,CAAC;QACD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACtB,IAAI,gBAAgB,CAAC,mBAAmB,EAAE,CAAC;YACzC,OAAO,OAAO,CAAC,OAAO,CAAC;QACzB,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,gBAAgB,GAAG;IACvB,KAAK,EAAE,gBAAgB;IACvB,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,gBAAgB;IACxB,QAAQ,EAAE,gBAAgB;CAC3B,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ export * from "./vdom";
|
|
|
6
6
|
export * from "./websocket";
|
|
7
7
|
export { default as React } from "preact/compat";
|
|
8
8
|
export { default as ReactDOM } from "preact/compat";
|
|
9
|
+
export { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
9
10
|
export * as preact from "preact";
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -6,5 +6,6 @@ export * from "./vdom";
|
|
|
6
6
|
export * from "./websocket";
|
|
7
7
|
export { default as React } from "preact/compat";
|
|
8
8
|
export { default as ReactDOM } from "preact/compat";
|
|
9
|
+
export { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
9
10
|
export * as preact from "preact";
|
|
10
11
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC"}
|
package/dist/types.d.ts
CHANGED
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAI5C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,GAAG,EAAE,GAAG,CAAC;IACT,YAAY,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,SAAS,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;IAChD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CA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,IAAI,EAAE,WAAW,KACd,mBAAmB,GAAG,IAAI,CAAC;AAEhC,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACrC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAIF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAC;AAClD,MAAM,MAAM,eAAe,GAAG,kBAAkB,CAAC;AACjD,MAAM,MAAM,OAAO,GAAG,eAAe,GAAG,eAAe,CAAC;AAIxD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;OAQG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IAErE;;;;OAIG;IACH,WAAW,CAAC,OAAO,EAAE,GAAG,GAAG,IAAI,CAAC;IAEhC;;;;OAIG;IACH,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CACxD"}
|
package/dist/vdom.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ReactPyClientInterface } from "./types";
|
|
2
1
|
import type { ReactPyVdom, ReactPyVdomImportSource, BindImportSource } from "./types";
|
|
3
|
-
|
|
2
|
+
import type { ReactPyClient } from "./client";
|
|
3
|
+
export declare function loadImportSource(vdomImportSource: ReactPyVdomImportSource, client: ReactPyClient): Promise<BindImportSource>;
|
|
4
4
|
export declare function createChildren<Child>(model: ReactPyVdom, createChild: (child: ReactPyVdom) => Child): (Child | string)[];
|
|
5
|
-
export declare function createAttributes(model: ReactPyVdom, client:
|
|
5
|
+
export declare function createAttributes(model: ReactPyVdom, client: ReactPyClient): {
|
|
6
6
|
[key: string]: any;
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=vdom.d.ts.map
|
package/dist/vdom.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vdom.d.ts","sourceRoot":"","sources":["../src/vdom.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vdom.d.ts","sourceRoot":"","sources":["../src/vdom.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,uBAAuB,EAGvB,gBAAgB,EAGjB,MAAM,SAAS,CAAC;AAGjB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,wBAAsB,gBAAgB,CACpC,gBAAgB,EAAE,uBAAuB,EACzC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,gBAAgB,CAAC,CA2C3B;AAsGD,wBAAgB,cAAc,CAAC,KAAK,EAClC,KAAK,EAAE,WAAW,EAClB,WAAW,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,KAAK,GACzC,CAAC,KAAK,GAAG,MAAM,CAAC,EAAE,CAapB;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,aAAa,GACpB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAmBxB"}
|
package/dist/vdom.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import eventToObject from "event-to-object";
|
|
2
|
+
import { Fragment } from "preact";
|
|
3
|
+
import { infer_bind_from_environment } from "./bind";
|
|
2
4
|
import log from "./logger";
|
|
3
5
|
export async function loadImportSource(vdomImportSource, client) {
|
|
4
6
|
let module;
|
|
@@ -8,11 +10,12 @@ export async function loadImportSource(vdomImportSource, client) {
|
|
|
8
10
|
else {
|
|
9
11
|
module = await client.loadModule(vdomImportSource.source);
|
|
10
12
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
let { bind } = module;
|
|
14
|
+
if (typeof bind !== "function") {
|
|
15
|
+
bind = await infer_bind_from_environment();
|
|
13
16
|
}
|
|
14
17
|
return (node) => {
|
|
15
|
-
const binding =
|
|
18
|
+
const binding = bind(node, {
|
|
16
19
|
sendMessage: client.sendMessage,
|
|
17
20
|
onMessage: client.onMessage,
|
|
18
21
|
});
|
|
@@ -38,11 +41,15 @@ function createImportSourceElement(props) {
|
|
|
38
41
|
let type;
|
|
39
42
|
if (props.model.importSource) {
|
|
40
43
|
if (!isImportSourceEqual(props.currentImportSource, props.model.importSource)) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
return props.binding.create("reactpy-child", {
|
|
45
|
+
ref: (node) => {
|
|
46
|
+
if (node) {
|
|
47
|
+
node.client = props.client;
|
|
48
|
+
node.model = props.model;
|
|
49
|
+
node.requestUpdate();
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
});
|
|
46
53
|
}
|
|
47
54
|
else {
|
|
48
55
|
type = getComponentFromModule(props.module, props.model.tagName, props.model.importSource);
|
|
@@ -53,7 +60,7 @@ function createImportSourceElement(props) {
|
|
|
53
60
|
}
|
|
54
61
|
}
|
|
55
62
|
else {
|
|
56
|
-
type = props.model.tagName;
|
|
63
|
+
type = props.model.tagName === "" ? Fragment : props.model.tagName;
|
|
57
64
|
}
|
|
58
65
|
return props.binding.create(type, createAttributes(props.model, props.client), createChildren(props.model, (child) => createImportSourceElement({
|
|
59
66
|
...props,
|
|
@@ -171,4 +178,77 @@ function createInlineJavaScript(name, inlineJavaScript) {
|
|
|
171
178
|
wrappedExecutable.isHandler = false;
|
|
172
179
|
return [name, wrappedExecutable];
|
|
173
180
|
}
|
|
181
|
+
class ReactPyChild extends HTMLElement {
|
|
182
|
+
mountPoint;
|
|
183
|
+
binding = null;
|
|
184
|
+
_client = null;
|
|
185
|
+
_model = null;
|
|
186
|
+
currentImportSource = null;
|
|
187
|
+
constructor() {
|
|
188
|
+
super();
|
|
189
|
+
this.mountPoint = document.createElement("div");
|
|
190
|
+
this.mountPoint.style.display = "contents";
|
|
191
|
+
}
|
|
192
|
+
connectedCallback() {
|
|
193
|
+
this.appendChild(this.mountPoint);
|
|
194
|
+
}
|
|
195
|
+
set client(value) {
|
|
196
|
+
this._client = value;
|
|
197
|
+
}
|
|
198
|
+
set model(value) {
|
|
199
|
+
this._model = value;
|
|
200
|
+
}
|
|
201
|
+
requestUpdate() {
|
|
202
|
+
this.update();
|
|
203
|
+
}
|
|
204
|
+
async update() {
|
|
205
|
+
if (!this._client || !this._model || !this._model.importSource) {
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
const newImportSource = this._model.importSource;
|
|
209
|
+
if (!this.binding ||
|
|
210
|
+
!this.currentImportSource ||
|
|
211
|
+
!isImportSourceEqual(this.currentImportSource, newImportSource)) {
|
|
212
|
+
if (this.binding) {
|
|
213
|
+
this.binding.unmount();
|
|
214
|
+
this.binding = null;
|
|
215
|
+
}
|
|
216
|
+
this.currentImportSource = newImportSource;
|
|
217
|
+
try {
|
|
218
|
+
const bind = await loadImportSource(newImportSource, this._client);
|
|
219
|
+
if (this.isConnected &&
|
|
220
|
+
this.currentImportSource &&
|
|
221
|
+
isImportSourceEqual(this.currentImportSource, newImportSource)) {
|
|
222
|
+
const oldBinding = this.binding;
|
|
223
|
+
if (oldBinding) {
|
|
224
|
+
oldBinding.unmount();
|
|
225
|
+
}
|
|
226
|
+
this.binding = bind(this.mountPoint);
|
|
227
|
+
if (this.binding) {
|
|
228
|
+
this.binding.render(this._model);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
catch (error) {
|
|
233
|
+
console.error("Failed to load import source", error);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
if (this.binding) {
|
|
238
|
+
this.binding.render(this._model);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
disconnectedCallback() {
|
|
243
|
+
if (this.binding) {
|
|
244
|
+
this.binding.unmount();
|
|
245
|
+
this.binding = null;
|
|
246
|
+
this.currentImportSource = null;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
if (typeof customElements !== "undefined" &&
|
|
251
|
+
!customElements.get("reactpy-child")) {
|
|
252
|
+
customElements.define("reactpy-child", ReactPyChild);
|
|
253
|
+
}
|
|
174
254
|
//# sourceMappingURL=vdom.js.map
|
package/dist/vdom.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vdom.js","sourceRoot":"","sources":["../src/vdom.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vdom.js","sourceRoot":"","sources":["../src/vdom.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAUlC,OAAO,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,GAAG,MAAM,UAAU,CAAC;AAG3B,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,gBAAyC,EACzC,MAAqB;IAErB,IAAI,MAAqB,CAAC;IAC1B,IAAI,gBAAgB,CAAC,UAAU,KAAK,KAAK,EAAE,CAAC;QAC1C,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;SAAM,CAAC;QACN,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC5D,CAAC;IAED,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IACtB,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE,C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
|
"preact": "^10.27.2",
|
|
9
|
-
"event-to-object": "
|
|
9
|
+
"event-to-object": "2.0.0"
|
|
10
10
|
},
|
|
11
11
|
"description": "A client for ReactPy implemented in React",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"src",
|
|
15
|
+
"LICENSE"
|
|
16
|
+
],
|
|
12
17
|
"devDependencies": {
|
|
13
18
|
"@types/json-pointer": "^1.0.34",
|
|
14
19
|
"typescript": "^5.9.3"
|
|
@@ -31,5 +36,5 @@
|
|
|
31
36
|
"checkTypes": "tsc --noEmit"
|
|
32
37
|
},
|
|
33
38
|
"type": "module",
|
|
34
|
-
"version": "1.0.
|
|
39
|
+
"version": "1.0.3"
|
|
35
40
|
}
|
package/src/bind.tsx
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as preact from "preact";
|
|
2
|
+
|
|
3
|
+
export async function infer_bind_from_environment() {
|
|
4
|
+
try {
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
const React = await import("react");
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
const ReactDOM = await import("react-dom/client");
|
|
9
|
+
return (node: HTMLElement) => reactjs_bind(node, React, ReactDOM);
|
|
10
|
+
} catch {
|
|
11
|
+
console.error(
|
|
12
|
+
"Unknown error occurred: 'react' is missing within this ReactPy environment! \
|
|
13
|
+
Your JavaScript components may not work as expected!",
|
|
14
|
+
);
|
|
15
|
+
return (node: HTMLElement) => local_preact_bind(node);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function local_preact_bind(node: HTMLElement) {
|
|
20
|
+
return {
|
|
21
|
+
create: (type: any, props: any, children?: any[]) =>
|
|
22
|
+
preact.createElement(type, props, ...(children || [])),
|
|
23
|
+
render: (element: any) => {
|
|
24
|
+
preact.render(element, node);
|
|
25
|
+
},
|
|
26
|
+
unmount: () => preact.render(null, node),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const roots = new WeakMap<HTMLElement, any>();
|
|
31
|
+
|
|
32
|
+
function reactjs_bind(node: HTMLElement, React: any, ReactDOM: any) {
|
|
33
|
+
let root: any = null;
|
|
34
|
+
return {
|
|
35
|
+
create: (type: any, props: any, children?: any[]) =>
|
|
36
|
+
React.createElement(type, props, ...(children || [])),
|
|
37
|
+
render: (element: any) => {
|
|
38
|
+
if (!root) {
|
|
39
|
+
if (!roots.get(node)) {
|
|
40
|
+
root = ReactDOM.createRoot(node);
|
|
41
|
+
roots.set(node, root);
|
|
42
|
+
} else {
|
|
43
|
+
root = roots.get(node);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
root.render(element);
|
|
48
|
+
},
|
|
49
|
+
unmount: () => {
|
|
50
|
+
if (root) {
|
|
51
|
+
root.unmount();
|
|
52
|
+
if (roots.get(node) === root) {
|
|
53
|
+
roots.delete(node);
|
|
54
|
+
}
|
|
55
|
+
root = null;
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
}
|
package/src/components.tsx
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import { set as setJsonPointer } from "json-pointer";
|
|
2
|
-
import type {
|
|
3
|
-
import {
|
|
2
|
+
import type { MutableRefObject } from "preact/compat";
|
|
3
|
+
import {
|
|
4
|
+
createContext,
|
|
5
|
+
createElement,
|
|
6
|
+
Fragment,
|
|
7
|
+
type JSX,
|
|
8
|
+
type TargetedEvent,
|
|
9
|
+
} from "preact";
|
|
4
10
|
import { useContext, useEffect, useRef, useState } from "preact/hooks";
|
|
5
11
|
import type {
|
|
6
12
|
ImportSourceBinding,
|
|
7
13
|
ReactPyComponent,
|
|
8
14
|
ReactPyVdom,
|
|
9
|
-
ReactPyClientInterface,
|
|
10
15
|
} from "./types";
|
|
11
16
|
import { createAttributes, createChildren, loadImportSource } from "./vdom";
|
|
17
|
+
import type { ReactPyClient } from "./client";
|
|
12
18
|
|
|
13
|
-
const ClientContext = createContext<
|
|
19
|
+
const ClientContext = createContext<ReactPyClient>(null as any);
|
|
14
20
|
|
|
15
|
-
export function Layout(props: { client:
|
|
21
|
+
export function Layout(props: { client: ReactPyClient }): JSX.Element {
|
|
16
22
|
const currentModel: ReactPyVdom = useState({ tagName: "" })[0];
|
|
17
23
|
const forceUpdate = useForceUpdate();
|
|
18
24
|
|
|
@@ -67,7 +73,7 @@ function StandardElement({ model }: { model: ReactPyVdom }) {
|
|
|
67
73
|
model.tagName === "" ? Fragment : model.tagName,
|
|
68
74
|
createAttributes(model, client),
|
|
69
75
|
...createChildren(model, (child) => {
|
|
70
|
-
return <Element model={child} key={child.key} />;
|
|
76
|
+
return <Element model={child} key={child.attributes?.key} />;
|
|
71
77
|
}),
|
|
72
78
|
);
|
|
73
79
|
}
|
|
@@ -82,7 +88,7 @@ function UserInputElement({ model }: { model: ReactPyVdom }): JSX.Element {
|
|
|
82
88
|
|
|
83
89
|
const givenOnChange = props.onChange;
|
|
84
90
|
if (typeof givenOnChange === "function") {
|
|
85
|
-
props.onChange = (event:
|
|
91
|
+
props.onChange = (event: TargetedEvent<any>) => {
|
|
86
92
|
// immediately update the value to give the user feedback
|
|
87
93
|
if (event.target) {
|
|
88
94
|
setValue((event.target as HTMLInputElement).value);
|
|
@@ -100,7 +106,7 @@ function UserInputElement({ model }: { model: ReactPyVdom }): JSX.Element {
|
|
|
100
106
|
// overwrite
|
|
101
107
|
{ ...props, value },
|
|
102
108
|
...createChildren(model, (child) => (
|
|
103
|
-
<Element model={child} key={child.key} />
|
|
109
|
+
<Element model={child} key={child.attributes?.key} />
|
|
104
110
|
)),
|
|
105
111
|
);
|
|
106
112
|
}
|
|
@@ -135,7 +141,7 @@ function ScriptElement({ model }: { model: ReactPyVdom }) {
|
|
|
135
141
|
return () => {
|
|
136
142
|
ref.current?.removeChild(scriptElement);
|
|
137
143
|
};
|
|
138
|
-
}, [model.key]);
|
|
144
|
+
}, [model.attributes?.key]);
|
|
139
145
|
|
|
140
146
|
return <div ref={ref} />;
|
|
141
147
|
}
|
|
@@ -175,14 +181,18 @@ function useImportSource(model: ReactPyVdom): MutableRefObject<any> {
|
|
|
175
181
|
const mountPoint = useRef<HTMLElement>(null);
|
|
176
182
|
const client = useContext(ClientContext);
|
|
177
183
|
const [binding, setBinding] = useState<ImportSourceBinding | null>(null);
|
|
184
|
+
const bindingSource = useRef<string | null>(null);
|
|
178
185
|
|
|
179
186
|
useEffect(() => {
|
|
180
187
|
let unmounted = false;
|
|
188
|
+
let currentBinding: ImportSourceBinding | null = null;
|
|
181
189
|
|
|
182
190
|
if (vdomImportSource) {
|
|
183
191
|
loadImportSource(vdomImportSource, client).then((bind) => {
|
|
184
192
|
if (!unmounted && mountPoint.current) {
|
|
185
|
-
|
|
193
|
+
currentBinding = bind(mountPoint.current);
|
|
194
|
+
bindingSource.current = vdomImportSourceJsonString;
|
|
195
|
+
setBinding(currentBinding);
|
|
186
196
|
}
|
|
187
197
|
});
|
|
188
198
|
}
|
|
@@ -190,11 +200,11 @@ function useImportSource(model: ReactPyVdom): MutableRefObject<any> {
|
|
|
190
200
|
return () => {
|
|
191
201
|
unmounted = true;
|
|
192
202
|
if (
|
|
193
|
-
|
|
203
|
+
currentBinding &&
|
|
194
204
|
vdomImportSource &&
|
|
195
205
|
!vdomImportSource.unmountBeforeUpdate
|
|
196
206
|
) {
|
|
197
|
-
|
|
207
|
+
currentBinding.unmount();
|
|
198
208
|
}
|
|
199
209
|
};
|
|
200
210
|
}, [client, vdomImportSourceJsonString, setBinding, mountPoint.current]);
|
|
@@ -204,6 +214,9 @@ function useImportSource(model: ReactPyVdom): MutableRefObject<any> {
|
|
|
204
214
|
if (!(binding && vdomImportSource)) {
|
|
205
215
|
return;
|
|
206
216
|
}
|
|
217
|
+
if (bindingSource.current !== vdomImportSourceJsonString) {
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
207
220
|
binding.render(model);
|
|
208
221
|
if (vdomImportSource.unmountBeforeUpdate) {
|
|
209
222
|
return binding.unmount;
|
package/src/index.ts
CHANGED
package/src/types.ts
CHANGED
package/src/vdom.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ReactPyClientInterface } from "./types";
|
|
2
1
|
import eventToObject from "event-to-object";
|
|
2
|
+
import { Fragment } from "preact";
|
|
3
3
|
import type {
|
|
4
4
|
ReactPyVdom,
|
|
5
5
|
ReactPyVdomImportSource,
|
|
@@ -7,12 +7,15 @@ import type {
|
|
|
7
7
|
ReactPyModule,
|
|
8
8
|
BindImportSource,
|
|
9
9
|
ReactPyModuleBinding,
|
|
10
|
+
ImportSourceBinding,
|
|
10
11
|
} from "./types";
|
|
12
|
+
import { infer_bind_from_environment } from "./bind";
|
|
11
13
|
import log from "./logger";
|
|
14
|
+
import type { ReactPyClient } from "./client";
|
|
12
15
|
|
|
13
16
|
export async function loadImportSource(
|
|
14
17
|
vdomImportSource: ReactPyVdomImportSource,
|
|
15
|
-
client:
|
|
18
|
+
client: ReactPyClient,
|
|
16
19
|
): Promise<BindImportSource> {
|
|
17
20
|
let module: ReactPyModule;
|
|
18
21
|
if (vdomImportSource.sourceType === "URL") {
|
|
@@ -20,14 +23,14 @@ export async function loadImportSource(
|
|
|
20
23
|
} else {
|
|
21
24
|
module = await client.loadModule(vdomImportSource.source);
|
|
22
25
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
);
|
|
26
|
+
|
|
27
|
+
let { bind } = module;
|
|
28
|
+
if (typeof bind !== "function") {
|
|
29
|
+
bind = await infer_bind_from_environment();
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
return (node: HTMLElement) => {
|
|
30
|
-
const binding =
|
|
33
|
+
const binding = bind(node, {
|
|
31
34
|
sendMessage: client.sendMessage,
|
|
32
35
|
onMessage: client.onMessage,
|
|
33
36
|
});
|
|
@@ -59,7 +62,7 @@ export async function loadImportSource(
|
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
function createImportSourceElement(props: {
|
|
62
|
-
client:
|
|
65
|
+
client: ReactPyClient;
|
|
63
66
|
module: ReactPyModule;
|
|
64
67
|
binding: ReactPyModuleBinding;
|
|
65
68
|
model: ReactPyVdom;
|
|
@@ -70,13 +73,15 @@ function createImportSourceElement(props: {
|
|
|
70
73
|
if (
|
|
71
74
|
!isImportSourceEqual(props.currentImportSource, props.model.importSource)
|
|
72
75
|
) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
return props.binding.create("reactpy-child", {
|
|
77
|
+
ref: (node: ReactPyChild | null) => {
|
|
78
|
+
if (node) {
|
|
79
|
+
node.client = props.client;
|
|
80
|
+
node.model = props.model;
|
|
81
|
+
node.requestUpdate();
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
});
|
|
80
85
|
} else {
|
|
81
86
|
type = getComponentFromModule(
|
|
82
87
|
props.module,
|
|
@@ -89,7 +94,7 @@ function createImportSourceElement(props: {
|
|
|
89
94
|
}
|
|
90
95
|
}
|
|
91
96
|
} else {
|
|
92
|
-
type = props.model.tagName;
|
|
97
|
+
type = props.model.tagName === "" ? Fragment : props.model.tagName;
|
|
93
98
|
}
|
|
94
99
|
return props.binding.create(
|
|
95
100
|
type,
|
|
@@ -176,7 +181,7 @@ export function createChildren<Child>(
|
|
|
176
181
|
|
|
177
182
|
export function createAttributes(
|
|
178
183
|
model: ReactPyVdom,
|
|
179
|
-
client:
|
|
184
|
+
client: ReactPyClient,
|
|
180
185
|
): { [key: string]: any } {
|
|
181
186
|
return Object.fromEntries(
|
|
182
187
|
Object.entries({
|
|
@@ -199,7 +204,7 @@ export function createAttributes(
|
|
|
199
204
|
}
|
|
200
205
|
|
|
201
206
|
function createEventHandler(
|
|
202
|
-
client:
|
|
207
|
+
client: ReactPyClient,
|
|
203
208
|
name: string,
|
|
204
209
|
{ target, preventDefault, stopPropagation }: ReactPyVdomEventHandler,
|
|
205
210
|
): [string, () => void] {
|
|
@@ -254,3 +259,93 @@ function createInlineJavaScript(
|
|
|
254
259
|
wrappedExecutable.isHandler = false;
|
|
255
260
|
return [name, wrappedExecutable];
|
|
256
261
|
}
|
|
262
|
+
|
|
263
|
+
class ReactPyChild extends HTMLElement {
|
|
264
|
+
mountPoint: HTMLDivElement;
|
|
265
|
+
binding: ImportSourceBinding | null = null;
|
|
266
|
+
_client: ReactPyClient | null = null;
|
|
267
|
+
_model: ReactPyVdom | null = null;
|
|
268
|
+
currentImportSource: ReactPyVdomImportSource | null = null;
|
|
269
|
+
|
|
270
|
+
constructor() {
|
|
271
|
+
super();
|
|
272
|
+
this.mountPoint = document.createElement("div");
|
|
273
|
+
this.mountPoint.style.display = "contents";
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
connectedCallback() {
|
|
277
|
+
this.appendChild(this.mountPoint);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
set client(value: ReactPyClient) {
|
|
281
|
+
this._client = value;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
set model(value: ReactPyVdom) {
|
|
285
|
+
this._model = value;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
requestUpdate() {
|
|
289
|
+
this.update();
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
async update() {
|
|
293
|
+
if (!this._client || !this._model || !this._model.importSource) {
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
const newImportSource = this._model.importSource;
|
|
298
|
+
|
|
299
|
+
if (
|
|
300
|
+
!this.binding ||
|
|
301
|
+
!this.currentImportSource ||
|
|
302
|
+
!isImportSourceEqual(this.currentImportSource, newImportSource)
|
|
303
|
+
) {
|
|
304
|
+
if (this.binding) {
|
|
305
|
+
this.binding.unmount();
|
|
306
|
+
this.binding = null;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
this.currentImportSource = newImportSource;
|
|
310
|
+
|
|
311
|
+
try {
|
|
312
|
+
const bind = await loadImportSource(newImportSource, this._client);
|
|
313
|
+
if (
|
|
314
|
+
this.isConnected &&
|
|
315
|
+
this.currentImportSource &&
|
|
316
|
+
isImportSourceEqual(this.currentImportSource, newImportSource)
|
|
317
|
+
) {
|
|
318
|
+
const oldBinding = this.binding as ImportSourceBinding | null;
|
|
319
|
+
if (oldBinding) {
|
|
320
|
+
oldBinding.unmount();
|
|
321
|
+
}
|
|
322
|
+
this.binding = bind(this.mountPoint);
|
|
323
|
+
if (this.binding) {
|
|
324
|
+
this.binding.render(this._model);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
} catch (error) {
|
|
328
|
+
console.error("Failed to load import source", error);
|
|
329
|
+
}
|
|
330
|
+
} else {
|
|
331
|
+
if (this.binding) {
|
|
332
|
+
this.binding.render(this._model);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
disconnectedCallback() {
|
|
338
|
+
if (this.binding) {
|
|
339
|
+
this.binding.unmount();
|
|
340
|
+
this.binding = null;
|
|
341
|
+
this.currentImportSource = null;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
if (
|
|
347
|
+
typeof customElements !== "undefined" &&
|
|
348
|
+
!customElements.get("reactpy-child")
|
|
349
|
+
) {
|
|
350
|
+
customElements.define("reactpy-child", ReactPyChild);
|
|
351
|
+
}
|
package/tsconfig.json
DELETED
package/tsconfig.tsbuildinfo
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/typescript/lib/lib.es2024.d.ts","../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../node_modules/typescript/lib/lib.es2024.object.d.ts","../../../node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2024.string.d.ts","../../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/typescript/lib/lib.esnext.float16.d.ts","../../../node_modules/typescript/lib/lib.esnext.error.d.ts","../../../node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/preact/src/jsx.d.ts","../../../node_modules/preact/src/dom.d.ts","../../../node_modules/preact/src/index.d.ts","../../../node_modules/preact/jsx-runtime/src/index.d.ts","./src/logger.ts","./src/types.ts","./src/websocket.ts","./src/client.ts","../../../node_modules/@types/json-pointer/index.d.ts","../../../node_modules/preact/hooks/src/index.d.ts","../../../node_modules/preact/compat/src/suspense.d.ts","../../../node_modules/preact/compat/src/suspense-list.d.ts","../../../node_modules/preact/compat/src/index.d.ts","../../event-to-object/dist/index.d.ts","./src/vdom.tsx","./src/components.tsx","./src/mount.tsx","./src/index.ts","../../../node_modules/@types/estree/index.d.ts","../../../node_modules/@types/json-schema/index.d.ts","../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/undici-types/utility.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/h2c-client.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-call-history.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/cache-interceptor.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/sea.d.ts","../../../node_modules/@types/node/sqlite.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/index.d.ts"],"fileIdsList":[[105,149],[105,146,149],[105,148,149],[149],[105,149,154,184],[105,149,150,155,161,162,169,181,192],[105,149,150,151,161,169],[105,149,152,193],[105,149,153,154,162,170],[105,149,154,181,189],[105,149,155,157,161,169],[105,148,149,156],[105,149,157,158],[105,149,159,161],[105,148,149,161],[105,149,161,162,163,181,192],[105,149,161,162,163,176,181,184],[105,144,149],[105,144,149,157,161,164,169,181,192],[105,149,161,162,164,165,169,181,189,192],[105,149,164,166,181,189,192],[103,104,105,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198],[105,149,161,167],[105,149,168,192],[105,149,157,161,169,181],[105,149,170],[105,149,171],[105,148,149,172],[105,146,147,148,149,150,151,152,153,154,155,156,157,158,159,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198],[105,149,174],[105,149,175],[105,149,161,176,177],[105,149,176,178,193,195],[105,149,161,181,182,184],[105,149,183,184],[105,149,181,182],[105,149,184],[105,149,185],[105,146,149,181],[105,149,161,187,188],[105,149,187,188],[105,149,154,169,181,189],[105,149,190],[105,149,169,191],[105,149,164,175,192],[105,149,154,193],[105,149,181,194],[105,149,168,195],[105,149,196],[105,149,161,163,172,181,184,192,194,195,197],[105,149,181,198],[83,85,92,93,94,105,149],[85,105,149],[83,85,105,149],[83,84,105,149],[105,114,118,149,192],[105,114,149,181,192],[105,149,181],[105,109,149],[105,111,114,149,192],[105,149,169,189],[105,149,199],[105,109,149,199],[105,111,114,149,169,192],[105,106,107,108,110,113,149,161,181,192],[105,114,122,149],[105,107,112,149],[105,114,138,139,149],[105,107,110,114,149,184,192,199],[105,114,149],[105,106,149],[105,109,110,111,112,113,114,115,116,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,149],[105,114,131,134,149,157],[105,114,122,123,124,149],[105,112,114,123,125,149],[105,113,149],[105,107,109,114,149],[105,114,118,123,125,149],[105,118,149],[105,112,114,117,149,192],[105,107,111,114,122,149],[105,114,131,149],[105,109,114,138,149,184,197,199],[86,87,88,89,105,149],[85,86,88,91,92,95,97,105,149],[85,86,88,89,90,95,97,98,99,105,149],[86,105,149],[85,86,88,90,98,105,149],[85,86,105,149],[86,87,88,96,105,149],[86,87,88,105,149]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"2ab096661c711e4a81cc464fa1e6feb929a54f5340b46b0a07ac6bbf857471f0","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"73f78680d4c08509933daf80947902f6ff41b6230f94dd002ae372620adb0f60","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5239f5c01bcfa9cd32f37c496cf19c61d69d37e48be9de612b541aac915805b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5f8d1a3387e2ec1edc52954d28d55c1940f69f08b76f0eeca14221ab006f1ac","impliedFormat":1},{"version":"6d6fdf666d57a588fedd91b94936f549ed83b8d5b0f9afa3bbcd67beba9f008a","impliedFormat":1},{"version":"3ce73a1f2596b816292b2a672fc11d164122b00f378c4d99119d1c2dea46e0a5","impliedFormat":1},{"version":"000776b76210c3b5afe490fbc24891a6b60a2b4fa64b0b36e214bdc05395a0c4","impliedFormat":1},{"version":"217475eb2b9ad0680f183b358bb5a89f1f760c9d20ce21114d58597e8ea567ef","signature":"bcb9d666a902c79a6da508049a74c63461ff597f0c9783f95c075fd085ebfc5e"},{"version":"b74b984f2a97ba4658cd36b89194c32ff7ab32a9705e32f3ef9e66801b237d78","signature":"68816742018ff5a9946776758f49a7b94bef5158162d329efdd5155c4a7f0100"},{"version":"a9e2315457baeb00f16d263f02ec639bd70f0c14fbf2a62d1ec0ed4f41017766","signature":"5374de405620cf967d4d1b6e3e2a45b652020c3ea5e5a75d3ae0b8a333c468b1"},{"version":"325c8cb2ecbf27a070b0e554abdc725cd7b18f8628fed99fbb01f52b062f4347","signature":"ca85ccc02a80cac5e666f485aa0fc95d072e3696cf829bac2e235b155414327b"},{"version":"5814430b62f683c8ac8f4110fbfa265ed388d0d0de449c782e6a2d658a6f1e94","impliedFormat":1},{"version":"7687e1c892178a4674e162427319e47fb881ac1ae5fa4c50dcc3423870dba636","impliedFormat":1},{"version":"f75efd5983e3da39521471473ba226e3b3240b402f9c8fbc0221a965839d19a6","impliedFormat":1},{"version":"8d44d1057bca7ac91f5ba3f10fc9b4263dc8bdfa29856836f6635df62fc1e77f","impliedFormat":1},{"version":"6c62f35e624969900c14648c689f119f27069600da16022b4a5de40b35ef5379","impliedFormat":1},"e4768229abf8714c1bee3d8929c29a80d3b1fc3d8296e24c4f1abd42fb7438b3",{"version":"08325d1f8bc6d4e96bc30095ff4dbba93e5ca6a8f82339d66bd8569749cafbf7","signature":"1a508b61026b6931fa3b639372552db2e1783e5e19803bfdc4c84a6887120acf"},{"version":"f17a7b02bf44ee1a4fd3ce1e00f77e3e6c4e18f11c4031e89e689f6ae1e977ae","signature":"bba766c0c50272fe07c8b5c7412e527f49c82af3e2abf8f65065a90e21360983"},{"version":"dbd294c1e991b1e05212bb15e2fd29c1b9e6e20327806eb02135d97767642e12","signature":"6fc61f752f69bdf0a5ef963f7d9c3af30289e0542666415d58c6ddc1b69bd9e7"},"fc5bcb949421fb713bf029fd2a96c4aa6d885a49bbdccf41d18e108d719453f7",{"version":"151ff381ef9ff8da2da9b9663ebf657eac35c4c9a19183420c05728f31a6761d","impliedFormat":1},{"version":"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0671b50bb99cc7ad46e9c68fa0e7f15ba4bc898b59c31a17ea4611fab5095da","affectsGlobalScope":true,"impliedFormat":1},{"version":"d802f0e6b5188646d307f070d83512e8eb94651858de8a82d1e47f60fb6da4e2","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"487b694c3de27ddf4ad107d4007ad304d29effccf9800c8ae23c2093638d906a","impliedFormat":1},{"version":"e525f9e67f5ddba7b5548430211cae2479070b70ef1fd93550c96c10529457bd","impliedFormat":1},{"version":"ccf4552357ce3c159ef75f0f0114e80401702228f1898bdc9402214c9499e8c0","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"17fe9131bec653b07b0a1a8b99a830216e3e43fe0ea2605be318dc31777c8bbf","impliedFormat":1},{"version":"3c8e93af4d6ce21eb4c8d005ad6dc02e7b5e6781f429d52a35290210f495a674","impliedFormat":1},{"version":"2c9875466123715464539bfd69bcaccb8ff6f3e217809428e0d7bd6323416d01","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"2472ef4c28971272a897fdb85d4155df022e1f5d9a474a526b8fc2ef598af94e","impliedFormat":1},{"version":"6c8e442ba33b07892169a14f7757321e49ab0f1032d676d321a1fdab8a67d40c","impliedFormat":1},{"version":"b41767d372275c154c7ea6c9d5449d9a741b8ce080f640155cc88ba1763e35b3","impliedFormat":1},{"version":"1cd673d367293fc5cb31cd7bf03d598eb368e4f31f39cf2b908abbaf120ab85a","impliedFormat":1},{"version":"19851a6596401ca52d42117108d35e87230fc21593df5c4d3da7108526b6111c","impliedFormat":1},{"version":"3825bf209f1662dfd039010a27747b73d0ef379f79970b1d05601ec8e8a4249f","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"40bfc70953be2617dc71979c14e9e99c5e65c940a4f1c9759ddb90b0f8ff6b1a","impliedFormat":1},{"version":"da52342062e70c77213e45107921100ba9f9b3a30dd019444cf349e5fb3470c4","impliedFormat":1},{"version":"e9ace91946385d29192766bf783b8460c7dbcbfc63284aa3c9cae6de5155c8bc","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"561c60d8bfe0fec2c08827d09ff039eca0c1f9b50ef231025e5a549655ed0298","impliedFormat":1},{"version":"1e30c045732e7db8f7a82cf90b516ebe693d2f499ce2250a977ec0d12e44a529","impliedFormat":1},{"version":"84b736594d8760f43400202859cda55607663090a43445a078963031d47e25e7","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"54c3e2371e3d016469ad959697fd257e5621e16296fa67082c2575d0bf8eced0","impliedFormat":1},{"version":"beb8233b2c220cfa0feea31fbe9218d89fa02faa81ef744be8dce5acb89bb1fd","impliedFormat":1},{"version":"78b29846349d4dfdd88bd6650cc5d2baaa67f2e89dc8a80c8e26ef7995386583","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"e38d4fdf79e1eadd92ed7844c331dbaa40f29f21541cfee4e1acff4db09cda33","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"7c10a32ae6f3962672e6869ee2c794e8055d8225ef35c91c0228e354b4e5d2d3","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"99f569b42ea7e7c5fe404b2848c0893f3e1a56e0547c1cd0f74d5dbb9a9de27e","impliedFormat":1},{"version":"f4b4faedc57701ae727d78ba4a83e466a6e3bdcbe40efbf913b17e860642897c","affectsGlobalScope":true,"impliedFormat":1},{"version":"2424a70c49eed193731493c5fcaac6f0ddcc5a31326b9a93e5c31b501f42949d","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"72c1f5e0a28e473026074817561d1bc9647909cf253c8d56c41d1df8d95b85f7","impliedFormat":1},{"version":"59c893bb05d8d6da5c6b85b6670f459a66f93215246a92b6345e78796b86a9a7","affectsGlobalScope":true,"impliedFormat":1},{"version":"938f94db8400d0b479626b9006245a833d50ce8337f391085fad4af540279567","impliedFormat":1},{"version":"c4e8e8031808b158cfb5ac5c4b38d4a26659aec4b57b6a7e2ba0a141439c208c","impliedFormat":1},{"version":"2c91d8366ff2506296191c26fd97cc1990bab3ee22576275d28b654a21261a44","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"12fb9c13f24845000d7bd9660d11587e27ef967cbd64bd9df19ae3e6aa9b52d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"289e9894a4668c61b5ffed09e196c1f0c2f87ca81efcaebdf6357cfb198dac14","impliedFormat":1},{"version":"25a1105595236f09f5bce42398be9f9ededc8d538c258579ab662d509aa3b98e","impliedFormat":1},{"version":"9de8df30f620738193bd68ee503dc76e5f47fc426fe971cfbd89c109fd90b32e","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"ad1cc0ed328f3f708771272021be61ab146b32ecf2b78f3224959ff1e2cd2a5c","impliedFormat":1},{"version":"71450bbc2d82821d24ca05699a533e72758964e9852062c53b30f31c36978ab8","affectsGlobalScope":true,"impliedFormat":1},{"version":"62f572306e0b173cc5dfc4c583471151f16ef3779cf27ab96922c92ec82a3bc8","affectsGlobalScope":true,"impliedFormat":1},{"version":"737c453548d197cd68e723e73d564d39f930c8183db4a9fa8f8f16f9c7ebd2cf","impliedFormat":1},{"version":"e64c11d651e1cba17954e0a6e1d7a3dcb5b3aa289ec0763177bf2ed05492c439","impliedFormat":1},{"version":"ecfb45485e692f3eb3d0aef6e460adeabf670cef2d07e361b2be20cecfd0046b","impliedFormat":1},{"version":"161f09445a8b4ba07f62ae54b27054e4234e7957062e34c6362300726dabd315","impliedFormat":1},{"version":"77fced47f495f4ff29bb49c52c605c5e73cd9b47d50080133783032769a9d8a6","impliedFormat":1},{"version":"e6057f9e7b0c64d4527afeeada89f313f96a53291705f069a9193c18880578cb","impliedFormat":1},{"version":"3cdbad1bb6929fd0220715d7da689c0b69df42c8239036ff75afe4f2232222ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"0f5cda0282e1d18198e2887387eb2f026372ebc4e11c4e4516fef8a19ee4d514","impliedFormat":1},{"version":"e99b0e71f07128fc32583e88ccd509a1aaa9524c290efb2f48c22f9bf8ba83b1","impliedFormat":1},{"version":"76957a6d92b94b9e2852cf527fea32ad2dc0ef50f67fe2b14bd027c9ceef2d86","impliedFormat":1},{"version":"237581f5ec4620a17e791d3bb79bad3af01e27a274dbee875ac9b0721a4fe97d","affectsGlobalScope":true,"impliedFormat":1},{"version":"a8a99a5e6ed33c4a951b67cc1fd5b64fd6ad719f5747845c165ca12f6c21ba16","affectsGlobalScope":true,"impliedFormat":1},{"version":"a58a15da4c5ba3df60c910a043281256fa52d36a0fcdef9b9100c646282e88dd","impliedFormat":1},{"version":"b36beffbf8acdc3ebc58c8bb4b75574b31a2169869c70fc03f82895b93950a12","impliedFormat":1},{"version":"de263f0089aefbfd73c89562fb7254a7468b1f33b61839aafc3f035d60766cb4","impliedFormat":1},{"version":"70b57b5529051497e9f6482b76d91c0dcbb103d9ead8a0549f5bab8f65e5d031","impliedFormat":1},{"version":"e6d81b1f7ab11dc1b1ad7ad29fcfad6904419b36baf55ed5e80df48d56ac3aff","impliedFormat":1},{"version":"1013eb2e2547ad8c100aca52ef9df8c3f209edee32bb387121bb3227f7c00088","impliedFormat":1},{"version":"b6b8e3736383a1d27e2592c484a940eeb37ec4808ba9e74dd57679b2453b5865","impliedFormat":1},{"version":"d6f36b683c59ac0d68a1d5ee906e578e2f5e9a285bca80ff95ce61cdc9ddcdeb","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"125d792ec6c0c0f657d758055c494301cc5fdb327d9d9d5960b3f129aff76093","impliedFormat":1},{"version":"27e4532aaaa1665d0dd19023321e4dc12a35a741d6b8e1ca3517fcc2544e0efe","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea713aa14a670b1ea0fbaaca4fd204e645f71ca7653a834a8ec07ee889c45de6","impliedFormat":1},{"version":"cd9c0ecbe36a3be0775bfc16ae30b95af2a4a1f10e7949ceab284c98750bcebd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2918b7c516051c30186a1055ebcdb3580522be7190f8a2fff4100ea714c7c366","affectsGlobalScope":true,"impliedFormat":1},{"version":"ae86f30d5d10e4f75ce8dcb6e1bd3a12ecec3d071a21e8f462c5c85c678efb41","impliedFormat":1},{"version":"982efeb2573605d4e6d5df4dc7e40846bda8b9e678e058fc99522ab6165c479e","impliedFormat":1},{"version":"e03460fe72b259f6d25ad029f085e4bedc3f90477da4401d8fbc1efa9793230e","impliedFormat":1},{"version":"4286a3a6619514fca656089aee160bb6f2e77f4dd53dc5a96b26a0b4fc778055","impliedFormat":1},{"version":"d67fc92a91171632fc74f413ce42ff1aa7fbcc5a85b127101f7ec446d2039a1f","affectsGlobalScope":true,"impliedFormat":1},{"version":"d40e4631100dbc067268bce96b07d7aff7f28a541b1bfb7ef791c64a696b3d33","affectsGlobalScope":true,"impliedFormat":1},{"version":"64bc5859f99559a3587c031ec6862c671f6fdd54e61d43d8ffd02a9422092677","impliedFormat":1},{"version":"42180b657831d1b8fead051698618b31da623fb71ff37f002cb9d932cfa775f1","impliedFormat":1},{"version":"4f98d6fb4fe7cbeaa04635c6eaa119d966285d4d39f0eb55b2654187b0b27446","impliedFormat":1},{"version":"e4c653466d0497d87fa9ffd00e59a95f33bc1c1722c3f5c84dab2e950c18da70","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6dcc3b933e864e91d4bea94274ad69854d5d2a1311a4b0e20408a57af19e95d","impliedFormat":1},{"version":"a51f786b9f3c297668f8f322a6c58f85d84948ef69ade32069d5d63ec917221c","impliedFormat":1}],"root":[[87,90],[97,100]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"jsx":4,"jsxImportSource":"preact","module":200,"noEmitOnError":true,"noUnusedLocals":true,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":99,"verbatimModuleSyntax":true},"referencedMap":[[101,1],[91,1],[102,1],[146,2],[147,2],[148,3],[105,4],[149,5],[150,6],[151,7],[103,1],[152,8],[153,9],[154,10],[155,11],[156,12],[157,13],[158,13],[160,1],[159,14],[161,15],[162,16],[163,17],[145,18],[104,1],[164,19],[165,20],[166,21],[199,22],[167,23],[168,24],[169,25],[170,26],[171,27],[172,28],[173,29],[174,30],[175,31],[176,32],[177,32],[178,33],[179,1],[180,1],[181,34],[183,35],[182,36],[184,37],[185,38],[186,39],[187,40],[188,41],[189,42],[190,43],[191,44],[192,45],[193,46],[194,47],[195,48],[196,49],[197,50],[198,51],[95,52],[94,53],[93,53],[92,53],[86,54],[84,53],[85,55],[83,53],[81,1],[82,1],[13,1],[14,1],[16,1],[15,1],[2,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[23,1],[24,1],[3,1],[25,1],[26,1],[4,1],[27,1],[31,1],[28,1],[29,1],[30,1],[32,1],[33,1],[34,1],[5,1],[35,1],[36,1],[37,1],[38,1],[6,1],[42,1],[39,1],[40,1],[41,1],[43,1],[7,1],[44,1],[49,1],[50,1],[45,1],[46,1],[47,1],[48,1],[8,1],[54,1],[51,1],[52,1],[53,1],[55,1],[9,1],[56,1],[57,1],[58,1],[60,1],[59,1],[61,1],[62,1],[10,1],[63,1],[64,1],[65,1],[11,1],[66,1],[67,1],[68,1],[69,1],[70,1],[1,1],[71,1],[72,1],[12,1],[76,1],[74,1],[79,1],[78,1],[73,1],[77,1],[75,1],[80,1],[122,56],[133,57],[120,56],[134,58],[143,59],[112,60],[111,61],[142,62],[137,63],[141,64],[114,65],[130,66],[113,67],[140,68],[109,69],[110,63],[115,70],[116,1],[121,60],[119,70],[107,71],[144,72],[135,73],[125,74],[124,70],[126,75],[128,76],[123,77],[127,78],[138,62],[117,79],[118,80],[129,81],[108,58],[132,82],[131,70],[136,1],[106,1],[139,83],[90,84],[98,85],[100,86],[87,87],[99,88],[88,89],[97,90],[89,91],[96,1]],"latestChangedDtsFile":"./dist/index.d.ts","version":"5.9.3"}
|