@gomusdev/web-components 1.39.5 → 1.40.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.
@@ -1,6 +1,5 @@
1
1
  import { FieldInit } from '../components/forms/lib/Field.svelte.ts';
2
2
  import { ShopUrls } from '../lib/helpers/urls.ts';
3
- export declare const defaultConfig: Required<ConfigOptions>;
4
3
  export type FormConfig = {
5
4
  fields?: {
6
5
  key: string;
@@ -15,3 +14,15 @@ export type ConfigOptions = {
15
14
  forms?: Record<string, FormConfig>;
16
15
  fields?: Record<string, FieldInit>;
17
16
  };
17
+ declare class ConfigStoreSvelte {
18
+ private defaultConfig;
19
+ private override;
20
+ private options;
21
+ constructor();
22
+ private update;
23
+ get config(): {};
24
+ define(options: ConfigOptions): this;
25
+ default(options: ConfigOptions): this;
26
+ }
27
+ export declare const configStore: ConfigStoreSvelte;
28
+ export {};
File without changes
@@ -0,0 +1,16 @@
1
+ export type Command = {
2
+ method: 'load' | 'config' | 'init';
3
+ options: Record<string, unknown>;
4
+ };
5
+ export declare function initGo(window: {
6
+ go?: any;
7
+ }): Promise<void>;
8
+ export declare const go: {
9
+ loaded: boolean;
10
+ config: (options: Record<string, unknown>) => void;
11
+ init: (options: {
12
+ shop: string;
13
+ api: string;
14
+ locale: string;
15
+ }) => Promise<void>;
16
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -12313,7 +12313,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
12313
12313
  return url;
12314
12314
  }
12315
12315
  function client(publicApiUrl, shopUrl) {
12316
- return createClient({ baseUrl: `${publicApiUrl}`, headers: { "X-Shop-Url": shopUrl } });
12316
+ return createClient({ baseUrl: publicApiUrl, headers: { "X-Shop-Url": shopUrl } });
12317
12317
  }
12318
12318
  const CALENDAR_ENDPOINT = "/api/v4/calendar";
12319
12319
  const TICKETS_CALENDAR_ENDPOINT = "/api/v4/tickets/calendar";
@@ -12725,7 +12725,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
12725
12725
  }
12726
12726
  };
12727
12727
  }
