myio-js-library 0.1.89 → 0.1.91

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 CHANGED
@@ -1915,7 +1915,12 @@ var MyIOSelectionStoreClass = class {
1915
1915
  constructor() {
1916
1916
  console.log("[SelectionStore] \u{1F50D} Constructor called - checking for existing instance...");
1917
1917
  console.log("[SelectionStore] typeof window:", typeof window);
1918
+ console.log("[SelectionStore] window === globalThis.window:", typeof window !== "undefined" && window === globalThis?.window);
1918
1919
  console.log("[SelectionStore] window.__MyIOSelectionStore_INSTANCE__:", !!window?.__MyIOSelectionStore_INSTANCE__);
1920
+ if (typeof window !== "undefined") {
1921
+ const myioProps = Object.getOwnPropertyNames(window).filter((key) => key.startsWith("__MyIO"));
1922
+ console.log("[SelectionStore] All __MyIO* properties on window:", myioProps);
1923
+ }
1919
1924
  if (typeof window !== "undefined" && window.__MyIOSelectionStore_INSTANCE__) {
1920
1925
  console.warn("[SelectionStore] \u26A0\uFE0F Constructor called but instance already exists! Returning existing instance.");
1921
1926
  console.log("[SelectionStore] Existing instance has listeners:", window.__MyIOSelectionStore_INSTANCE__.eventListeners.get("selection:change")?.length || 0);
@@ -2258,6 +2263,8 @@ var MyIOSelectionStoreClass = class {
2258
2263
  var MyIOSelectionStore;
2259
2264
  var _singletonInstance = null;
2260
2265
  if (typeof globalThis !== "undefined" && typeof globalThis.window !== "undefined") {
2266
+ console.log("[SelectionStore] \u{1F527} Module initialization - checking for existing instance...");
2267
+ console.log("[SelectionStore] globalThis.window.__MyIOSelectionStore_INSTANCE__:", !!globalThis.window.__MyIOSelectionStore_INSTANCE__);
2261
2268
  if (globalThis.window.__MyIOSelectionStore_INSTANCE__) {
2262
2269
  console.log("[SelectionStore] \u{1F504} REUSING constructor-created instance from __MyIOSelectionStore_INSTANCE__");
2263
2270
  _singletonInstance = globalThis.window.__MyIOSelectionStore_INSTANCE__;
package/dist/index.js CHANGED
@@ -1827,7 +1827,12 @@ var MyIOSelectionStoreClass = class {
1827
1827
  constructor() {
1828
1828
  console.log("[SelectionStore] \u{1F50D} Constructor called - checking for existing instance...");
1829
1829
  console.log("[SelectionStore] typeof window:", typeof window);
1830
+ console.log("[SelectionStore] window === globalThis.window:", typeof window !== "undefined" && window === globalThis?.window);
1830
1831
  console.log("[SelectionStore] window.__MyIOSelectionStore_INSTANCE__:", !!window?.__MyIOSelectionStore_INSTANCE__);
1832
+ if (typeof window !== "undefined") {
1833
+ const myioProps = Object.getOwnPropertyNames(window).filter((key) => key.startsWith("__MyIO"));
1834
+ console.log("[SelectionStore] All __MyIO* properties on window:", myioProps);
1835
+ }
1831
1836
  if (typeof window !== "undefined" && window.__MyIOSelectionStore_INSTANCE__) {
1832
1837
  console.warn("[SelectionStore] \u26A0\uFE0F Constructor called but instance already exists! Returning existing instance.");
1833
1838
  console.log("[SelectionStore] Existing instance has listeners:", window.__MyIOSelectionStore_INSTANCE__.eventListeners.get("selection:change")?.length || 0);
@@ -2170,6 +2175,8 @@ var MyIOSelectionStoreClass = class {
2170
2175
  var MyIOSelectionStore;
2171
2176
  var _singletonInstance = null;
2172
2177
  if (typeof globalThis !== "undefined" && typeof globalThis.window !== "undefined") {
2178
+ console.log("[SelectionStore] \u{1F527} Module initialization - checking for existing instance...");
2179
+ console.log("[SelectionStore] globalThis.window.__MyIOSelectionStore_INSTANCE__:", !!globalThis.window.__MyIOSelectionStore_INSTANCE__);
2173
2180
  if (globalThis.window.__MyIOSelectionStore_INSTANCE__) {
2174
2181
  console.log("[SelectionStore] \u{1F504} REUSING constructor-created instance from __MyIOSelectionStore_INSTANCE__");
2175
2182
  _singletonInstance = globalThis.window.__MyIOSelectionStore_INSTANCE__;
@@ -1833,7 +1833,12 @@
1833
1833
  constructor() {
1834
1834
  console.log("[SelectionStore] \u{1F50D} Constructor called - checking for existing instance...");
1835
1835
  console.log("[SelectionStore] typeof window:", typeof window);
1836
+ console.log("[SelectionStore] window === globalThis.window:", typeof window !== "undefined" && window === globalThis?.window);
1836
1837
  console.log("[SelectionStore] window.__MyIOSelectionStore_INSTANCE__:", !!window?.__MyIOSelectionStore_INSTANCE__);
1838
+ if (typeof window !== "undefined") {
1839
+ const myioProps = Object.getOwnPropertyNames(window).filter((key) => key.startsWith("__MyIO"));
1840
+ console.log("[SelectionStore] All __MyIO* properties on window:", myioProps);
1841
+ }
1837
1842
  if (typeof window !== "undefined" && window.__MyIOSelectionStore_INSTANCE__) {
1838
1843
  console.warn("[SelectionStore] \u26A0\uFE0F Constructor called but instance already exists! Returning existing instance.");
1839
1844
  console.log("[SelectionStore] Existing instance has listeners:", window.__MyIOSelectionStore_INSTANCE__.eventListeners.get("selection:change")?.length || 0);
@@ -2176,6 +2181,8 @@
2176
2181
  exports.MyIOSelectionStore = void 0;
2177
2182
  var _singletonInstance = null;
2178
2183
  if (typeof globalThis !== "undefined" && typeof globalThis.window !== "undefined") {
2184
+ console.log("[SelectionStore] \u{1F527} Module initialization - checking for existing instance...");
2185
+ console.log("[SelectionStore] globalThis.window.__MyIOSelectionStore_INSTANCE__:", !!globalThis.window.__MyIOSelectionStore_INSTANCE__);
2179
2186
  if (globalThis.window.__MyIOSelectionStore_INSTANCE__) {
2180
2187
  console.log("[SelectionStore] \u{1F504} REUSING constructor-created instance from __MyIOSelectionStore_INSTANCE__");
2181
2188
  _singletonInstance = globalThis.window.__MyIOSelectionStore_INSTANCE__;