@plasmicpkgs/plasmic-rich-components 1.0.150 → 1.0.152

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,7 +1,7 @@
1
1
  import { NormalizedData, QueryResult } from "@plasmicapp/data-sources";
2
- import { BaseColumnConfig } from "./field-mappings";
3
- import React, { Key } from "react";
4
2
  import type { GetRowKey, SorterResult } from "antd/es/table/interface";
3
+ import React, { Key } from "react";
4
+ import { BaseColumnConfig } from "./field-mappings";
5
5
  export declare function useSortedFilteredData(data: NormalizedData | undefined, columns: BaseColumnConfig[]): {
6
6
  finalData: Record<string, unknown>[] | undefined;
7
7
  search: string;
package/dist/index.js CHANGED
@@ -1400,14 +1400,9 @@ function useSortedFilteredData(data, columns) {
1400
1400
  };
1401
1401
  }
1402
1402
  function deriveRowKey(data, rowKey) {
1403
- var _a;
1404
1403
  if (rowKey) {
1405
1404
  return rowKey;
1406
1405
  }
1407
- const schema = data == null ? void 0 : data.schema;
1408
- if (schema) {
1409
- return (_a = schema.fields[0]) == null ? void 0 : _a.id;
1410
- }
1411
1406
  return void 0;
1412
1407
  }
1413
1408
  function deriveKeyOfRow(row, rowKey) {
@@ -2739,8 +2734,13 @@ var __objRest = (source, exclude) => {
2739
2734
  dayjs__default.default.extend(weekday__default.default);
2740
2735
  dayjs__default.default.extend(localeData__default.default);
2741
2736
  function getEventFullDate(date) {
2742
- var _a;
2743
- return ((_a = luxonParser.parseDate(date)) == null ? void 0 : _a.toISOString()) || void 0;
2737
+ const parsed = luxonParser.parseDate(date);
2738
+ if (!parsed)
2739
+ return void 0;
2740
+ const yyyy = parsed.getFullYear();
2741
+ const mm = (parsed.getMonth() + 1).toString().padStart(2, "0");
2742
+ const dd = parsed.getDate().toString().padStart(2, "0");
2743
+ return `${yyyy}-${mm}-${dd}`;
2744
2744
  }
2745
2745
  function getEventMonthYear(date) {
2746
2746
  var _a;