@manyducks.co/dolla 2.0.0-alpha.43 → 2.0.0-alpha.45
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 +28 -28
- package/dist/core/context.d.ts +6 -0
- package/dist/core/markup.d.ts +7 -5
- package/dist/core/nodes/dynamic.d.ts +2 -0
- package/dist/core/nodes/fragment.d.ts +19 -0
- package/dist/core/nodes/html.d.ts +2 -2
- package/dist/core/nodes/outlet.d.ts +6 -5
- package/dist/core/nodes/view.d.ts +6 -6
- package/dist/core/views/default-crash-view.d.ts +1 -1
- package/dist/core/views/for.d.ts +9 -0
- package/dist/core/views/fragment.d.ts +8 -0
- package/dist/core/views/passthrough.d.ts +1 -1
- package/dist/fragment-HanpB-Z6.js +8 -0
- package/dist/fragment-HanpB-Z6.js.map +1 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +308 -301
- package/dist/index.js.map +1 -1
- package/dist/jsx-dev-runtime.d.ts +1 -1
- package/dist/jsx-dev-runtime.js +8 -8
- package/dist/jsx-dev-runtime.js.map +1 -1
- package/dist/jsx-runtime.d.ts +1 -1
- package/dist/jsx-runtime.js +10 -10
- package/dist/jsx-runtime.js.map +1 -1
- package/dist/{markup-CSJbSI8_.js → markup-DZcvFR50.js} +429 -406
- package/dist/markup-DZcvFR50.js.map +1 -0
- package/notes/atomic.md +74 -6
- package/package.json +2 -3
- package/dist/markup-CSJbSI8_.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-dev-runtime.js","sources":["../src/jsx-dev-runtime.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"jsx-dev-runtime.js","sources":["../src/jsx-dev-runtime.js"],"sourcesContent":["import { markup } from \"./core/markup\";\nexport { Fragment } from \"./core/views/fragment\";\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 markup(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":["jsxDEV","element","props","key","isStaticChildren","source","self","attributes","omit","children","markup","keys","object","result"],"mappings":";;AAGO,SAASA,EAAOC,GAASC,GAAOC,GAAKC,GAAkBC,GAAQC,GAAM;AAC1E,QAAMC,IAAa,EAAE,GAAGC,EAAK,CAAC,YAAY,KAAK,GAAGN,CAAK,EAAG,GACpDO,IAAW,MAAM,QAAQP,EAAM,QAAQ,IAAIA,EAAM,WAAW,CAACA,EAAM,QAAQ;AAGjF,SAAOQ,EAAOT,GAASM,GAAY,GAAGE,CAAQ;AAChD;AAEA,SAASD,EAAKG,GAAMC,GAAQ;AAC1B,QAAMC,IAAS,CAAE;AACjB,aAAWV,KAAOS;AAChB,IAAKD,EAAK,SAASR,CAAG,MACpBU,EAAOV,CAAG,IAAIS,EAAOT,CAAG;AAG5B,SAAOU;AACT;"}
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -6,4 +6,4 @@ export function jsx(element: any, props: any, key: any): import("./core/markup")
|
|
|
6
6
|
* JSX function for elements with static children.
|
|
7
7
|
*/
|
|
8
8
|
export function jsxs(element: any, props: any, key: any): import("./core/markup").Markup;
|
|
9
|
-
export {
|
|
9
|
+
export { Fragment } from "./core/views/fragment";
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
function d(
|
|
4
|
-
return t(
|
|
1
|
+
import { m as t } from "./markup-DZcvFR50.js";
|
|
2
|
+
import { F as k } from "./fragment-HanpB-Z6.js";
|
|
3
|
+
function d(e, n, r) {
|
|
4
|
+
return t(e, n ? { ...u(["children", "key"], n) } : void 0, n.children);
|
|
5
5
|
}
|
|
6
|
-
function f(
|
|
7
|
-
return t(
|
|
6
|
+
function f(e, n, r) {
|
|
7
|
+
return t(e, n ? { ...u(["children", "key"], n) } : void 0, n.children);
|
|
8
8
|
}
|
|
9
|
-
function u(
|
|
9
|
+
function u(e, n) {
|
|
10
10
|
const r = {};
|
|
11
|
-
for (const i in
|
|
12
|
-
|
|
11
|
+
for (const i in n)
|
|
12
|
+
e.includes(i) || (r[i] = n[i]);
|
|
13
13
|
return r;
|
|
14
14
|
}
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
k as Fragment,
|
|
17
17
|
d as jsx,
|
|
18
18
|
f as jsxs
|
|
19
19
|
};
|
package/dist/jsx-runtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime.js","sources":["../src/jsx-runtime.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"jsx-runtime.js","sources":["../src/jsx-runtime.js"],"sourcesContent":["import { markup } from \"./core/markup\";\nexport { Fragment } from \"./core/views/fragment\";\n\n/**\n * JSX function for elements with dynamic children.\n */\nexport function jsx(element, props, key) {\n return markup(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 markup(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":["jsx","element","props","key","markup","omit","jsxs","keys","object","result"],"mappings":";;AAMO,SAASA,EAAIC,GAASC,GAAOC,GAAK;AACvC,SAAOC,EAAOH,GAASC,IAAQ,EAAE,GAAGG,EAAK,CAAC,YAAY,KAAK,GAAGH,CAAK,EAAC,IAAK,QAAeA,EAAM,QAAS;AACzG;AAKO,SAASI,EAAKL,GAASC,GAAOC,GAAK;AACxC,SAAOC,EAAOH,GAASC,IAAQ,EAAE,GAAGG,EAAK,CAAC,YAAY,KAAK,GAAGH,CAAK,EAAC,IAAK,QAAWA,EAAM,QAAQ;AACpG;AAEA,SAASG,EAAKE,GAAMC,GAAQ;AAC1B,QAAMC,IAAS,CAAE;AACjB,aAAWN,KAAOK;AAChB,IAAKD,EAAK,SAASJ,CAAG,MACpBM,EAAON,CAAG,IAAIK,EAAOL,CAAG;AAG5B,SAAOM;AACT;"}
|