@gomusdev/web-components 1.6.1 → 1.8.0

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.
@@ -11493,6 +11493,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
11493
11493
  window.go = go;
11494
11494
  const _Forms = class _Forms {
11495
11495
  static defineForm(options) {
11496
+ debugger;
11497
+ console.log({ fields: options.fields });
11496
11498
  go.defineConfig({ forms: { [options.id]: { fields: options.fields } } });
11497
11499
  __privateGet(_Forms, _requiredApiKeysMap)[options.id] = options.requiredApiKeys || [];
11498
11500
  }
@@ -13833,16 +13835,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
13833
13835
  }
13834
13836
  });
13835
13837
  }
13836
- customElements.define("go-if", create_custom_element(
13837
- If,
13838
- {
13839
- when: { attribute: "when", reflect: true, type: "String" },
13840
- then: { attribute: "then", reflect: true, type: "String" }
13841
- },
13842
- [],
13843
- ["data"],
13844
- false
13845
- ));
13838
+ customElements.define("go-if", create_custom_element(If, { when: {}, then: {} }, [], ["data"], false));
13846
13839
  function GomusInit($$anchor, $$props) {
13847
13840
  push($$props, true);
13848
13841
  let apiUrl = prop($$props, "apiUrl", 7), shopDomain = prop($$props, "shopDomain", 7), locale = prop($$props, "locale", 7);
@@ -11493,6 +11493,8 @@ const go = new Config();
11493
11493
  window.go = go;
11494
11494
  const _Forms = class _Forms {
11495
11495
  static defineForm(options) {
11496
+ debugger;
11497
+ console.log({ fields: options.fields });
11496
11498
  go.defineConfig({ forms: { [options.id]: { fields: options.fields } } });
11497
11499
  __privateGet(_Forms, _requiredApiKeysMap)[options.id] = options.requiredApiKeys || [];
11498
11500
  }
@@ -13833,16 +13835,7 @@ function If($$anchor, $$props) {
13833
13835
  }
13834
13836
  });
13835
13837
  }
13836
- customElements.define("go-if", create_custom_element(
13837
- If,
13838
- {
13839
- when: { attribute: "when", reflect: true, type: "String" },
13840
- then: { attribute: "then", reflect: true, type: "String" }
13841
- },
13842
- [],
13843
- ["data"],
13844
- false
13845
- ));
13838
+ customElements.define("go-if", create_custom_element(If, { when: {}, then: {} }, [], ["data"], false));
13846
13839
  function GomusInit($$anchor, $$props) {
13847
13840
  push($$props, true);
13848
13841
  let apiUrl = prop($$props, "apiUrl", 7), shopDomain = prop($$props, "shopDomain", 7), locale = prop($$props, "locale", 7);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "1.6.1",
7
+ "version": "1.8.0",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",