@saasquatch/mint-components 2.0.0-40 → 2.0.0-41

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.
Files changed (26) hide show
  1. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +5 -2
  2. package/dist/cjs/sqm-big-stat_46.cjs.entry.js +0 -1
  3. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +2 -1
  4. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +0 -1
  5. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +2 -1
  6. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +1 -0
  7. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +6 -6
  8. package/dist/esm/sqm-banking-info-form_10.entry.js +5 -2
  9. package/dist/esm/sqm-big-stat_46.entry.js +0 -1
  10. package/dist/esm/sqm-tax-and-cash.entry.js +2 -1
  11. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  12. package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
  13. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
  14. package/dist/mint-components/mint-components.esm.js +1 -1
  15. package/dist/mint-components/{p-be3d8440.entry.js → p-38263521.entry.js} +1 -1
  16. package/dist/mint-components/{p-e1c9351d.system.entry.js → p-69d8b4f2.system.entry.js} +1 -1
  17. package/dist/mint-components/{p-402984b3.system.entry.js → p-7d23f71a.system.entry.js} +1 -1
  18. package/dist/mint-components/{p-dc91d92f.system.entry.js → p-8d6463ea.system.entry.js} +1 -1
  19. package/dist/mint-components/p-967a9040.system.js +1 -1
  20. package/dist/mint-components/{p-f7876e57.entry.js → p-9bed9e79.entry.js} +6 -6
  21. package/dist/mint-components/{p-a44a912b.entry.js → p-a898d088.entry.js} +1 -1
  22. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +1 -1
  23. package/dist/types/components.d.ts +2 -2
  24. package/docs/docs.docx +0 -0
  25. package/package.json +1 -1
  26. package/shoelace/assets/icons/twitter-x.svg +0 -4
@@ -4103,6 +4103,7 @@ const TaxAndCashDashboardView = (props) => {
4103
4103
  }
4104
4104
  };
4105
4105
  const alertInfo = getAlert(states.payoutStatus);
