@manyducks.co/dolla 2.0.0-alpha.35 → 2.0.0-alpha.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -12
- package/dist/core/context.d.ts +1 -52
- package/dist/core/dolla.d.ts +4 -4
- package/dist/core/nodes/dynamic.d.ts +5 -5
- package/dist/core/nodes/html.d.ts +11 -15
- package/dist/core/nodes/list.d.ts +9 -15
- package/dist/core/nodes/outlet.d.ts +6 -6
- package/dist/core/nodes/portal.d.ts +2 -2
- package/dist/core/nodes/view.d.ts +17 -34
- package/dist/core/ref.d.ts +0 -17
- package/dist/core/signals.d.ts +0 -3
- package/dist/core/store.d.ts +10 -16
- package/dist/core/symbols.d.ts +0 -1
- package/dist/http/index.d.ts +0 -1
- package/dist/index.js +1237 -898
- package/dist/index.js.map +1 -1
- package/dist/jsx-dev-runtime.js +20 -14
- package/dist/jsx-dev-runtime.js.map +1 -1
- package/dist/jsx-runtime.js +27 -16
- package/dist/jsx-runtime.js.map +1 -1
- package/dist/markup-Px0heVon.js +1465 -0
- package/dist/markup-Px0heVon.js.map +1 -0
- package/dist/typeChecking.d.ts +0 -96
- package/dist/typeChecking.test.d.ts +1 -0
- package/dist/types.d.ts +0 -1
- package/dist/utils.d.ts +4 -1
- package/docs/views.md +0 -86
- package/notes/context-routes.md +56 -0
- package/notes/elimination.md +33 -0
- package/package.json +3 -4
- package/vite.config.js +5 -3
- package/dist/core/_batch.d.ts +0 -21
- package/dist/markup-BWJWLvDF.js +0 -1634
- package/dist/markup-BWJWLvDF.js.map +0 -1
package/dist/jsx-dev-runtime.js
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { p as createMarkup } from './markup-Px0heVon.js';
|
|
2
|
+
export { P as Fragment } from './markup-Px0heVon.js';
|
|
3
|
+
|
|
4
|
+
function jsxDEV(element, props, key, isStaticChildren, source, self) {
|
|
5
|
+
const attributes = { ...omit(["children", "key"], props) };
|
|
6
|
+
const children = Array.isArray(props.children) ? props.children : [props.children];
|
|
7
|
+
|
|
8
|
+
// return new _Markup(element, attributes, children);
|
|
9
|
+
return createMarkup(element, attributes, ...children);
|
|
6
10
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
function omit(keys, object) {
|
|
13
|
+
const result = {};
|
|
14
|
+
for (const key in object) {
|
|
15
|
+
if (!keys.includes(key)) {
|
|
16
|
+
result[key] = object[key];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return result;
|
|
12
20
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
d as jsxDEV
|
|
16
|
-
};
|
|
21
|
+
|
|
22
|
+
export { jsxDEV };
|
|
17
23
|
//# sourceMappingURL=jsx-dev-runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-dev-runtime.js","sources":["../src/jsx-dev-runtime.js"],"sourcesContent":["import { createMarkup } from \"./core/markup\";\nexport { Passthrough as Fragment } from \"./core/views/passthrough\";\n\nexport function jsxDEV(element, props, key, isStaticChildren, source, self) {\n const attributes = { ...omit([\"children\", \"key\"], props) };\n const children = Array.isArray(props.children) ? props.children : [props.children];\n\n // return new _Markup(element, attributes, children);\n return createMarkup(element, attributes, ...children);\n}\n\nfunction omit(keys, object) {\n const result = {};\n for (const key in object) {\n if (!keys.includes(key)) {\n result[key] = object[key];\n }\n }\n return result;\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"jsx-dev-runtime.js","sources":["../src/jsx-dev-runtime.js"],"sourcesContent":["import { createMarkup } from \"./core/markup\";\nexport { Passthrough as Fragment } from \"./core/views/passthrough\";\n\nexport function jsxDEV(element, props, key, isStaticChildren, source, self) {\n const attributes = { ...omit([\"children\", \"key\"], props) };\n const children = Array.isArray(props.children) ? props.children : [props.children];\n\n // return new _Markup(element, attributes, children);\n return createMarkup(element, attributes, ...children);\n}\n\nfunction omit(keys, object) {\n const result = {};\n for (const key in object) {\n if (!keys.includes(key)) {\n result[key] = object[key];\n }\n }\n return result;\n}\n"],"names":[],"mappings":";;;AAGO,SAAS,MAAM,CAAC,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE;AAC5E,EAAE,MAAM,UAAU,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE;AAC5D,EAAE,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC;;AAEpF;AACA,EAAE,OAAO,YAAY,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC;AACvD;;AAEA,SAAS,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE;AAC5B,EAAE,MAAM,MAAM,GAAG,EAAE;AACnB,EAAE,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;AAC5B,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC7B,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC;AAC/B;AACA;AACA,EAAE,OAAO,MAAM;AACf;;;;"}
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -1,20 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { p as createMarkup } from './markup-Px0heVon.js';
|
|
2
|
+
export { P as Fragment } from './markup-Px0heVon.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* JSX function for elements with dynamic children.
|
|
6
|
+
*/
|
|
7
|
+
function jsx(element, props, key) {
|
|
8
|
+
// return new _Markup(element, props ? { ...omit(["children", "key"], props) } : undefined, ...[props.children]);
|
|
9
|
+
return createMarkup(element, props ? { ...omit(["children", "key"], props) } : undefined, ...[props.children]);
|
|
5
10
|
}
|
|
6
|
-
|
|
7
|
-
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* JSX function for elements with static children.
|
|
14
|
+
*/
|
|
15
|
+
function jsxs(element, props, key) {
|
|
16
|
+
// return new _Markup(element, props ? { ...omit(["children", "key"], props) } : undefined, props.children);
|
|
17
|
+
return createMarkup(element, props ? { ...omit(["children", "key"], props) } : undefined, props.children);
|
|
8
18
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
19
|
+
|
|
20
|
+
function omit(keys, object) {
|
|
21
|
+
const result = {};
|
|
22
|
+
for (const key in object) {
|
|
23
|
+
if (!keys.includes(key)) {
|
|
24
|
+
result[key] = object[key];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return result;
|
|
14
28
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
d as jsx,
|
|
18
|
-
f as jsxs
|
|
19
|
-
};
|
|
29
|
+
|
|
30
|
+
export { jsx, jsxs };
|
|
20
31
|
//# sourceMappingURL=jsx-runtime.js.map
|
package/dist/jsx-runtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime.js","sources":["../src/jsx-runtime.js"],"sourcesContent":["import { createMarkup } from \"./core/markup\";\nexport { Passthrough as Fragment } from \"./core/views/passthrough\";\n\n/**\n * JSX function for elements with dynamic children.\n */\nexport function jsx(element, props, key) {\n // return new _Markup(element, props ? { ...omit([\"children\", \"key\"], props) } : undefined, ...[props.children]);\n return createMarkup(element, props ? { ...omit([\"children\", \"key\"], props) } : undefined, ...[props.children]);\n}\n\n/**\n * JSX function for elements with static children.\n */\nexport function jsxs(element, props, key) {\n // return new _Markup(element, props ? { ...omit([\"children\", \"key\"], props) } : undefined, props.children);\n return createMarkup(element, props ? { ...omit([\"children\", \"key\"], props) } : undefined, props.children);\n}\n\nfunction omit(keys, object) {\n const result = {};\n for (const key in object) {\n if (!keys.includes(key)) {\n result[key] = object[key];\n }\n }\n return result;\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"jsx-runtime.js","sources":["../src/jsx-runtime.js"],"sourcesContent":["import { createMarkup } from \"./core/markup\";\nexport { Passthrough as Fragment } from \"./core/views/passthrough\";\n\n/**\n * JSX function for elements with dynamic children.\n */\nexport function jsx(element, props, key) {\n // return new _Markup(element, props ? { ...omit([\"children\", \"key\"], props) } : undefined, ...[props.children]);\n return createMarkup(element, props ? { ...omit([\"children\", \"key\"], props) } : undefined, ...[props.children]);\n}\n\n/**\n * JSX function for elements with static children.\n */\nexport function jsxs(element, props, key) {\n // return new _Markup(element, props ? { ...omit([\"children\", \"key\"], props) } : undefined, props.children);\n return createMarkup(element, props ? { ...omit([\"children\", \"key\"], props) } : undefined, props.children);\n}\n\nfunction omit(keys, object) {\n const result = {};\n for (const key in object) {\n if (!keys.includes(key)) {\n result[key] = object[key];\n }\n }\n return result;\n}\n"],"names":[],"mappings":";;;AAGA;AACA;AACA;AACO,SAAS,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE;AACzC;AACA,EAAE,OAAO,YAAY,CAAC,OAAO,EAAE,KAAK,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,GAAG,SAAS,EAAE,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAChH;;AAEA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE;AAC1C;AACA,EAAE,OAAO,YAAY,CAAC,OAAO,EAAE,KAAK,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,GAAG,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC;AAC3G;;AAEA,SAAS,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE;AAC5B,EAAE,MAAM,MAAM,GAAG,EAAE;AACnB,EAAE,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;AAC5B,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC7B,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC;AAC/B;AACA;AACA,EAAE,OAAO,MAAM;AACf;;;;"}
|