From b0b58b97905f0b4481a75abd337f17f23842d364 Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Tue, 21 Nov 2023 00:45:56 -0800 Subject: [PATCH] infra: update build to include comments so that intellisense in consumer IDEs is more useful --- dist/CustomAttributeRegistry.js | 12 ++++++++++++ dist/CustomAttributeRegistry.js.map | 2 +- dist/index.js | 4 ++++ dist/index.js.map | 2 +- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/dist/CustomAttributeRegistry.js b/dist/CustomAttributeRegistry.js index d5a154d..192bd1d 100644 --- a/dist/CustomAttributeRegistry.js +++ b/dist/CustomAttributeRegistry.js @@ -10,6 +10,7 @@ export class CustomAttributeRegistry { if (attr) this._handleChange(m.attributeName, m.target, m.oldValue); } + // chlidList else { forEach.call(m.removedNodes, this._elementDisconnected); forEach.call(m.addedNodes, this._elementConnected); @@ -42,6 +43,8 @@ export class CustomAttributeRegistry { attributes: true, attributeOldValue: true, attributeFilter: Array.from(this._attrMap.keys()), + // attributeFilter: [...this._attrMap.keys()], // Broken in Oculus + // attributeFilter: this._attrMap.keys(), // This works in Chrome, but TS complains, and not clear if it should work in all browsers yet: https://github.com/whatwg/dom/issues/1092 }); } _unobserve() { @@ -53,15 +56,20 @@ export class CustomAttributeRegistry { } _upgradeAttr(attrName, node = this.ownerDocument) { const matches = node.querySelectorAll('[' + attrName + ']'); + // Possibly create custom attributes that may be in the given 'node' tree. + // Use a forEach as Edge doesn't support for...of on a NodeList forEach.call(matches, (element) => this._handleChange(attrName, element, null)); } _elementConnected = (element) => { if (element.nodeType !== 1) return; + // For each of the connected element's attribute, possibly instantiate the custom attributes. + // Use a forEach as Safari 10 doesn't support for...of on NamedNodeMap (attributes) forEach.call(element.attributes, (attr) => { if (this._getConstructor(attr.name)) this._handleChange(attr.name, element, null); }); + // Possibly instantiate custom attributes that may be in the subtree of the connected element. this._attrMap.forEach((_constructor, attr) => this._upgradeAttr(attr, element)); }; _elementDisconnected = (element) => { @@ -77,6 +85,7 @@ export class CustomAttributeRegistry { this._elementMap.set(el, (map = new Map())); let inst = map.get(attrName); const newVal = el.getAttribute(attrName); + // Attribute is being created if (!inst) { const Constructor = this._getConstructor(attrName); inst = new Constructor(); @@ -89,10 +98,12 @@ export class CustomAttributeRegistry { inst.connectedCallback?.(); return; } + // Attribute was removed if (newVal == null) { inst.disconnectedCallback?.(); map.delete(attrName); } + // Attribute changed else if (newVal !== inst.value) { inst.value = newVal; if (oldVal == null) @@ -101,6 +112,7 @@ export class CustomAttributeRegistry { } } } +// Avoid errors trying to use DOM APIs in non-DOM environments (f.e. server-side rendering). if (globalThis.window?.document) { const _attachShadow = Element.prototype.attachShadow; Element.prototype.attachShadow = function attachShadow(options) { diff --git a/dist/CustomAttributeRegistry.js.map b/dist/CustomAttributeRegistry.js.map index 2af642a..5ea27c7 100644 --- a/dist/CustomAttributeRegistry.js.map +++ b/dist/CustomAttributeRegistry.js.map @@ -1 +1 @@ -{"version":3,"file":"CustomAttributeRegistry.js","sourceRoot":"","sources":["../src/CustomAttributeRegistry.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,OAAO,CAAA;AAEvC,MAAM,OAAO,uBAAuB;IAmBhB;IAlBX,QAAQ,GAAG,IAAI,GAAG,EAAuB,CAAA;IACzC,WAAW,GAAG,IAAI,OAAO,EAAyC,CAAA;IAElE,SAAS,GAAqB,IAAI,gBAAgB,CAAC,SAAS,CAAC,EAAE;QACtE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAiB,EAAE,EAAE;YAC7C,IAAI,CAAC,CAAC,IAAI,KAAK,YAAY,EAAE;gBAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,aAAc,CAAC,CAAA;gBACnD,IAAI,IAAI;oBAAE,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,aAAc,EAAE,CAAC,CAAC,MAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAA;aAC/E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AM,KAAK,IAAI,CAAC,KAAK,EAAE;YAC/B,IAAI,CAAC,KAAK,GAAG,MAAM,CAAA;YACnB,IAAI,MAAM,IAAI,IAAI;gBAAE,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAA;YACpD,IAAI,CAAC,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;SACtC;IACF,CAAC;CACD;AAYD,4FAA4F;AAC5F,IAAI,UAAU,CAAC,MAAM,EAAE,QAAQ,EAAE;IAChC,MAAM,aAAa,GAAG,OAAO,CAAC,SAAS,CAAC,YAAY,CAAA;IAEpD,OAAO,CAAC,SAAS,CAAC,YAAY,GAAG,SAAS,YAAY,CAAC,OAAO;QAC7D,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;QAE9C,IAAI,CAAC,IAAI,CAAC,gBAAgB;YAAE,IAAI,CAAC,gBAAgB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAA;QAErF,OAAO,IAAI,CAAA;IACZ,CAAC,CAAA;CACD"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index d1b9e6a..e8e661d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,6 +1,10 @@ +// TODO We don't know when a ShadowRoot is no longer referenced, hence we cannot +// unobserve them. Verify that MOs are cleaned up once ShadowRoots are no longer +// referenced. import { CustomAttributeRegistry } from './CustomAttributeRegistry.js'; export * from './CustomAttributeRegistry.js'; export let customAttributes; +// Avoid errors trying to use DOM APIs in non-DOM environments (f.e. server-side rendering). if (globalThis.window?.document) customAttributes = globalThis.customAttributes = new CustomAttributeRegistry(document); export const version = '0.2.2'; diff --git a/dist/index.js.map b/dist/index.js.map index 17edb27..2a47348 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,uBAAuB,EAAC,MAAM,8BAA8B,CAAA;AAEpE,cAAc,8BAA8B,CAAA;AAE5C,MAAM,CAAC,IAAI,gBAAyC,CAAA;AAGpD,IAAI,UAAU,CAAC,MAAM,EAAE,QAAQ;IAAE,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,GAAG,IAAI,uBAAuB,CAAC,QAAQ,CAAC,CAAA;AAmBvH,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAA"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,gFAAgF;AAChF,cAAc;AAEd,OAAO,EAAC,uBAAuB,EAAC,MAAM,8BAA8B,CAAA;AAEpE,cAAc,8BAA8B,CAAA;AAE5C,MAAM,CAAC,IAAI,gBAAyC,CAAA;AAEpD,4FAA4F;AAC5F,IAAI,UAAU,CAAC,MAAM,EAAE,QAAQ;IAAE,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,GAAG,IAAI,uBAAuB,CAAC,QAAQ,CAAC,CAAA;AAmBvH,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAA"} \ No newline at end of file