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

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