@extable/react 0.1.0 → 0.3.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.
package/README.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @extable/react
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/@extable/react?color=2b6cb0&label=npm)](https://www.npmjs.com/package/@extable/react)
4
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.6-3178c6?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
5
+ [![License](https://img.shields.io/npm/l/@extable/react)](../LICENSE)
6
+ [![CI](https://github.com/shibukawa/extable/actions/workflows/test.yml/badge.svg)](https://github.com/shibukawa/extable/actions/workflows/test.yml)
7
+ [![Bundle Size](https://img.shields.io/bundlephobia/minzip/@extable/react?label=bundle%20size)](https://bundlephobia.com/package/@extable/react)
8
+
3
9
  React wrapper for Extable - an Excel-like HTML table component with a fixed column schema and built-in multi-user editing support.
4
10
 
5
11
  ## Installation
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { CSSProperties, HTMLAttributes } from "react";
2
2
  import type { CoreOptions, EditMode, LockMode, NullableData, Schema, SelectionChangeReason, SelectionSnapshot, TableState, View } from "@extable/core";
3
3
  import { ExtableCore } from "@extable/core";
4
- type CoreApi<T extends object, R extends object = T> = Pick<ExtableCore<T, R>, "setData" | "setView" | "showSearchPanel" | "hideSearchPanel" | "toggleSearchPanel" | "openFindReplaceDialog" | "closeFindReplaceDialog" | "getData" | "getRawData" | "getSchema" | "getView" | "getCell" | "getDisplayValue" | "getCellPending" | "getRow" | "getTableData" | "getColumnData" | "getPending" | "getPendingRowIds" | "hasPendingChanges" | "getPendingCellCount" | "getRowIndex" | "getColumnIndex" | "getAllRows" | "listRows" | "setCellValue" | "setValueToSelection" | "insertRow" | "deleteRow" | "undo" | "redo" | "getUndoRedoHistory" | "commit" | "subscribeTableState" | "subscribeSelection" | "getSelectionSnapshot">;
4
+ type CoreApi<T extends object, R extends object = T> = Pick<ExtableCore<T, R>, "setData" | "setView" | "getData" | "getRawData" | "getSchema" | "getView" | "getCell" | "getDisplayValue" | "getCellPending" | "getRow" | "getTableData" | "getColumnData" | "getPending" | "getPendingRowIds" | "hasPendingChanges" | "getPendingCellCount" | "getRowIndex" | "getColumnIndex" | "getAllRows" | "listRows" | "setCellValue" | "setValueToSelection" | "insertRow" | "deleteRow" | "undo" | "redo" | "getUndoRedoHistory" | "commit" | "subscribeTableState" | "subscribeSelection" | "getSelectionSnapshot">;
5
5
  export type ExtableHandle<T extends object = Record<string, unknown>, R extends object = T> = CoreApi<T, R> & {
6
6
  destroy(): void;
7
7
  };
package/dist/index.js CHANGED
@@ -1,29 +1,29 @@
1
1
  import re, { forwardRef as te, useRef as R, useEffect as D, useImperativeHandle as ne } from "react";
2
2
  import { ExtableCore as ae } from "@extable/core";
3
- var N = { exports: {} }, x = {};
3
+ var N = { exports: {} }, k = {};
4
4
  var H;
5
5
  function oe() {
6
- if (H) return x;
6
+ if (H) return k;
7
7
  H = 1;
8
- var d = /* @__PURE__ */ Symbol.for("react.transitional.element"), v = /* @__PURE__ */ Symbol.for("react.fragment");
9
- function g(m, u, c) {
10
- var b = null;
11
- if (c !== void 0 && (b = "" + c), u.key !== void 0 && (b = "" + u.key), "key" in u) {
12
- c = {};
8
+ var d = /* @__PURE__ */ Symbol.for("react.transitional.element"), p = /* @__PURE__ */ Symbol.for("react.fragment");
9
+ function b(m, u, s) {
10
+ var g = null;
11
+ if (s !== void 0 && (g = "" + s), u.key !== void 0 && (g = "" + u.key), "key" in u) {
12
+ s = {};
13
13
  for (var f in u)
14
- f !== "key" && (c[f] = u[f]);
15
- } else c = u;
16
- return u = c.ref, {
14
+ f !== "key" && (s[f] = u[f]);
15
+ } else s = u;
16
+ return u = s.ref, {
17
17
  $$typeof: d,
18
18
  type: m,
19
- key: b,
19
+ key: g,
20
20
  ref: u !== void 0 ? u : null,
21
- props: c
21
+ props: s
22
22
  };
23
23
  }
24
- return x.Fragment = v, x.jsx = g, x.jsxs = g, x;
24
+ return k.Fragment = p, k.jsx = b, k.jsxs = b, k;
25
25
  }
26
- var k = {};
26
+ var C = {};
27
27
  var X;
28
28
  function le() {
29
29
  return X || (X = 1, process.env.NODE_ENV !== "production" && (function() {
@@ -33,15 +33,15 @@ function le() {
33
33
  return e.$$typeof === Q ? null : e.displayName || e.name || null;
34
34
  if (typeof e == "string") return e;
35
35
  switch (e) {
36
- case P:
36
+ case y:
37
37
  return "Fragment";
38
38
  case V:
39
39
  return "Profiler";
40
40
  case I:
41
41
  return "StrictMode";
42
- case s:
42
+ case c:
43
43
  return "Suspense";
44
- case E:
44
+ case v:
45
45
  return "SuspenseList";
46
46
  case Z:
47
47
  return "Activity";
@@ -56,70 +56,70 @@ function le() {
56
56
  return e.displayName || "Context";
57
57
  case Y:
58
58
  return (e._context.displayName || "Context") + ".Consumer";
59
- case t:
60
- var n = e.render;
61
- return e = e.displayName, e || (e = n.displayName || n.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
62
- case h:
63
- return n = e.displayName || null, n !== null ? n : d(e.type) || "Memo";
64
- case y:
65
- n = e._payload, e = e._init;
59
+ case n:
60
+ var t = e.render;
61
+ return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
62
+ case P:
63
+ return t = e.displayName || null, t !== null ? t : d(e.type) || "Memo";
64
+ case x:
65
+ t = e._payload, e = e._init;
66
66
  try {
67
- return d(e(n));
67
+ return d(e(t));
68
68
  } catch {
69
69
  }
70
70
  }
71
71
  return null;
72
72
  }
73
- function v(e) {
73
+ function p(e) {
74
74
  return "" + e;
75
75
  }
76
- function g(e) {
76
+ function b(e) {
77
77
  try {
78
- v(e);
79
- var n = !1;
78
+ p(e);
79
+ var t = !1;
80
80
  } catch {
81
- n = !0;
81
+ t = !0;
82
82
  }
83
- if (n) {
84
- n = console;
85
- var a = n.error, o = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
83
+ if (t) {
84
+ t = console;
85
+ var a = t.error, o = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
86
86
  return a.call(
87
- n,
87
+ t,
88
88
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
89
89
  o
90
- ), v(e);
90
+ ), p(e);
91
91
  }
92
92
  }
93
93
  function m(e) {
94
- if (e === P) return "<>";
95
- if (typeof e == "object" && e !== null && e.$$typeof === y)
94
+ if (e === y) return "<>";
95
+ if (typeof e == "object" && e !== null && e.$$typeof === x)
96
96
  return "<...>";
97
97
  try {
98
- var n = d(e);
99
- return n ? "<" + n + ">" : "<...>";
98
+ var t = d(e);
99
+ return t ? "<" + t + ">" : "<...>";
100
100
  } catch {
101
101
  return "<...>";
102
102
  }
103
103
  }
104
104
  function u() {
105
- var e = F.A;
105
+ var e = $.A;
106
106
  return e === null ? null : e.getOwner();
107
107
  }
108
- function c() {
108
+ function s() {
109
109
  return Error("react-stack-top-frame");
110
110
  }
111
- function b(e) {
111
+ function g(e) {
112
112
  if (U.call(e, "key")) {
113
- var n = Object.getOwnPropertyDescriptor(e, "key").get;
114
- if (n && n.isReactWarning) return !1;
113
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
114
+ if (t && t.isReactWarning) return !1;
115
115
  }
116
116
  return e.key !== void 0;
117
117
  }
118
- function f(e, n) {
118
+ function f(e, t) {
119
119
  function a() {
120
120
  W || (W = !0, console.error(
121
121
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
122
- n
122
+ t
123
123
  ));
124
124
  }
125
125
  a.isReactWarning = !0, Object.defineProperty(e, "key", {
@@ -133,12 +133,12 @@ function le() {
133
133
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
134
134
  )), e = this.props.ref, e !== void 0 ? e : null;
135
135
  }
136
- function C(e, n, a, o, j, L) {
136
+ function h(e, t, a, o, j, L) {
137
137
  var l = a.ref;
138
138
  return e = {
139
139
  $$typeof: S,
140
140
  type: e,
141
- key: n,
141
+ key: t,
142
142
  props: a,
143
143
  _owner: o
144
144
  }, (l !== void 0 ? l : null) !== null ? Object.defineProperty(e, "ref", {
@@ -166,8 +166,8 @@ function le() {
166
166
  value: L
167
167
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
168
168
  }
169
- function _(e, n, a, o, j, L) {
170
- var l = n.children;
169
+ function _(e, t, a, o, j, L) {
170
+ var l = t.children;
171
171
  if (l !== void 0)
172
172
  if (o)
173
173
  if (K(l)) {
@@ -179,9 +179,9 @@ function le() {
179
179
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
180
180
  );
181
181
  else r(l);
182
- if (U.call(n, "key")) {
182
+ if (U.call(t, "key")) {
183
183
  l = d(e);
184
- var T = Object.keys(n).filter(function(ee) {
184
+ var T = Object.keys(t).filter(function(ee) {
185
185
  return ee !== "key";
186
186
  });
187
187
  o = 0 < T.length ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}", G[l + o] || (T = 0 < T.length ? "{" + T.join(": ..., ") + ": ...}" : "{}", console.error(
@@ -197,15 +197,15 @@ React keys must be passed directly to JSX without using spread:
197
197
  l
198
198
  ), G[l + o] = !0);
199
199
  }
200
- if (l = null, a !== void 0 && (g(a), l = "" + a), b(n) && (g(n.key), l = "" + n.key), "key" in n) {
200
+ if (l = null, a !== void 0 && (b(a), l = "" + a), g(t) && (b(t.key), l = "" + t.key), "key" in t) {
201
201
  a = {};
202
- for (var M in n)
203
- M !== "key" && (a[M] = n[M]);
204
- } else a = n;
202
+ for (var M in t)
203
+ M !== "key" && (a[M] = t[M]);
204
+ } else a = t;
205
205
  return l && f(
206
206
  a,
207
207
  typeof e == "function" ? e.displayName || e.name || "Unknown" : e
208
- ), C(
208
+ ), h(
209
209
  e,
210
210
  l,
211
211
  a,
@@ -215,53 +215,53 @@ React keys must be passed directly to JSX without using spread:
215
215
  );
216
216
  }
217
217
  function r(e) {
218
- A(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === y && (e._payload.status === "fulfilled" ? A(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
218
+ A(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === x && (e._payload.status === "fulfilled" ? A(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
219
219
  }
220
220
  function A(e) {
221
221
  return typeof e == "object" && e !== null && e.$$typeof === S;
222
222
  }
223
- var p = re, S = /* @__PURE__ */ Symbol.for("react.transitional.element"), O = /* @__PURE__ */ Symbol.for("react.portal"), P = /* @__PURE__ */ Symbol.for("react.fragment"), I = /* @__PURE__ */ Symbol.for("react.strict_mode"), V = /* @__PURE__ */ Symbol.for("react.profiler"), Y = /* @__PURE__ */ Symbol.for("react.consumer"), i = /* @__PURE__ */ Symbol.for("react.context"), t = /* @__PURE__ */ Symbol.for("react.forward_ref"), s = /* @__PURE__ */ Symbol.for("react.suspense"), E = /* @__PURE__ */ Symbol.for("react.suspense_list"), h = /* @__PURE__ */ Symbol.for("react.memo"), y = /* @__PURE__ */ Symbol.for("react.lazy"), Z = /* @__PURE__ */ Symbol.for("react.activity"), Q = /* @__PURE__ */ Symbol.for("react.client.reference"), F = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = Object.prototype.hasOwnProperty, K = Array.isArray, $ = console.createTask ? console.createTask : function() {
223
+ var E = re, S = /* @__PURE__ */ Symbol.for("react.transitional.element"), O = /* @__PURE__ */ Symbol.for("react.portal"), y = /* @__PURE__ */ Symbol.for("react.fragment"), I = /* @__PURE__ */ Symbol.for("react.strict_mode"), V = /* @__PURE__ */ Symbol.for("react.profiler"), Y = /* @__PURE__ */ Symbol.for("react.consumer"), i = /* @__PURE__ */ Symbol.for("react.context"), n = /* @__PURE__ */ Symbol.for("react.forward_ref"), c = /* @__PURE__ */ Symbol.for("react.suspense"), v = /* @__PURE__ */ Symbol.for("react.suspense_list"), P = /* @__PURE__ */ Symbol.for("react.memo"), x = /* @__PURE__ */ Symbol.for("react.lazy"), Z = /* @__PURE__ */ Symbol.for("react.activity"), Q = /* @__PURE__ */ Symbol.for("react.client.reference"), $ = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = Object.prototype.hasOwnProperty, K = Array.isArray, F = console.createTask ? console.createTask : function() {
224
224
  return null;
225
225
  };
226
- p = {
226
+ E = {
227
227
  react_stack_bottom_frame: function(e) {
228
228
  return e();
229
229
  }
230
230
  };
231
- var W, q = {}, J = p.react_stack_bottom_frame.bind(
232
- p,
233
- c
234
- )(), z = $(m(c)), G = {};
235
- k.Fragment = P, k.jsx = function(e, n, a) {
236
- var o = 1e4 > F.recentlyCreatedOwnerStacks++;
231
+ var W, q = {}, J = E.react_stack_bottom_frame.bind(
232
+ E,
233
+ s
234
+ )(), z = F(m(s)), G = {};
235
+ C.Fragment = y, C.jsx = function(e, t, a) {
236
+ var o = 1e4 > $.recentlyCreatedOwnerStacks++;
237
237
  return _(
238
238
  e,
239
- n,
239
+ t,
240
240
  a,
241
241
  !1,
242
242
  o ? Error("react-stack-top-frame") : J,
243
- o ? $(m(e)) : z
243
+ o ? F(m(e)) : z
244
244
  );
245
- }, k.jsxs = function(e, n, a) {
246
- var o = 1e4 > F.recentlyCreatedOwnerStacks++;
245
+ }, C.jsxs = function(e, t, a) {
246
+ var o = 1e4 > $.recentlyCreatedOwnerStacks++;
247
247
  return _(
248
248
  e,
249
- n,
249
+ t,
250
250
  a,
251
251
  !0,
252
252
  o ? Error("react-stack-top-frame") : J,
253
- o ? $(m(e)) : z
253
+ o ? F(m(e)) : z
254
254
  );
255
255
  };
256
- })()), k;
256
+ })()), C;
257
257
  }
258
258
  var B;
259
259
  function ue() {
260
260
  return B || (B = 1, process.env.NODE_ENV === "production" ? N.exports = oe() : N.exports = le()), N.exports;
261
261
  }
262
- var ce = ue();
263
- const fe = te(function(v, g) {
264
- const { schema: m, defaultData: u, defaultView: c, options: b, onTableState: f, onCellEvent: w, ...C } = v, _ = R(null), r = R(null), A = R(u === null), p = R(!1), S = R(f), O = R(w), P = R(m), I = R(c), V = {
262
+ var se = ue();
263
+ const fe = te(function(p, b) {
264
+ const { schema: m, defaultData: u, defaultView: s, options: g, onTableState: f, onCellEvent: w, ...h } = p, _ = R(null), r = R(null), A = R(u === null), E = R(!1), S = R(f), O = R(w), y = R(m), I = R(s), V = {
265
265
  ranges: [],
266
266
  activeRowIndex: null,
267
267
  activeRowKey: null,
@@ -271,6 +271,7 @@ const fe = te(function(v, g) {
271
271
  activeValueDisplay: "",
272
272
  activeValueType: null,
273
273
  diagnostic: null,
274
+ action: null,
274
275
  styles: { columnStyle: {}, cellStyle: {}, resolved: {} }
275
276
  };
276
277
  D(() => {
@@ -283,68 +284,63 @@ const fe = te(function(v, g) {
283
284
  root: _.current,
284
285
  schema: m,
285
286
  defaultData: u,
286
- defaultView: c,
287
- options: b
287
+ defaultView: s,
288
+ options: g
288
289
  });
289
290
  r.current = i;
290
- const t = i.subscribeTableState(
291
- (E, h) => S.current?.(E, h)
292
- ), s = i.subscribeSelection(
293
- (E, h, y) => O.current?.(E, h, y)
291
+ const n = i.subscribeTableState(
292
+ (v, P) => S.current?.(v, P)
293
+ ), c = i.subscribeSelection(
294
+ (v, P, x) => O.current?.(v, P, x)
294
295
  );
295
296
  return () => {
296
- s(), t(), i.destroy(), r.current = null;
297
+ c(), n(), i.destroy(), r.current = null;
297
298
  };
298
299
  }, []), D(() => {
299
300
  const i = r.current;
300
- i && A.current && (p.current || u !== null && (i.setData(u), p.current = !0));
301
+ i && A.current && (E.current || u !== null && (i.setData(u), E.current = !0));
301
302
  }, [u]), ne(
302
- g,
303
+ b,
303
304
  () => ({
304
305
  destroy: () => {
305
306
  r.current?.destroy(), r.current = null;
306
307
  },
307
- setData: (t) => r.current?.setData(t),
308
- setView: (t) => r.current?.setView(t),
309
- showSearchPanel: (t) => r.current?.showSearchPanel(t),
310
- hideSearchPanel: () => r.current?.hideSearchPanel(),
311
- toggleSearchPanel: (t) => r.current?.toggleSearchPanel(t),
312
- openFindReplaceDialog: (t) => r.current?.openFindReplaceDialog(t),
313
- closeFindReplaceDialog: () => r.current?.closeFindReplaceDialog(),
308
+ setData: (n) => r.current?.setData(n),
309
+ setView: (n) => r.current?.setView(n),
314
310
  getData: () => r.current?.getData() ?? [],
315
311
  getRawData: () => r.current?.getRawData() ?? [],
316
- getSchema: () => r.current?.getSchema() ?? P.current,
312
+ getSchema: () => r.current?.getSchema() ?? y.current,
317
313
  getView: () => r.current?.getView() ?? I.current,
318
- getCell: (t, s) => r.current?.getCell(t, s),
319
- getDisplayValue: (t, s) => r.current?.getDisplayValue(t, s) ?? "",
320
- getCellPending: (t, s) => r.current?.getCellPending(t, s) ?? !1,
321
- getRow: (t) => r.current?.getRow(t) ?? null,
314
+ getCell: (n, c) => r.current?.getCell(n, c),
315
+ getDisplayValue: (n, c) => r.current?.getDisplayValue(n, c) ?? "",
316
+ getCellPending: (n, c) => r.current?.getCellPending(n, c) ?? !1,
317
+ getRow: (n) => r.current?.getRow(n) ?? null,
322
318
  getTableData: () => r.current?.getTableData() ?? [],
323
- getColumnData: (t) => r.current?.getColumnData(t) ?? [],
319
+ getColumnData: (n) => r.current?.getColumnData(n) ?? [],
324
320
  getPending: () => r.current?.getPending() ?? /* @__PURE__ */ new Map(),
325
321
  getPendingRowIds: () => r.current?.getPendingRowIds() ?? [],
326
322
  hasPendingChanges: () => r.current?.hasPendingChanges() ?? !1,
327
323
  getPendingCellCount: () => r.current?.getPendingCellCount() ?? 0,
328
- getRowIndex: (t) => r.current?.getRowIndex(t) ?? -1,
329
- getColumnIndex: (t) => r.current?.getColumnIndex(t) ?? -1,
324
+ getRowIndex: (n) => r.current?.getRowIndex(n) ?? -1,
325
+ getColumnIndex: (n) => r.current?.getColumnIndex(n) ?? -1,
330
326
  getAllRows: () => r.current?.getAllRows() ?? [],
331
327
  listRows: () => r.current?.listRows() ?? [],
332
- setCellValue: (t, s, E) => r.current?.setCellValue(t, s, E),
333
- setValueToSelection: (t) => r.current?.setValueToSelection(t),
334
- insertRow: (t, s) => r.current?.insertRow(t, s) ?? null,
335
- deleteRow: (t) => r.current?.deleteRow(t) ?? !1,
328
+ setCellValue: (n, c, v) => r.current?.setCellValue(n, c, v),
329
+ setValueToSelection: (n) => r.current?.setValueToSelection(n),
330
+ insertRow: (n, c) => r.current?.insertRow(n, c) ?? null,
331
+ deleteRow: (n) => r.current?.deleteRow(n) ?? !1,
336
332
  undo: () => r.current?.undo(),
337
333
  redo: () => r.current?.redo(),
338
334
  getUndoRedoHistory: () => r.current?.getUndoRedoHistory() ?? { undo: [], redo: [] },
339
- commit: () => r.current?.commit() ?? Promise.resolve([]),
340
- subscribeTableState: (t) => r.current?.subscribeTableState(t) ?? (() => !1),
341
- subscribeSelection: (t) => r.current?.subscribeSelection(t) ?? (() => !1),
335
+ commit: (n) => n ? r.current?.commit(n) ?? Promise.resolve([]) : r.current?.commit() ?? Promise.resolve([]),
336
+ subscribeTableState: (n) => r.current?.subscribeTableState(n) ?? (() => !1),
337
+ subscribeSelection: (n) => r.current?.subscribeSelection(n) ?? (() => !1),
342
338
  getSelectionSnapshot: () => r.current?.getSelectionSnapshot() ?? V
343
339
  }),
344
340
  []
345
341
  );
346
- const Y = ["extable-root", C.className].filter(Boolean).join(" ");
347
- return /* @__PURE__ */ ce.jsx("div", { "data-extable-wrapper": !0, ref: _, ...C, className: Y });
342
+ const Y = ["extable-root", h.className].filter(Boolean).join(" ");
343
+ return /* @__PURE__ */ se.jsx("div", { "data-extable-wrapper": !0, ref: _, ...h, className: Y });
348
344
  });
349
345
  export {
350
346
  fe as Extable
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/jsx-runtime.js","../src/index.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import type { CSSProperties, HTMLAttributes } from \"react\";\nimport { forwardRef, useEffect, useImperativeHandle, useRef, type ForwardedRef } from \"react\";\nimport type {\n CoreOptions,\n EditMode,\n LockMode,\n NullableData,\n Schema,\n SelectionChangeReason,\n SelectionSnapshot,\n TableState,\n View,\n FindReplaceMode,\n} from \"@extable/core\";\nimport { ExtableCore } from \"@extable/core\";\n\ntype CoreApi<T extends object, R extends object = T> = Pick<\n ExtableCore<T, R>,\n | \"setData\"\n | \"setView\"\n | \"showSearchPanel\"\n | \"hideSearchPanel\"\n | \"toggleSearchPanel\"\n | \"openFindReplaceDialog\"\n | \"closeFindReplaceDialog\"\n | \"getData\"\n | \"getRawData\"\n | \"getSchema\"\n | \"getView\"\n | \"getCell\"\n | \"getDisplayValue\"\n | \"getCellPending\"\n | \"getRow\"\n | \"getTableData\"\n | \"getColumnData\"\n | \"getPending\"\n | \"getPendingRowIds\"\n | \"hasPendingChanges\"\n | \"getPendingCellCount\"\n | \"getRowIndex\"\n | \"getColumnIndex\"\n | \"getAllRows\"\n | \"listRows\"\n | \"setCellValue\"\n | \"setValueToSelection\"\n | \"insertRow\"\n | \"deleteRow\"\n | \"undo\"\n | \"redo\"\n | \"getUndoRedoHistory\"\n | \"commit\"\n | \"subscribeTableState\"\n | \"subscribeSelection\"\n | \"getSelectionSnapshot\"\n>;\n\nexport type ExtableHandle<T extends object = Record<string, unknown>, R extends object = T> =\n CoreApi<T, R> & {\n destroy(): void;\n };\n\nexport type ExtableProps<T extends Record<string, unknown> = Record<string, unknown>> = Omit<\n HTMLAttributes<HTMLDivElement>,\n \"children\"\n> & {\n schema: Schema<any>;\n defaultData: NullableData<T>;\n defaultView: View;\n options?: CoreOptions;\n\n onTableState?: (next: TableState, prev: TableState | null) => void;\n onCellEvent?: (\n next: SelectionSnapshot,\n prev: SelectionSnapshot | null,\n reason: SelectionChangeReason,\n ) => void;\n\n className?: string;\n style?: CSSProperties;\n};\n\n/**\n * Uncontrolled-only wrapper.\n * - `schema/defaultData/defaultView/options` are initial values.\n * - For updates after mount, use imperative methods via ref.\n * - `defaultData` supports `null -> data` transition for loading flows.\n */\nexport const Extable = forwardRef(function ExtableInner<\n T extends Record<string, unknown> = Record<string, unknown>,\n>(props: ExtableProps<T>, ref: ForwardedRef<ExtableHandle<T>>) {\n const { schema, defaultData, defaultView, options, onTableState, onCellEvent, ...divProps } =\n props;\n\n const containerRef = useRef<HTMLDivElement>(null);\n const coreRef = useRef<ExtableCore<T> | null>(null);\n const initialDefaultDataWasNullRef = useRef(defaultData === null);\n const consumedDefaultDataLoadRef = useRef(false);\n const onTableStateRef = useRef<typeof onTableState>(onTableState);\n const onCellEventRef = useRef<typeof onCellEvent>(onCellEvent);\n const initialSchemaRef = useRef(schema);\n const initialViewRef = useRef(defaultView);\n\n const emptySelectionSnapshot: SelectionSnapshot = {\n ranges: [],\n activeRowIndex: null,\n activeRowKey: null,\n activeColumnIndex: null,\n activeColumnKey: null,\n activeValueRaw: undefined,\n activeValueDisplay: \"\",\n activeValueType: null,\n diagnostic: null,\n styles: { columnStyle: {}, cellStyle: {}, resolved: {} },\n };\n\n useEffect(() => {\n onTableStateRef.current = onTableState;\n }, [onTableState]);\n useEffect(() => {\n onCellEventRef.current = onCellEvent;\n }, [onCellEvent]);\n\n useEffect(() => {\n if (!containerRef.current) return;\n const core = new ExtableCore<T>({\n root: containerRef.current,\n schema,\n defaultData,\n defaultView,\n options,\n });\n coreRef.current = core;\n const unsubTable = core.subscribeTableState((next, prev) =>\n onTableStateRef.current?.(next, prev),\n );\n const unsubSel = core.subscribeSelection((next, prev, reason) =>\n onCellEventRef.current?.(next, prev, reason),\n );\n return () => {\n unsubSel();\n unsubTable();\n core.destroy();\n coreRef.current = null;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n const core = coreRef.current;\n if (!core) return;\n if (!initialDefaultDataWasNullRef.current) return;\n if (consumedDefaultDataLoadRef.current) return;\n if (defaultData !== null) {\n core.setData(defaultData);\n consumedDefaultDataLoadRef.current = true;\n }\n }, [defaultData]);\n\n useImperativeHandle(\n ref,\n () => {\n const proxy: ExtableHandle<T> = {\n destroy: () => {\n coreRef.current?.destroy();\n coreRef.current = null;\n },\n setData: (data) => coreRef.current?.setData(data),\n setView: (view) => coreRef.current?.setView(view),\n showSearchPanel: (mode?: FindReplaceMode) => coreRef.current?.showSearchPanel(mode),\n hideSearchPanel: () => coreRef.current?.hideSearchPanel(),\n toggleSearchPanel: (mode?: FindReplaceMode) => coreRef.current?.toggleSearchPanel(mode),\n openFindReplaceDialog: (mode?: FindReplaceMode) =>\n coreRef.current?.openFindReplaceDialog(mode),\n closeFindReplaceDialog: () => coreRef.current?.closeFindReplaceDialog(),\n getData: () => coreRef.current?.getData() ?? [],\n getRawData: () => coreRef.current?.getRawData() ?? [],\n getSchema: () => coreRef.current?.getSchema() ?? initialSchemaRef.current,\n getView: () => coreRef.current?.getView() ?? initialViewRef.current,\n getCell: (rowId: string, colKey: any) => coreRef.current?.getCell(rowId, colKey),\n getDisplayValue: (row: any, colKey: any) =>\n coreRef.current?.getDisplayValue(row, colKey) ?? \"\",\n getCellPending: (row: any, colKey: any) => coreRef.current?.getCellPending(row, colKey) ?? false,\n getRow: (row: any) => coreRef.current?.getRow(row) ?? null,\n getTableData: () => coreRef.current?.getTableData() ?? [],\n getColumnData: (colKey: any) => coreRef.current?.getColumnData(colKey) ?? [],\n getPending: () => coreRef.current?.getPending() ?? new Map(),\n getPendingRowIds: () => coreRef.current?.getPendingRowIds() ?? [],\n hasPendingChanges: () => coreRef.current?.hasPendingChanges() ?? false,\n getPendingCellCount: () => coreRef.current?.getPendingCellCount() ?? 0,\n getRowIndex: (rowId: string) => coreRef.current?.getRowIndex(rowId) ?? -1,\n getColumnIndex: (colKey: string) => coreRef.current?.getColumnIndex(colKey) ?? -1,\n getAllRows: () => coreRef.current?.getAllRows() ?? [],\n listRows: () => coreRef.current?.listRows() ?? [],\n setCellValue: (row: any, colKey: any, next: any) =>\n coreRef.current?.setCellValue(row as never, colKey as never, next as never),\n setValueToSelection: (next: any) => coreRef.current?.setValueToSelection(next),\n insertRow: (rowData: any, pos?: any) => coreRef.current?.insertRow(rowData, pos) ?? null,\n deleteRow: (row: any) => coreRef.current?.deleteRow(row) ?? false,\n undo: () => coreRef.current?.undo(),\n redo: () => coreRef.current?.redo(),\n getUndoRedoHistory: () => coreRef.current?.getUndoRedoHistory() ?? { undo: [], redo: [] },\n commit: () => coreRef.current?.commit() ?? Promise.resolve([]),\n subscribeTableState: (listener: any) =>\n coreRef.current?.subscribeTableState(listener) ?? (() => false),\n subscribeSelection: (listener: any) =>\n coreRef.current?.subscribeSelection(listener) ?? (() => false),\n getSelectionSnapshot: () => coreRef.current?.getSelectionSnapshot() ?? emptySelectionSnapshot,\n };\n return proxy;\n },\n [],\n );\n\n const className = [\"extable-root\", divProps.className].filter(Boolean).join(\" \");\n return <div data-extable-wrapper ref={containerRef} {...divProps} className={className} />;\n});\n\nexport type {\n CoreOptions,\n EditMode,\n LockMode,\n NullableData,\n Schema,\n SelectionChangeReason,\n SelectionSnapshot,\n TableState,\n View,\n};\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","owner","debugStack","debugTask","refProp","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","isValidElement","object","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1","Extable","forwardRef","ref","schema","defaultData","defaultView","options","onTableState","onCellEvent","divProps","containerRef","useRef","coreRef","initialDefaultDataWasNullRef","consumedDefaultDataLoadRef","onTableStateRef","onCellEventRef","initialSchemaRef","initialViewRef","emptySelectionSnapshot","useEffect","core","ExtableCore","unsubTable","next","prev","unsubSel","reason","useImperativeHandle","data","view","mode","rowId","colKey","row","rowData","pos","listener","className","jsx"],"mappings":";;;;;;;AAWA,MAAIA,IAAqB,uBAAO,IAAI,4BAA4B,GAC9DC,IAAsB,uBAAO,IAAI,gBAAgB;AACnD,WAASC,EAAQC,GAAMC,GAAQC,GAAU;AACvC,QAAIC,IAAM;AAGV,QAFWD,MAAX,WAAwBC,IAAM,KAAKD,IACxBD,EAAO,QAAlB,WAA0BE,IAAM,KAAKF,EAAO,MACxC,SAASA,GAAQ;AACnB,MAAAC,IAAW,CAAA;AACX,eAASE,KAAYH;AACnB,QAAUG,MAAV,UAAuBF,EAASE,CAAQ,IAAIH,EAAOG,CAAQ;AAAA,IACjE,MAAS,CAAAF,IAAWD;AAClB,WAAAA,IAASC,EAAS,KACX;AAAA,MACL,UAAUL;AAAA,MACV,MAAMG;AAAA,MACN,KAAKG;AAAA,MACL,KAAgBF,MAAX,SAAoBA,IAAS;AAAA,MAClC,OAAOC;AAAA;EAEX;AACA,SAAAG,EAAA,WAAmBP,GACnBO,EAAA,MAAcN,GACdM,EAAA,OAAeN;;;;;sBCtBE,QAAQ,IAAI,aAA7B,iBACG,WAAY;AACX,aAASO,EAAyBN,GAAM;AACtC,UAAYA,KAAR,KAAc,QAAO;AACzB,UAAmB,OAAOA,KAAtB;AACF,eAAOA,EAAK,aAAaO,IACrB,OACAP,EAAK,eAAeA,EAAK,QAAQ;AACvC,UAAiB,OAAOA,KAApB,SAA0B,QAAOA;AACrC,cAAQA,GAAI;AAAA,QACV,KAAKF;AACH,iBAAO;AAAA,QACT,KAAKU;AACH,iBAAO;AAAA,QACT,KAAKC;AACH,iBAAO;AAAA,QACT,KAAKC;AACH,iBAAO;AAAA,QACT,KAAKC;AACH,iBAAO;AAAA,QACT,KAAKC;AACH,iBAAO;AAAA,MACjB;AACM,UAAiB,OAAOZ,KAApB;AACF,gBACgB,OAAOA,EAAK,OAAzB,YACC,QAAQ;AAAA,UACN;AAAA,WAEJA,EAA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AA;AAAA,MACnD,UAAU,MAAMA,EAAQ,SAAS,SAAA,KAAc,CAAA;AAAA,MAC/C,cAAc,CAACsB,GAAUD,GAAaT,MACpCZ,EAAQ,SAAS,aAAasB,GAAcD,GAAiBT,CAAa;AAAA,MAC5E,qBAAqB,CAACA,MAAcZ,EAAQ,SAAS,oBAAoBY,CAAI;AAAA,MAC7E,WAAW,CAACW,GAAcC,MAAcxB,EAAQ,SAAS,UAAUuB,GAASC,CAAG,KAAK;AAAA,MACpF,WAAW,CAACF,MAAatB,EAAQ,SAAS,UAAUsB,CAAG,KAAK;AAAA,MAC5D,MAAM,MAAMtB,EAAQ,SAAS,KAAA;AAAA,MAC7B,MAAM,MAAMA,EAAQ,SAAS,KAAA;AAAA,MAC7B,oBAAoB,MAAMA,EAAQ,SAAS,mBAAA,KAAwB,EAAE,MAAM,CAAA,GAAI,MAAM,GAAC;AAAA,MACtF,QAAQ,MAAMA,EAAQ,SAAS,YAAY,QAAQ,QAAQ,EAAE;AAAA,MAC7D,qBAAqB,CAACyB,MACpBzB,EAAQ,SAAS,oBAAoByB,CAAQ,MAAM,MAAM;AAAA,MAC3D,oBAAoB,CAACA,MACnBzB,EAAQ,SAAS,mBAAmByB,CAAQ,MAAM,MAAM;AAAA,MAC1D,sBAAsB,MAAMzB,EAAQ,SAAS,0BAA0BO;AAAA,IAAA;AAAA,IAI3E,CAAA;AAAA,EAAC;AAGH,QAAMmB,IAAY,CAAC,gBAAgB7B,EAAS,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAC/E,SAAO8B,gBAAAA,GAAAA,IAAC,SAAI,wBAAoB,IAAC,KAAK7B,GAAe,GAAGD,GAAU,WAAA6B,GAAsB;AAC1F,CAAC;","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"index.js","sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/jsx-runtime.js","../src/index.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import type { CSSProperties, HTMLAttributes } from \"react\";\nimport { forwardRef, useEffect, useImperativeHandle, useRef, type ForwardedRef } from \"react\";\nimport type {\n CommitHandler,\n CoreOptions,\n EditMode,\n LockMode,\n NullableData,\n Schema,\n SelectionChangeReason,\n SelectionSnapshot,\n TableState,\n View,\n} from \"@extable/core\";\nimport { ExtableCore } from \"@extable/core\";\n\ntype CoreApi<T extends object, R extends object = T> = Pick<\n ExtableCore<T, R>,\n | \"setData\"\n | \"setView\"\n | \"getData\"\n | \"getRawData\"\n | \"getSchema\"\n | \"getView\"\n | \"getCell\"\n | \"getDisplayValue\"\n | \"getCellPending\"\n | \"getRow\"\n | \"getTableData\"\n | \"getColumnData\"\n | \"getPending\"\n | \"getPendingRowIds\"\n | \"hasPendingChanges\"\n | \"getPendingCellCount\"\n | \"getRowIndex\"\n | \"getColumnIndex\"\n | \"getAllRows\"\n | \"listRows\"\n | \"setCellValue\"\n | \"setValueToSelection\"\n | \"insertRow\"\n | \"deleteRow\"\n | \"undo\"\n | \"redo\"\n | \"getUndoRedoHistory\"\n | \"commit\"\n | \"subscribeTableState\"\n | \"subscribeSelection\"\n | \"getSelectionSnapshot\"\n>;\n\nexport type ExtableHandle<T extends object = Record<string, unknown>, R extends object = T> =\n CoreApi<T, R> & {\n destroy(): void;\n };\n\nexport type ExtableProps<T extends Record<string, unknown> = Record<string, unknown>> = Omit<\n HTMLAttributes<HTMLDivElement>,\n \"children\"\n> & {\n schema: Schema<any>;\n defaultData: NullableData<T>;\n defaultView: View;\n options?: CoreOptions;\n\n onTableState?: (next: TableState, prev: TableState | null) => void;\n onCellEvent?: (\n next: SelectionSnapshot,\n prev: SelectionSnapshot | null,\n reason: SelectionChangeReason,\n ) => void;\n\n className?: string;\n style?: CSSProperties;\n};\n\n/**\n * Uncontrolled-only wrapper.\n * - `schema/defaultData/defaultView/options` are initial values.\n * - For updates after mount, use imperative methods via ref.\n * - `defaultData` supports `null -> data` transition for loading flows.\n */\nexport const Extable = forwardRef(function ExtableInner<\n T extends Record<string, unknown> = Record<string, unknown>,\n>(props: ExtableProps<T>, ref: ForwardedRef<ExtableHandle<T>>) {\n const { schema, defaultData, defaultView, options, onTableState, onCellEvent, ...divProps } =\n props;\n\n const containerRef = useRef<HTMLDivElement>(null);\n const coreRef = useRef<ExtableCore<T> | null>(null);\n const initialDefaultDataWasNullRef = useRef(defaultData === null);\n const consumedDefaultDataLoadRef = useRef(false);\n const onTableStateRef = useRef<typeof onTableState>(onTableState);\n const onCellEventRef = useRef<typeof onCellEvent>(onCellEvent);\n const initialSchemaRef = useRef(schema);\n const initialViewRef = useRef(defaultView);\n\n const emptySelectionSnapshot: SelectionSnapshot = {\n ranges: [],\n activeRowIndex: null,\n activeRowKey: null,\n activeColumnIndex: null,\n activeColumnKey: null,\n activeValueRaw: undefined,\n activeValueDisplay: \"\",\n activeValueType: null,\n diagnostic: null,\n action: null,\n styles: { columnStyle: {}, cellStyle: {}, resolved: {} },\n };\n\n useEffect(() => {\n onTableStateRef.current = onTableState;\n }, [onTableState]);\n useEffect(() => {\n onCellEventRef.current = onCellEvent;\n }, [onCellEvent]);\n\n useEffect(() => {\n if (!containerRef.current) return;\n const core = new ExtableCore<T>({\n root: containerRef.current,\n schema,\n defaultData,\n defaultView,\n options,\n });\n coreRef.current = core;\n const unsubTable = core.subscribeTableState((next, prev) =>\n onTableStateRef.current?.(next, prev),\n );\n const unsubSel = core.subscribeSelection((next, prev, reason) =>\n onCellEventRef.current?.(next, prev, reason),\n );\n return () => {\n unsubSel();\n unsubTable();\n core.destroy();\n coreRef.current = null;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n const core = coreRef.current;\n if (!core) return;\n if (!initialDefaultDataWasNullRef.current) return;\n if (consumedDefaultDataLoadRef.current) return;\n if (defaultData !== null) {\n core.setData(defaultData);\n consumedDefaultDataLoadRef.current = true;\n }\n }, [defaultData]);\n\n useImperativeHandle(\n ref,\n () => {\n const proxy: ExtableHandle<T> = {\n destroy: () => {\n coreRef.current?.destroy();\n coreRef.current = null;\n },\n setData: (data) => coreRef.current?.setData(data),\n setView: (view) => coreRef.current?.setView(view),\n getData: () => coreRef.current?.getData() ?? [],\n getRawData: () => coreRef.current?.getRawData() ?? [],\n getSchema: () => coreRef.current?.getSchema() ?? initialSchemaRef.current,\n getView: () => coreRef.current?.getView() ?? initialViewRef.current,\n getCell: (rowId: string, colKey: any) => coreRef.current?.getCell(rowId, colKey),\n getDisplayValue: (row: any, colKey: any) =>\n coreRef.current?.getDisplayValue(row, colKey) ?? \"\",\n getCellPending: (row: any, colKey: any) => coreRef.current?.getCellPending(row, colKey) ?? false,\n getRow: (row: any) => coreRef.current?.getRow(row) ?? null,\n getTableData: () => coreRef.current?.getTableData() ?? [],\n getColumnData: (colKey: any) => coreRef.current?.getColumnData(colKey) ?? [],\n getPending: () => coreRef.current?.getPending() ?? new Map(),\n getPendingRowIds: () => coreRef.current?.getPendingRowIds() ?? [],\n hasPendingChanges: () => coreRef.current?.hasPendingChanges() ?? false,\n getPendingCellCount: () => coreRef.current?.getPendingCellCount() ?? 0,\n getRowIndex: (rowId: string) => coreRef.current?.getRowIndex(rowId) ?? -1,\n getColumnIndex: (colKey: string) => coreRef.current?.getColumnIndex(colKey) ?? -1,\n getAllRows: () => coreRef.current?.getAllRows() ?? [],\n listRows: () => coreRef.current?.listRows() ?? [],\n setCellValue: (row: any, colKey: any, next: any) =>\n coreRef.current?.setCellValue(row as never, colKey as never, next as never),\n setValueToSelection: (next: any) => coreRef.current?.setValueToSelection(next),\n insertRow: (rowData: any, pos?: any) => coreRef.current?.insertRow(rowData, pos) ?? null,\n deleteRow: (row: any) => coreRef.current?.deleteRow(row) ?? false,\n undo: () => coreRef.current?.undo(),\n redo: () => coreRef.current?.redo(),\n getUndoRedoHistory: () => coreRef.current?.getUndoRedoHistory() ?? { undo: [], redo: [] },\n commit: (handler?: CommitHandler) =>\n handler\n ? coreRef.current?.commit(handler) ?? Promise.resolve([])\n : coreRef.current?.commit() ?? Promise.resolve([]),\n subscribeTableState: (listener: any) =>\n coreRef.current?.subscribeTableState(listener) ?? (() => false),\n subscribeSelection: (listener: any) =>\n coreRef.current?.subscribeSelection(listener) ?? (() => false),\n getSelectionSnapshot: () => coreRef.current?.getSelectionSnapshot() ?? emptySelectionSnapshot,\n };\n return proxy;\n },\n [],\n );\n\n const className = [\"extable-root\", divProps.className].filter(Boolean).join(\" \");\n return <div data-extable-wrapper ref={containerRef} {...divProps} className={className} />;\n});\n\nexport type {\n CoreOptions,\n EditMode,\n LockMode,\n NullableData,\n Schema,\n SelectionChangeReason,\n SelectionSnapshot,\n TableState,\n View,\n};\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","owner","debugStack","debugTask","refProp","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","isValidElement","object","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1","Extable","forwardRef","ref","schema","defaultData","defaultView","options","onTableState","onCellEvent","divProps","containerRef","useRef","coreRef","initialDefaultDataWasNullRef","consumedDefaultDataLoadRef","onTableStateRef","onCellEventRef","initialSchemaRef","initialViewRef","emptySelectionSnapshot","useEffect","core","ExtableCore","unsubTable","next","prev","unsubSel","reason","useImperativeHandle","data","view","rowId","colKey","row","rowData","pos","handler","listener","className","jsx"],"mappings":";;;;;;;AAWA,MAAIA,IAAqB,uBAAO,IAAI,4BAA4B,GAC9DC,IAAsB,uBAAO,IAAI,gBAAgB;AACnD,WAASC,EAAQC,GAAMC,GAAQC,GAAU;AACvC,QAAIC,IAAM;AAGV,QAFWD,MAAX,WAAwBC,IAAM,KAAKD,IACxBD,EAAO,QAAlB,WAA0BE,IAAM,KAAKF,EAAO,MACxC,SAASA,GAAQ;AACnB,MAAAC,IAAW,CAAA;AACX,eAASE,KAAYH;AACnB,QAAUG,MAAV,UAAuBF,EAASE,CAAQ,IAAIH,EAAOG,CAAQ;AAAA,IACjE,MAAS,C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,EAAQ,SAAS,oBAAoByB,CAAQ,MAAM,MAAM;AAAA,MAC3D,oBAAoB,CAACA,MACnBzB,EAAQ,SAAS,mBAAmByB,CAAQ,MAAM,MAAM;AAAA,MAC1D,sBAAsB,MAAMzB,EAAQ,SAAS,0BAA0BO;AAAA,IAAA;AAAA,IAI3E,CAAA;AAAA,EAAC;AAGH,QAAMmB,IAAY,CAAC,gBAAgB7B,EAAS,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAC/E,SAAO8B,gBAAAA,GAAAA,IAAC,SAAI,wBAAoB,IAAC,KAAK7B,GAAe,GAAGD,GAAU,WAAA6B,GAAsB;AAC1F,CAAC;","x_google_ignoreList":[0,1,2]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extable/react",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,6 +19,7 @@
19
19
  "access": "public"
20
20
  },
21
21
  "scripts": {
22
+ "pretest": "npm run build --workspace @extable/core",
22
23
  "build": "tsc -p tsconfig.build.json --emitDeclarationOnly && vite build",
23
24
  "test": "vitest run",
24
25
  "lint": "biome lint .",
@@ -26,7 +27,7 @@
26
27
  "dev": "vite dev"
27
28
  },
28
29
  "dependencies": {
29
- "@extable/core": "0.1.0",
30
+ "@extable/core": "0.3.0",
30
31
  "react": "^19.2.3",
31
32
  "react-dom": "^19.2.3"
32
33
  },
@@ -48,6 +49,7 @@
48
49
  "type": "git",
49
50
  "url": "git+https://github.com/shibukawa/extable.git"
50
51
  },
52
+ "homepage": "https://shibukawa.github.io/extable/",
51
53
  "author": "Yoshiki Shibukawa",
52
54
  "license": "Apache-2.0"
53
55
  }