@vidact/runtime 0.2.0-beta.0 → 0.2.0-beta.5
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/CHANGELOG.md +52 -0
- package/README.md +1 -1
- package/dist/actions.d.ts +32 -30
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +251 -266
- package/dist/actions.js.map +1 -1
- package/dist/async.d.ts +20 -17
- package/dist/async.d.ts.map +1 -1
- package/dist/async.js +18 -17
- package/dist/async.js.map +1 -1
- package/dist/compiled/async-resource.d.ts +9 -6
- package/dist/compiled/async-resource.d.ts.map +1 -1
- package/dist/compiled/async-resource.js +69 -77
- package/dist/compiled/async-resource.js.map +1 -1
- package/dist/compiled/core.d.ts +136 -147
- package/dist/compiled/core.d.ts.map +1 -1
- package/dist/compiled/core.js +2672 -2985
- package/dist/compiled/core.js.map +1 -1
- package/dist/compiled/types.d.ts +44 -56
- package/dist/compiled/types.d.ts.map +1 -1
- package/dist/compiled/types.js +10 -6
- package/dist/compiled/types.js.map +1 -1
- package/dist/compiled/validation.d.ts +4 -1
- package/dist/compiled/validation.d.ts.map +1 -1
- package/dist/compiled/validation.js +17 -20
- package/dist/compiled/validation.js.map +1 -1
- package/dist/component-spread.d.ts +5 -3
- package/dist/component-spread.d.ts.map +1 -1
- package/dist/component-spread.js +49 -67
- package/dist/component-spread.js.map +1 -1
- package/dist/concurrent.d.ts +20 -18
- package/dist/concurrent.d.ts.map +1 -1
- package/dist/concurrent.js +191 -210
- package/dist/concurrent.js.map +1 -1
- package/dist/direct-dom.d.ts +17 -12
- package/dist/direct-dom.d.ts.map +1 -1
- package/dist/direct-dom.js +187 -221
- package/dist/direct-dom.js.map +1 -1
- package/dist/dom/attributes.d.ts +9 -6
- package/dist/dom/attributes.d.ts.map +1 -1
- package/dist/dom/attributes.js +65 -47
- package/dist/dom/attributes.js.map +1 -1
- package/dist/dom/events.d.ts +5 -2
- package/dist/dom/events.d.ts.map +1 -1
- package/dist/dom/events.js +53 -65
- package/dist/dom/events.js.map +1 -1
- package/dist/dom/forms.d.ts +9 -6
- package/dist/dom/forms.d.ts.map +1 -1
- package/dist/dom/forms.js +152 -198
- package/dist/dom/forms.js.map +1 -1
- package/dist/dom/intrinsic.d.ts +17 -15
- package/dist/dom/intrinsic.d.ts.map +1 -1
- package/dist/dom/intrinsic.js +48 -50
- package/dist/dom/intrinsic.js.map +1 -1
- package/dist/dom/namespace.d.ts +4 -1
- package/dist/dom/namespace.d.ts.map +1 -1
- package/dist/dom/namespace.js +25 -28
- package/dist/dom/namespace.js.map +1 -1
- package/dist/dom/namespaces.d.ts +11 -8
- package/dist/dom/namespaces.d.ts.map +1 -1
- package/dist/dom/namespaces.js +14 -12
- package/dist/dom/namespaces.js.map +1 -1
- package/dist/dom/properties.d.ts +18 -16
- package/dist/dom/properties.d.ts.map +1 -1
- package/dist/dom/properties.js +273 -296
- package/dist/dom/properties.js.map +1 -1
- package/dist/dom/style-properties.d.ts +4 -1
- package/dist/dom/style-properties.d.ts.map +1 -1
- package/dist/dom/style-properties.js +49 -45
- package/dist/dom/style-properties.js.map +1 -1
- package/dist/dom/styles.d.ts +5 -2
- package/dist/dom/styles.d.ts.map +1 -1
- package/dist/dom/styles.js +47 -67
- package/dist/dom/styles.js.map +1 -1
- package/dist/dom-forms.d.ts +4 -1
- package/dist/dom-forms.d.ts.map +1 -1
- package/dist/dom-forms.js +16 -13
- package/dist/dom-forms.js.map +1 -1
- package/dist/dom-styles.d.ts +4 -1
- package/dist/dom-styles.d.ts.map +1 -1
- package/dist/dom-styles.js +10 -7
- package/dist/dom-styles.js.map +1 -1
- package/dist/framework-hydrate.d.ts +20 -17
- package/dist/framework-hydrate.d.ts.map +1 -1
- package/dist/framework-hydrate.js +128 -146
- package/dist/framework-hydrate.js.map +1 -1
- package/dist/framework-protocol.d.ts +27 -25
- package/dist/framework-protocol.d.ts.map +1 -1
- package/dist/framework-protocol.js +173 -211
- package/dist/framework-protocol.js.map +1 -1
- package/dist/framework.d.ts +34 -32
- package/dist/framework.d.ts.map +1 -1
- package/dist/framework.js +74 -93
- package/dist/framework.js.map +1 -1
- package/dist/hydrate.d.ts +11 -8
- package/dist/hydrate.d.ts.map +1 -1
- package/dist/hydrate.js +13 -9
- package/dist/hydrate.js.map +1 -1
- package/dist/hydration-bridge.d.ts +70 -58
- package/dist/hydration-bridge.d.ts.map +1 -1
- package/dist/hydration-bridge.js +77 -66
- package/dist/hydration-bridge.js.map +1 -1
- package/dist/hydration.d.ts +54 -28
- package/dist/hydration.d.ts.map +1 -1
- package/dist/hydration.js +450 -463
- package/dist/hydration.js.map +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.js +11 -13
- package/dist/indexed-list.d.ts +8 -5
- package/dist/indexed-list.d.ts.map +1 -1
- package/dist/indexed-list.js +14 -7
- package/dist/indexed-list.js.map +1 -1
- package/dist/jsx-runtime.d.ts +10 -8
- package/dist/jsx-runtime.d.ts.map +1 -1
- package/dist/jsx-runtime.js +28 -23
- package/dist/jsx-runtime.js.map +1 -1
- package/dist/keyed-list.d.ts +13 -14
- package/dist/keyed-list.d.ts.map +1 -1
- package/dist/keyed-list.js +132 -160
- package/dist/keyed-list.js.map +1 -1
- package/dist/metadata.d.ts +6 -3
- package/dist/metadata.d.ts.map +1 -1
- package/dist/metadata.js +131 -164
- package/dist/metadata.js.map +1 -1
- package/dist/nested-prop.d.ts +4 -2
- package/dist/nested-prop.d.ts.map +1 -1
- package/dist/nested-prop.js +17 -16
- package/dist/nested-prop.js.map +1 -1
- package/dist/profiling.d.ts +11 -8
- package/dist/profiling.d.ts.map +1 -1
- package/dist/profiling.js +17 -17
- package/dist/profiling.js.map +1 -1
- package/dist/protocol.d.ts +5 -2
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +8 -5
- package/dist/protocol.js.map +1 -1
- package/dist/raw-html.d.ts +5 -2
- package/dist/raw-html.d.ts.map +1 -1
- package/dist/raw-html.js +86 -146
- package/dist/raw-html.js.map +1 -1
- package/dist/ref.d.ts +8 -3
- package/dist/ref.d.ts.map +1 -1
- package/dist/ref.js +10 -2
- package/dist/ref.js.map +1 -1
- package/dist/renderable-protocol.d.ts +26 -8
- package/dist/renderable-protocol.d.ts.map +1 -1
- package/dist/renderable-protocol.js +30 -9
- package/dist/renderable-protocol.js.map +1 -1
- package/dist/renderable.d.ts +27 -22
- package/dist/renderable.d.ts.map +1 -1
- package/dist/renderable.js +141 -133
- package/dist/renderable.js.map +1 -1
- package/dist/retained-ui.d.ts +9 -6
- package/dist/retained-ui.d.ts.map +1 -1
- package/dist/retained-ui.js +12 -10
- package/dist/retained-ui.js.map +1 -1
- package/dist/root.d.ts +18 -15
- package/dist/root.d.ts.map +1 -1
- package/dist/root.js +73 -85
- package/dist/root.js.map +1 -1
- package/dist/scheduler.d.ts +10 -8
- package/dist/scheduler.d.ts.map +1 -1
- package/dist/scheduler.js +97 -105
- package/dist/scheduler.js.map +1 -1
- package/dist/server-framework.d.ts +45 -42
- package/dist/server-framework.d.ts.map +1 -1
- package/dist/server-framework.js +209 -217
- package/dist/server-framework.js.map +1 -1
- package/dist/server.d.ts +130 -128
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +603 -710
- package/dist/server.js.map +1 -1
- package/dist/shared/promise.d.ts +6 -3
- package/dist/shared/promise.d.ts.map +1 -1
- package/dist/shared/promise.js +21 -19
- package/dist/shared/promise.js.map +1 -1
- package/dist/source-mask.d.ts +9 -6
- package/dist/source-mask.d.ts.map +1 -1
- package/dist/source-mask.js +45 -63
- package/dist/source-mask.js.map +1 -1
- package/dist/spread.d.ts +5 -2
- package/dist/spread.d.ts.map +1 -1
- package/dist/spread.js +79 -99
- package/dist/spread.js.map +1 -1
- package/dist/state-slot.d.ts +18 -15
- package/dist/state-slot.d.ts.map +1 -1
- package/dist/state-slot.js +43 -42
- package/dist/state-slot.js.map +1 -1
- package/dist/testing.d.ts +9 -6
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +16 -12
- package/dist/testing.js.map +1 -1
- package/package.json +8 -7
- package/src/actions.ts +415 -0
- package/src/async.ts +78 -0
- package/src/compiled/async-resource.ts +113 -0
- package/src/compiled/core.ts +4041 -0
- package/src/compiled/types.ts +96 -0
- package/src/compiled/validation.ts +23 -0
- package/src/component-spread.ts +86 -0
- package/src/concurrent.ts +310 -0
- package/src/direct-dom.ts +365 -0
- package/src/dom/attributes.ts +55 -0
- package/src/dom/events.ts +93 -0
- package/src/dom/forms.ts +220 -0
- package/src/dom/intrinsic.ts +94 -0
- package/src/dom/namespace.ts +30 -0
- package/src/dom/namespaces.ts +14 -0
- package/src/dom/properties.ts +355 -0
- package/src/dom/style-properties.ts +46 -0
- package/src/dom/styles.ts +86 -0
- package/src/dom-forms.ts +23 -0
- package/src/dom-styles.ts +11 -0
- package/src/env.d.ts +6 -0
- package/src/framework-hydrate.ts +224 -0
- package/src/framework-protocol.ts +335 -0
- package/src/framework.ts +161 -0
- package/src/hydrate.ts +38 -0
- package/src/hydration-bridge.ts +196 -0
- package/src/hydration.ts +642 -0
- package/src/index.ts +92 -0
- package/src/indexed-list.ts +20 -0
- package/src/jsx-runtime.ts +55 -0
- package/src/keyed-list.ts +233 -0
- package/src/metadata.ts +212 -0
- package/src/nested-prop.ts +27 -0
- package/src/profiling.ts +43 -0
- package/src/protocol.ts +8 -0
- package/src/raw-html.ts +206 -0
- package/src/ref.ts +13 -0
- package/src/renderable-protocol.ts +63 -0
- package/src/renderable.ts +283 -0
- package/src/retained-ui.ts +19 -0
- package/src/root.ts +122 -0
- package/src/scheduler.ts +136 -0
- package/src/server-framework.ts +397 -0
- package/src/server.ts +1160 -0
- package/src/shared/promise.ts +28 -0
- package/src/source-mask.ts +83 -0
- package/src/spread.ts +131 -0
- package/src/state-slot.ts +76 -0
- package/src/testing.ts +27 -0
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.js","
|
|
1
|
+
{"version":3,"file":"validation.js","names":[],"sources":["../../src/compiled/validation.ts"],"mappings":";;;AAGA,SAAgB,gBAAgB,UAAuC;CACrE,KAAK,MAAM,SAAS,UAAU;EAC5B,IAAI,oBAAoB,KAAK,KAAK,kBAAkB,KAAK,KAAK,qBAAqB,KAAK,GACtF;EAEF,IAAI,MAAM,QAAQ,KAAK,GAAG;GACxB,IAAI,gBAAgB,KAAK,GAAG,OAAO;GACnC;EACF;EACA,MAAM,OAAO,OAAO;EACpB,IACE,SAAS,cACT,SAAS,YACR,SAAS,YAAY,UAAU,QAAQ,EAAE,iBAAiB,OAE3D,OAAO;CAEX;CACA,OAAO;AACT"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CompiledBinding } from "./compiled/types.js";
|
|
2
|
+
//#region src/component-spread.d.ts
|
|
2
3
|
type Props = Record<string, unknown>;
|
|
3
4
|
type ComponentSpreadDirective = (props: Props) => Props;
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
declare function compiledComponentSpread(input: CompiledBinding<Props>, overriddenNames: readonly string[]): Record<PropertyKey, ComponentSpreadDirective>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { compiledComponentSpread };
|
|
6
8
|
//# sourceMappingURL=component-spread.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-spread.d.ts","
|
|
1
|
+
{"version":3,"file":"component-spread.d.ts","names":[],"sources":["../src/component-spread.ts"],"mappings":";;KAIK,QAAQ;KACR,4BAA4B,OAAO,UAAU;iBAgBlC,wBACd,OAAO,gBAAgB,QACvB,qCACC,OAAO,aAAa"}
|
package/dist/component-spread.js
CHANGED
|
@@ -1,71 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { INTERNAL_COMPONENT_SPREAD_PROP } from "./dom/intrinsic.js";
|
|
2
|
+
import { COMPONENT_SPREAD_SOURCE, binding, mountCompiledProp } from "./compiled/core.js";
|
|
3
|
+
//#region src/component-spread.ts
|
|
4
|
+
const DEV = typeof __VIDACT_DEV__ === "undefined" || __VIDACT_DEV__;
|
|
4
5
|
function readSpreadValue(value) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
if (Object.hasOwn(value, 'key') || Object.hasOwn(value, 'children')) {
|
|
11
|
-
throw new TypeError(DEV ? 'reactive component spreads cannot supply key or children' : 'V106');
|
|
12
|
-
}
|
|
13
|
-
return value;
|
|
6
|
+
if (value === null || value === void 0) return {};
|
|
7
|
+
if (typeof value !== "object") throw new TypeError(DEV ? "reactive component spread value must be an object or nullish" : "V106");
|
|
8
|
+
if (Object.hasOwn(value, "key")) throw new TypeError(DEV ? "reactive component spreads cannot supply key" : "V106");
|
|
9
|
+
return value;
|
|
14
10
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
has(target, property) {
|
|
54
|
-
return (Reflect.has(target, property) ||
|
|
55
|
-
(typeof property === 'string' &&
|
|
56
|
-
!overridden.has(property) &&
|
|
57
|
-
Object.hasOwn(read(), property)));
|
|
58
|
-
},
|
|
59
|
-
ownKeys(target) {
|
|
60
|
-
return [
|
|
61
|
-
...new Set([
|
|
62
|
-
...Reflect.ownKeys(target),
|
|
63
|
-
...Object.keys(read()).filter((name) => !overridden.has(name)),
|
|
64
|
-
]),
|
|
65
|
-
];
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
},
|
|
69
|
-
};
|
|
11
|
+
function compiledComponentSpread(input, overriddenNames) {
|
|
12
|
+
const overridden = new Set(overriddenNames);
|
|
13
|
+
const bindings = /* @__PURE__ */ new Map();
|
|
14
|
+
const read = () => readSpreadValue(input[1]());
|
|
15
|
+
const propBinding = (name) => {
|
|
16
|
+
let value = bindings.get(name);
|
|
17
|
+
if (value === void 0) {
|
|
18
|
+
value = binding(input[2], input[3], () => read()[name], input[4], input[5]);
|
|
19
|
+
bindings.set(name, value);
|
|
20
|
+
}
|
|
21
|
+
return value;
|
|
22
|
+
};
|
|
23
|
+
return { [INTERNAL_COMPONENT_SPREAD_PROP]: (explicitProps) => {
|
|
24
|
+
mountCompiledProp(input, (value) => {
|
|
25
|
+
readSpreadValue(value);
|
|
26
|
+
});
|
|
27
|
+
return new Proxy(explicitProps, {
|
|
28
|
+
get(target, property, receiver) {
|
|
29
|
+
if (property === COMPONENT_SPREAD_SOURCE) return input;
|
|
30
|
+
if (typeof property !== "string" || overridden.has(property) || Object.hasOwn(target, property)) return Reflect.get(target, property, receiver);
|
|
31
|
+
return propBinding(property);
|
|
32
|
+
},
|
|
33
|
+
getOwnPropertyDescriptor(target, property) {
|
|
34
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(target, property);
|
|
35
|
+
if (descriptor !== void 0 || typeof property !== "string" || overridden.has(property) || !Object.hasOwn(read(), property)) return descriptor;
|
|
36
|
+
return {
|
|
37
|
+
configurable: true,
|
|
38
|
+
enumerable: true
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
has(target, property) {
|
|
42
|
+
return Reflect.has(target, property) || typeof property === "string" && !overridden.has(property) && Object.hasOwn(read(), property);
|
|
43
|
+
},
|
|
44
|
+
ownKeys(target) {
|
|
45
|
+
return [.../* @__PURE__ */ new Set([...Reflect.ownKeys(target), ...Object.keys(read()).filter((name) => !overridden.has(name))])];
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
} };
|
|
70
49
|
}
|
|
50
|
+
//#endregion
|
|
51
|
+
export { compiledComponentSpread };
|
|
52
|
+
|
|
71
53
|
//# sourceMappingURL=component-spread.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-spread.js","
|
|
1
|
+
{"version":3,"file":"component-spread.js","names":[],"sources":["../src/component-spread.ts"],"mappings":";;;AAMA,MAAM,MAAM,OAAO,mBAAmB,eAAe;AAErD,SAAS,gBAAgB,OAAuB;CAC9C,IAAI,UAAU,QAAQ,UAAU,KAAA,GAAW,OAAO,CAAC;CACnD,IAAI,OAAO,UAAU,UACnB,MAAM,IAAI,UACR,MAAM,iEAAiE,MACzE;CAEF,IAAI,OAAO,OAAO,OAAO,KAAK,GAC5B,MAAM,IAAI,UAAU,MAAM,iDAAiD,MAAM;CAEnF,OAAO;AACT;AAEA,SAAgB,wBACd,OACA,iBAC+C;CAC/C,MAAM,aAAa,IAAI,IAAI,eAAe;CAC1C,MAAM,2BAAW,IAAI,IAAsC;CAC3D,MAAM,aAAoB,gBAAgB,MAAM,EAAE,CAAC,CAAC;CACpD,MAAM,eAAe,SAA2C;EAC9D,IAAI,QAAQ,SAAS,IAAI,IAAI;EAC7B,IAAI,UAAU,KAAA,GAAW;GACvB,QAAQ,QAAQ,MAAM,IAAI,MAAM,UAAU,KAAK,CAAC,CAAC,OAAO,MAAM,IAAI,MAAM,EAAE;GAC1E,SAAS,IAAI,MAAM,KAAK;EAC1B;EACA,OAAO;CACT;CAEA,OAAO,GACJ,kCAAkC,kBAAkB;EACnD,kBAAkB,QAAQ,UAAU;GAClC,gBAAgB,KAAK;EACvB,CAAC;EACD,OAAO,IAAI,MAAM,eAAe;GAC9B,IAAI,QAAQ,UAAU,UAAU;IAC9B,IAAI,aAAa,yBAAyB,OAAO;IACjD,IACE,OAAO,aAAa,YACpB,WAAW,IAAI,QAAQ,KACvB,OAAO,OAAO,QAAQ,QAAQ,GAE9B,OAAO,QAAQ,IAAI,QAAQ,UAAU,QAAQ;IAE/C,OAAO,YAAY,QAAQ;GAC7B;GACA,yBAAyB,QAAQ,UAAU;IACzC,MAAM,aAAa,QAAQ,yBAAyB,QAAQ,QAAQ;IACpE,IACE,eAAe,KAAA,KACf,OAAO,aAAa,YACpB,WAAW,IAAI,QAAQ,KACvB,CAAC,OAAO,OAAO,KAAK,GAAG,QAAQ,GAE/B,OAAO;IAET,OAAO;KAAE,cAAc;KAAM,YAAY;IAAK;GAChD;GACA,IAAI,QAAQ,UAAU;IACpB,OACE,QAAQ,IAAI,QAAQ,QAAQ,KAC3B,OAAO,aAAa,YACnB,CAAC,WAAW,IAAI,QAAQ,KACxB,OAAO,OAAO,KAAK,GAAG,QAAQ;GAEpC;GACA,QAAQ,QAAQ;IACd,OAAO,CACL,mBAAG,IAAI,IAAI,CACT,GAAG,QAAQ,QAAQ,MAAM,GACzB,GAAG,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,WAAW,IAAI,IAAI,CAAC,CAC/D,CAAC,CACH;GACF;EACF,CAAC;CACH,EACF;AACF"}
|
package/dist/concurrent.d.ts
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { SourceMask } from "./source-mask.js";
|
|
2
|
+
import { CompiledScope } from "./compiled/types.js";
|
|
3
|
+
import { StateSlot } from "./state-slot.js";
|
|
4
|
+
//#region src/concurrent.d.ts
|
|
4
5
|
type TransitionAction = () => void | PromiseLike<void>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
interface CompiledTransitionSlot {
|
|
7
|
+
readonly get: () => boolean;
|
|
8
|
+
readonly set: (action: TransitionAction) => void;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
declare function startTransition(action: TransitionAction): void;
|
|
11
|
+
declare function flushSync<Result>(operation?: () => Result): Result | undefined;
|
|
12
|
+
declare function createCompiledTransition(scope: CompiledScope, sourceMask: SourceMask): CompiledTransitionSlot;
|
|
13
|
+
declare function createCompiledDeferred<Value>(scope: CompiledScope, reads: SourceMask, writes: SourceMask, evaluate: () => Value, initialValue?: Value): StateSlot<Value>;
|
|
14
|
+
declare function useTransition(): never;
|
|
15
|
+
declare function useDeferredValue<Value>(_value: Value, _initialValue?: Value): never;
|
|
15
16
|
/** @internal */
|
|
16
|
-
|
|
17
|
+
declare function registerTransitionSettlement(settle: () => void): boolean;
|
|
17
18
|
/** @internal */
|
|
18
|
-
|
|
19
|
+
declare function registerTransitionFinalizer(finalize: () => void): boolean;
|
|
19
20
|
/** @internal */
|
|
20
|
-
|
|
21
|
+
declare function registerTransitionAborter(abort: () => void): boolean;
|
|
21
22
|
/** @internal */
|
|
22
|
-
|
|
23
|
+
declare function runUrgentUpdate<Result>(operation: () => Result): Result;
|
|
23
24
|
/** @internal */
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
declare function startIndependentTransition(action: TransitionAction): void;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { CompiledTransitionSlot, createCompiledDeferred, createCompiledTransition, flushSync, registerTransitionAborter, registerTransitionFinalizer, registerTransitionSettlement, runUrgentUpdate, startIndependentTransition, startTransition, useDeferredValue, useTransition };
|
|
26
28
|
//# sourceMappingURL=concurrent.d.ts.map
|
package/dist/concurrent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"concurrent.d.ts","
|
|
1
|
+
{"version":3,"file":"concurrent.d.ts","names":[],"sources":["../src/concurrent.ts"],"mappings":";;;;KAaK,gCAAgC;UA6BpB;WACN;WACA,MAAM,QAAQ;;iBAOT,gBAAgB,QAAQ;iBAKxB,UAAU,QAAQ,kBAAkB,SAAS;iBAa7C,yBACd,OAAO,eACP,YAAY,aACX;iBAUa,uBAAuB,OACrC,OAAO,eACP,OAAO,YACP,QAAQ,YACR,gBAAgB,OAChB,eAAe,QACd,UAAU;iBAgBG;iBAIA,iBAAiB,OAAO,QAAQ,OAAO,gBAAgB;;iBAKvD,6BAA6B;;iBAO7B,4BAA4B;;iBAO5B,0BAA0B;;iBAO1B,gBAAgB,QAAQ,iBAAiB,SAAS;;iBAKlD,2BAA2B,QAAQ"}
|