@plasmicpkgs/plasmic-rich-components 1.0.246 → 1.0.248

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 (40) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/index.js +7 -5
  3. package/dist/index.js.map +1 -1
  4. package/dist/plasmic-rich-components.esm.js +7 -5
  5. package/dist/plasmic-rich-components.esm.js.map +1 -1
  6. package/package.json +3 -3
  7. package/skinny/{common-prop-types-758ece78.esm.js → common-prop-types-336da74d.esm.js} +3 -3
  8. package/skinny/{common-prop-types-758ece78.esm.js.map → common-prop-types-336da74d.esm.js.map} +1 -1
  9. package/skinny/{common-prop-types-691f4a06.cjs.js → common-prop-types-65645309.cjs.js} +3 -3
  10. package/skinny/{common-prop-types-691f4a06.cjs.js.map → common-prop-types-65645309.cjs.js.map} +1 -1
  11. package/skinny/{field-react-utils-2bbbadc7.cjs.js → field-react-utils-7955a3c8.cjs.js} +3 -3
  12. package/skinny/{field-react-utils-2bbbadc7.cjs.js.map → field-react-utils-7955a3c8.cjs.js.map} +1 -1
  13. package/skinny/{field-react-utils-46bb1f20.esm.js → field-react-utils-b98cfd0e.esm.js} +3 -3
  14. package/skinny/{field-react-utils-46bb1f20.esm.js.map → field-react-utils-b98cfd0e.esm.js.map} +1 -1
  15. package/skinny/{formatting-b434487b.esm.js → formatting-8501a0f4.esm.js} +4 -5
  16. package/skinny/{formatting-b434487b.esm.js.map → formatting-8501a0f4.esm.js.map} +1 -1
  17. package/skinny/{formatting-c37b4133.cjs.js → formatting-bef072c7.cjs.js} +4 -5
  18. package/skinny/{formatting-c37b4133.cjs.js.map → formatting-bef072c7.cjs.js.map} +1 -1
  19. package/skinny/rich-calendar/index.cjs.js +3 -3
  20. package/skinny/rich-calendar/index.cjs.js.map +1 -1
  21. package/skinny/rich-calendar/index.esm.js +3 -3
  22. package/skinny/rich-calendar/index.esm.js.map +1 -1
  23. package/skinny/rich-details/index.cjs.js +2 -2
  24. package/skinny/rich-details/index.esm.js +2 -2
  25. package/skinny/rich-layout/index.cjs.js +1 -1
  26. package/skinny/rich-layout/index.cjs.js.map +1 -1
  27. package/skinny/rich-layout/index.esm.js +1 -1
  28. package/skinny/rich-layout/index.esm.js.map +1 -1
  29. package/skinny/rich-list/index.cjs.js +4 -4
  30. package/skinny/rich-list/index.cjs.js.map +1 -1
  31. package/skinny/rich-list/index.esm.js +4 -4
  32. package/skinny/rich-list/index.esm.js.map +1 -1
  33. package/skinny/rich-table/index.cjs.js +4 -4
  34. package/skinny/rich-table/index.cjs.js.map +1 -1
  35. package/skinny/rich-table/index.esm.js +4 -4
  36. package/skinny/rich-table/index.esm.js.map +1 -1
  37. package/skinny/{utils-da451c58.cjs.js → utils-48c0c8b4.cjs.js} +5 -2
  38. package/skinny/{utils-da451c58.cjs.js.map → utils-48c0c8b4.cjs.js.map} +1 -1
  39. package/skinny/{utils-546b05e4.esm.js → utils-725ca0d1.esm.js} +5 -2
  40. package/skinny/{utils-546b05e4.esm.js.map → utils-725ca0d1.esm.js.map} +1 -1
@@ -18,6 +18,9 @@ import groupBy from 'lodash/groupBy';
18
18
  import localeData from 'dayjs/plugin/localeData';
19
19
  import weekday from 'dayjs/plugin/weekday';
20
20
 
21
+ var __defProp$d = Object.defineProperty;
22
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23
+ var __publicField = (obj, key, value) => __defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
21
24
  function registerComponentHelper(loader, component, meta) {
22
25
  if (loader) {
23
26
  loader.registerComponent(component, meta);
@@ -106,7 +109,7 @@ function withoutFalsey(xs) {
106
109
  class ErrorBoundary extends React.Component {
107
110
  constructor() {
108
111
  super(...arguments);
109
- this.state = { hasError: false, errorInfo: "" };
112
+ __publicField(this, "state", { hasError: false, errorInfo: "" });
110
113
  }
111
114
  static getDerivedStateFromError(error) {
112
115
  return { hasError: true, errorInfo: error.message };
@@ -579,8 +582,7 @@ function getFieldValue(record, cconfig) {
579
582
  return value;
580
583
  }
581
584
  function getFieldAggregateValue(record, cconfigs, separator = ", ") {
582
- if (!(cconfigs == null ? void 0 : cconfigs.length))
583
- return void 0;
585
+ if (!(cconfigs == null ? void 0 : cconfigs.length)) return void 0;
584
586
  return (cconfigs == null ? void 0 : cconfigs.length) ? cconfigs.map((item) => getFieldValue(record, item)).join(separator) : void 0;
585
587
  }
586
588
  function renderValue(record, cconfig) {
@@ -702,7 +704,7 @@ function renderBoolean(value, cconfig) {
702
704
  return value ? "true" : "false";
703
705
  }
704
706
  }
705
- const CANNOT_COERCE = Symbol("plasmic-cannot-coerce");
707
+ const CANNOT_COERCE = /* @__PURE__ */ Symbol("plasmic-cannot-coerce");
706
708
  function coerceValue(value, dataType) {
707
709
  if (value == null) {
708
710
  return null;
@@ -1552,7 +1554,7 @@ function useSortedFilteredData(data, columns) {
1552
1554
  return cc.key === ((_a3 = sortState == null ? void 0 : sortState.sorter.column) == null ? void 0 : _a3.key);
1553
1555
  }
1554
1556
  );
1555
- const expr = (_a2 = cconfig.expr) != null ? _a2 : (x) => x;
1557
+ const expr = (_a2 = cconfig.expr) != null ? _a2 : ((x) => x);
1556
1558
  return (filtered != null ? filtered : []).sort((aa, bb) => {
1557
1559
  var _a3, _b;
1558
1560
  const a = (_a3 = expr(aa, cconfig.fieldId ? aa == null ? void 0 : aa[cconfig.fieldId] : null)) != null ? _a3 : null, b = (_b = expr(bb, cconfig.fieldId ? bb == null ? void 0 : bb[cconfig.fieldId] : null)) != null ? _b : null;