myio-js-library 0.1.89 → 0.1.92
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/dist/index.cjs +22 -9
- package/dist/index.js +22 -9
- package/dist/myio-js-library.umd.js +22 -9
- package/dist/myio-js-library.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1914,12 +1914,17 @@ init_template_card();
|
|
|
1914
1914
|
var MyIOSelectionStoreClass = class {
|
|
1915
1915
|
constructor() {
|
|
1916
1916
|
console.log("[SelectionStore] \u{1F50D} Constructor called - checking for existing instance...");
|
|
1917
|
-
console.log("[SelectionStore] typeof
|
|
1918
|
-
console.log("[SelectionStore]
|
|
1919
|
-
if (typeof
|
|
1917
|
+
console.log("[SelectionStore] typeof document:", typeof document);
|
|
1918
|
+
console.log("[SelectionStore] document.__MyIOSelectionStore_INSTANCE__:", !!document?.__MyIOSelectionStore_INSTANCE__);
|
|
1919
|
+
if (typeof document !== "undefined") {
|
|
1920
|
+
const myioProps = Object.getOwnPropertyNames(document).filter((key) => key.startsWith("__MyIO"));
|
|
1921
|
+
console.log("[SelectionStore] All __MyIO* properties on document:", myioProps);
|
|
1922
|
+
}
|
|
1923
|
+
const existingInstance = typeof document !== "undefined" && document.__MyIOSelectionStore_INSTANCE__ || typeof window !== "undefined" && window.__MyIOSelectionStore_INSTANCE__;
|
|
1924
|
+
if (existingInstance) {
|
|
1920
1925
|
console.warn("[SelectionStore] \u26A0\uFE0F Constructor called but instance already exists! Returning existing instance.");
|
|
1921
|
-
console.log("[SelectionStore] Existing instance has listeners:",
|
|
1922
|
-
return
|
|
1926
|
+
console.log("[SelectionStore] Existing instance has listeners:", existingInstance.eventListeners.get("selection:change")?.length || 0);
|
|
1927
|
+
return existingInstance;
|
|
1923
1928
|
}
|
|
1924
1929
|
console.log("[SelectionStore] \u{1F3D7}\uFE0F NEW INSTANCE CREATED at:", (/* @__PURE__ */ new Date()).toISOString());
|
|
1925
1930
|
console.trace("[SelectionStore] Constructor called from:");
|
|
@@ -1934,8 +1939,12 @@ var MyIOSelectionStoreClass = class {
|
|
|
1934
1939
|
this.eventListeners.set("selection:totals", []);
|
|
1935
1940
|
this.eventListeners.set("comparison:open", []);
|
|
1936
1941
|
this.eventListeners.set("comparison:too_many", []);
|
|
1937
|
-
if (typeof
|
|
1938
|
-
console.log("[SelectionStore] \u{1F4BE} Storing instance in
|
|
1942
|
+
if (typeof document !== "undefined") {
|
|
1943
|
+
console.log("[SelectionStore] \u{1F4BE} Storing instance in document.__MyIOSelectionStore_INSTANCE__");
|
|
1944
|
+
document.__MyIOSelectionStore_INSTANCE__ = this;
|
|
1945
|
+
console.log("[SelectionStore] \u2705 Stored! Verify:", !!document.__MyIOSelectionStore_INSTANCE__);
|
|
1946
|
+
} else if (typeof window !== "undefined") {
|
|
1947
|
+
console.log("[SelectionStore] \u{1F4BE} Storing instance in window.__MyIOSelectionStore_INSTANCE__ (fallback)");
|
|
1939
1948
|
window.__MyIOSelectionStore_INSTANCE__ = this;
|
|
1940
1949
|
console.log("[SelectionStore] \u2705 Stored! Verify:", !!window.__MyIOSelectionStore_INSTANCE__);
|
|
1941
1950
|
}
|
|
@@ -2258,9 +2267,13 @@ var MyIOSelectionStoreClass = class {
|
|
|
2258
2267
|
var MyIOSelectionStore;
|
|
2259
2268
|
var _singletonInstance = null;
|
|
2260
2269
|
if (typeof globalThis !== "undefined" && typeof globalThis.window !== "undefined") {
|
|
2261
|
-
|
|
2270
|
+
console.log("[SelectionStore] \u{1F527} Module initialization - checking for existing instance...");
|
|
2271
|
+
const existingInstance = typeof document !== "undefined" && document.__MyIOSelectionStore_INSTANCE__ || globalThis.window.__MyIOSelectionStore_INSTANCE__;
|
|
2272
|
+
console.log("[SelectionStore] document.__MyIOSelectionStore_INSTANCE__:", !!(typeof document !== "undefined" && document.__MyIOSelectionStore_INSTANCE__));
|
|
2273
|
+
console.log("[SelectionStore] window.__MyIOSelectionStore_INSTANCE__:", !!globalThis.window.__MyIOSelectionStore_INSTANCE__);
|
|
2274
|
+
if (existingInstance) {
|
|
2262
2275
|
console.log("[SelectionStore] \u{1F504} REUSING constructor-created instance from __MyIOSelectionStore_INSTANCE__");
|
|
2263
|
-
_singletonInstance =
|
|
2276
|
+
_singletonInstance = existingInstance;
|
|
2264
2277
|
MyIOSelectionStore = _singletonInstance;
|
|
2265
2278
|
} else if (Object.getOwnPropertyDescriptor(globalThis.window, "MyIOSelectionStore")?.get) {
|
|
2266
2279
|
console.log("[SelectionStore] \u{1F504} REUSING protected global instance via getter");
|
package/dist/index.js
CHANGED
|
@@ -1826,12 +1826,17 @@ init_template_card();
|
|
|
1826
1826
|
var MyIOSelectionStoreClass = class {
|
|
1827
1827
|
constructor() {
|
|
1828
1828
|
console.log("[SelectionStore] \u{1F50D} Constructor called - checking for existing instance...");
|
|
1829
|
-
console.log("[SelectionStore] typeof
|
|
1830
|
-
console.log("[SelectionStore]
|
|
1831
|
-
if (typeof
|
|
1829
|
+
console.log("[SelectionStore] typeof document:", typeof document);
|
|
1830
|
+
console.log("[SelectionStore] document.__MyIOSelectionStore_INSTANCE__:", !!document?.__MyIOSelectionStore_INSTANCE__);
|
|
1831
|
+
if (typeof document !== "undefined") {
|
|
1832
|
+
const myioProps = Object.getOwnPropertyNames(document).filter((key) => key.startsWith("__MyIO"));
|
|
1833
|
+
console.log("[SelectionStore] All __MyIO* properties on document:", myioProps);
|
|
1834
|
+
}
|
|
1835
|
+
const existingInstance = typeof document !== "undefined" && document.__MyIOSelectionStore_INSTANCE__ || typeof window !== "undefined" && window.__MyIOSelectionStore_INSTANCE__;
|
|
1836
|
+
if (existingInstance) {
|
|
1832
1837
|
console.warn("[SelectionStore] \u26A0\uFE0F Constructor called but instance already exists! Returning existing instance.");
|
|
1833
|
-
console.log("[SelectionStore] Existing instance has listeners:",
|
|
1834
|
-
return
|
|
1838
|
+
console.log("[SelectionStore] Existing instance has listeners:", existingInstance.eventListeners.get("selection:change")?.length || 0);
|
|
1839
|
+
return existingInstance;
|
|
1835
1840
|
}
|
|
1836
1841
|
console.log("[SelectionStore] \u{1F3D7}\uFE0F NEW INSTANCE CREATED at:", (/* @__PURE__ */ new Date()).toISOString());
|
|
1837
1842
|
console.trace("[SelectionStore] Constructor called from:");
|
|
@@ -1846,8 +1851,12 @@ var MyIOSelectionStoreClass = class {
|
|
|
1846
1851
|
this.eventListeners.set("selection:totals", []);
|
|
1847
1852
|
this.eventListeners.set("comparison:open", []);
|
|
1848
1853
|
this.eventListeners.set("comparison:too_many", []);
|
|
1849
|
-
if (typeof
|
|
1850
|
-
console.log("[SelectionStore] \u{1F4BE} Storing instance in
|
|
1854
|
+
if (typeof document !== "undefined") {
|
|
1855
|
+
console.log("[SelectionStore] \u{1F4BE} Storing instance in document.__MyIOSelectionStore_INSTANCE__");
|
|
1856
|
+
document.__MyIOSelectionStore_INSTANCE__ = this;
|
|
1857
|
+
console.log("[SelectionStore] \u2705 Stored! Verify:", !!document.__MyIOSelectionStore_INSTANCE__);
|
|
1858
|
+
} else if (typeof window !== "undefined") {
|
|
1859
|
+
console.log("[SelectionStore] \u{1F4BE} Storing instance in window.__MyIOSelectionStore_INSTANCE__ (fallback)");
|
|
1851
1860
|
window.__MyIOSelectionStore_INSTANCE__ = this;
|
|
1852
1861
|
console.log("[SelectionStore] \u2705 Stored! Verify:", !!window.__MyIOSelectionStore_INSTANCE__);
|
|
1853
1862
|
}
|
|
@@ -2170,9 +2179,13 @@ var MyIOSelectionStoreClass = class {
|
|
|
2170
2179
|
var MyIOSelectionStore;
|
|
2171
2180
|
var _singletonInstance = null;
|
|
2172
2181
|
if (typeof globalThis !== "undefined" && typeof globalThis.window !== "undefined") {
|
|
2173
|
-
|
|
2182
|
+
console.log("[SelectionStore] \u{1F527} Module initialization - checking for existing instance...");
|
|
2183
|
+
const existingInstance = typeof document !== "undefined" && document.__MyIOSelectionStore_INSTANCE__ || globalThis.window.__MyIOSelectionStore_INSTANCE__;
|
|
2184
|
+
console.log("[SelectionStore] document.__MyIOSelectionStore_INSTANCE__:", !!(typeof document !== "undefined" && document.__MyIOSelectionStore_INSTANCE__));
|
|
2185
|
+
console.log("[SelectionStore] window.__MyIOSelectionStore_INSTANCE__:", !!globalThis.window.__MyIOSelectionStore_INSTANCE__);
|
|
2186
|
+
if (existingInstance) {
|
|
2174
2187
|
console.log("[SelectionStore] \u{1F504} REUSING constructor-created instance from __MyIOSelectionStore_INSTANCE__");
|
|
2175
|
-
_singletonInstance =
|
|
2188
|
+
_singletonInstance = existingInstance;
|
|
2176
2189
|
MyIOSelectionStore = _singletonInstance;
|
|
2177
2190
|
} else if (Object.getOwnPropertyDescriptor(globalThis.window, "MyIOSelectionStore")?.get) {
|
|
2178
2191
|
console.log("[SelectionStore] \u{1F504} REUSING protected global instance via getter");
|
|
@@ -1832,12 +1832,17 @@
|
|
|
1832
1832
|
var MyIOSelectionStoreClass = class {
|
|
1833
1833
|
constructor() {
|
|
1834
1834
|
console.log("[SelectionStore] \u{1F50D} Constructor called - checking for existing instance...");
|
|
1835
|
-
console.log("[SelectionStore] typeof
|
|
1836
|
-
console.log("[SelectionStore]
|
|
1837
|
-
if (typeof
|
|
1835
|
+
console.log("[SelectionStore] typeof document:", typeof document);
|
|
1836
|
+
console.log("[SelectionStore] document.__MyIOSelectionStore_INSTANCE__:", !!document?.__MyIOSelectionStore_INSTANCE__);
|
|
1837
|
+
if (typeof document !== "undefined") {
|
|
1838
|
+
const myioProps = Object.getOwnPropertyNames(document).filter((key) => key.startsWith("__MyIO"));
|
|
1839
|
+
console.log("[SelectionStore] All __MyIO* properties on document:", myioProps);
|
|
1840
|
+
}
|
|
1841
|
+
const existingInstance = typeof document !== "undefined" && document.__MyIOSelectionStore_INSTANCE__ || typeof window !== "undefined" && window.__MyIOSelectionStore_INSTANCE__;
|
|
1842
|
+
if (existingInstance) {
|
|
1838
1843
|
console.warn("[SelectionStore] \u26A0\uFE0F Constructor called but instance already exists! Returning existing instance.");
|
|
1839
|
-
console.log("[SelectionStore] Existing instance has listeners:",
|
|
1840
|
-
return
|
|
1844
|
+
console.log("[SelectionStore] Existing instance has listeners:", existingInstance.eventListeners.get("selection:change")?.length || 0);
|
|
1845
|
+
return existingInstance;
|
|
1841
1846
|
}
|
|
1842
1847
|
console.log("[SelectionStore] \u{1F3D7}\uFE0F NEW INSTANCE CREATED at:", (/* @__PURE__ */ new Date()).toISOString());
|
|
1843
1848
|
console.trace("[SelectionStore] Constructor called from:");
|
|
@@ -1852,8 +1857,12 @@
|
|
|
1852
1857
|
this.eventListeners.set("selection:totals", []);
|
|
1853
1858
|
this.eventListeners.set("comparison:open", []);
|
|
1854
1859
|
this.eventListeners.set("comparison:too_many", []);
|
|
1855
|
-
if (typeof
|
|
1856
|
-
console.log("[SelectionStore] \u{1F4BE} Storing instance in
|
|
1860
|
+
if (typeof document !== "undefined") {
|
|
1861
|
+
console.log("[SelectionStore] \u{1F4BE} Storing instance in document.__MyIOSelectionStore_INSTANCE__");
|
|
1862
|
+
document.__MyIOSelectionStore_INSTANCE__ = this;
|
|
1863
|
+
console.log("[SelectionStore] \u2705 Stored! Verify:", !!document.__MyIOSelectionStore_INSTANCE__);
|
|
1864
|
+
} else if (typeof window !== "undefined") {
|
|
1865
|
+
console.log("[SelectionStore] \u{1F4BE} Storing instance in window.__MyIOSelectionStore_INSTANCE__ (fallback)");
|
|
1857
1866
|
window.__MyIOSelectionStore_INSTANCE__ = this;
|
|
1858
1867
|
console.log("[SelectionStore] \u2705 Stored! Verify:", !!window.__MyIOSelectionStore_INSTANCE__);
|
|
1859
1868
|
}
|
|
@@ -2176,9 +2185,13 @@
|
|
|
2176
2185
|
exports.MyIOSelectionStore = void 0;
|
|
2177
2186
|
var _singletonInstance = null;
|
|
2178
2187
|
if (typeof globalThis !== "undefined" && typeof globalThis.window !== "undefined") {
|
|
2179
|
-
|
|
2188
|
+
console.log("[SelectionStore] \u{1F527} Module initialization - checking for existing instance...");
|
|
2189
|
+
const existingInstance = typeof document !== "undefined" && document.__MyIOSelectionStore_INSTANCE__ || globalThis.window.__MyIOSelectionStore_INSTANCE__;
|
|
2190
|
+
console.log("[SelectionStore] document.__MyIOSelectionStore_INSTANCE__:", !!(typeof document !== "undefined" && document.__MyIOSelectionStore_INSTANCE__));
|
|
2191
|
+
console.log("[SelectionStore] window.__MyIOSelectionStore_INSTANCE__:", !!globalThis.window.__MyIOSelectionStore_INSTANCE__);
|
|
2192
|
+
if (existingInstance) {
|
|
2180
2193
|
console.log("[SelectionStore] \u{1F504} REUSING constructor-created instance from __MyIOSelectionStore_INSTANCE__");
|
|
2181
|
-
_singletonInstance =
|
|
2194
|
+
_singletonInstance = existingInstance;
|
|
2182
2195
|
exports.MyIOSelectionStore = _singletonInstance;
|
|
2183
2196
|
} else if (Object.getOwnPropertyDescriptor(globalThis.window, "MyIOSelectionStore")?.get) {
|
|
2184
2197
|
console.log("[SelectionStore] \u{1F504} REUSING protected global instance via getter");
|