@alloy-js/core 0.15.0 → 0.17.0
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 +23 -0
- package/dist/src/binder.d.ts +18 -235
- package/dist/src/binder.d.ts.map +1 -1
- package/dist/src/binder.js +85 -386
- package/dist/src/components/Block.d.ts +1 -1
- package/dist/src/components/Block.d.ts.map +1 -1
- package/dist/src/components/Block.js +3 -1
- package/dist/src/components/Declaration.d.ts +1 -1
- package/dist/src/components/Declaration.d.ts.map +1 -1
- package/dist/src/components/Declaration.js +5 -4
- package/dist/src/components/For.d.ts +1 -1
- package/dist/src/components/For.d.ts.map +1 -1
- package/dist/src/components/For.js +1 -1
- package/dist/src/components/Indent.d.ts +1 -1
- package/dist/src/components/Indent.d.ts.map +1 -1
- package/dist/src/components/List.d.ts +1 -1
- package/dist/src/components/List.d.ts.map +1 -1
- package/dist/src/components/List.js +2 -1
- package/dist/src/components/MemberDeclaration.d.ts +1 -1
- package/dist/src/components/MemberDeclaration.d.ts.map +1 -1
- package/dist/src/components/MemberDeclaration.js +3 -4
- package/dist/src/components/MemberScope.d.ts +1 -1
- package/dist/src/components/MemberScope.d.ts.map +1 -1
- package/dist/src/components/MemberScope.js +0 -2
- package/dist/src/components/Prose.d.ts +1 -1
- package/dist/src/components/Prose.d.ts.map +1 -1
- package/dist/src/components/ReferenceOrContent.d.ts +1 -1
- package/dist/src/components/ReferenceOrContent.d.ts.map +1 -1
- package/dist/src/components/Scope.d.ts +1 -1
- package/dist/src/components/Scope.d.ts.map +1 -1
- package/dist/src/components/Scope.js +3 -6
- package/dist/src/components/Show.d.ts +1 -1
- package/dist/src/components/Show.d.ts.map +1 -1
- package/dist/src/components/StatementList.d.ts +1 -1
- package/dist/src/components/StatementList.d.ts.map +1 -1
- package/dist/src/components/StatementList.js +1 -1
- package/dist/src/components/Switch.d.ts +1 -1
- package/dist/src/components/Switch.d.ts.map +1 -1
- package/dist/src/components/Switch.js +1 -1
- package/dist/src/components/Wrap.d.ts +1 -1
- package/dist/src/components/Wrap.d.ts.map +1 -1
- package/dist/src/context/assignment.d.ts +1 -1
- package/dist/src/context/assignment.d.ts.map +1 -1
- package/dist/src/context/binder.d.ts +2 -2
- package/dist/src/context/binder.d.ts.map +1 -1
- package/dist/src/context/declaration.d.ts +1 -1
- package/dist/src/context/declaration.d.ts.map +1 -1
- package/dist/src/context/member-declaration.d.ts +1 -1
- package/dist/src/context/member-declaration.d.ts.map +1 -1
- package/dist/src/context/member-declaration.js +0 -1
- package/dist/src/context/member-scope.d.ts +1 -1
- package/dist/src/context/member-scope.d.ts.map +1 -1
- package/dist/src/context/name-policy.d.ts +1 -1
- package/dist/src/context/name-policy.d.ts.map +1 -1
- package/dist/src/context/scope.d.ts +1 -1
- package/dist/src/context/scope.d.ts.map +1 -1
- package/dist/src/context/source-directory.d.ts +1 -1
- package/dist/src/context/source-directory.d.ts.map +1 -1
- package/dist/src/context/source-file.d.ts +2 -2
- package/dist/src/context/source-file.d.ts.map +1 -1
- package/dist/src/index.d.ts +4 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -1
- package/dist/src/jsx-runtime.d.ts +12 -3
- package/dist/src/jsx-runtime.d.ts.map +1 -1
- package/dist/src/jsx-runtime.js +6 -2
- package/dist/src/reactive-union-set.d.ts +29 -0
- package/dist/src/reactive-union-set.d.ts.map +1 -0
- package/dist/src/reactive-union-set.js +183 -0
- package/dist/src/refkey.d.ts +36 -0
- package/dist/src/refkey.d.ts.map +1 -1
- package/dist/src/refkey.js +40 -0
- package/dist/src/scheduler.d.ts +2 -2
- package/dist/src/scheduler.d.ts.map +1 -1
- package/dist/src/scheduler.js +27 -6
- package/dist/src/slot.d.ts +1 -1
- package/dist/src/slot.d.ts.map +1 -1
- package/dist/src/stc.d.ts +1 -1
- package/dist/src/stc.d.ts.map +1 -1
- package/dist/src/sti.d.ts +1 -1
- package/dist/src/sti.d.ts.map +1 -1
- package/dist/src/sti.js +1 -1
- package/dist/src/symbols/index.d.ts +6 -0
- package/dist/src/symbols/index.d.ts.map +1 -0
- package/dist/src/symbols/index.js +5 -0
- package/dist/src/symbols/output-scope.d.ts +116 -0
- package/dist/src/symbols/output-scope.d.ts.map +1 -0
- package/dist/src/symbols/output-scope.js +246 -0
- package/dist/src/symbols/output-symbol.d.ts +134 -0
- package/dist/src/symbols/output-symbol.d.ts.map +1 -0
- package/dist/src/symbols/output-symbol.js +379 -0
- package/dist/src/symbols/symbol-flow.d.ts +13 -0
- package/dist/src/symbols/symbol-flow.d.ts.map +1 -0
- package/dist/src/symbols/symbol-flow.js +74 -0
- package/dist/src/symbols/symbol-slot.d.ts +12 -0
- package/dist/src/symbols/symbol-slot.d.ts.map +1 -0
- package/dist/src/symbols/symbol-slot.js +36 -0
- package/dist/src/symbols/symbol-table.d.ts +14 -0
- package/dist/src/symbols/symbol-table.d.ts.map +1 -0
- package/dist/src/symbols/symbol-table.js +42 -0
- package/dist/src/tap.d.ts +2 -1
- package/dist/src/tap.d.ts.map +1 -1
- package/dist/src/tracer.d.ts +181 -0
- package/dist/src/tracer.d.ts.map +1 -0
- package/dist/src/tracer.js +441 -0
- package/dist/src/tsdoc-metadata.json +1 -1
- package/dist/test/components/slot.test.js +5 -7
- package/dist/test/reactive-union-set.test.d.ts +2 -0
- package/dist/test/reactive-union-set.test.d.ts.map +1 -0
- package/dist/test/reactive-union-set.test.js +170 -0
- package/dist/test/symbols/output-scope.test.d.ts +2 -0
- package/dist/test/symbols/output-scope.test.d.ts.map +1 -0
- package/dist/test/symbols/output-scope.test.js +342 -0
- package/dist/test/symbols/output-symbol.test.d.ts +2 -0
- package/dist/test/symbols/output-symbol.test.d.ts.map +1 -0
- package/dist/test/symbols/output-symbol.test.js +446 -0
- package/dist/test/symbols/resolution.test.d.ts +2 -0
- package/dist/test/symbols/resolution.test.d.ts.map +1 -0
- package/dist/test/symbols/resolution.test.js +140 -0
- package/dist/test/symbols/utils.d.ts +24 -0
- package/dist/test/symbols/utils.d.ts.map +1 -0
- package/dist/test/symbols/utils.js +46 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/binder.ts +148 -672
- package/src/components/Block.tsx +4 -1
- package/src/components/Declaration.tsx +6 -6
- package/src/components/For.tsx +1 -1
- package/src/components/Indent.tsx +1 -1
- package/src/components/List.tsx +1 -1
- package/src/components/MemberDeclaration.tsx +4 -4
- package/src/components/MemberScope.tsx +2 -5
- package/src/components/Prose.tsx +1 -1
- package/src/components/ReferenceOrContent.tsx +1 -1
- package/src/components/Scope.tsx +2 -6
- package/src/components/Show.tsx +1 -1
- package/src/components/StatementList.tsx +2 -1
- package/src/components/Switch.tsx +1 -1
- package/src/components/Wrap.tsx +1 -1
- package/src/context/assignment.ts +1 -1
- package/src/context/binder.ts +2 -2
- package/src/context/declaration.ts +1 -1
- package/src/context/member-declaration.ts +1 -1
- package/src/context/member-scope.ts +1 -1
- package/src/context/name-policy.ts +1 -1
- package/src/context/scope.ts +1 -1
- package/src/context/source-directory.ts +1 -1
- package/src/context/source-file.ts +2 -2
- package/src/index.ts +15 -0
- package/src/jsx-runtime.ts +18 -2
- package/src/reactive-union-set.ts +238 -0
- package/src/refkey.ts +40 -0
- package/src/scheduler.ts +31 -6
- package/src/slot.ts +1 -1
- package/src/stc.ts +3 -3
- package/src/sti.ts +5 -5
- package/src/symbols/index.ts +5 -0
- package/src/symbols/output-scope.ts +323 -0
- package/src/symbols/output-symbol.ts +512 -0
- package/src/symbols/symbol-flow.ts +104 -0
- package/src/symbols/symbol-slot.tsx +47 -0
- package/src/symbols/symbol-table.ts +72 -0
- package/src/tap.ts +2 -1
- package/src/tracer.ts +440 -0
- package/temp/api.json +4172 -1582
- package/test/components/slot.test.tsx +8 -11
- package/test/reactive-union-set.test.tsx +191 -0
- package/test/symbols/output-scope.test.ts +302 -0
- package/test/symbols/output-symbol.test.ts +459 -0
- package/test/symbols/resolution.test.ts +172 -0
- package/test/symbols/utils.ts +95 -0
- package/dist/test/symbols.test.d.ts +0 -2
- package/dist/test/symbols.test.d.ts.map +0 -1
- package/dist/test/symbols.test.js +0 -884
- package/test/symbols.test.ts +0 -1006
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mergeProps as _$mergeProps, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { memo, splitProps } from "../jsx-runtime.js";
|
|
2
3
|
import { childrenArray } from "../utils.js";
|
|
3
4
|
import { For } from "./For.js";
|
|
4
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OutputSymbol } from "../binder.js";
|
|
2
1
|
import { Children } from "../jsx-runtime.js";
|
|
3
2
|
import { Refkey } from "../refkey.js";
|
|
3
|
+
import { OutputSymbol } from "../symbols/output-symbol.js";
|
|
4
4
|
/**
|
|
5
5
|
* Create a member declaration by providing a symbol name and optional symbol
|
|
6
6
|
* metadata.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/MemberDeclaration.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MemberDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/MemberDeclaration.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,YAAY,EAAqB,MAAM,6BAA6B,CAAC;AAE9E;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEnC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,gCAAgC;IAC/C;;;OAGG;IACH,MAAM,EAAE,YAAY,CAAC;IAErB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,MAAM,MAAM,sBAAsB,GAC9B,8BAA8B,GAC9B,gCAAgC,CAAC;AAErC;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,YAgC9D"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { OutputSymbolFlags } from "../binder.js";
|
|
3
2
|
import { useContext } from "../context.js";
|
|
4
3
|
import { BinderContext } from "../context/binder.js";
|
|
5
4
|
import { MemberDeclarationContext } from "../context/member-declaration.js";
|
|
5
|
+
import { OutputSymbol, OutputSymbolFlags } from "../symbols/output-symbol.js";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Create a member declaration by providing a symbol name and optional symbol
|
|
@@ -45,9 +45,8 @@ export function MemberDeclaration(props) {
|
|
|
45
45
|
if (!infoProps.name) {
|
|
46
46
|
throw new Error("Must provide a member name, or else provide a member symbol");
|
|
47
47
|
}
|
|
48
|
-
declaration =
|
|
49
|
-
|
|
50
|
-
refkey: infoProps.refkey,
|
|
48
|
+
declaration = new OutputSymbol(infoProps.name, {
|
|
49
|
+
refkeys: infoProps.refkey,
|
|
51
50
|
metadata: infoProps.metadata,
|
|
52
51
|
flags: infoProps.static ? OutputSymbolFlags.StaticMember : OutputSymbolFlags.InstanceMember
|
|
53
52
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberScope.d.ts","sourceRoot":"","sources":["../../../src/components/MemberScope.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MemberScope.d.ts","sourceRoot":"","sources":["../../../src/components/MemberScope.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,KAAK,EAAE,YAAY,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,YAUlD"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3
|
-
|
|
4
2
|
import { MemberScopeContext } from "../context/member-scope.js";
|
|
5
3
|
/**
|
|
6
4
|
* Declare a member scope, which is a scope that holds instance and static
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Prose.d.ts","sourceRoot":"","sources":["../../../src/components/Prose.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Prose.d.ts","sourceRoot":"","sources":["../../../src/components/Prose.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,KAAK;IACpB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,KAAK,YAuBjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReferenceOrContent.d.ts","sourceRoot":"","sources":["../../../src/components/ReferenceOrContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ReferenceOrContent.d.ts","sourceRoot":"","sources":["../../../src/components/ReferenceOrContent.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;CAC7B;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,mDAUhE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OutputScope } from "../binder.js";
|
|
2
1
|
import { Children } from "../jsx-runtime.js";
|
|
2
|
+
import { OutputScope } from "../symbols/output-scope.js";
|
|
3
3
|
/**
|
|
4
4
|
* Declare a scope by providing an already created scope. The scope is merely
|
|
5
5
|
* exposed via {@link ScopeContext}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../../src/components/Scope.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../../src/components/Scope.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC;IAEnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEnC,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,MAAM,MAAM,UAAU,GAAG,mBAAmB,GAAG,kBAAkB,CAAC;AAElE;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,YAgBtC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { useContext } from "../context.js";
|
|
3
|
-
import { BinderContext } from "../context/binder.js";
|
|
4
2
|
import { ScopeContext } from "../context/scope.js";
|
|
3
|
+
import { OutputScope } from "../symbols/output-scope.js";
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Declare a scope by providing an already created scope. The scope is merely
|
|
@@ -23,11 +22,9 @@ export function Scope(props) {
|
|
|
23
22
|
if ("value" in props) {
|
|
24
23
|
scope = props.value;
|
|
25
24
|
} else {
|
|
26
|
-
|
|
27
|
-
scope = binder.createScope({
|
|
25
|
+
scope = new OutputScope(props.name ?? "", {
|
|
28
26
|
kind: props.kind,
|
|
29
|
-
metadata: props.metadata
|
|
30
|
-
name: props.name ?? ""
|
|
27
|
+
metadata: props.metadata
|
|
31
28
|
});
|
|
32
29
|
}
|
|
33
30
|
return _$createComponent(ScopeContext.Provider, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Show.d.ts","sourceRoot":"","sources":["../../../src/components/Show.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Show.d.ts","sourceRoot":"","sources":["../../../src/components/Show.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC;CAClC;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,kBAEpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatementList.d.ts","sourceRoot":"","sources":["../../../src/components/StatementList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"StatementList.d.ts","sourceRoot":"","sources":["../../../src/components/StatementList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,YAMtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAyB,MAAM,
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAyB,MAAM,mBAAmB,CAAC;AAGzE,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,aAaxC;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,eAAW,CAAC;AAEjC;;;GAGG;AACH,eAAO,MAAM,KAAK,gJAEhB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { memo, taggedComponent } from "
|
|
1
|
+
import { memo, taggedComponent } from "../jsx-runtime.js";
|
|
2
2
|
import { childrenArray, findKeyedChildren } from "../utils.js";
|
|
3
3
|
/**
|
|
4
4
|
* Conditionally render blocks of content based on the `when` prop of nested
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wrap.d.ts","sourceRoot":"","sources":["../../../src/components/Wrap.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Wrap.d.ts","sourceRoot":"","sources":["../../../src/components/Wrap.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAElE,MAAM,WAAW,SAAS,CAAC,MAAM;IAC/B;;;OAGG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd,8BAA8B;IAC9B,QAAQ,EAAE,QAAQ,CAAC;IAEnB,yCAAyC;IACzC,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAElC,8CAA8C;IAC9C,KAAK,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CAClC;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,YAKpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.d.ts","sourceRoot":"","sources":["../../../src/context/assignment.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"assignment.d.ts","sourceRoot":"","sources":["../../../src/context/assignment.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,YAAY,CAAC;IAErB;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,CAAC,iBAAiB,CAChC,CAAC;AAEnC;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,YAAY,GACnB,iBAAiB,CAKnB;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,YAAY,GAAG,SAAS,CAM9D"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Binder } from "../binder.js";
|
|
1
|
+
import type { Binder } from "../binder.js";
|
|
2
2
|
import { ComponentContext } from "../context.js";
|
|
3
3
|
/**
|
|
4
4
|
* The binder context provides the binder instance to all components. This
|
|
5
5
|
* context is provided by the {@link Output | output component}.
|
|
6
6
|
*/
|
|
7
7
|
export declare const BinderContext: ComponentContext<Binder>;
|
|
8
|
-
export declare function useBinder(): Binder;
|
|
8
|
+
export declare function useBinder(): Binder | undefined;
|
|
9
9
|
//# sourceMappingURL=binder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binder.d.ts","sourceRoot":"","sources":["../../../src/context/binder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"binder.d.ts","sourceRoot":"","sources":["../../../src/context/binder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EACL,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AAIvB;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,gBAAgB,CAAC,MAAM,CACrB,CAAC;AAE/B,wBAAgB,SAAS,uBAExB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OutputSymbol } from "../binder.js";
|
|
2
1
|
import { ComponentContext } from "../context.js";
|
|
2
|
+
import type { OutputSymbol } from "../symbols/output-symbol.js";
|
|
3
3
|
export declare const DeclarationContext: ComponentContext<OutputSymbol>;
|
|
4
4
|
//# sourceMappingURL=declaration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../../src/context/declaration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../../src/context/declaration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAsB,MAAM,eAAe,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,eAAO,MAAM,kBAAkB,EAAE,gBAAgB,CAAC,YAAY,CAC3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member-declaration.d.ts","sourceRoot":"","sources":["../../../src/context/member-declaration.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"member-declaration.d.ts","sourceRoot":"","sources":["../../../src/context/member-declaration.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,CAAC,YAAY,CAC3B,CAAC;AAE1C,wBAAgB,oBAAoB,6BAEnC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OutputScope } from "../binder.js";
|
|
2
1
|
import { ComponentContext } from "../context.js";
|
|
2
|
+
import type { OutputScope } from "../symbols/output-scope.js";
|
|
3
3
|
/**
|
|
4
4
|
* The member scope context provides the instance and static member scopes that
|
|
5
5
|
* are used for member declarations and instance member resolution.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member-scope.d.ts","sourceRoot":"","sources":["../../../src/context/member-scope.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"member-scope.d.ts","sourceRoot":"","sources":["../../../src/context/member-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,eAAe,CAAC,EAAE,WAAW,CAAC;CAC/B;AACD,eAAO,MAAM,kBAAkB,EAAE,gBAAgB,CAAC,kBAAkB,CACjC,CAAC;AAEpC,wBAAgB,cAAc,uBAE7B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentContext } from "../context.js";
|
|
2
|
-
import { NamePolicy } from "../name-policy.js";
|
|
2
|
+
import type { NamePolicy } from "../name-policy.js";
|
|
3
3
|
export declare const NamePolicyContext: ComponentContext<NamePolicy<string>>;
|
|
4
4
|
export declare function useNamePolicy(): NamePolicy<string>;
|
|
5
5
|
//# sourceMappingURL=name-policy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"name-policy.d.ts","sourceRoot":"","sources":["../../../src/context/name-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"name-policy.d.ts","sourceRoot":"","sources":["../../../src/context/name-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,CAAC,UAAU,CAAC,MAAM,CAAC,CAK/D,CAAC;AAEL,wBAAgB,aAAa,uBAE5B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OutputScope } from "../binder.js";
|
|
2
1
|
import { ComponentContext } from "../context.js";
|
|
2
|
+
import type { OutputScope } from "../symbols/output-scope.js";
|
|
3
3
|
export declare const ScopeContext: ComponentContext<OutputScope>;
|
|
4
4
|
export declare function useScope(): OutputScope;
|
|
5
5
|
//# sourceMappingURL=scope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../../src/context/scope.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../../src/context/scope.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,eAAO,MAAM,YAAY,EAAE,gBAAgB,CAAC,WAAW,CAC1B,CAAC;AAE9B,wBAAgB,QAAQ,gBAEvB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentContext } from "../context.js";
|
|
2
|
-
import { SourceFileContext } from "./source-file.js";
|
|
2
|
+
import type { SourceFileContext } from "./source-file.js";
|
|
3
3
|
export interface SourceDirectoryContext {
|
|
4
4
|
contents: (SourceDirectoryContext | SourceFileContext)[];
|
|
5
5
|
addContent(content: SourceDirectoryContext | SourceFileContext): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-directory.d.ts","sourceRoot":"","sources":["../../../src/context/source-directory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAsB,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"source-directory.d.ts","sourceRoot":"","sources":["../../../src/context/source-directory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAsB,MAAM,eAAe,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,CAAC,sBAAsB,GAAG,iBAAiB,CAAC,EAAE,CAAC;IACzD,UAAU,CAAC,OAAO,EAAE,sBAAsB,GAAG,iBAAiB,GAAG,IAAI,CAAC;IACtE,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,sBAAsB,EAAE,gBAAgB,CAAC,sBAAsB,CACrC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentContext } from "../context.js";
|
|
2
|
-
import { ComponentDefinition } from "../jsx-runtime.js";
|
|
3
|
-
import { Refkey } from "../refkey.js";
|
|
2
|
+
import type { ComponentDefinition } from "../jsx-runtime.js";
|
|
3
|
+
import type { Refkey } from "../refkey.js";
|
|
4
4
|
export interface SourceFileContext {
|
|
5
5
|
path: string;
|
|
6
6
|
filetype: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-file.d.ts","sourceRoot":"","sources":["../../../src/context/source-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAsB,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"source-file.d.ts","sourceRoot":"","sources":["../../../src/context/source-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAsB,MAAM,eAAe,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,mBAAmB,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACrD;AAED,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,CAAC,iBAAiB,CAChC,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { computed, isProxy, reactive, ref, shallowReactive, shallowRef, toRaw, toRef, toRefs, type Ref, } from "@vue/reactivity";
|
|
1
|
+
export { TrackOpTypes, TriggerOpTypes, computed, isProxy, isReactive, isRef, reactive, ref, shallowReactive, shallowRef, toRaw, toRef, toRefs, track, trigger, watch, type Reactive, type Ref, type ShallowReactive, type ShallowRef, type ToRef, type ToRefs, } from "@vue/reactivity";
|
|
2
2
|
export * from "./binder.js";
|
|
3
3
|
export * from "./code.js";
|
|
4
4
|
export * from "./components/index.js";
|
|
@@ -6,10 +6,13 @@ export * from "./context.js";
|
|
|
6
6
|
export * from "./context/index.js";
|
|
7
7
|
export * from "./jsx-runtime.js";
|
|
8
8
|
export * from "./name-policy.js";
|
|
9
|
+
export * from "./reactive-union-set.js";
|
|
9
10
|
export * from "./refkey.js";
|
|
10
11
|
export * from "./render.js";
|
|
11
12
|
export * from "./stc.js";
|
|
12
13
|
export * from "./sti.js";
|
|
14
|
+
export * from "./symbols/index.js";
|
|
15
|
+
export * from "./symbols/symbol-flow.js";
|
|
13
16
|
export * from "./tap.js";
|
|
14
17
|
export * from "./utils.js";
|
|
15
18
|
export * from "./write-output.js";
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,GAAG,EACH,eAAe,EACf,UAAU,EACV,KAAK,EACL,KAAK,EACL,MAAM,EACN,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,OAAO,EACP,UAAU,EACV,KAAK,EACL,QAAQ,EACR,GAAG,EACH,eAAe,EACf,UAAU,EACV,KAAK,EACL,KAAK,EACL,MAAM,EACN,KAAK,EACL,OAAO,EACP,KAAK,EACL,KAAK,QAAQ,EACb,KAAK,GAAG,EACR,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,KAAK,EACV,KAAK,MAAM,GACZ,MAAM,iBAAiB,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,OAAO,YAAY,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { computed, isProxy, reactive, ref, shallowReactive, shallowRef, toRaw, toRef, toRefs } from "@vue/reactivity";
|
|
1
|
+
export { TrackOpTypes, TriggerOpTypes, computed, isProxy, isReactive, isRef, reactive, ref, shallowReactive, shallowRef, toRaw, toRef, toRefs, track, trigger, watch } from "@vue/reactivity";
|
|
2
2
|
export * from "./binder.js";
|
|
3
3
|
export * from "./code.js";
|
|
4
4
|
export * from "./components/index.js";
|
|
@@ -6,10 +6,13 @@ export * from "./context.js";
|
|
|
6
6
|
export * from "./context/index.js";
|
|
7
7
|
export * from "./jsx-runtime.js";
|
|
8
8
|
export * from "./name-policy.js";
|
|
9
|
+
export * from "./reactive-union-set.js";
|
|
9
10
|
export * from "./refkey.js";
|
|
10
11
|
export * from "./render.js";
|
|
11
12
|
export * from "./stc.js";
|
|
12
13
|
export * from "./sti.js";
|
|
14
|
+
export * from "./symbols/index.js";
|
|
15
|
+
export * from "./symbols/symbol-flow.js";
|
|
13
16
|
export * from "./tap.js";
|
|
14
17
|
export * from "./utils.js";
|
|
15
18
|
export * from "./write-output.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Ref } from "@vue/reactivity";
|
|
2
|
-
import { Refkey } from "./refkey.js";
|
|
3
|
-
import { RenderedTextTree } from "./render.js";
|
|
1
|
+
import { Ref, ShallowReactive } from "@vue/reactivity";
|
|
2
|
+
import type { Refkey } from "./refkey.js";
|
|
3
|
+
import type { RenderedTextTree } from "./render.js";
|
|
4
|
+
import type { OutputSymbol } from "./symbols/output-symbol.js";
|
|
4
5
|
export interface Disposable {
|
|
5
6
|
(): void;
|
|
6
7
|
}
|
|
@@ -19,6 +20,14 @@ export interface Context {
|
|
|
19
20
|
* be the component that created it.
|
|
20
21
|
*/
|
|
21
22
|
componentOwner?: ComponentCreator<unknown>;
|
|
23
|
+
/**
|
|
24
|
+
* Whether this context will take an emitted symbol.
|
|
25
|
+
*/
|
|
26
|
+
takesSymbols: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The symbol that this component has taken.
|
|
29
|
+
*/
|
|
30
|
+
takenSymbols?: ShallowReactive<Set<OutputSymbol>>;
|
|
22
31
|
}
|
|
23
32
|
export declare function getContext(): Context | null;
|
|
24
33
|
export declare function getElementCache(): ElementCache;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime.d.ts","sourceRoot":"","sources":["../../src/jsx-runtime.ts"],"names":[],"mappings":"AAEA,OAAO,EAML,GAAG,
|
|
1
|
+
{"version":3,"file":"jsx-runtime.d.ts","sourceRoot":"","sources":["../../src/jsx-runtime.ts"],"names":[],"mappings":"AAEA,OAAO,EAML,GAAG,EAEH,eAAe,EAKhB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,KAAK,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S,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAC7D,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAyCxC;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CA8C5E"}
|
package/dist/src/jsx-runtime.js
CHANGED
|
@@ -19,7 +19,9 @@ export function root(fn, options) {
|
|
|
19
19
|
disposables: [],
|
|
20
20
|
owner: globalContext,
|
|
21
21
|
context: {},
|
|
22
|
-
elementCache: new Map()
|
|
22
|
+
elementCache: new Map(),
|
|
23
|
+
takesSymbols: false,
|
|
24
|
+
takenSymbols: undefined
|
|
23
25
|
};
|
|
24
26
|
globalContext = context;
|
|
25
27
|
let ret;
|
|
@@ -55,7 +57,9 @@ export function effect(fn, current) {
|
|
|
55
57
|
context: {},
|
|
56
58
|
disposables: [],
|
|
57
59
|
owner: globalContext,
|
|
58
|
-
elementCache: new Map()
|
|
60
|
+
elementCache: new Map(),
|
|
61
|
+
takesSymbols: false,
|
|
62
|
+
takenSymbols: undefined
|
|
59
63
|
};
|
|
60
64
|
const cleanupFn = final => {
|
|
61
65
|
const d = context.disposables;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactiveFlags } from "@vue/reactivity";
|
|
2
|
+
export interface ReactiveUnionSetOptions<T> {
|
|
3
|
+
onAdd?: OnReactiveSetAddCallback<T>;
|
|
4
|
+
onDelete?: OnReactiveSetDeleteCallback<T>;
|
|
5
|
+
}
|
|
6
|
+
export type OnReactiveSetDeleteCallback<T> = (value: T) => void;
|
|
7
|
+
export type OnReactiveSetAddCallback<T> = (value: T) => T;
|
|
8
|
+
export declare class ReactiveUnionSet<T> extends Set<T> {
|
|
9
|
+
private _subsets;
|
|
10
|
+
private _onAdd?;
|
|
11
|
+
private _onDelete?;
|
|
12
|
+
private _refcounts;
|
|
13
|
+
private _indexes;
|
|
14
|
+
[ReactiveFlags.IS_REACTIVE]: boolean;
|
|
15
|
+
private _handleAdd;
|
|
16
|
+
private _handleDelete;
|
|
17
|
+
constructor(options?: ReactiveUnionSetOptions<T>);
|
|
18
|
+
get size(): number;
|
|
19
|
+
[Symbol.iterator](): SetIterator<T>;
|
|
20
|
+
keys(): SetIterator<T>;
|
|
21
|
+
values(): SetIterator<T>;
|
|
22
|
+
entries(): SetIterator<[T, T]>;
|
|
23
|
+
add(item: T): this;
|
|
24
|
+
delete(item: T): boolean;
|
|
25
|
+
addSubset(subset: Set<T>, options?: ReactiveUnionSetOptions<T>): void;
|
|
26
|
+
createDerivedSet<U>(mapper: (value: T) => U | U[]): Readonly<import("@vue/reactivity").ShallowReactive<Set<U>>>;
|
|
27
|
+
createIndex<U>(mapper: (value: T) => U | U[]): ReadonlyMap<U, T>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=reactive-union-set.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reactive-union-set.d.ts","sourceRoot":"","sources":["../../src/reactive-union-set.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,aAAa,EAOd,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,uBAAuB,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,wBAAwB,CAAC,CAAC,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,2BAA2B,CAAC,CAAC,CAAC,CAAC;CAC3C;AAED,MAAM,MAAM,2BAA2B,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;AAChE,MAAM,MAAM,wBAAwB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;AAE1D,qBAAa,gBAAgB,CAAC,C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