4106
+ console.log({ states, props });
4106
4107
  return (index.h("div", null,
4107
4108
  index.h("div", null,
4108
4109
  index.h("style", { type: "text/css" }, styleString$4),
@@ -4666,9 +4667,9 @@ const TaxAndCashDashboard = class {
4666
4667
  this.cancelButton = "Cancel";
4667
4668
  /**
4668
4669
  * @undocumented
4669
- * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] "uiGroup": "Dashboard Properties" }
4670
+ * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "uiGroup": "Dashboard Properties" }
4670
4671
  */
4671
- this.stateController = "{ states: { payoutStatus: 'HOLD' } }";
4672
+ this.stateController = "{}";
4672
4673
  domContextHooks_module.h$1(this);
4673
4674
  }
4674
4675
  disconnectedCallback() { }
@@ -4688,6 +4689,7 @@ const TaxAndCashDashboard = class {
4688
4689
  const props = index_module.isDemo()
4689
4690
  ? useDemoTaxAndCashDashboard(this)
4690
4691
  : useTaxAndCashDashboard(this);
4692
+ console.log({ stateController: this.stateController });
4691
4693
  return (index.h(index.Host, null, index.h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
4692
4694
  payoutDetailsCardSlot: (index.h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
4693
4695
  } })));
@@ -4698,6 +4700,7 @@ function useDemoTaxAndCashDashboard(props) {
4698
4700
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
4699
4701
  ? { ...prev, ...states[key] }
4700
4702
  : { ...prev, [`${key}_stateController`]: states[key] }, {});
4703
+ console.log({ formatted });
4701
4704
  // @ts-ignore
4702
4705
  return cjs.cjs({
4703
4706
  states: {
@@ -3206,7 +3206,6 @@ const PayoutStatusAlert = class {
3206
3206
  }
3207
3207
  };
3208
3208
  function useDemoPayoutStatusAlert(props) {
3209
- console.log(props.stateController, "stateController in sqm-payout-status-alert");
3210
3209
  const states = parseStates.parseStates(props.stateController);
3211
3210
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3212
3211
  ? { ...prev, ...states[key] }
@@ -1264,6 +1264,7 @@ const TaxAndCashMonolith = class {
1264
1264
  render() {
1265
1265
  var _a, _b;
1266
1266
  const props = index_module.isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
1267
+ console.log({ props });
1267
1268
  // @ts-ignore
1268
1269
  if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
1269
1270
  const textProps = utils$1.getProps(this);
@@ -1283,7 +1284,7 @@ const TaxAndCashMonolith = class {
1283
1284
  case "/4":
1284
1285
  return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
1285
1286
  case "/dashboard":
1286
- return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
1287
+ return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), { stateController: props["sqm-tax-and-cash-dashboard_stateController"] || "{}" })));
1287
1288
  case "/error":
1288
1289
  return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: global.intl.formatMessage({
1289
1290
  id: "loadingErrorAlertDescription",
@@ -703,7 +703,6 @@ export class PayoutStatusAlert {
703
703
  }; }
704
704
  }
705
705
  function useDemoPayoutStatusAlert(props) {
706
- console.log(props.stateController, "stateController in sqm-payout-status-alert");
707
706
  const states = parseStates(props.stateController);
708
707
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
709
708
  ? { ...prev, ...states[key] }
@@ -1100,6 +1100,7 @@ export class TaxAndCashMonolith {
1100
1100
  render() {
1101
1101
  var _a, _b;
1102
1102
  const props = isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
1103
+ console.log({ props });
1103
1104
  // @ts-ignore
1104
1105
  if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
1105
1106
  const textProps = getProps(this);
@@ -1125,7 +1126,7 @@ export class TaxAndCashMonolith {
1125
1126
  case "/4":
1126
1127
  return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
1127
1128
  case "/dashboard":
1128
- return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
1129
+ return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), { stateController: props["sqm-tax-and-cash-dashboard_stateController"] || "{}" })));
1129
1130
  case "/error":
1130
1131
  return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: intl.formatMessage({
1131
1132
  id: "loadingErrorAlertDescription",
@@ -396,6 +396,7 @@ export const TaxAndCashDashboardView = (props) => {
396
396
  }
397
397
  };
398
398
  const alertInfo = getAlert(states.payoutStatus);
399
+ console.log({ states, props });
399
400
  return (h("div", null,
400
401
  h("div", null,
401
402
  h("style", { type: "text/css" }, styleString),
@@ -341,9 +341,9 @@ export class TaxAndCashDashboard {
341
341
  this.cancelButton = "Cancel";
342
342
  /**
343
343
  * @undocumented
344
- * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] "uiGroup": "Dashboard Properties" }
344
+ * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "uiGroup": "Dashboard Properties" }
345
345
  */
346
- this.stateController = "{ states: { payoutStatus: 'HOLD' } }";
346
+ this.stateController = "{}";
347
347
  withHooks(this);
348
348
  }
349
349
  disconnectedCallback() { }
@@ -363,6 +363,7 @@ export class TaxAndCashDashboard {
363
363
  const props = isDemo()
364
364
  ? useDemoTaxAndCashDashboard(this)
365
365
  : useTaxAndCashDashboard(this);
366
+ console.log({ stateController: this.stateController });
366
367
  return (h(Host, null,
367
368
  h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
368
369
  payoutDetailsCardSlot: (h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
@@ -1889,24 +1890,23 @@ export class TaxAndCashDashboard {
1889
1890
  "text": undefined,
1890
1891
  "name": "undocumented"
1891
1892
  }, {
1892
- "text": "{ \"title\": \"Payouts on hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] \"uiGroup\": \"Dashboard Properties\" }",
1893
+ "text": "{ \"title\": \"Payouts on hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } }, \"uiGroup\": \"Dashboard Properties\" }",
1893
1894
  "name": "componentState"
1894
1895
  }],
1895
1896
  "text": ""
1896
1897
  },
1897
1898
  "attribute": "state-controller",
1898
1899
  "reflect": false,
1899
- "defaultValue": "\"{ states: { payoutStatus: 'HOLD' } }\""
1900
+ "defaultValue": "\"{}\""
1900
1901
  }
1901
1902
  }; }
1902
1903
  }
1903
1904
  function useDemoTaxAndCashDashboard(props) {
1904
- var _a, _b, _c, _d;
1905
1905
  const states = parseStates(props.stateController);
1906
1906
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
1907
1907
  ? { ...prev, ...states[key] }
1908
1908
  : { ...prev, [`${key}_stateController`]: states[key] }, {});
1909
- const parsedPayoutStatus = (_b = (_a = formatted === null || formatted === void 0 ? void 0 : formatted.states) === null || _a === void 0 ? void 0 : _a.payoutStatus) !== null && _b !== void 0 ? _b : (_d = (_c = props.demoData) === null || _c === void 0 ? void 0 : _c.states) === null || _d === void 0 ? void 0 : _d.payoutStatus;
1909
+ console.log({ formatted });
1910
1910
  // @ts-ignore
1911
1911
  return deepmerge({
1912
1912
  states: {
@@ -4099,6 +4099,7 @@ const TaxAndCashDashboardView = (props) => {
4099
4099
  }
4100
4100
  };
4101
4101
  const alertInfo = getAlert(states.payoutStatus);
4102
+ console.log({ states, props });
4102
4103
  return (h("div", null,
4103
4104
  h("div", null,
4104
4105
  h("style", { type: "text/css" }, styleString$4),
@@ -4662,9 +4663,9 @@ const TaxAndCashDashboard = class {
4662
4663
  this.cancelButton = "Cancel";
4663
4664
  /**
4664
4665
  * @undocumented
4665
- * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] "uiGroup": "Dashboard Properties" }
4666
+ * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "uiGroup": "Dashboard Properties" }
4666
4667
  */
4667
- this.stateController = "{ states: { payoutStatus: 'HOLD' } }";
4668
+ this.stateController = "{}";
4668
4669
  h$1(this);
4669
4670
  }
4670
4671
  disconnectedCallback() { }
@@ -4684,6 +4685,7 @@ const TaxAndCashDashboard = class {
4684
4685
  const props = isDemo()
4685
4686
  ? useDemoTaxAndCashDashboard(this)
4686
4687
  : useTaxAndCashDashboard(this);
4688
+ console.log({ stateController: this.stateController });
4687
4689
  return (h(Host, null, h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
4688
4690
  payoutDetailsCardSlot: (h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
4689
4691
  } })));
@@ -4694,6 +4696,7 @@ function useDemoTaxAndCashDashboard(props) {
4694
4696
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
4695
4697
  ? { ...prev, ...states[key] }
4696
4698
  : { ...prev, [`${key}_stateController`]: states[key] }, {});
4699
+ console.log({ formatted });
4697
4700
  // @ts-ignore
4698
4701
  return cjs({
4699
4702
  states: {
@@ -3202,7 +3202,6 @@ const PayoutStatusAlert = class {
3202
3202
  }
3203
3203
  };
3204
3204
  function useDemoPayoutStatusAlert(props) {
3205
- console.log(props.stateController, "stateController in sqm-payout-status-alert");
3206
3205
  const states = parseStates(props.stateController);
3207
3206
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3208
3207
  ? { ...prev, ...states[key] }
@@ -1260,6 +1260,7 @@ const TaxAndCashMonolith = class {
1260
1260
  render() {
1261
1261
  var _a, _b;
1262
1262
  const props = isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
1263
+ console.log({ props });
1263
1264
  // @ts-ignore
1264
1265
  if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
1265
1266
  const textProps = getProps(this);
@@ -1279,7 +1280,7 @@ const TaxAndCashMonolith = class {
1279
1280
  case "/4":
1280
1281
  return (h$1("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
1281
1282
  case "/dashboard":
1282
- return (h$1("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
1283
+ return (h$1("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), { stateController: props["sqm-tax-and-cash-dashboard_stateController"] || "{}" })));
1283
1284
  case "/error":
1284
1285
  return (h$1(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: intl.formatMessage({
1285
1286
  id: "loadingErrorAlertDescription",