proto-daisy-db 0.0.101 → 0.0.102

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.
@@ -133,6 +133,14 @@ const h = (nodeName, vnodeData, ...children) => {
133
133
  }
134
134
  return vnode;
135
135
  };
136
+ /**
137
+ * A utility function for creating a virtual DOM node from a tag and some
138
+ * possible text content.
139
+ *
140
+ * @param tag the tag for this element
141
+ * @param text possible text content for the node
142
+ * @returns a newly-minted virtual DOM node
143
+ */
136
144
  const newVNode = (tag, text) => {
137
145
  const vnode = {
138
146
  $flags$: 0,
@@ -147,6 +155,12 @@ const newVNode = (tag, text) => {
147
155
  return vnode;
148
156
  };
149
157
  const Host = {};
158
+ /**
159
+ * Check whether a given node is a Host node or not
160
+ *
161
+ * @param node the virtual DOM node to check
162
+ * @returns whether it's a Host node or not
163
+ */
150
164
  const isHost = (node) => node && node.$tag$ === Host;
151
165
  /**
152
166
  * Parse a new property value for a given property type.
@@ -439,6 +453,21 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
439
453
  }
440
454
  return elm;
441
455
  };
456
+ /**
457
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
458
+ * add them to the DOM in the appropriate place.
459
+ *
460
+ * @param parentElm the DOM node which should be used as a parent for the new
461
+ * DOM nodes
462
+ * @param before a child of the `parentElm` which the new children should be
463
+ * inserted before (optional)
464
+ * @param parentVNode the parent virtual DOM node
465
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
466
+ * @param startIdx the index in the child virtual DOM nodes at which to start
467
+ * creating DOM nodes (inclusive)
468
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
469
+ * creating DOM nodes (inclusive)
470
+ */
442
471
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
443
472
  let containerElm = (parentElm);
444
473
  let childNode;
@@ -455,6 +484,19 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
455
484
  }
456
485
  }
457
486
  };
487
+ /**
488
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
489
+ * This can be used to, for instance, clean up after a list of children which
490
+ * should no longer be shown.
491
+ *
492
+ * This function also handles some of Stencil's slot relocation logic.
493
+ *
494
+ * @param vnodes a list of virtual DOM nodes to remove
495
+ * @param startIdx the index at which to start removing nodes (inclusive)
496
+ * @param endIdx the index at which to stop removing nodes (inclusive)
497
+ * @param vnode a VNode
498
+ * @param elm an element
499
+ */
458
500
  const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