12728
- const defaultConfig = {
12728
+ let defaultConfig = {
12729
12729
  urls: {},
12730
12730
  navigateTo: (url) => {
12731
12731
  window.location.assign(url);
@@ -12733,18 +12733,39 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
12733
12733
  forms: {},
12734
12734
  fields: {}
12735
12735
  };
12736
- class Config {
12737
- options = assign(defaultConfig, window.customOptions);
12736
+ class ConfigStoreSvelte {
12737
+ defaultConfig = assign(defaultConfig, window.customOptions);
12738
+ override = this.defaultConfig;
12739
+ #options = /* @__PURE__ */ state(proxy({}));
12740
+ get options() {
12741
+ return get$2(this.#options);
12742
+ }
12743
+ set options(value) {
12744
+ set(this.#options, value, true);
12745
+ }
12746
+ constructor() {
12747
+ this.update();
12748
+ }
12749
+ update() {
12750
+ this.options = assign(this.defaultConfig, this.override);
12751
+ }
12738
12752
  get config() {
12739
- return Object.freeze(this.options);
12753
+ return this.options;
12754
+ }
12755
+ define(options) {
12756
+ console.log("ConfigStore.define", options);
12757
+ this.override = assign(this.override, options);
12758
+ this.update();
12759
+ return this;
12740
12760
  }
12741
- defineConfig(options) {
12742
- this.options = assign(this.options, options);
12761
+ default(options) {
12762
+ console.log("ConfigStore.default", options);
12763
+ this.defaultConfig = assign(this.defaultConfig, options);
12764
+ this.update();
12743
12765
  return this;
12744
12766
  }
12745
12767
  }
12746
- const go = new Config();
12747
- window.go = go;
12768
+ const configStore = new ConfigStoreSvelte();
12748
12769
  class PersonalizationDetails {
12749
12770
  #token = /* @__PURE__ */ state();
12750
12771
  get token() {
@@ -12771,8 +12792,8 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
12771
12792
  if (this.ticketSaleId) return snapshot(this.order?.ticket_sales.find((ts) => ts.id == this.ticketSaleId));
12772
12793
  }
12773
12794
  goToPersonalization(ticketSale) {
12774
- if (go.config.urls.annualTicketPersonalizationForm) {
12775
- return go.config.urls.annualTicketPersonalizationForm(this.token, ticketSale.id);
12795
+ if (configStore.config.urls.annualTicketPersonalizationForm) {
12796
+ return configStore.config.urls.annualTicketPersonalizationForm(this.token, ticketSale.id);
12776
12797
  } else {
12777
12798
  return shop.urls.annualTicketPersonalizationForm(this.token, ticketSale.id);
12778
12799
  }
@@ -16080,20 +16101,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16080
16101
  }
16081
16102
  const _Forms = class _Forms {
16082
16103
  static defineForm(options) {
16083
- go.defineConfig({
16104
+ configStore.default({
16084
16105
  forms: {
16085
16106
  [options.id]: { fields: options.fields, submitLabel: options.submitLabel }
16086
16107
  }
16087
16108
  });
16088
16109
  }
16089
16110
  static defineFields(fields) {
16090
- go.defineConfig({ fields });
16111
+ configStore.default({ fields });
16091
16112
  }
16092
16113
  static setRequiredApiKeys(formId, requiredApiKeys) {
16093
16114
  __privateGet(_Forms, _requiredApiKeysMap)[formId] = requiredApiKeys;
16094
16115
  }
16095
16116
  static getFormOptions(formId) {
16096
- return go.config.forms[formId];
16117
+ return configStore.config.forms[formId];
16097
16118
  }
16098
16119
  static createField(key, required) {
16099
16120
  const init2 = _Forms.getFieldInit(key);
@@ -16106,7 +16127,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16106
16127
  return formFields(formId);
16107
16128
  }
16108
16129
  static getFieldInit(key) {
16109
- return go.config.fields[key];
16130
+ return configStore.config.fields[key];
16110
16131
  }
16111
16132
  };
16112
16133
  _requiredApiKeysMap = new WeakMap();
@@ -16114,7 +16135,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16114
16135
  _Forms.defineFields(allFields);
16115
16136
  let Forms = _Forms;
16116
16137
  function formFields(formId) {
16117
- const definition = go.config.forms[formId];
16138
+ const definition = configStore.config.forms[formId];
16118
16139
  if (!definition) {
16119
16140
  throw new Error(`(formFields) Form ${formId} not found`);
16120
16141
  }
@@ -16189,12 +16210,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16189
16210
  form.details.apiErrors = [result.error.error];
16190
16211
  return;
16191
16212
  }
16192
- const beforeSubmit = go.config.forms.personalization?.beforeSubmit;
16213
+ const beforeSubmit = configStore.config.forms.personalization?.beforeSubmit;
16193
16214
  if (beforeSubmit) {
16194
16215
  beforeSubmit(body);
16195
16216
  }
16196
- if (go.config.urls.annualTicketPersonalizationFormSubmit?.()) {
16197
- go.config.navigateTo(go.config.urls.annualTicketPersonalizationFormSubmit());
16217
+ if (configStore.config.urls.annualTicketPersonalizationFormSubmit?.()) {
16218
+ configStore.config.navigateTo(configStore.config.urls.annualTicketPersonalizationFormSubmit());
16198
16219
  }
16199
16220
  }
16200
16221
  let templateForm = null;
@@ -16945,12 +16966,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16945
16966
  form.details.apiErrors = checkout.error;
16946
16967
  return;
16947
16968
  }
16948
- const beforeSubmit = go.config.forms.checkoutGuest?.beforeSubmit;
16969
+ const beforeSubmit = configStore.config.forms.checkoutGuest?.beforeSubmit;
16949
16970
  if (beforeSubmit) {
16950
16971
  await beforeSubmit(form.details.formData);
16951
16972
  }
16952
16973
  const paymentUrl = checkout.data.meta.payment_url;
16953
- go.config.navigateTo?.(paymentUrl);
16974
+ configStore.config.navigateTo?.(paymentUrl);
16954
16975
  });
16955
16976
  });
16956
16977
  var $$exports = {
@@ -31565,7 +31586,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31565
31586
  function Link($$anchor, $$props) {
31566
31587
  push($$props, true);
31567
31588
  const to = prop($$props, "to", 7);
31568
- const href = /* @__PURE__ */ user_derived(() => go.config.urls[to()]);
31589
+ const href = /* @__PURE__ */ user_derived(() => configStore.config.urls[to()]);
31569
31590
  const a2 = wrapInElement($$props.$$host, "a");
31570
31591
  user_effect(() => {
31571
31592
  if (!get$2(href)) {
@@ -31577,11 +31598,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31577
31598
  });
31578
31599
  a2.addEventListener("click", (e) => {
31579
31600
  e.preventDefault();
31580
- if (!go.config.urls[to()]) {
31601
+ if (!configStore.config.urls[to()]) {
31581
31602
  console.warn(`[go-link] No URL found for route "${to()}". You can define it with go.config.urls.${to()} = () => 'https://example.com/my-route'`);
31582
31603
  return;
31583
31604
  }
31584
- go.config.navigateTo(go.config.urls[to()]());
31605
+ configStore.config.navigateTo(configStore.config.urls[to()]());
31585
31606
  });
31586
31607
  var $$exports = {
31587
31608
  get to() {
@@ -31620,8 +31641,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31620
31641
  return `${shop.apiUrl}/api/v4/orders/${this.order.id}/events/${item.attributes.id}.pdf?locale=${shop.locale}&token=${this.token}`;
31621
31642
  case "Ticket":
31622
31643
  if (item.attributes.ticket_type === "annual" && !item.attributes.is_voucher) {
31623
- if (go.config.urls.annualTicketPersonalizationList?.()) {
31624
- return go.config.urls.annualTicketPersonalizationList(this.token);
31644
+ if (configStore.config.urls.annualTicketPersonalizationList?.()) {
31645
+ return configStore.config.urls.annualTicketPersonalizationList(this.token);
31625
31646
  } else {
31626
31647
  return shop.urls?.annualTicketPersonalizationList(this.token);
31627
31648
  }
@@ -33421,8 +33442,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33421
33442
  });
33422
33443
  shop.cart.addItems(newItems);
33423
33444
  preCarts.forEach((pc) => pc.items.forEach((i) => i.quantity = 0));
33424
- if (go.config.urls.cart) {
33425
- go.config.navigateTo(go.config.urls.cart());
33445
+ if (configStore.config.urls.cart) {
33446
+ configStore.config.navigateTo(configStore.config.urls.cart());
33426
33447
  }
33427
33448
  }
33428
33449
  anyTicketsSelected() {
@@ -33559,4 +33580,30 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33559
33580
  pop();
33560
33581
  }
33561
33582
  customElements.define("go-profile-overview", create_custom_element(Overview, {}, [], []));
33583
+ async function initGo(window2) {
33584
+ const stub = window2.go;
33585
+ let q = stub && stub._queue || [];
33586
+ console.log(q);
33587
+ for (const command of q) {
33588
+ try {
33589
+ await go[command.method](command.options);
33590
+ } catch (e) {
33591
+ console.error(e);
33592
+ }
33593
+ }
33594
+ window2.go = go;
33595
+ if (stub) stub._queue = null;
33596
+ }
33597
+ const go = {
33598
+ loaded: true,
33599
+ config: (options) => {
33600
+ configStore.define(options);
33601
+ },
33602
+ init: async (options) => {
33603
+ await shop.load("https://" + options.api, options.shop, options.locale);
33604
+ }
33605
+ };
33606
+ (async () => {
33607
+ await initGo(window);
33608
+ })();
33562
33609
  })();
@@ -12313,7 +12313,7 @@ function removeTrailingSlash(url) {
12313
12313
  return url;
12314
12314
  }
12315
12315
  function client(publicApiUrl, shopUrl) {
12316
- return createClient({ baseUrl: `${publicApiUrl}`, headers: { "X-Shop-Url": shopUrl } });
12316
+ return createClient({ baseUrl: publicApiUrl, headers: { "X-Shop-Url": shopUrl } });
12317
12317
  }
12318
12318
  const CALENDAR_ENDPOINT = "/api/v4/calendar";
12319
12319
  const TICKETS_CALENDAR_ENDPOINT = "/api/v4/tickets/calendar";
@@ -12725,7 +12725,7 @@ function createGetDetails(KEY2) {
12725
12725
  }
12726
12726
  };
12727
12727
  }
12728
- const defaultConfig = {
12728
+ let defaultConfig = {
12729
12729
  urls: {},
12730
12730
  navigateTo: (url) => {
12731
12731
  window.location.assign(url);
@@ -12733,18 +12733,39 @@ const defaultConfig = {
12733
12733
  forms: {},
12734
12734
  fields: {}
12735
12735
  };
12736
- class Config {
12737
- options = assign(defaultConfig, window.customOptions);
12736
+ class ConfigStoreSvelte {
12737
+ defaultConfig = assign(defaultConfig, window.customOptions);
12738
+ override = this.defaultConfig;
12739
+ #options = /* @__PURE__ */ state(proxy({}));
12740
+ get options() {
12741
+ return get$2(this.#options);
12742
+ }
12743
+ set options(value) {
12744
+ set(this.#options, value, true);
12745
+ }
12746
+ constructor() {
12747
+ this.update();
12748
+ }
12749
+ update() {
12750
+ this.options = assign(this.defaultConfig, this.override);
12751
+ }
12738
12752
  get config() {
12739
- return Object.freeze(this.options);
12753
+ return this.options;
12754
+ }
12755
+ define(options) {
12756
+ console.log("ConfigStore.define", options);
12757
+ this.override = assign(this.override, options);
12758
+ this.update();
12759
+ return this;
12740
12760
  }
12741
- defineConfig(options) {
12742
- this.options = assign(this.options, options);
12761
+ default(options) {
12762
+ console.log("ConfigStore.default", options);
12763
+ this.defaultConfig = assign(this.defaultConfig, options);
12764
+ this.update();
12743
12765
  return this;
12744
12766
  }
12745
12767
  }
12746
- const go = new Config();
12747
- window.go = go;
12768
+ const configStore = new ConfigStoreSvelte();
12748
12769
  class PersonalizationDetails {
12749
12770
  #token = /* @__PURE__ */ state();
12750
12771
  get token() {
@@ -12771,8 +12792,8 @@ class PersonalizationDetails {
12771
12792
  if (this.ticketSaleId) return snapshot(this.order?.ticket_sales.find((ts) => ts.id == this.ticketSaleId));
12772
12793
  }
12773
12794
  goToPersonalization(ticketSale) {
12774
- if (go.config.urls.annualTicketPersonalizationForm) {
12775
- return go.config.urls.annualTicketPersonalizationForm(this.token, ticketSale.id);
12795
+ if (configStore.config.urls.annualTicketPersonalizationForm) {
12796
+ return configStore.config.urls.annualTicketPersonalizationForm(this.token, ticketSale.id);
12776
12797
  } else {
12777
12798
  return shop.urls.annualTicketPersonalizationForm(this.token, ticketSale.id);
12778
12799
  }
@@ -16080,20 +16101,20 @@ function validateField(field) {
16080
16101
  }
16081
16102
  const _Forms = class _Forms {
16082
16103
  static defineForm(options) {
16083
- go.defineConfig({
16104
+ configStore.default({
16084
16105
  forms: {
16085
16106
  [options.id]: { fields: options.fields, submitLabel: options.submitLabel }
16086
16107
  }
16087
16108
  });
16088
16109
  }
16089
16110
  static defineFields(fields) {
16090
- go.defineConfig({ fields });
16111
+ configStore.default({ fields });
16091
16112
  }
16092
16113
  static setRequiredApiKeys(formId, requiredApiKeys) {
16093
16114
  __privateGet(_Forms, _requiredApiKeysMap)[formId] = requiredApiKeys;
16094
16115
  }
16095
16116
  static getFormOptions(formId) {
16096
- return go.config.forms[formId];
16117
+ return configStore.config.forms[formId];
16097
16118
  }
16098
16119
  static createField(key, required) {
16099
16120
  const init2 = _Forms.getFieldInit(key);
@@ -16106,7 +16127,7 @@ const _Forms = class _Forms {
16106
16127
  return formFields(formId);
16107
16128
  }
16108
16129
  static getFieldInit(key) {
16109
- return go.config.fields[key];
16130
+ return configStore.config.fields[key];
16110
16131
  }
16111
16132
  };
16112
16133
  _requiredApiKeysMap = new WeakMap();
@@ -16114,7 +16135,7 @@ __privateAdd(_Forms, _requiredApiKeysMap, {});
16114
16135
  _Forms.defineFields(allFields);
16115
16136
  let Forms = _Forms;
16116
16137
  function formFields(formId) {
16117
- const definition = go.config.forms[formId];
16138
+ const definition = configStore.config.forms[formId];
16118
16139
  if (!definition) {
16119
16140
  throw new Error(`(formFields) Form ${formId} not found`);
16120
16141
  }
@@ -16189,12 +16210,12 @@ function AnnualTicketPersonalizationForm($$anchor, $$props) {
16189
16210
  form.details.apiErrors = [result.error.error];
16190
16211
  return;
16191
16212
  }
16192
- const beforeSubmit = go.config.forms.personalization?.beforeSubmit;
16213
+ const beforeSubmit = configStore.config.forms.personalization?.beforeSubmit;
16193
16214
  if (beforeSubmit) {
16194
16215
  beforeSubmit(body);
16195
16216
  }
16196
- if (go.config.urls.annualTicketPersonalizationFormSubmit?.()) {
16197
- go.config.navigateTo(go.config.urls.annualTicketPersonalizationFormSubmit());
16217
+ if (configStore.config.urls.annualTicketPersonalizationFormSubmit?.()) {
16218
+ configStore.config.navigateTo(configStore.config.urls.annualTicketPersonalizationFormSubmit());
16198
16219
  }
16199
16220
  }
16200
16221
  let templateForm = null;
@@ -16945,12 +16966,12 @@ function CheckoutForm($$anchor, $$props) {
16945
16966
  form.details.apiErrors = checkout.error;
16946
16967
  return;
16947
16968
  }
16948
- const beforeSubmit = go.config.forms.checkoutGuest?.beforeSubmit;
16969
+ const beforeSubmit = configStore.config.forms.checkoutGuest?.beforeSubmit;
16949
16970
  if (beforeSubmit) {
16950
16971
  await beforeSubmit(form.details.formData);
16951
16972
  }
16952
16973
  const paymentUrl = checkout.data.meta.payment_url;
16953
- go.config.navigateTo?.(paymentUrl);
16974
+ configStore.config.navigateTo?.(paymentUrl);
16954
16975
  });
16955
16976
  });
16956
16977
  var $$exports = {
@@ -31565,7 +31586,7 @@ customElements.define("go-init", create_custom_element(
31565
31586
  function Link($$anchor, $$props) {
31566
31587
  push($$props, true);
31567
31588
  const to = prop($$props, "to", 7);
31568
- const href = /* @__PURE__ */ user_derived(() => go.config.urls[to()]);
31589
+ const href = /* @__PURE__ */ user_derived(() => configStore.config.urls[to()]);
31569
31590
  const a2 = wrapInElement($$props.$$host, "a");
31570
31591
  user_effect(() => {
31571
31592
  if (!get$2(href)) {
@@ -31577,11 +31598,11 @@ function Link($$anchor, $$props) {
31577
31598
  });
31578
31599
  a2.addEventListener("click", (e) => {
31579
31600
  e.preventDefault();
31580
- if (!go.config.urls[to()]) {
31601
+ if (!configStore.config.urls[to()]) {
31581
31602
  console.warn(`[go-link] No URL found for route "${to()}". You can define it with go.config.urls.${to()} = () => 'https://example.com/my-route'`);
31582
31603
  return;
31583
31604
  }
31584
- go.config.navigateTo(go.config.urls[to()]());
31605
+ configStore.config.navigateTo(configStore.config.urls[to()]());
31585
31606
  });
31586
31607
  var $$exports = {
31587
31608
  get to() {
@@ -31620,8 +31641,8 @@ class OrderDetails {
31620
31641
  return `${shop.apiUrl}/api/v4/orders/${this.order.id}/events/${item.attributes.id}.pdf?locale=${shop.locale}&token=${this.token}`;
31621
31642
  case "Ticket":
31622
31643
  if (item.attributes.ticket_type === "annual" && !item.attributes.is_voucher) {
31623
- if (go.config.urls.annualTicketPersonalizationList?.()) {
31624
- return go.config.urls.annualTicketPersonalizationList(this.token);
31644
+ if (configStore.config.urls.annualTicketPersonalizationList?.()) {
31645
+ return configStore.config.urls.annualTicketPersonalizationList(this.token);
31625
31646
  } else {
31626
31647
  return shop.urls?.annualTicketPersonalizationList(this.token);
31627
31648
  }
@@ -33421,8 +33442,8 @@ let Details$1 = class Details2 {
33421
33442
  });
33422
33443
  shop.cart.addItems(newItems);
33423
33444
  preCarts.forEach((pc) => pc.items.forEach((i) => i.quantity = 0));
33424
- if (go.config.urls.cart) {
33425
- go.config.navigateTo(go.config.urls.cart());
33445
+ if (configStore.config.urls.cart) {
33446
+ configStore.config.navigateTo(configStore.config.urls.cart());
33426
33447
  }
33427
33448
  }
33428
33449
  anyTicketsSelected() {
@@ -33559,3 +33580,29 @@ function Overview($$anchor, $$props) {
33559
33580
  pop();
33560
33581
  }
33561
33582
  customElements.define("go-profile-overview", create_custom_element(Overview, {}, [], []));
33583
+ async function initGo(window2) {
33584
+ const stub = window2.go;
33585
+ let q = stub && stub._queue || [];
33586
+ console.log(q);
33587
+ for (const command of q) {
33588
+ try {
33589
+ await go[command.method](command.options);
33590
+ } catch (e) {
33591
+ console.error(e);
33592
+ }
33593
+ }
33594
+ window2.go = go;
33595
+ if (stub) stub._queue = null;
33596
+ }
33597
+ const go = {
33598
+ loaded: true,
33599
+ config: (options) => {
33600
+ configStore.define(options);
33601
+ },
33602
+ init: async (options) => {
33603
+ await shop.load("https://" + options.api, options.shop, options.locale);
33604
+ }
33605
+ };
33606
+ (async () => {
33607
+ await initGo(window);
33608
+ })();
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "1.39.5",
7
+ "version": "1.40.0",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",
@@ -26,9 +26,13 @@
26
26
  "build:standard-components": "pnpm vite -c vite.standard-components.config.ts build; cp dist-js/standard-components.js ../../../gomus-shop/src/assets/javascript",
27
27
  "open-test": "vite build && vite --open src/test.html",
28
28
  "=== E 2 E ===": "",
29
- "e2e": "npx playwright test",
30
- "e2e:ui": "npx playwright test --ui",
31
- "e2e:headed": "npx playwright test --headed ",
29
+ "e2e:static": "vite build && npx playwright test --config=playwright-static.config.ts",
30
+ "e2e:static:no-build": "npx playwright test --config=playwright-static.config.ts",
31
+ "e2e:static:ui": "npx playwright test --config=playwright-static.config.ts --ui",
32
+ "----------------": "-",
33
+ "e2e:storybook": "npx playwright test --config=playwright-storybook.config.ts",
34
+ "e2e:storybook:ui": "npx playwright test --ui --config=playwright-storybook.config.ts",
35
+ "e2e:storybook:headed": "npx playwright test --headed --config=playwright-storybook.config.ts",
32
36
  "=== S T O R Y B O O K ===": "",
33
37
  "chromatic": "npx chromatic --project-token=chpt_36bb239517e3c45 --allow-console-errors",
34
38
  "storybook": "storybook dev",
@@ -1,8 +0,0 @@
1
- import { ConfigOptions } from './defaultConfig.ts';
2
- declare class Config {
3
- private options;
4
- get config(): any;
5
- defineConfig(options: ConfigOptions): this;
6
- }
7
- export declare const go: Config;
8
- export {};