jaxs 0.3.0 → 0.3.2
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/cypress/jaxs-apps/add-remove-nested-children.jsx +2 -1
- package/cypress/jaxs-apps/add-remove-root-children.jsx +2 -1
- package/cypress/jaxs-apps/dist/add-remove-nested-children.afcab974.js +316 -11
- package/cypress/jaxs-apps/dist/add-remove-nested-children.afcab974.js.map +1 -1
- package/cypress/jaxs-apps/dist/add-remove-root-children.3bb9b3f5.js +2 -40
- package/cypress/jaxs-apps/dist/add-remove-root-children.3bb9b3f5.js.map +1 -1
- package/cypress/jaxs-apps/dist/add-remove-root-children.fbb4ec9b.js +318 -13
- package/cypress/jaxs-apps/dist/add-remove-root-children.fbb4ec9b.js.map +1 -1
- package/cypress/jaxs-apps/dist/svg.04290504.js.map +1 -1
- package/dist/jaxs.js +33 -64
- package/package.json +5 -1
- package/src/app.ts +26 -6
- package/src/jaxs.ts +0 -1
- package/src/navigation/setupHistory.js +2 -2
- package/src/navigation/setupNavigation.js +3 -3
- package/src/rendering/dom/create.ts +0 -2
- package/src/rendering/dom/svg.ts +1 -1
- package/src/rendering/templates/bound.js +2 -1
- package/src/types.ts +8 -0
|
@@ -583,21 +583,22 @@ var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
|
|
583
583
|
parcelHelpers.defineInteropFlag(exports);
|
|
584
584
|
parcelHelpers.export(exports, "MainContentTemplate", ()=>MainContentTemplate);
|
|
585
585
|
var _jaxsJs = require("../../dist/jaxs.js");
|
|
586
|
-
|
|
586
|
+
var _viewsJs = require("../../src/views.js");
|
|
587
|
+
const { If, Unless } = (0, _viewsJs.views);
|
|
587
588
|
const app = (0, _jaxsJs.createApp)();
|
|
588
589
|
const MainContentTemplate = ({ inMembers })=>{
|
|
589
590
|
return /*#__PURE__*/ (0, _jaxsJs.jsx)((0, _jaxsJs.jsx).fragment, null, /*#__PURE__*/ (0, _jaxsJs.jsx)(Unless, {
|
|
590
591
|
condition: inMembers,
|
|
591
592
|
__source: {
|
|
592
593
|
fileName: "cypress/jaxs-apps/add-remove-root-children.jsx",
|
|
593
|
-
lineNumber:
|
|
594
|
+
lineNumber: 10,
|
|
594
595
|
columnNumber: 7
|
|
595
596
|
},
|
|
596
597
|
__self: undefined
|
|
597
598
|
}, /*#__PURE__*/ (0, _jaxsJs.jsx)("form", {
|
|
598
599
|
__source: {
|
|
599
600
|
fileName: "cypress/jaxs-apps/add-remove-root-children.jsx",
|
|
600
|
-
lineNumber:
|
|
601
|
+
lineNumber: 11,
|
|
601
602
|
columnNumber: 9
|
|
602
603
|
},
|
|
603
604
|
__self: undefined
|
|
@@ -605,7 +606,7 @@ const MainContentTemplate = ({ inMembers })=>{
|
|
|
605
606
|
class: "guest-content",
|
|
606
607
|
__source: {
|
|
607
608
|
fileName: "cypress/jaxs-apps/add-remove-root-children.jsx",
|
|
608
|
-
lineNumber:
|
|
609
|
+
lineNumber: 12,
|
|
609
610
|
columnNumber: 11
|
|
610
611
|
},
|
|
611
612
|
__self: undefined
|
|
@@ -614,7 +615,7 @@ const MainContentTemplate = ({ inMembers })=>{
|
|
|
614
615
|
value: "Agree! or something",
|
|
615
616
|
__source: {
|
|
616
617
|
fileName: "cypress/jaxs-apps/add-remove-root-children.jsx",
|
|
617
|
-
lineNumber:
|
|
618
|
+
lineNumber: 15,
|
|
618
619
|
columnNumber: 11
|
|
619
620
|
},
|
|
620
621
|
__self: undefined
|
|
@@ -622,7 +623,7 @@ const MainContentTemplate = ({ inMembers })=>{
|
|
|
622
623
|
condition: inMembers,
|
|
623
624
|
__source: {
|
|
624
625
|
fileName: "cypress/jaxs-apps/add-remove-root-children.jsx",
|
|
625
|
-
lineNumber:
|
|
626
|
+
lineNumber: 18,
|
|
626
627
|
columnNumber: 7
|
|
627
628
|
},
|
|
628
629
|
__self: undefined
|
|
@@ -630,7 +631,7 @@ const MainContentTemplate = ({ inMembers })=>{
|
|
|
630
631
|
class: "member-content",
|
|
631
632
|
__source: {
|
|
632
633
|
fileName: "cypress/jaxs-apps/add-remove-root-children.jsx",
|
|
633
|
-
lineNumber:
|
|
634
|
+
lineNumber: 19,
|
|
634
635
|
columnNumber: 9
|
|
635
636
|
},
|
|
636
637
|
__self: undefined
|
|
@@ -638,7 +639,7 @@ const MainContentTemplate = ({ inMembers })=>{
|
|
|
638
639
|
class: "member-content",
|
|
639
640
|
__source: {
|
|
640
641
|
fileName: "cypress/jaxs-apps/add-remove-root-children.jsx",
|
|
641
|
-
lineNumber:
|
|
642
|
+
lineNumber: 20,
|
|
642
643
|
columnNumber: 9
|
|
643
644
|
},
|
|
644
645
|
__self: undefined
|
|
@@ -649,7 +650,7 @@ const ProfileAreaTemplate = ({ inMembers })=>{
|
|
|
649
650
|
condition: inMembers,
|
|
650
651
|
__source: {
|
|
651
652
|
fileName: "cypress/jaxs-apps/add-remove-root-children.jsx",
|
|
652
|
-
lineNumber:
|
|
653
|
+
lineNumber: 27,
|
|
653
654
|
columnNumber: 5
|
|
654
655
|
},
|
|
655
656
|
__self: undefined
|
|
@@ -659,7 +660,7 @@ const ProfileAreaTemplate = ({ inMembers })=>{
|
|
|
659
660
|
class: "exclusive-link",
|
|
660
661
|
__source: {
|
|
661
662
|
fileName: "cypress/jaxs-apps/add-remove-root-children.jsx",
|
|
662
|
-
lineNumber:
|
|
663
|
+
lineNumber: 28,
|
|
663
664
|
columnNumber: 7
|
|
664
665
|
},
|
|
665
666
|
__self: undefined
|
|
@@ -687,7 +688,7 @@ const ProfileArea = (0, _jaxsJs.bind)({
|
|
|
687
688
|
app.render(/*#__PURE__*/ (0, _jaxsJs.jsx)(MainContent, {
|
|
688
689
|
__source: {
|
|
689
690
|
fileName: "cypress/jaxs-apps/add-remove-root-children.jsx",
|
|
690
|
-
lineNumber:
|
|
691
|
+
lineNumber: 53,
|
|
691
692
|
columnNumber: 12
|
|
692
693
|
},
|
|
693
694
|
__self: undefined
|
|
@@ -695,12 +696,316 @@ app.render(/*#__PURE__*/ (0, _jaxsJs.jsx)(MainContent, {
|
|
|
695
696
|
app.render(/*#__PURE__*/ (0, _jaxsJs.jsx)(ProfileArea, {
|
|
696
697
|
__source: {
|
|
697
698
|
fileName: "cypress/jaxs-apps/add-remove-root-children.jsx",
|
|
698
|
-
lineNumber:
|
|
699
|
+
lineNumber: 54,
|
|
699
700
|
columnNumber: 12
|
|
700
701
|
},
|
|
701
702
|
__self: undefined
|
|
702
703
|
}), "#profile-area");
|
|
703
704
|
|
|
704
|
-
},{"../../dist/jaxs.js":"bAfYR","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"
|
|
705
|
+
},{"../../dist/jaxs.js":"bAfYR","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3","../../src/views.js":"1F1Bq"}],"1F1Bq":[function(require,module,exports) {
|
|
706
|
+
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
|
707
|
+
parcelHelpers.defineInteropFlag(exports);
|
|
708
|
+
parcelHelpers.export(exports, "views", ()=>views);
|
|
709
|
+
var _conditionalsJsx = require("./views/conditionals.jsx");
|
|
710
|
+
var _linkJsx = require("./views/link.jsx");
|
|
711
|
+
const views = {
|
|
712
|
+
..._conditionalsJsx,
|
|
713
|
+
Link: (0, _linkJsx.Link)
|
|
714
|
+
};
|
|
715
|
+
|
|
716
|
+
},{"./views/conditionals.jsx":"7Zl6n","./views/link.jsx":"4T9d8","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"7Zl6n":[function(require,module,exports) {
|
|
717
|
+
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
|
718
|
+
parcelHelpers.defineInteropFlag(exports);
|
|
719
|
+
parcelHelpers.export(exports, "If", ()=>If);
|
|
720
|
+
parcelHelpers.export(exports, "Unless", ()=>Unless);
|
|
721
|
+
parcelHelpers.export(exports, "IfElse", ()=>IfElse);
|
|
722
|
+
var _jsx = require("../jsx");
|
|
723
|
+
var _jsxDefault = parcelHelpers.interopDefault(_jsx);
|
|
724
|
+
const If = ({ condition, children })=>{
|
|
725
|
+
if (!condition) return;
|
|
726
|
+
return /*#__PURE__*/ (0, _jsxDefault.default)((0, _jsxDefault.default).fragment, null, children);
|
|
727
|
+
};
|
|
728
|
+
const Unless = ({ condition, children })=>{
|
|
729
|
+
if (condition) return;
|
|
730
|
+
return /*#__PURE__*/ (0, _jsxDefault.default)((0, _jsxDefault.default).fragment, null, children);
|
|
731
|
+
};
|
|
732
|
+
const IfElse = ({ condition, children })=>{
|
|
733
|
+
const [first, ...rest] = children;
|
|
734
|
+
if (condition) return /*#__PURE__*/ (0, _jsxDefault.default)((0, _jsxDefault.default).fragment, null, first);
|
|
735
|
+
return /*#__PURE__*/ (0, _jsxDefault.default)((0, _jsxDefault.default).fragment, null, rest);
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
},{"../jsx":"ec42s","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"ec42s":[function(require,module,exports) {
|
|
739
|
+
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
|
740
|
+
parcelHelpers.defineInteropFlag(exports);
|
|
741
|
+
var _tag = require("./rendering/templates/tag");
|
|
742
|
+
var _children = require("./rendering/templates/children");
|
|
743
|
+
const ensureChildrenArray = (maybeChildren, attributes)=>maybeChildren || attributes.children || [];
|
|
744
|
+
const packageAttributes = (maybeAttributes, maybeChildren)=>{
|
|
745
|
+
const attributes = maybeAttributes || {};
|
|
746
|
+
const children = ensureChildrenArray(maybeChildren, attributes);
|
|
747
|
+
attributes.children = attributes.children || children;
|
|
748
|
+
return attributes;
|
|
749
|
+
};
|
|
750
|
+
const jsx = (type, attributes, ...children)=>{
|
|
751
|
+
if (typeof type === "string") return new (0, _tag.Tag)(type, attributes, children);
|
|
752
|
+
return type(packageAttributes(attributes, children));
|
|
753
|
+
};
|
|
754
|
+
jsx.fragment = (attributes, maybeChildren)=>{
|
|
755
|
+
const children = ensureChildrenArray(maybeChildren, attributes);
|
|
756
|
+
return new (0, _children.Children)(children);
|
|
757
|
+
};
|
|
758
|
+
exports.default = jsx;
|
|
759
|
+
|
|
760
|
+
},{"./rendering/templates/tag":"3X63B","./rendering/templates/children":"gKMx0","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"3X63B":[function(require,module,exports) {
|
|
761
|
+
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
|
762
|
+
parcelHelpers.defineInteropFlag(exports);
|
|
763
|
+
parcelHelpers.export(exports, "Tag", ()=>Tag);
|
|
764
|
+
var _create = require("../dom/create");
|
|
765
|
+
var _attributesAndEvents = require("../dom/attributesAndEvents");
|
|
766
|
+
var _svg = require("../dom/svg");
|
|
767
|
+
var _children = require("./children");
|
|
768
|
+
class Tag {
|
|
769
|
+
constructor(tagType, combinedAttributes, children, isSvg = false){
|
|
770
|
+
this.type = tagType;
|
|
771
|
+
const { events, attributes } = (0, _attributesAndEvents.separateAttrsAndEvents)(combinedAttributes);
|
|
772
|
+
this.events = events;
|
|
773
|
+
this.attributes = attributes;
|
|
774
|
+
this.isSvg = isSvg || (0, _svg.isSvgTag)(this.type);
|
|
775
|
+
this.children = new (0, _children.Children)(children, this.isSvg);
|
|
776
|
+
}
|
|
777
|
+
render(renderKit) {
|
|
778
|
+
const dom = this.generateDom(renderKit);
|
|
779
|
+
if (!dom) return [];
|
|
780
|
+
this.children.render(renderKit, dom);
|
|
781
|
+
return [
|
|
782
|
+
dom
|
|
783
|
+
];
|
|
784
|
+
}
|
|
785
|
+
generateDom(renderKit) {
|
|
786
|
+
if (this.isSvg) return this.generateSvnDom(renderKit);
|
|
787
|
+
else return this.generateHtmlDom(renderKit);
|
|
788
|
+
}
|
|
789
|
+
generateHtmlDom(renderKit) {
|
|
790
|
+
const node = (0, _create.createDecoratedNode)(this.type, this.attributes, this.events, renderKit);
|
|
791
|
+
node.__jsx = this.key();
|
|
792
|
+
return node;
|
|
793
|
+
}
|
|
794
|
+
generateSvnDom(renderKit) {
|
|
795
|
+
const node = (0, _svg.createSvgNode)(this.type, this.attributes, renderKit);
|
|
796
|
+
node.__jsx = this.key();
|
|
797
|
+
return node;
|
|
798
|
+
}
|
|
799
|
+
key() {
|
|
800
|
+
return this.attributes.key || this.source() || this.createKey();
|
|
801
|
+
}
|
|
802
|
+
source() {
|
|
803
|
+
if (this.attributes.__source) {
|
|
804
|
+
const { fileName, lineNumber, columnNumber } = this.attributes.__source;
|
|
805
|
+
return `${fileName}:${lineNumber}:${columnNumber}`;
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
createKey() {
|
|
809
|
+
const id = this.attributes.id ? `#${this.attributes.id}` : "";
|
|
810
|
+
const type = this.attributes.type ? `[type=${this.attributes.type}]` : "";
|
|
811
|
+
const name = this.attributes.name ? `[name=${this.attributes.name}]` : "";
|
|
812
|
+
return `${this.type}${id}${type}${name}`;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
},{"../dom/create":"762Da","../dom/attributesAndEvents":"gUSxu","../dom/svg":"ipbm5","./children":"gKMx0","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"762Da":[function(require,module,exports) {
|
|
817
|
+
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
|
818
|
+
parcelHelpers.defineInteropFlag(exports);
|
|
819
|
+
parcelHelpers.export(exports, "setAttributesOnElement", ()=>setAttributesOnElement);
|
|
820
|
+
parcelHelpers.export(exports, "setEventsOnElement", ()=>setEventsOnElement);
|
|
821
|
+
parcelHelpers.export(exports, "createNode", ()=>createNode);
|
|
822
|
+
parcelHelpers.export(exports, "createTextNode", ()=>createTextNode);
|
|
823
|
+
parcelHelpers.export(exports, "createDecoratedNode", ()=>createDecoratedNode);
|
|
824
|
+
const setAttributesOnElement = (element, attributes)=>{
|
|
825
|
+
for(const key in attributes){
|
|
826
|
+
if (key === "__self") continue;
|
|
827
|
+
if (key === "value") element.value = attributes[key];
|
|
828
|
+
else element.setAttribute(key, attributes[key]);
|
|
829
|
+
}
|
|
830
|
+
};
|
|
831
|
+
const setEventsOnElement = (element, events, publish)=>{
|
|
832
|
+
const eventMaps = {};
|
|
833
|
+
for(const domEvent in events){
|
|
834
|
+
const eventName = events[domEvent];
|
|
835
|
+
const listener = (event)=>publish(eventName, event);
|
|
836
|
+
element.addEventListener(domEvent, listener);
|
|
837
|
+
eventMaps[domEvent] = {
|
|
838
|
+
domEvent: domEvent,
|
|
839
|
+
busEvent: eventName,
|
|
840
|
+
listener: listener
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
element.eventMaps = eventMaps;
|
|
844
|
+
};
|
|
845
|
+
const createNode = (type, document)=>{
|
|
846
|
+
document = document || window.document;
|
|
847
|
+
return document.createElement(type);
|
|
848
|
+
};
|
|
849
|
+
const createTextNode = (value, document)=>{
|
|
850
|
+
document = document || window.document;
|
|
851
|
+
return document.createTextNode(value);
|
|
852
|
+
};
|
|
853
|
+
const createDecoratedNode = (type, attributes, events, renderKit)=>{
|
|
854
|
+
// deno-lint-ignore no-explicit-any
|
|
855
|
+
const dom = createNode(type, renderKit.document);
|
|
856
|
+
setAttributesOnElement(dom, attributes);
|
|
857
|
+
setEventsOnElement(dom, events, renderKit.publish);
|
|
858
|
+
return dom;
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
},{"@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"gUSxu":[function(require,module,exports) {
|
|
862
|
+
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
|
863
|
+
parcelHelpers.defineInteropFlag(exports);
|
|
864
|
+
parcelHelpers.export(exports, "separateAttrsAndEvents", ()=>separateAttrsAndEvents);
|
|
865
|
+
const separateAttrsAndEvents = (combined, defaultValue = "")=>{
|
|
866
|
+
const attributes = {};
|
|
867
|
+
const events = {};
|
|
868
|
+
for(const key in combined){
|
|
869
|
+
const value = combined[key];
|
|
870
|
+
if (key.match(/^on.+/i)) {
|
|
871
|
+
const eventKey = key.slice(2).toLowerCase();
|
|
872
|
+
events[eventKey] = value;
|
|
873
|
+
} else attributes[key] = normalizeValueForKey(combined, key, defaultValue);
|
|
874
|
+
}
|
|
875
|
+
return {
|
|
876
|
+
attributes,
|
|
877
|
+
events
|
|
878
|
+
};
|
|
879
|
+
};
|
|
880
|
+
const normalizeValueForKey = (object, key, defaultValue = "")=>{
|
|
881
|
+
if (object[key] === undefined) return defaultValue;
|
|
882
|
+
return object[key];
|
|
883
|
+
};
|
|
884
|
+
|
|
885
|
+
},{"@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"ipbm5":[function(require,module,exports) {
|
|
886
|
+
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
|
887
|
+
parcelHelpers.defineInteropFlag(exports);
|
|
888
|
+
parcelHelpers.export(exports, "namespace", ()=>namespace);
|
|
889
|
+
parcelHelpers.export(exports, "isSvgTag", ()=>isSvgTag);
|
|
890
|
+
parcelHelpers.export(exports, "isSvg", ()=>isSvg);
|
|
891
|
+
parcelHelpers.export(exports, "createSvgNode", ()=>createSvgNode);
|
|
892
|
+
const namespace = "http://www.w3.org/2000/svg";
|
|
893
|
+
const isSvgTag = (tagType)=>tagType === "svg";
|
|
894
|
+
const isSvg = (element)=>element.namespaceURI === namespace;
|
|
895
|
+
const createSvgNode = (type, attributes, renderKit)=>{
|
|
896
|
+
const document = renderKit && renderKit.document || window.document;
|
|
897
|
+
const node = document.createElementNS(namespace, type);
|
|
898
|
+
for(const key in attributes){
|
|
899
|
+
if (key === "__self" || key === "xmlns") continue;
|
|
900
|
+
// adding namespace in as first argument makes it not really render!
|
|
901
|
+
node.setAttributeNS(null, key, attributes[key]);
|
|
902
|
+
}
|
|
903
|
+
return node;
|
|
904
|
+
};
|
|
905
|
+
|
|
906
|
+
},{"@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"gKMx0":[function(require,module,exports) {
|
|
907
|
+
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
|
908
|
+
parcelHelpers.defineInteropFlag(exports);
|
|
909
|
+
parcelHelpers.export(exports, "ensureArray", ()=>ensureArray);
|
|
910
|
+
parcelHelpers.export(exports, "Children", ()=>Children);
|
|
911
|
+
var _text = require("./text");
|
|
912
|
+
const ensureArray = (children)=>{
|
|
913
|
+
if (Array.isArray(children)) return children.flat();
|
|
914
|
+
if (!children) return [];
|
|
915
|
+
return [
|
|
916
|
+
children
|
|
917
|
+
];
|
|
918
|
+
};
|
|
919
|
+
/* three options for children
|
|
920
|
+
1. there is no view
|
|
921
|
+
2. view is an array, recurse
|
|
922
|
+
3. view is a renderable thing
|
|
923
|
+
*/ const recursiveRender = (children, renderKit, rendered = [])=>children.reduce(renderReducer(renderKit), rendered).flat();
|
|
924
|
+
const renderReducer = (renderKit)=>(aggregate, view)=>{
|
|
925
|
+
if (!view) return aggregate;
|
|
926
|
+
if (Array.isArray(view)) {
|
|
927
|
+
const dom = recursiveRender(view, renderKit, aggregate);
|
|
928
|
+
return dom;
|
|
929
|
+
}
|
|
930
|
+
view.render(renderKit).forEach((template)=>aggregate.push(template));
|
|
931
|
+
return aggregate;
|
|
932
|
+
};
|
|
933
|
+
const replaceTextNodes = (child)=>{
|
|
934
|
+
if (isTextNode(child)) return textNode(child);
|
|
935
|
+
return child;
|
|
936
|
+
};
|
|
937
|
+
const isTextNode = (child)=>{
|
|
938
|
+
return typeof child === "string" || typeof child === "number";
|
|
939
|
+
};
|
|
940
|
+
const textNode = (content)=>{
|
|
941
|
+
return new (0, _text.TextTemplate)(content);
|
|
942
|
+
};
|
|
943
|
+
const withSvgFlag = (isSvg)=>(template)=>{
|
|
944
|
+
template && (template.isSvg = template.isSvg || isSvg);
|
|
945
|
+
return template;
|
|
946
|
+
};
|
|
947
|
+
class Children {
|
|
948
|
+
constructor(jsxChildren, isSvg = false){
|
|
949
|
+
this.collection = ensureArray(jsxChildren);
|
|
950
|
+
this.collection = this.collection.map(replaceTextNodes);
|
|
951
|
+
this.collection = this.collection.flat();
|
|
952
|
+
this.collection = this.collection.map(withSvgFlag(isSvg));
|
|
953
|
+
this.isSvg = isSvg;
|
|
954
|
+
}
|
|
955
|
+
render(renderKit, parentElement) {
|
|
956
|
+
this.parentElement = parentElement;
|
|
957
|
+
const dom = this.generateDom(renderKit);
|
|
958
|
+
this.attachToParent(dom);
|
|
959
|
+
return dom;
|
|
960
|
+
}
|
|
961
|
+
generateDom(renderKit) {
|
|
962
|
+
return recursiveRender(this.collection, renderKit);
|
|
963
|
+
}
|
|
964
|
+
attachToParent(dom) {
|
|
965
|
+
if (this.parentElement === undefined) return;
|
|
966
|
+
const parent = this.parentElement;
|
|
967
|
+
dom.forEach((node)=>parent.appendChild(node));
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
},{"./text":"iqXAF","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"iqXAF":[function(require,module,exports) {
|
|
972
|
+
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
|
973
|
+
parcelHelpers.defineInteropFlag(exports);
|
|
974
|
+
parcelHelpers.export(exports, "TextTemplate", ()=>TextTemplate);
|
|
975
|
+
var _create = require("../dom/create");
|
|
976
|
+
class TextTemplate {
|
|
977
|
+
constructor(content){
|
|
978
|
+
this.value = content.toString();
|
|
979
|
+
}
|
|
980
|
+
render(renderKit) {
|
|
981
|
+
const textNode = (0, _create.createTextNode)(this.value, renderKit.document);
|
|
982
|
+
if (!textNode) return [];
|
|
983
|
+
textNode.__jsx = "TextNode";
|
|
984
|
+
return [
|
|
985
|
+
textNode
|
|
986
|
+
];
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
},{"../dom/create":"762Da","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"4T9d8":[function(require,module,exports) {
|
|
991
|
+
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
|
992
|
+
parcelHelpers.defineInteropFlag(exports);
|
|
993
|
+
parcelHelpers.export(exports, "Link", ()=>Link);
|
|
994
|
+
var _jsx = require("../jsx");
|
|
995
|
+
var _jsxDefault = parcelHelpers.interopDefault(_jsx);
|
|
996
|
+
const Link = ({ children, ...props })=>{
|
|
997
|
+
return /*#__PURE__*/ (0, _jsxDefault.default)("a", {
|
|
998
|
+
...props,
|
|
999
|
+
onClick: "goToHref",
|
|
1000
|
+
__source: {
|
|
1001
|
+
fileName: "src/views/link.jsx",
|
|
1002
|
+
lineNumber: 4,
|
|
1003
|
+
columnNumber: 10
|
|
1004
|
+
},
|
|
1005
|
+
__self: undefined
|
|
1006
|
+
}, children);
|
|
1007
|
+
};
|
|
1008
|
+
|
|
1009
|
+
},{"../jsx":"ec42s","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}]},["b8Sd7","faxFZ"], "faxFZ", "parcelRequireee15")
|
|
705
1010
|
|
|
706
1011
|
//# sourceMappingURL=add-remove-root-children.fbb4ec9b.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAI,WAAW;AAAK,IAAI,WAAW;AAAK,IAAI,aAAa;AAAM,IAAI,eAAe;AAAmB,OAAO,MAAM,CAAC,aAAa,GAAG;AAAmB;AAEtJ,iJAAiJ,GACjJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,GACA,IAAI,aAAa;AACjB,IAAI,YAAY,OAAO,MAAM,CAAC,MAAM;AACpC,SAAS,OAAO,UAAU;IACxB,UAAU,IAAI,CAAC,IAAI,EAAE;IACrB,IAAI,CAAC,GAAG,GAAG;QACT,MAAM,OAAO,MAAM,CAAC,OAAO,CAAC,WAAW;QACvC,kBAAkB,EAAE;QACpB,mBAAmB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;AAC5B,IAAI,MAAM,eAAC,iBAAC;;;;;;;IAAgB","sources":["node_modules/@parcel/runtime-browser-hmr/lib/runtime-b0f45c5cfc8a53a2.js","cypress/jaxs-apps/add-remove-root-children.jsx"],"sourcesContent":["var HMR_HOST = null;var HMR_PORT = null;var HMR_SECURE = false;var HMR_ENV_HASH = \"d6ea1d42532a7575\";module.bundle.HMR_BUNDLE_ID = \"30a85c10fbb4ec9b\";\"use strict\";\n\n/* global HMR_HOST, HMR_PORT, HMR_ENV_HASH, HMR_SECURE, chrome, browser, __parcel__import__, __parcel__importScripts__, ServiceWorkerGlobalScope */\n/*::\nimport type {\n HMRAsset,\n HMRMessage,\n} from '@parcel/reporter-dev-server/src/HMRServer.js';\ninterface ParcelRequire {\n (string): mixed;\n cache: {|[string]: ParcelModule|};\n hotData: {|[string]: mixed|};\n Module: any;\n parent: ?ParcelRequire;\n isParcelRequire: true;\n modules: {|[string]: [Function, {|[string]: string|}]|};\n HMR_BUNDLE_ID: string;\n root: ParcelRequire;\n}\ninterface ParcelModule {\n hot: {|\n data: mixed,\n accept(cb: (Function) => void): void,\n dispose(cb: (mixed) => void): void,\n // accept(deps: Array<string> | string, cb: (Function) => void): void,\n // decline(): void,\n _acceptCallbacks: Array<(Function) => void>,\n _disposeCallbacks: Array<(mixed) => void>,\n |};\n}\ninterface ExtensionContext {\n runtime: {|\n reload(): void,\n getURL(url: string): string;\n getManifest(): {manifest_version: number, ...};\n |};\n}\ndeclare var module: {bundle: ParcelRequire, ...};\ndeclare var HMR_HOST: string;\ndeclare var HMR_PORT: string;\ndeclare var HMR_ENV_HASH: string;\ndeclare var HMR_SECURE: boolean;\ndeclare var chrome: ExtensionContext;\ndeclare var browser: ExtensionContext;\ndeclare var __parcel__import__: (string) => Promise<void>;\ndeclare var __parcel__importScripts__: (string) => Promise<void>;\ndeclare var globalThis: typeof self;\ndeclare var ServiceWorkerGlobalScope: Object;\n*/\nvar OVERLAY_ID = '__parcel__error__overlay__';\nvar OldModule = module.bundle.Module;\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData[moduleName],\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n module.bundle.hotData[moduleName] = undefined;\n}\nmodule.bundle.Module = Module;\nmodule.bundle.hotData = {};\nvar checkedAssets /*: {|[string]: boolean|} */, assetsToDispose /*: Array<[ParcelRequire, string]> */, assetsToAccept /*: Array<[ParcelRequire, string]> */;\n\nfunction getHostname() {\n return HMR_HOST || (location.protocol.indexOf('http') === 0 ? location.hostname : 'localhost');\n}\nfunction getPort() {\n return HMR_PORT || location.port;\n}\n\n// eslint-disable-next-line no-redeclare\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = getHostname();\n var port = getPort();\n var protocol = HMR_SECURE || location.protocol == 'https:' && !['localhost', '127.0.0.1', '0.0.0.0'].includes(hostname) ? 'wss' : 'ws';\n var ws;\n try {\n ws = new WebSocket(protocol + '://' + hostname + (port ? ':' + port : '') + '/');\n } catch (err) {\n if (err.message) {\n console.error(err.message);\n }\n ws = {};\n }\n\n // Web extension context\n var extCtx = typeof browser === 'undefined' ? typeof chrome === 'undefined' ? null : chrome : browser;\n\n // Safari doesn't support sourceURL in error stacks.\n // eval may also be disabled via CSP, so do a quick check.\n var supportsSourceURL = false;\n try {\n (0, eval)('throw new Error(\"test\"); //# sourceURL=test.js');\n } catch (err) {\n supportsSourceURL = err.stack.includes('test.js');\n }\n\n // $FlowFixMe\n ws.onmessage = async function (event /*: {data: string, ...} */) {\n checkedAssets = {} /*: {|[string]: boolean|} */;\n assetsToAccept = [];\n assetsToDispose = [];\n var data /*: HMRMessage */ = JSON.parse(event.data);\n if (data.type === 'update') {\n // Remove error overlay if there is one\n if (typeof document !== 'undefined') {\n removeErrorOverlay();\n }\n let assets = data.assets.filter(asset => asset.envHash === HMR_ENV_HASH);\n\n // Handle HMR Update\n let handled = assets.every(asset => {\n return asset.type === 'css' || asset.type === 'js' && hmrAcceptCheck(module.bundle.root, asset.id, asset.depsByBundle);\n });\n if (handled) {\n console.clear();\n\n // Dispatch custom event so other runtimes (e.g React Refresh) are aware.\n if (typeof window !== 'undefined' && typeof CustomEvent !== 'undefined') {\n window.dispatchEvent(new CustomEvent('parcelhmraccept'));\n }\n await hmrApplyUpdates(assets);\n\n // Dispose all old assets.\n let processedAssets = {} /*: {|[string]: boolean|} */;\n for (let i = 0; i < assetsToDispose.length; i++) {\n let id = assetsToDispose[i][1];\n if (!processedAssets[id]) {\n hmrDispose(assetsToDispose[i][0], id);\n processedAssets[id] = true;\n }\n }\n\n // Run accept callbacks. This will also re-execute other disposed assets in topological order.\n processedAssets = {};\n for (let i = 0; i < assetsToAccept.length; i++) {\n let id = assetsToAccept[i][1];\n if (!processedAssets[id]) {\n hmrAccept(assetsToAccept[i][0], id);\n processedAssets[id] = true;\n }\n }\n } else fullReload();\n }\n if (data.type === 'error') {\n // Log parcel errors to console\n for (let ansiDiagnostic of data.diagnostics.ansi) {\n let stack = ansiDiagnostic.codeframe ? ansiDiagnostic.codeframe : ansiDiagnostic.stack;\n console.error('🚨 [parcel]: ' + ansiDiagnostic.message + '\\n' + stack + '\\n\\n' + ansiDiagnostic.hints.join('\\n'));\n }\n if (typeof document !== 'undefined') {\n // Render the fancy html overlay\n removeErrorOverlay();\n var overlay = createErrorOverlay(data.diagnostics.html);\n // $FlowFixMe\n document.body.appendChild(overlay);\n }\n }\n };\n ws.onerror = function (e) {\n if (e.message) {\n console.error(e.message);\n }\n };\n ws.onclose = function () {\n console.warn('[parcel] 🚨 Connection to the HMR server was lost');\n };\n}\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n console.log('[parcel] ✨ Error resolved');\n }\n}\nfunction createErrorOverlay(diagnostics) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n let errorHTML = '<div style=\"background: black; opacity: 0.85; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; font-family: Menlo, Consolas, monospace; z-index: 9999;\">';\n for (let diagnostic of diagnostics) {\n let stack = diagnostic.frames.length ? diagnostic.frames.reduce((p, frame) => {\n return `${p}\n<a href=\"/__parcel_launch_editor?file=${encodeURIComponent(frame.location)}\" style=\"text-decoration: underline; color: #888\" onclick=\"fetch(this.href); return false\">${frame.location}</a>\n${frame.code}`;\n }, '') : diagnostic.stack;\n errorHTML += `\n <div>\n <div style=\"font-size: 18px; font-weight: bold; margin-top: 20px;\">\n 🚨 ${diagnostic.message}\n </div>\n <pre>${stack}</pre>\n <div>\n ${diagnostic.hints.map(hint => '<div>💡 ' + hint + '</div>').join('')}\n </div>\n ${diagnostic.documentation ? `<div>📝 <a style=\"color: violet\" href=\"${diagnostic.documentation}\" target=\"_blank\">Learn more</a></div>` : ''}\n </div>\n `;\n }\n errorHTML += '</div>';\n overlay.innerHTML = errorHTML;\n return overlay;\n}\nfunction fullReload() {\n if ('reload' in location) {\n location.reload();\n } else if (extCtx && extCtx.runtime && extCtx.runtime.reload) {\n extCtx.runtime.reload();\n }\n}\nfunction getParents(bundle, id) /*: Array<[ParcelRequire, string]> */{\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n var parents = [];\n var k, d, dep;\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) {\n parents.push([bundle, k]);\n }\n }\n }\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n return parents;\n}\nfunction updateLink(link) {\n var href = link.getAttribute('href');\n if (!href) {\n return;\n }\n var newLink = link.cloneNode();\n newLink.onload = function () {\n if (link.parentNode !== null) {\n // $FlowFixMe\n link.parentNode.removeChild(link);\n }\n };\n newLink.setAttribute('href',\n // $FlowFixMe\n href.split('?')[0] + '?' + Date.now());\n // $FlowFixMe\n link.parentNode.insertBefore(newLink, link.nextSibling);\n}\nvar cssTimeout = null;\nfunction reloadCSS() {\n if (cssTimeout) {\n return;\n }\n cssTimeout = setTimeout(function () {\n var links = document.querySelectorAll('link[rel=\"stylesheet\"]');\n for (var i = 0; i < links.length; i++) {\n // $FlowFixMe[incompatible-type]\n var href /*: string */ = links[i].getAttribute('href');\n var hostname = getHostname();\n var servedFromHMRServer = hostname === 'localhost' ? new RegExp('^(https?:\\\\/\\\\/(0.0.0.0|127.0.0.1)|localhost):' + getPort()).test(href) : href.indexOf(hostname + ':' + getPort());\n var absolute = /^https?:\\/\\//i.test(href) && href.indexOf(location.origin) !== 0 && !servedFromHMRServer;\n if (!absolute) {\n updateLink(links[i]);\n }\n }\n cssTimeout = null;\n }, 50);\n}\nfunction hmrDownload(asset) {\n if (asset.type === 'js') {\n if (typeof document !== 'undefined') {\n let script = document.createElement('script');\n script.src = asset.url + '?t=' + Date.now();\n if (asset.outputFormat === 'esmodule') {\n script.type = 'module';\n }\n return new Promise((resolve, reject) => {\n var _document$head;\n script.onload = () => resolve(script);\n script.onerror = reject;\n (_document$head = document.head) === null || _document$head === void 0 || _document$head.appendChild(script);\n });\n } else if (typeof importScripts === 'function') {\n // Worker scripts\n if (asset.outputFormat === 'esmodule') {\n return __parcel__import__(asset.url + '?t=' + Date.now());\n } else {\n return new Promise((resolve, reject) => {\n try {\n __parcel__importScripts__(asset.url + '?t=' + Date.now());\n resolve();\n } catch (err) {\n reject(err);\n }\n });\n }\n }\n }\n}\nasync function hmrApplyUpdates(assets) {\n global.parcelHotUpdate = Object.create(null);\n let scriptsToRemove;\n try {\n // If sourceURL comments aren't supported in eval, we need to load\n // the update from the dev server over HTTP so that stack traces\n // are correct in errors/logs. This is much slower than eval, so\n // we only do it if needed (currently just Safari).\n // https://bugs.webkit.org/show_bug.cgi?id=137297\n // This path is also taken if a CSP disallows eval.\n if (!supportsSourceURL) {\n let promises = assets.map(asset => {\n var _hmrDownload;\n return (_hmrDownload = hmrDownload(asset)) === null || _hmrDownload === void 0 ? void 0 : _hmrDownload.catch(err => {\n // Web extension fix\n if (extCtx && extCtx.runtime && extCtx.runtime.getManifest().manifest_version == 3 && typeof ServiceWorkerGlobalScope != 'undefined' && global instanceof ServiceWorkerGlobalScope) {\n extCtx.runtime.reload();\n return;\n }\n throw err;\n });\n });\n scriptsToRemove = await Promise.all(promises);\n }\n assets.forEach(function (asset) {\n hmrApply(module.bundle.root, asset);\n });\n } finally {\n delete global.parcelHotUpdate;\n if (scriptsToRemove) {\n scriptsToRemove.forEach(script => {\n if (script) {\n var _document$head2;\n (_document$head2 = document.head) === null || _document$head2 === void 0 || _document$head2.removeChild(script);\n }\n });\n }\n }\n}\nfunction hmrApply(bundle /*: ParcelRequire */, asset /*: HMRAsset */) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n if (asset.type === 'css') {\n reloadCSS();\n } else if (asset.type === 'js') {\n let deps = asset.depsByBundle[bundle.HMR_BUNDLE_ID];\n if (deps) {\n if (modules[asset.id]) {\n // Remove dependencies that are removed and will become orphaned.\n // This is necessary so that if the asset is added back again, the cache is gone, and we prevent a full page reload.\n let oldDeps = modules[asset.id][1];\n for (let dep in oldDeps) {\n if (!deps[dep] || deps[dep] !== oldDeps[dep]) {\n let id = oldDeps[dep];\n let parents = getParents(module.bundle.root, id);\n if (parents.length === 1) {\n hmrDelete(module.bundle.root, id);\n }\n }\n }\n }\n if (supportsSourceURL) {\n // Global eval. We would use `new Function` here but browser\n // support for source maps is better with eval.\n (0, eval)(asset.output);\n }\n\n // $FlowFixMe\n let fn = global.parcelHotUpdate[asset.id];\n modules[asset.id] = [fn, deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n }\n}\nfunction hmrDelete(bundle, id) {\n let modules = bundle.modules;\n if (!modules) {\n return;\n }\n if (modules[id]) {\n // Collect dependencies that will become orphaned when this module is deleted.\n let deps = modules[id][1];\n let orphans = [];\n for (let dep in deps) {\n let parents = getParents(module.bundle.root, deps[dep]);\n if (parents.length === 1) {\n orphans.push(deps[dep]);\n }\n }\n\n // Delete the module. This must be done before deleting dependencies in case of circular dependencies.\n delete modules[id];\n delete bundle.cache[id];\n\n // Now delete the orphans.\n orphans.forEach(id => {\n hmrDelete(module.bundle.root, id);\n });\n } else if (bundle.parent) {\n hmrDelete(bundle.parent, id);\n }\n}\nfunction hmrAcceptCheck(bundle /*: ParcelRequire */, id /*: string */, depsByBundle /*: ?{ [string]: { [string]: string } }*/) {\n if (hmrAcceptCheckOne(bundle, id, depsByBundle)) {\n return true;\n }\n\n // Traverse parents breadth first. All possible ancestries must accept the HMR update, or we'll reload.\n let parents = getParents(module.bundle.root, id);\n let accepted = false;\n while (parents.length > 0) {\n let v = parents.shift();\n let a = hmrAcceptCheckOne(v[0], v[1], null);\n if (a) {\n // If this parent accepts, stop traversing upward, but still consider siblings.\n accepted = true;\n } else {\n // Otherwise, queue the parents in the next level upward.\n let p = getParents(module.bundle.root, v[1]);\n if (p.length === 0) {\n // If there are no parents, then we've reached an entry without accepting. Reload.\n accepted = false;\n break;\n }\n parents.push(...p);\n }\n }\n return accepted;\n}\nfunction hmrAcceptCheckOne(bundle /*: ParcelRequire */, id /*: string */, depsByBundle /*: ?{ [string]: { [string]: string } }*/) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n if (depsByBundle && !depsByBundle[bundle.HMR_BUNDLE_ID]) {\n // If we reached the root bundle without finding where the asset should go,\n // there's nothing to do. Mark as \"accepted\" so we don't reload the page.\n if (!bundle.parent) {\n return true;\n }\n return hmrAcceptCheck(bundle.parent, id, depsByBundle);\n }\n if (checkedAssets[id]) {\n return true;\n }\n checkedAssets[id] = true;\n var cached = bundle.cache[id];\n assetsToDispose.push([bundle, id]);\n if (!cached || cached.hot && cached.hot._acceptCallbacks.length) {\n assetsToAccept.push([bundle, id]);\n return true;\n }\n}\nfunction hmrDispose(bundle /*: ParcelRequire */, id /*: string */) {\n var cached = bundle.cache[id];\n bundle.hotData[id] = {};\n if (cached && cached.hot) {\n cached.hot.data = bundle.hotData[id];\n }\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData[id]);\n });\n }\n delete bundle.cache[id];\n}\nfunction hmrAccept(bundle /*: ParcelRequire */, id /*: string */) {\n // Execute the module.\n bundle(id);\n\n // Run the accept callbacks in the new version of the module.\n var cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n var assetsToAlsoAccept = cb(function () {\n return getParents(module.bundle.root, id);\n });\n if (assetsToAlsoAccept && assetsToAccept.length) {\n assetsToAlsoAccept.forEach(function (a) {\n hmrDispose(a[0], a[1]);\n });\n\n // $FlowFixMe[method-unbinding]\n assetsToAccept.push.apply(assetsToAccept, assetsToAlsoAccept);\n }\n });\n }\n}","import { bind, createApp, jsx, views } from '../../dist/jaxs.js'\nconst { If, Unless } = views\n\nconst app = createApp()\n\nexport const MainContentTemplate = ({ inMembers }) => {\n return (\n <>\n <Unless condition={inMembers}>\n <form>\n <p class='guest-content'>\n You are a guest, and I guess that is fine.\n </p>\n <input type='submit' value='Agree! or something' />\n </form>\n </Unless>\n <If condition={inMembers}>\n <h1 class='member-content'>Oh great crickets!</h1>\n <p class='member-content'>Sing me a tale of private content.</p>\n </If>\n </>\n )\n}\nconst ProfileAreaTemplate = ({ inMembers }) => {\n return (\n <Unless condition={inMembers}>\n <a href='/members' onClick='goToHref' class='exclusive-link'>\n Go to members area\n </a>\n </Unless>\n )\n}\n\nconst viewModel = ({ route }) => {\n return {\n inMembers: route && route.path && route.path.match(/members/)\n }\n}\n\nconst MainContent = bind({\n Template: MainContentTemplate,\n viewModel,\n subscriptions: ['route']\n})\n\nconst ProfileArea = bind({\n Template: ProfileAreaTemplate,\n viewModel,\n subscriptions: ['route']\n})\n\napp.render(<MainContent />, '#main-content')\napp.render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ACF;;;;;AC/FA,kDAAa;AAFb;AAEO,MAAM;IAGX,YAAY,OAAkB,CAAE;QAC9B,IAAI,CAAC,KAAK,GAAG,QAAQ,QAAQ;IAC/B;IAEA,OAAO,SAAoB,EAAE;QAC3B,MAAM,WAAW,CAAA,GAAA,sBAAc,AAAD,EAAE,IAAI,CAAC,KAAK,EAAE,UAAU,QAAQ;QAC9D,IAAI,CAAC,UAAU,OAAO,EAAE;QACvB,SAA8B,KAAK,GAAG;QACvC,OAAO;YAAC;SAAS;IACnB;AACF;;;;;0CCda;AAFb;;AAEO,MAAM,OAAO,CAAC,EAAE,QAAQ,EAAE,GAAG,OAAO;IACzC,qBAAO,yBAAC;QAAG,GAAG,KAAK;QAAE,SAAQ;;;;;;;OAAY;AAC3C","sources":["node_modules/@parcel/runtime-browser-hmr/lib/runtime-b0f45c5cfc8a53a2.js","cypress/jaxs-apps/add-remove-root-children.jsx","src/views.js","src/views/conditionals.jsx","src/jsx.js","src/rendering/templates/tag.ts","src/rendering/dom/create.ts","src/rendering/dom/attributesAndEvents.ts","src/rendering/dom/svg.ts","src/rendering/templates/children.ts","src/rendering/templates/text.ts","src/views/link.jsx"],"sourcesContent":["var HMR_HOST = null;var HMR_PORT = null;var HMR_SECURE = false;var HMR_ENV_HASH = \"d6ea1d42532a7575\";module.bundle.HMR_BUNDLE_ID = \"30a85c10fbb4ec9b\";\"use strict\";\n\n/* global HMR_HOST, HMR_PORT, HMR_ENV_HASH, HMR_SECURE, chrome, browser, __parcel__import__, __parcel__importScripts__, ServiceWorkerGlobalScope */\n/*::\nimport type {\n HMRAsset,\n HMRMessage,\n} from '@parcel/reporter-dev-server/src/HMRServer.js';\ninterface ParcelRequire {\n (string): mixed;\n cache: {|[string]: ParcelModule|};\n hotData: {|[string]: mixed|};\n Module: any;\n parent: ?ParcelRequire;\n isParcelRequire: true;\n modules: {|[string]: [Function, {|[string]: string|}]|};\n HMR_BUNDLE_ID: string;\n root: ParcelRequire;\n}\ninterface ParcelModule {\n hot: {|\n data: mixed,\n accept(cb: (Function) => void): void,\n dispose(cb: (mixed) => void): void,\n // accept(deps: Array<string> | string, cb: (Function) => void): void,\n // decline(): void,\n _acceptCallbacks: Array<(Function) => void>,\n _disposeCallbacks: Array<(mixed) => void>,\n |};\n}\ninterface ExtensionContext {\n runtime: {|\n reload(): void,\n getURL(url: string): string;\n getManifest(): {manifest_version: number, ...};\n |};\n}\ndeclare var module: {bundle: ParcelRequire, ...};\ndeclare var HMR_HOST: string;\ndeclare var HMR_PORT: string;\ndeclare var HMR_ENV_HASH: string;\ndeclare var HMR_SECURE: boolean;\ndeclare var chrome: ExtensionContext;\ndeclare var browser: ExtensionContext;\ndeclare var __parcel__import__: (string) => Promise<void>;\ndeclare var __parcel__importScripts__: (string) => Promise<void>;\ndeclare var globalThis: typeof self;\ndeclare var ServiceWorkerGlobalScope: Object;\n*/\nvar OVERLAY_ID = '__parcel__error__overlay__';\nvar OldModule = module.bundle.Module;\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData[moduleName],\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n module.bundle.hotData[moduleName] = undefined;\n}\nmodule.bundle.Module = Module;\nmodule.bundle.hotData = {};\nvar checkedAssets /*: {|[string]: boolean|} */, assetsToDispose /*: Array<[ParcelRequire, string]> */, assetsToAccept /*: Array<[ParcelRequire, string]> */;\n\nfunction getHostname() {\n return HMR_HOST || (location.protocol.indexOf('http') === 0 ? location.hostname : 'localhost');\n}\nfunction getPort() {\n return HMR_PORT || location.port;\n}\n\n// eslint-disable-next-line no-redeclare\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = getHostname();\n var port = getPort();\n var protocol = HMR_SECURE || location.protocol == 'https:' && !['localhost', '127.0.0.1', '0.0.0.0'].includes(hostname) ? 'wss' : 'ws';\n var ws;\n try {\n ws = new WebSocket(protocol + '://' + hostname + (port ? ':' + port : '') + '/');\n } catch (err) {\n if (err.message) {\n console.error(err.message);\n }\n ws = {};\n }\n\n // Web extension context\n var extCtx = typeof browser === 'undefined' ? typeof chrome === 'undefined' ? null : chrome : browser;\n\n // Safari doesn't support sourceURL in error stacks.\n // eval may also be disabled via CSP, so do a quick check.\n var supportsSourceURL = false;\n try {\n (0, eval)('throw new Error(\"test\"); //# sourceURL=test.js');\n } catch (err) {\n supportsSourceURL = err.stack.includes('test.js');\n }\n\n // $FlowFixMe\n ws.onmessage = async function (event /*: {data: string, ...} */) {\n checkedAssets = {} /*: {|[string]: boolean|} */;\n assetsToAccept = [];\n assetsToDispose = [];\n var data /*: HMRMessage */ = JSON.parse(event.data);\n if (data.type === 'update') {\n // Remove error overlay if there is one\n if (typeof document !== 'undefined') {\n removeErrorOverlay();\n }\n let assets = data.assets.filter(asset => asset.envHash === HMR_ENV_HASH);\n\n // Handle HMR Update\n let handled = assets.every(asset => {\n return asset.type === 'css' || asset.type === 'js' && hmrAcceptCheck(module.bundle.root, asset.id, asset.depsByBundle);\n });\n if (handled) {\n console.clear();\n\n // Dispatch custom event so other runtimes (e.g React Refresh) are aware.\n if (typeof window !== 'undefined' && typeof CustomEvent !== 'undefined') {\n window.dispatchEvent(new CustomEvent('parcelhmraccept'));\n }\n await hmrApplyUpdates(assets);\n\n // Dispose all old assets.\n let processedAssets = {} /*: {|[string]: boolean|} */;\n for (let i = 0; i < assetsToDispose.length; i++) {\n let id = assetsToDispose[i][1];\n if (!processedAssets[id]) {\n hmrDispose(assetsToDispose[i][0], id);\n processedAssets[id] = true;\n }\n }\n\n // Run accept callbacks. This will also re-execute other disposed assets in topological order.\n processedAssets = {};\n for (let i = 0; i < assetsToAccept.length; i++) {\n let id = assetsToAccept[i][1];\n if (!processedAssets[id]) {\n hmrAccept(assetsToAccept[i][0], id);\n processedAssets[id] = true;\n }\n }\n } else fullReload();\n }\n if (data.type === 'error') {\n // Log parcel errors to console\n for (let ansiDiagnostic of data.diagnostics.ansi) {\n let stack = ansiDiagnostic.codeframe ? ansiDiagnostic.codeframe : ansiDiagnostic.stack;\n console.error('🚨 [parcel]: ' + ansiDiagnostic.message + '\\n' + stack + '\\n\\n' + ansiDiagnostic.hints.join('\\n'));\n }\n if (typeof document !== 'undefined') {\n // Render the fancy html overlay\n removeErrorOverlay();\n var overlay = createErrorOverlay(data.diagnostics.html);\n // $FlowFixMe\n document.body.appendChild(overlay);\n }\n }\n };\n ws.onerror = function (e) {\n if (e.message) {\n console.error(e.message);\n }\n };\n ws.onclose = function () {\n console.warn('[parcel] 🚨 Connection to the HMR server was lost');\n };\n}\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n console.log('[parcel] ✨ Error resolved');\n }\n}\nfunction createErrorOverlay(diagnostics) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n let errorHTML = '<div style=\"background: black; opacity: 0.85; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; font-family: Menlo, Consolas, monospace; z-index: 9999;\">';\n for (let diagnostic of diagnostics) {\n let stack = diagnostic.frames.length ? diagnostic.frames.reduce((p, frame) => {\n return `${p}\n<a href=\"/__parcel_launch_editor?file=${encodeURIComponent(frame.location)}\" style=\"text-decoration: underline; color: #888\" onclick=\"fetch(this.href); return false\">${frame.location}</a>\n${frame.code}`;\n }, '') : diagnostic.stack;\n errorHTML += `\n <div>\n <div style=\"font-size: 18px; font-weight: bold; margin-top: 20px;\">\n 🚨 ${diagnostic.message}\n </div>\n <pre>${stack}</pre>\n <div>\n ${diagnostic.hints.map(hint => '<div>💡 ' + hint + '</div>').join('')}\n </div>\n ${diagnostic.documentation ? `<div>📝 <a style=\"color: violet\" href=\"${diagnostic.documentation}\" target=\"_blank\">Learn more</a></div>` : ''}\n </div>\n `;\n }\n errorHTML += '</div>';\n overlay.innerHTML = errorHTML;\n return overlay;\n}\nfunction fullReload() {\n if ('reload' in location) {\n location.reload();\n } else if (extCtx && extCtx.runtime && extCtx.runtime.reload) {\n extCtx.runtime.reload();\n }\n}\nfunction getParents(bundle, id) /*: Array<[ParcelRequire, string]> */{\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n var parents = [];\n var k, d, dep;\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) {\n parents.push([bundle, k]);\n }\n }\n }\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n return parents;\n}\nfunction updateLink(link) {\n var href = link.getAttribute('href');\n if (!href) {\n return;\n }\n var newLink = link.cloneNode();\n newLink.onload = function () {\n if (link.parentNode !== null) {\n // $FlowFixMe\n link.parentNode.removeChild(link);\n }\n };\n newLink.setAttribute('href',\n // $FlowFixMe\n href.split('?')[0] + '?' + Date.now());\n // $FlowFixMe\n link.parentNode.insertBefore(newLink, link.nextSibling);\n}\nvar cssTimeout = null;\nfunction reloadCSS() {\n if (cssTimeout) {\n return;\n }\n cssTimeout = setTimeout(function () {\n var links = document.querySelectorAll('link[rel=\"stylesheet\"]');\n for (var i = 0; i < links.length; i++) {\n // $FlowFixMe[incompatible-type]\n var href /*: string */ = links[i].getAttribute('href');\n var hostname = getHostname();\n var servedFromHMRServer = hostname === 'localhost' ? new RegExp('^(https?:\\\\/\\\\/(0.0.0.0|127.0.0.1)|localhost):' + getPort()).test(href) : href.indexOf(hostname + ':' + getPort());\n var absolute = /^https?:\\/\\//i.test(href) && href.indexOf(location.origin) !== 0 && !servedFromHMRServer;\n if (!absolute) {\n updateLink(links[i]);\n }\n }\n cssTimeout = null;\n }, 50);\n}\nfunction hmrDownload(asset) {\n if (asset.type === 'js') {\n if (typeof document !== 'undefined') {\n let script = document.createElement('script');\n script.src = asset.url + '?t=' + Date.now();\n if (asset.outputFormat === 'esmodule') {\n script.type = 'module';\n }\n return new Promise((resolve, reject) => {\n var _document$head;\n script.onload = () => resolve(script);\n script.onerror = reject;\n (_document$head = document.head) === null || _document$head === void 0 || _document$head.appendChild(script);\n });\n } else if (typeof importScripts === 'function') {\n // Worker scripts\n if (asset.outputFormat === 'esmodule') {\n return __parcel__import__(asset.url + '?t=' + Date.now());\n } else {\n return new Promise((resolve, reject) => {\n try {\n __parcel__importScripts__(asset.url + '?t=' + Date.now());\n resolve();\n } catch (err) {\n reject(err);\n }\n });\n }\n }\n }\n}\nasync function hmrApplyUpdates(assets) {\n global.parcelHotUpdate = Object.create(null);\n let scriptsToRemove;\n try {\n // If sourceURL comments aren't supported in eval, we need to load\n // the update from the dev server over HTTP so that stack traces\n // are correct in errors/logs. This is much slower than eval, so\n // we only do it if needed (currently just Safari).\n // https://bugs.webkit.org/show_bug.cgi?id=137297\n // This path is also taken if a CSP disallows eval.\n if (!supportsSourceURL) {\n let promises = assets.map(asset => {\n var _hmrDownload;\n return (_hmrDownload = hmrDownload(asset)) === null || _hmrDownload === void 0 ? void 0 : _hmrDownload.catch(err => {\n // Web extension fix\n if (extCtx && extCtx.runtime && extCtx.runtime.getManifest().manifest_version == 3 && typeof ServiceWorkerGlobalScope != 'undefined' && global instanceof ServiceWorkerGlobalScope) {\n extCtx.runtime.reload();\n return;\n }\n throw err;\n });\n });\n scriptsToRemove = await Promise.all(promises);\n }\n assets.forEach(function (asset) {\n hmrApply(module.bundle.root, asset);\n });\n } finally {\n delete global.parcelHotUpdate;\n if (scriptsToRemove) {\n scriptsToRemove.forEach(script => {\n if (script) {\n var _document$head2;\n (_document$head2 = document.head) === null || _document$head2 === void 0 || _document$head2.removeChild(script);\n }\n });\n }\n }\n}\nfunction hmrApply(bundle /*: ParcelRequire */, asset /*: HMRAsset */) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n if (asset.type === 'css') {\n reloadCSS();\n } else if (asset.type === 'js') {\n let deps = asset.depsByBundle[bundle.HMR_BUNDLE_ID];\n if (deps) {\n if (modules[asset.id]) {\n // Remove dependencies that are removed and will become orphaned.\n // This is necessary so that if the asset is added back again, the cache is gone, and we prevent a full page reload.\n let oldDeps = modules[asset.id][1];\n for (let dep in oldDeps) {\n if (!deps[dep] || deps[dep] !== oldDeps[dep]) {\n let id = oldDeps[dep];\n let parents = getParents(module.bundle.root, id);\n if (parents.length === 1) {\n hmrDelete(module.bundle.root, id);\n }\n }\n }\n }\n if (supportsSourceURL) {\n // Global eval. We would use `new Function` here but browser\n // support for source maps is better with eval.\n (0, eval)(asset.output);\n }\n\n // $FlowFixMe\n let fn = global.parcelHotUpdate[asset.id];\n modules[asset.id] = [fn, deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n }\n}\nfunction hmrDelete(bundle, id) {\n let modules = bundle.modules;\n if (!modules) {\n return;\n }\n if (modules[id]) {\n // Collect dependencies that will become orphaned when this module is deleted.\n let deps = modules[id][1];\n let orphans = [];\n for (let dep in deps) {\n let parents = getParents(module.bundle.root, deps[dep]);\n if (parents.length === 1) {\n orphans.push(deps[dep]);\n }\n }\n\n // Delete the module. This must be done before deleting dependencies in case of circular dependencies.\n delete modules[id];\n delete bundle.cache[id];\n\n // Now delete the orphans.\n orphans.forEach(id => {\n hmrDelete(module.bundle.root, id);\n });\n } else if (bundle.parent) {\n hmrDelete(bundle.parent, id);\n }\n}\nfunction hmrAcceptCheck(bundle /*: ParcelRequire */, id /*: string */, depsByBundle /*: ?{ [string]: { [string]: string } }*/) {\n if (hmrAcceptCheckOne(bundle, id, depsByBundle)) {\n return true;\n }\n\n // Traverse parents breadth first. All possible ancestries must accept the HMR update, or we'll reload.\n let parents = getParents(module.bundle.root, id);\n let accepted = false;\n while (parents.length > 0) {\n let v = parents.shift();\n let a = hmrAcceptCheckOne(v[0], v[1], null);\n if (a) {\n // If this parent accepts, stop traversing upward, but still consider siblings.\n accepted = true;\n } else {\n // Otherwise, queue the parents in the next level upward.\n let p = getParents(module.bundle.root, v[1]);\n if (p.length === 0) {\n // If there are no parents, then we've reached an entry without accepting. Reload.\n accepted = false;\n break;\n }\n parents.push(...p);\n }\n }\n return accepted;\n}\nfunction hmrAcceptCheckOne(bundle /*: ParcelRequire */, id /*: string */, depsByBundle /*: ?{ [string]: { [string]: string } }*/) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n if (depsByBundle && !depsByBundle[bundle.HMR_BUNDLE_ID]) {\n // If we reached the root bundle without finding where the asset should go,\n // there's nothing to do. Mark as \"accepted\" so we don't reload the page.\n if (!bundle.parent) {\n return true;\n }\n return hmrAcceptCheck(bundle.parent, id, depsByBundle);\n }\n if (checkedAssets[id]) {\n return true;\n }\n checkedAssets[id] = true;\n var cached = bundle.cache[id];\n assetsToDispose.push([bundle, id]);\n if (!cached || cached.hot && cached.hot._acceptCallbacks.length) {\n assetsToAccept.push([bundle, id]);\n return true;\n }\n}\nfunction hmrDispose(bundle /*: ParcelRequire */, id /*: string */) {\n var cached = bundle.cache[id];\n bundle.hotData[id] = {};\n if (cached && cached.hot) {\n cached.hot.data = bundle.hotData[id];\n }\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData[id]);\n });\n }\n delete bundle.cache[id];\n}\nfunction hmrAccept(bundle /*: ParcelRequire */, id /*: string */) {\n // Execute the module.\n bundle(id);\n\n // Run the accept callbacks in the new version of the module.\n var cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n var assetsToAlsoAccept = cb(function () {\n return getParents(module.bundle.root, id);\n });\n if (assetsToAlsoAccept && assetsToAccept.length) {\n assetsToAlsoAccept.forEach(function (a) {\n hmrDispose(a[0], a[1]);\n });\n\n // $FlowFixMe[method-unbinding]\n assetsToAccept.push.apply(assetsToAccept, assetsToAlsoAccept);\n }\n });\n }\n}","import { bind, createApp, jsx } from '../../dist/jaxs.js'\nimport { views } from '../../src/views.js'\nconst { If, Unless } = views\n\nconst app = createApp()\n\nexport const MainContentTemplate = ({ inMembers }) => {\n return (\n <>\n <Unless condition={inMembers}>\n <form>\n <p class='guest-content'>\n You are a guest, and I guess that is fine.\n </p>\n <input type='submit' value='Agree! or something' />\n </form>\n </Unless>\n <If condition={inMembers}>\n <h1 class='member-content'>Oh great crickets!</h1>\n <p class='member-content'>Sing me a tale of private content.</p>\n </If>\n </>\n )\n}\nconst ProfileAreaTemplate = ({ inMembers }) => {\n return (\n <Unless condition={inMembers}>\n <a href='/members' onClick='goToHref' class='exclusive-link'>\n Go to members area\n </a>\n </Unless>\n )\n}\n\nconst viewModel = ({ route }) => {\n return {\n inMembers: route && route.path && route.path.match(/members/)\n }\n}\n\nconst MainContent = bind({\n Template: MainContentTemplate,\n viewModel,\n subscriptions: ['route']\n})\n\nconst ProfileArea = bind({\n Template: ProfileAreaTemplate,\n viewModel,\n subscriptions: ['route']\n})\n\napp.render(<MainContent />, '#main-content')\napp.render(<ProfileArea />, '#profile-area')\n","import * as conditionals from './views/conditionals.jsx'\nimport { Link } from './views/link.jsx'\n\nexport const views = {\n ...conditionals,\n Link\n}\n","import jsx from '../jsx'\n\nexport const If = ({ condition, children }) => {\n if (!condition) return\n return <>{children}</>\n}\n\nexport const Unless = ({ condition, children }) => {\n if (condition) return\n return <>{children}</>\n}\n\nexport const IfElse = ({ condition, children }) => {\n const [first, ...rest] = children\n\n if (condition) return <>{first}</>\n return <>{rest}</>\n}\n","import { Tag } from './rendering/templates/tag'\nimport { Children } from './rendering/templates/children'\n\nconst ensureChildrenArray = (maybeChildren, attributes) =>\n maybeChildren || attributes.children || []\n\nconst packageAttributes = (maybeAttributes, maybeChildren) => {\n const attributes = maybeAttributes || {}\n const children = ensureChildrenArray(maybeChildren, attributes)\n attributes.children = attributes.children || children\n return attributes\n}\n\nconst jsx = (type, attributes, ...children) => {\n if (typeof type === 'string') {\n return new Tag(type, attributes, children)\n }\n\n return type(packageAttributes(attributes, children))\n}\n\njsx.fragment = (attributes, maybeChildren) => {\n const children = ensureChildrenArray(maybeChildren, attributes)\n return new Children(children)\n}\n\nexport default jsx\n","import type {\n Attributes,\n DomCollection,\n EventAttributes,\n RenderKit,\n Template,\n} from '../../types';\n\nimport { createDecoratedNode } from '../dom/create';\nimport { separateAttrsAndEvents } from '../dom/attributesAndEvents';\nimport { isSvgTag, createSvgNode } from '../dom/svg'\nimport { Children } from './children';\n\nexport class Tag implements Template {\n type: string;\n events: EventAttributes;\n attributes: Attributes;\n children: Children;\n isSvg: boolean;\n\n constructor(\n tagType: string,\n combinedAttributes: Attributes,\n children: Template[],\n isSvg = false\n ) {\n this.type = tagType;\n\n const { events, attributes } = separateAttrsAndEvents(combinedAttributes);\n this.events = events;\n this.attributes = attributes;\n\n this.isSvg = isSvg || isSvgTag(this.type);\n this.children = new Children(children, this.isSvg);\n }\n\n render(renderKit: RenderKit): DomCollection {\n const dom = this.generateDom(renderKit);\n if (!dom) return [];\n\n this.children.render(renderKit, dom);\n return [dom];\n }\n\n generateDom(renderKit: RenderKit) {\n if (this.isSvg) {\n return this.generateSvnDom(renderKit)\n } else {\n return this.generateHtmlDom(renderKit)\n }\n }\n\n generateHtmlDom(renderKit: RenderKit) {\n const node = createDecoratedNode(\n this.type,\n this.attributes,\n this.events,\n renderKit,\n );\n node.__jsx = this.key();\n return node;\n }\n\n generateSvnDom(renderKit: RenderKit) {\n const node = createSvgNode(\n this.type,\n this.attributes,\n renderKit,\n );\n node.__jsx = this.key();\n return node;\n }\n\n key() {\n return this.attributes.key || this.source() || this.createKey();\n }\n\n source() {\n if (this.attributes.__source) {\n const { fileName, lineNumber, columnNumber } = this.attributes.__source;\n return `${fileName}:${lineNumber}:${columnNumber}`;\n }\n }\n\n createKey() {\n const id = this.attributes.id ? `#${this.attributes.id}` : '';\n const type = this.attributes.type ? `[type=${this.attributes.type}]` : '';\n const name = this.attributes.name ? `[name=${this.attributes.name}]` : '';\n\n return `${this.type}${id}${type}${name}`;\n }\n}\n","import type {\n Attributes,\n DomEventPublisher,\n EventAttributes,\n EventMaps,\n ExpandedElement,\n InputElement,\n RenderKit,\n} from '../../types';\n\nexport const setAttributesOnElement = (\n element: Element,\n attributes: Attributes,\n) => {\n for (const key in attributes) {\n if (key === '__self') continue;\n if (key === 'value') {\n (element as InputElement).value = attributes[key];\n } else {\n element.setAttribute(key, attributes[key]);\n }\n }\n};\n\nexport const setEventsOnElement = (\n element: ExpandedElement,\n events: EventAttributes,\n publish: DomEventPublisher,\n) => {\n const eventMaps = {} as EventMaps;\n\n for (const domEvent in events) {\n const eventName = events[domEvent];\n const listener = (event: Event) => publish(eventName, event);\n element.addEventListener(domEvent, listener);\n\n eventMaps[domEvent] = {\n domEvent: domEvent,\n busEvent: eventName,\n listener: listener,\n };\n }\n\n element.eventMaps = eventMaps;\n};\n\nexport const createNode = (type: string, document: Document) => {\n document = document || window.document;\n return document.createElement(type);\n};\n\nexport const createTextNode = (value: string, document: Document) => {\n document = document || window.document;\n return document.createTextNode(value);\n};\n\nexport const createDecoratedNode = (\n type: string,\n attributes: Attributes,\n events: EventAttributes,\n renderKit: RenderKit,\n) => {\n // deno-lint-ignore no-explicit-any\n const dom = createNode(type, renderKit.document) as any as ExpandedElement;\n setAttributesOnElement(dom, attributes);\n setEventsOnElement(dom, events, renderKit.publish);\n return dom;\n};\n","import type { Attributes, AttributesAndEvents } from '../../types';\n\nexport const separateAttrsAndEvents = (\n combined: Attributes,\n defaultValue = '',\n): AttributesAndEvents => {\n const attributes: Attributes = {};\n const events: Attributes = {};\n\n for (const key in combined) {\n const value = combined[key];\n if (key.match(/^on.+/i)) {\n const eventKey = key.slice(2).toLowerCase();\n events[eventKey] = value;\n } else {\n attributes[key] = normalizeValueForKey(combined, key, defaultValue);\n }\n }\n\n return {\n attributes,\n events,\n };\n};\n\nconst normalizeValueForKey = (\n object: Attributes,\n key: string,\n defaultValue = '',\n) => {\n if (object[key] === undefined) return defaultValue;\n return object[key];\n};\n","import type { RenderKit, Attributes, ExpandedElement } from \"../../types\"\n\nexport const namespace = 'http://www.w3.org/2000/svg'\nexport const isSvgTag = (tagType: string) => tagType === 'svg'\nexport const isSvg = (element: SVGElement) => element.namespaceURI === namespace\n\nexport const createSvgNode = (type: string, attributes: Attributes, renderKit: RenderKit) => {\n const document = renderKit && renderKit.document || window.document;\n const node = document.createElementNS(namespace, type)\n\n for (const key in attributes) {\n if (key === '__self' || key === 'xmlns') continue;\n // adding namespace in as first argument makes it not really render!\n node.setAttributeNS(null, key, attributes[key]);\n }\n\n return node as unknown as ExpandedElement\n}\n","import type {\n Dom,\n DomCollection,\n RenderKit,\n Template,\n TextValue,\n} from '../../types';\nimport { TextTemplate } from './text';\n\nexport const ensureArray = (children: Template | Template[]): Template[] => {\n if (Array.isArray(children)) {\n return children.flat();\n }\n\n if (!children) {\n return [];\n }\n\n return [children];\n};\n\n/* three options for children\n 1. there is no view\n 2. view is an array, recurse\n 3. view is a renderable thing\n*/\nconst recursiveRender = (\n children: Template[],\n renderKit: RenderKit,\n rendered = [] as DomCollection,\n): DomCollection => children.reduce(renderReducer(renderKit), rendered).flat();\n\nconst renderReducer =\n (renderKit: RenderKit) =>\n (aggregate: DomCollection, view: Template): DomCollection => {\n if (!view) return aggregate;\n\n if (Array.isArray(view)) {\n const dom = recursiveRender(view, renderKit, aggregate) as DomCollection;\n return dom;\n }\n\n view.render(renderKit).forEach((template) => aggregate.push(template));\n\n return aggregate;\n };\n\nconst replaceTextNodes = (child: TextValue | Template) => {\n if (isTextNode(child)) {\n return textNode(child as TextValue);\n }\n\n return child;\n};\n\nconst isTextNode = (child: TextValue | Template) => {\n return typeof child === 'string' || typeof child === 'number';\n};\n\nconst textNode = (content: TextValue) => {\n return new TextTemplate(content);\n};\n\nconst withSvgFlag = (isSvg: boolean) => (template: Template) => {\n template && (template.isSvg = template.isSvg || isSvg)\n return template\n}\n\nexport class Children implements Template {\n collection: Template[];\n parentElement: Element | undefined;\n isSvg: boolean;\n\n constructor(jsxChildren: Template[], isSvg = false) {\n this.collection = ensureArray(jsxChildren)\n this.collection = this.collection.map(replaceTextNodes) as Template[];\n this.collection = this.collection.flat() as Template[];\n this.collection = this.collection.map(withSvgFlag(isSvg))\n this.isSvg = isSvg;\n }\n\n render(renderKit: RenderKit, parentElement: Element | undefined) {\n this.parentElement = parentElement;\n const dom = this.generateDom(renderKit);\n this.attachToParent(dom);\n return dom;\n }\n\n generateDom(renderKit: RenderKit) {\n return recursiveRender(this.collection, renderKit);\n }\n\n attachToParent(dom: DomCollection) {\n if (this.parentElement === undefined) return;\n\n const parent = this.parentElement as Element;\n dom.forEach((node: Dom) => parent.appendChild(node));\n }\n}\n","import type { JsxId, RenderKit, Template, TextValue } from '../../types';\nimport { createTextNode } from '../dom/create';\n\nexport class TextTemplate implements Template {\n value: string;\n\n constructor(content: TextValue) {\n this.value = content.toString();\n }\n\n render(renderKit: RenderKit) {\n const textNode = createTextNode(this.value, renderKit.document);\n if (!textNode) return [];\n (textNode as unknown as JsxId).__jsx = 'TextNode';\n return [textNode];\n }\n}\n","import jsx from '../jsx'\n\nexport const Link = ({ children, ...props }) => {\n return <a {...props} onClick='goToHref'>{children}</a>\n}\n"],"names":[],"version":3,"file":"add-remove-root-children.fbb4ec9b.js.map","sourceRoot":"/__parcel_source_root/"}
|