459
501
  for (; startIdx <= endIdx; ++startIdx) {
460
502
  if ((vnode = vnodes[startIdx])) {
@@ -646,7 +688,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
646
688
  *
647
689
  * So, in other words, if `key` attrs are not set on VNodes which may be
648
690
  * changing order within a `children` array or something along those lines then
649
- * we could obtain a false positive and then have to do needless re-rendering.
691
+ * we could obtain a false negative and then have to do needless re-rendering
692
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
650
693
  *
651
694
  * @param leftVNode the first VNode to check
652
695
  * @param rightVNode the second VNode to check
@@ -707,6 +750,18 @@ const patch = (oldVNode, newVNode) => {
707
750
  elm.data = text;
708
751
  }
709
752
  };
753
+ /**
754
+ * The main entry point for Stencil's virtual DOM-based rendering engine
755
+ *
756
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
757
+ * function will handle creating a virtual DOM tree with a single root, patching
758
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
759
+ * relocation, and reflecting attributes.
760
+ *
761
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
762
+ * the DOM node into which it should be rendered.
763
+ * @param renderFnResults the virtual DOM nodes to be rendered
764
+ */
710
765
  const renderVdom = (hostRef, renderFnResults) => {
711
766
  const hostElm = hostRef.$hostElement$;
712
767
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a49ead8b.js');
5
+ const index = require('./index-4488e12f.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.22.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.22.2 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a49ead8b.js');
5
+ const index = require('./index-4488e12f.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v2.22.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v2.22.2 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchBrowser = () => {
11
11
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-daisy-db.cjs.js', document.baseURI).href));
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a49ead8b.js');
5
+ const index = require('./index-4488e12f.js');
6
6
 
7
7
  const KEY = 'proto-daisy-db:app-data';
8
8
  const promisedParseJSON = (json) => {
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "compiler": {
10
10
  "name": "@stencil/core",
11
- "version": "2.22.1",
11
+ "version": "2.22.2",
12
12
  "typescriptVersion": "4.9.4"
13
13
  },
14
14
  "collections": [],
@@ -111,6 +111,14 @@ const h = (nodeName, vnodeData, ...children) => {
111
111
  }
112
112
  return vnode;
113
113
  };
114
+ /**
115
+ * A utility function for creating a virtual DOM node from a tag and some
116
+ * possible text content.
117
+ *
118
+ * @param tag the tag for this element
119
+ * @param text possible text content for the node
120
+ * @returns a newly-minted virtual DOM node
121
+ */
114
122
  const newVNode = (tag, text) => {
115
123
  const vnode = {
116
124
  $flags$: 0,
@@ -125,6 +133,12 @@ const newVNode = (tag, text) => {
125
133
  return vnode;
126
134
  };
127
135
  const Host = {};
136
+ /**
137
+ * Check whether a given node is a Host node or not
138
+ *
139
+ * @param node the virtual DOM node to check
140
+ * @returns whether it's a Host node or not
141
+ */
128
142
  const isHost = (node) => node && node.$tag$ === Host;
129
143
  /**
130
144
  * Parse a new property value for a given property type.
@@ -417,6 +431,21 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
417
431
  }
418
432
  return elm;
419
433
  };
434
+ /**
435
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
436
+ * add them to the DOM in the appropriate place.
437
+ *
438
+ * @param parentElm the DOM node which should be used as a parent for the new
439
+ * DOM nodes
440
+ * @param before a child of the `parentElm` which the new children should be
441
+ * inserted before (optional)
442
+ * @param parentVNode the parent virtual DOM node
443
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
444
+ * @param startIdx the index in the child virtual DOM nodes at which to start
445
+ * creating DOM nodes (inclusive)
446
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
447
+ * creating DOM nodes (inclusive)
448
+ */
420
449
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
421
450
  let containerElm = (parentElm);
422
451
  let childNode;
@@ -433,6 +462,19 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
433
462
  }
434
463
  }
435
464
  };
465
+ /**
466
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
467
+ * This can be used to, for instance, clean up after a list of children which
468
+ * should no longer be shown.
469
+ *
470
+ * This function also handles some of Stencil's slot relocation logic.
471
+ *
472
+ * @param vnodes a list of virtual DOM nodes to remove
473
+ * @param startIdx the index at which to start removing nodes (inclusive)
474
+ * @param endIdx the index at which to stop removing nodes (inclusive)
475
+ * @param vnode a VNode
476
+ * @param elm an element
477
+ */
436
478
  const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
437
479
  for (; startIdx <= endIdx; ++startIdx) {
438
480
  if ((vnode = vnodes[startIdx])) {
@@ -624,7 +666,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
624
666
  *
625
667
  * So, in other words, if `key` attrs are not set on VNodes which may be
626
668
  * changing order within a `children` array or something along those lines then
627
- * we could obtain a false positive and then have to do needless re-rendering.
669
+ * we could obtain a false negative and then have to do needless re-rendering
670
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
628
671
  *
629
672
  * @param leftVNode the first VNode to check
630
673
  * @param rightVNode the second VNode to check
@@ -685,6 +728,18 @@ const patch = (oldVNode, newVNode) => {
685
728
  elm.data = text;
686
729
  }
687
730
  };
731
+ /**
732
+ * The main entry point for Stencil's virtual DOM-based rendering engine
733
+ *
734
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
735
+ * function will handle creating a virtual DOM tree with a single root, patching
736
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
737
+ * relocation, and reflecting attributes.
738
+ *
739
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
740
+ * the DOM node into which it should be rendered.
741
+ * @param renderFnResults the virtual DOM nodes to be rendered
742
+ */
688
743
  const renderVdom = (hostRef, renderFnResults) => {
689
744
  const hostElm = hostRef.$hostElement$;
690
745
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-f2c3d9ea.js';
2
- export { s as setNonce } from './index-f2c3d9ea.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-8ede61be.js';
2
+ export { s as setNonce } from './index-8ede61be.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Esm v2.22.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Esm v2.22.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchEsm = () => {
8
8
  return promiseResolve();
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-f2c3d9ea.js';
2
- export { s as setNonce } from './index-f2c3d9ea.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-8ede61be.js';
2
+ export { s as setNonce } from './index-8ede61be.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v2.22.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v2.22.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchBrowser = () => {
8
8
  const importMeta = import.meta.url;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-f2c3d9ea.js';
1
+ import { r as registerInstance, h } from './index-8ede61be.js';
2
2
 
3
3
  const KEY = 'proto-daisy-db:app-data';
4
4
  const promisedParseJSON = (json) => {
@@ -1 +1 @@
1
- import{r as t,h as o}from"./p-a6607014.js";const s="proto-daisy-db:app-data",a=class{constructor(o){t(this,o),this.emitter=void 0}componentDidLoad(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter];t.on("app-data:get",(()=>{var o;console.log("app-data:get"),(o=localStorage.getItem(s),new Promise(((t,s)=>{try{t(JSON.parse(o))}catch(t){s(t)}}))).then((o=>{t.emit("app-data:value",o)})).catch((t=>{console.log(t)}))})),t.on("app-data:store",(t=>{console.log("app-data:store",t),(t=>{const o=JSON.stringify(t);localStorage.setItem(s,o)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return o("div",null)}};a.style="";const r=class{constructor(o){t(this,o),this.data=void 0}render(){const t=this.data?Object.keys(this.data):[];return o("div",{class:"flex flex-col"},t.map((t=>o("span",null,t))))}};r.style="";const e=class{constructor(o){t(this,o),this.data=void 0}render(){return o("div",{class:"flex"},o("span",null,this.data?this.data.stamp:""))}};e.style="";const i=class{constructor(o){t(this,o),this.emitter=void 0,this.data=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("app-data:value",(t=>{this.data=t}))}emitData(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter],o={login:!0,stamp:Date.now(),theme:"dark",dealers:[]};this.data=void 0,t.emit("app-data:store",o)}}fetchData(){this.emitter&&window[this.emitter]&&window[this.emitter].emit("app-data:get",42)}render(){return o("div",{class:"flex flex-col font-sans"},o("div",{class:"flex flex-row content-center gap-2"},o("button",{class:"btn bg-clrs-navy text-clrs-white",onClick:()=>this.emitData()},"Save"),o("button",{class:"btn bg-clrs-blue text-clrs-white",onClick:()=>this.fetchData()},"Fetch")),o("proto-faux-type",{class:"mt-4",emitter:this.emitter}),o("proto-faux-stamp",{class:"mt-2 text-xs",data:this.data}),o("proto-faux-keys",{class:"mt-2",data:this.data}))}};i.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.btn{border-radius:0.375rem;border-width:1px;border-style:solid;border-color:var(--clrs-aqua, #7fdbff);padding:0.5rem}.mt-4{margin-top:1rem}.mt-2{margin-top:0.5rem}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.content-center{align-content:center}.gap-2{gap:0.5rem}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.font-sans{font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'}.text-xs{font-size:0.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-white{color:var(--clrs-white, #ffffff)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";const n=class{constructor(o){t(this,o),this.emitter=void 0,this.eventType=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("*",(t=>{this.eventType=t}))}render(){return o("div",null,o("span",{class:"text-xs italic"},this.eventType))}};n.style="proto-faux-type{}";export{a as proto_daisy_db,r as proto_faux_keys,e as proto_faux_stamp,i as proto_faux_trigger,n as proto_faux_type}
1
+ import{r as t,h as o}from"./p-a0bde099.js";const s="proto-daisy-db:app-data",a=class{constructor(o){t(this,o),this.emitter=void 0}componentDidLoad(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter];t.on("app-data:get",(()=>{var o;console.log("app-data:get"),(o=localStorage.getItem(s),new Promise(((t,s)=>{try{t(JSON.parse(o))}catch(t){s(t)}}))).then((o=>{t.emit("app-data:value",o)})).catch((t=>{console.log(t)}))})),t.on("app-data:store",(t=>{console.log("app-data:store",t),(t=>{const o=JSON.stringify(t);localStorage.setItem(s,o)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return o("div",null)}};a.style="";const r=class{constructor(o){t(this,o),this.data=void 0}render(){const t=this.data?Object.keys(this.data):[];return o("div",{class:"flex flex-col"},t.map((t=>o("span",null,t))))}};r.style="";const e=class{constructor(o){t(this,o),this.data=void 0}render(){return o("div",{class:"flex"},o("span",null,this.data?this.data.stamp:""))}};e.style="";const i=class{constructor(o){t(this,o),this.emitter=void 0,this.data=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("app-data:value",(t=>{this.data=t}))}emitData(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter],o={login:!0,stamp:Date.now(),theme:"dark",dealers:[]};this.data=void 0,t.emit("app-data:store",o)}}fetchData(){this.emitter&&window[this.emitter]&&window[this.emitter].emit("app-data:get",42)}render(){return o("div",{class:"flex flex-col font-sans"},o("div",{class:"flex flex-row content-center gap-2"},o("button",{class:"btn bg-clrs-navy text-clrs-white",onClick:()=>this.emitData()},"Save"),o("button",{class:"btn bg-clrs-blue text-clrs-white",onClick:()=>this.fetchData()},"Fetch")),o("proto-faux-type",{class:"mt-4",emitter:this.emitter}),o("proto-faux-stamp",{class:"mt-2 text-xs",data:this.data}),o("proto-faux-keys",{class:"mt-2",data:this.data}))}};i.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.btn{border-radius:0.375rem;border-width:1px;border-style:solid;border-color:var(--clrs-aqua, #7fdbff);padding:0.5rem}.mt-4{margin-top:1rem}.mt-2{margin-top:0.5rem}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.content-center{align-content:center}.gap-2{gap:0.5rem}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.font-sans{font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'}.text-xs{font-size:0.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-white{color:var(--clrs-white, #ffffff)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";const n=class{constructor(o){t(this,o),this.emitter=void 0,this.eventType=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("*",(t=>{this.eventType=t}))}render(){return o("div",null,o("span",{class:"text-xs italic"},this.eventType))}};n.style="proto-faux-type{}";export{a as proto_daisy_db,r as proto_faux_keys,e as proto_faux_stamp,i as proto_faux_trigger,n as proto_faux_type}
@@ -1 +1 @@
1
- import{p as t,b as e}from"./p-a6607014.js";export{s as setNonce}from"./p-a6607014.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((t=>e([["p-fe2cacfb",[[0,"proto-faux-trigger",{emitter:[1],data:[1040]}],[1,"proto-daisy-db",{emitter:[1]}],[0,"proto-faux-keys",{data:[16]}],[0,"proto-faux-stamp",{data:[16]}],[0,"proto-faux-type",{emitter:[1],eventType:[1025,"event-type"]}]]]],t)));
1
+ import{p as t,b as e}from"./p-a0bde099.js";export{s as setNonce}from"./p-a0bde099.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((t=>e([["p-f411e7e1",[[0,"proto-faux-trigger",{emitter:[1],data:[1040]}],[1,"proto-daisy-db",{emitter:[1]}],[0,"proto-faux-keys",{data:[16]}],[0,"proto-faux-stamp",{data:[16]}],[0,"proto-faux-type",{emitter:[1],eventType:[1025,"event-type"]}]]]],t)));
@@ -485,6 +485,14 @@ export interface FunctionalUtilities {
485
485
  export interface FunctionalComponent<T = {}> {
486
486
  (props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[];
487
487
  }
488
+ /**
489
+ * A Child VDOM node
490
+ *
491
+ * This has most of the same properties as {@link VNode} but friendlier names
492
+ * (i.e. `vtag` instead of `$tag$`, `vchildren` instead of `$children$`) in
493
+ * order to provide a friendlier public interface for users of the
494
+ * {@link FunctionalUtilities}).
495
+ */
488
496
  export interface ChildNode {
489
497
  vtag?: string | number | Function;
490
498
  vkey?: string | number;
@@ -531,6 +539,9 @@ export declare function h(sel: any, children: Array<VNode | undefined | null>):
531
539
  export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
532
540
  export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
533
541
  export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
542
+ /**
543
+ * A virtual DOM node
544
+ */
534
545
  export interface VNode {
535
546
  $flags$: number;
536
547
  $tag$: string | number | Function;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-daisy-db",
3
- "version": "0.0.101",
3
+ "version": "0.0.102",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -27,7 +27,7 @@
27
27
  "format": "prettier --write src"
28
28
  },
29
29
  "dependencies": {
30
- "@stencil/core": "2.22.1",
30
+ "@stencil/core": "2.22.2",
31
31
  "mitt": "3.0.0"
32
32
  },
33
33
  "devDependencies": {