@osdk/react-components 0.2.0-beta.10 → 0.2.0-beta.11
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/CHANGELOG.md +6 -0
- package/build/browser/object-table/DefaultCellRenderer.js +5 -2
- package/build/browser/object-table/DefaultCellRenderer.js.map +1 -1
- package/build/browser/object-table/EditableCell.js +16 -6
- package/build/browser/object-table/EditableCell.js.map +1 -1
- package/build/browser/object-table/EditableCell.module.css +30 -2
- package/build/browser/object-table/EditableCell.module.css.js +2 -1
- package/build/browser/object-table/ObjectTable.js +9 -22
- package/build/browser/object-table/ObjectTable.js.map +1 -1
- package/build/browser/object-table/ObjectTableApi.js.map +1 -1
- package/build/browser/object-table/Table.js +23 -15
- package/build/browser/object-table/Table.js.map +1 -1
- package/build/browser/object-table/Table.module.css +0 -8
- package/build/browser/object-table/Table.module.css.js +1 -2
- package/build/browser/object-table/TableBody.js +8 -2
- package/build/browser/object-table/TableBody.js.map +1 -1
- package/build/browser/object-table/TableCell.module.css +0 -8
- package/build/browser/object-table/TableEditContainer.js +79 -0
- package/build/browser/object-table/TableEditContainer.js.map +1 -0
- package/build/browser/object-table/TableEditContainer.module.css +44 -0
- package/build/browser/object-table/TableEditContainer.module.css.js +9 -0
- package/build/browser/object-table/TableRow.js +12 -4
- package/build/browser/object-table/TableRow.js.map +1 -1
- package/build/browser/object-table/TableRow.module.css +2 -1
- package/build/browser/object-table/hooks/__tests__/useEditableTable.test.js +292 -0
- package/build/browser/object-table/hooks/__tests__/useEditableTable.test.js.map +1 -0
- package/build/browser/object-table/hooks/useEditableTable.js +20 -11
- package/build/browser/object-table/hooks/useEditableTable.js.map +1 -1
- package/build/browser/object-table/hooks/useObjectTableData.js +0 -5
- package/build/browser/object-table/hooks/useObjectTableData.js.map +1 -1
- package/build/browser/object-table/utils/getCellId.js +0 -7
- package/build/browser/object-table/utils/getCellId.js.map +1 -1
- package/build/browser/object-table/utils/types.js.map +1 -1
- package/build/browser/public/experimental.js.map +1 -1
- package/build/browser/styles.css +79 -19
- package/build/cjs/public/experimental.cjs +179 -90
- package/build/cjs/public/experimental.cjs.map +1 -1
- package/build/cjs/public/experimental.css +96 -57
- package/build/cjs/public/experimental.css.map +1 -1
- package/build/cjs/public/experimental.d.cts +40 -18
- package/build/esm/object-table/DefaultCellRenderer.js +5 -2
- package/build/esm/object-table/DefaultCellRenderer.js.map +1 -1
- package/build/esm/object-table/EditableCell.js +16 -6
- package/build/esm/object-table/EditableCell.js.map +1 -1
- package/build/esm/object-table/EditableCell.module.css +30 -2
- package/build/esm/object-table/ObjectTable.js +9 -22
- package/build/esm/object-table/ObjectTable.js.map +1 -1
- package/build/esm/object-table/ObjectTableApi.js.map +1 -1
- package/build/esm/object-table/Table.js +23 -15
- package/build/esm/object-table/Table.js.map +1 -1
- package/build/esm/object-table/Table.module.css +0 -8
- package/build/esm/object-table/TableBody.js +8 -2
- package/build/esm/object-table/TableBody.js.map +1 -1
- package/build/esm/object-table/TableCell.module.css +0 -8
- package/build/esm/object-table/TableEditContainer.js +79 -0
- package/build/esm/object-table/TableEditContainer.js.map +1 -0
- package/build/esm/object-table/TableEditContainer.module.css +44 -0
- package/build/esm/object-table/TableRow.js +12 -4
- package/build/esm/object-table/TableRow.js.map +1 -1
- package/build/esm/object-table/TableRow.module.css +2 -1
- package/build/esm/object-table/hooks/__tests__/useEditableTable.test.js +292 -0
- package/build/esm/object-table/hooks/__tests__/useEditableTable.test.js.map +1 -0
- package/build/esm/object-table/hooks/useEditableTable.js +20 -11
- package/build/esm/object-table/hooks/useEditableTable.js.map +1 -1
- package/build/esm/object-table/hooks/useObjectTableData.js +0 -5
- package/build/esm/object-table/hooks/useObjectTableData.js.map +1 -1
- package/build/esm/object-table/utils/getCellId.js +0 -7
- package/build/esm/object-table/utils/getCellId.js.map +1 -1
- package/build/esm/object-table/utils/types.js.map +1 -1
- package/build/esm/public/experimental.js.map +1 -1
- package/build/types/object-table/DefaultCellRenderer.d.ts +2 -2
- package/build/types/object-table/DefaultCellRenderer.d.ts.map +1 -1
- package/build/types/object-table/EditableCell.d.ts +18 -6
- package/build/types/object-table/EditableCell.d.ts.map +1 -1
- package/build/types/object-table/ObjectTable.d.ts +1 -1
- package/build/types/object-table/ObjectTable.d.ts.map +1 -1
- package/build/types/object-table/ObjectTableApi.d.ts +16 -6
- package/build/types/object-table/ObjectTableApi.d.ts.map +1 -1
- package/build/types/object-table/Table.d.ts +5 -10
- package/build/types/object-table/Table.d.ts.map +1 -1
- package/build/types/object-table/TableBody.d.ts +4 -1
- package/build/types/object-table/TableBody.d.ts.map +1 -1
- package/build/types/object-table/TableEditContainer.d.ts +9 -0
- package/build/types/object-table/TableEditContainer.d.ts.map +1 -0
- package/build/types/object-table/TableRow.d.ts +5 -1
- package/build/types/object-table/TableRow.d.ts.map +1 -1
- package/build/types/object-table/hooks/__tests__/useEditableTable.test.d.ts.map +1 -0
- package/build/types/object-table/hooks/useEditableTable.d.ts +4 -9
- package/build/types/object-table/hooks/useEditableTable.d.ts.map +1 -1
- package/build/types/object-table/utils/getCellId.d.ts +0 -1
- package/build/types/object-table/utils/getCellId.d.ts.map +1 -1
- package/build/types/object-table/utils/types.d.ts +25 -3
- package/build/types/object-table/utils/types.d.ts.map +1 -1
- package/build/types/public/experimental.d.ts +1 -1
- package/build/types/public/experimental.d.ts.map +1 -1
- package/package.json +5 -5
- package/build/browser/object-table/__tests__/useEditableTable.test.js +0 -197
- package/build/browser/object-table/__tests__/useEditableTable.test.js.map +0 -1
- package/build/esm/object-table/__tests__/useEditableTable.test.js +0 -197
- package/build/esm/object-table/__tests__/useEditableTable.test.js.map +0 -1
- package/build/types/object-table/__tests__/useEditableTable.test.d.ts.map +0 -1
- /package/build/types/object-table/{__tests__ → hooks/__tests__}/useEditableTable.test.d.ts +0 -0
|
@@ -15,17 +15,16 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { useCallback, useState } from "react";
|
|
18
|
-
import { getCellIdentifier } from "../utils/getCellId.js";
|
|
19
18
|
export function useEditableTable({
|
|
19
|
+
editMode = "manual",
|
|
20
20
|
onCellValueChanged,
|
|
21
21
|
onSubmitEdits
|
|
22
22
|
}) {
|
|
23
|
+
const [isActive, setActive] = useState(editMode === "always");
|
|
23
24
|
const [cellEdits, setCellEdits] = useState({});
|
|
24
|
-
const handleCellEdit = useCallback((cellId,
|
|
25
|
-
const cellIdentifier = getCellIdentifier(cellId);
|
|
26
|
-
|
|
25
|
+
const handleCellEdit = useCallback((cellId, info) => {
|
|
27
26
|
// If value is changed back to original, remove it from edits
|
|
28
|
-
if (
|
|
27
|
+
if (info.newValue === info.oldValue) {
|
|
29
28
|
setCellEdits(prev => {
|
|
30
29
|
const {
|
|
31
30
|
[cellId]: _,
|
|
@@ -36,22 +35,32 @@ export function useEditableTable({
|
|
|
36
35
|
} else {
|
|
37
36
|
setCellEdits(prev => ({
|
|
38
37
|
...prev,
|
|
39
|
-
[cellId]:
|
|
38
|
+
[cellId]: info
|
|
40
39
|
}));
|
|
41
40
|
}
|
|
42
|
-
onCellValueChanged?.(
|
|
41
|
+
onCellValueChanged?.(info);
|
|
43
42
|
}, [onCellValueChanged]);
|
|
44
43
|
const clearEdits = useCallback(() => {
|
|
45
44
|
setCellEdits({});
|
|
46
45
|
}, []);
|
|
47
46
|
const handleSubmitEdits = useCallback(async () => {
|
|
48
|
-
|
|
47
|
+
const edits = Object.values(cellEdits);
|
|
48
|
+
return onSubmitEdits ? onSubmitEdits(edits) : false;
|
|
49
49
|
}, [cellEdits, onSubmitEdits]);
|
|
50
|
+
const editModeConfig = editMode === "always" ? {
|
|
51
|
+
type: "always",
|
|
52
|
+
isActive: true
|
|
53
|
+
} : {
|
|
54
|
+
type: "manual",
|
|
55
|
+
isActive,
|
|
56
|
+
setActive
|
|
57
|
+
};
|
|
50
58
|
return {
|
|
51
59
|
cellEdits,
|
|
52
|
-
handleCellEdit,
|
|
53
|
-
handleSubmitEdits,
|
|
54
|
-
clearEdits
|
|
60
|
+
onCellEdit: handleCellEdit,
|
|
61
|
+
onSubmitEdits: onSubmitEdits ? handleSubmitEdits : undefined,
|
|
62
|
+
clearEdits,
|
|
63
|
+
editMode: editModeConfig
|
|
55
64
|
};
|
|
56
65
|
}
|
|
57
66
|
//# sourceMappingURL=useEditableTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditableTable.js","names":["useCallback","useState","
|
|
1
|
+
{"version":3,"file":"useEditableTable.js","names":["useCallback","useState","useEditableTable","editMode","onCellValueChanged","onSubmitEdits","isActive","setActive","cellEdits","setCellEdits","handleCellEdit","cellId","info","newValue","oldValue","prev","_","rest","clearEdits","handleSubmitEdits","edits","Object","values","editModeConfig","type","onCellEdit","undefined"],"sources":["useEditableTable.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ObjectOrInterfaceDefinition,\n Osdk,\n PropertyKeys,\n QueryDefinition,\n SimplePropertyDef,\n} from \"@osdk/api\";\nimport { useCallback, useState } from \"react\";\nimport type { ObjectTableProps } from \"../ObjectTableApi.js\";\nimport type { CellEditInfo, EditableConfig, EditMode } from \"../utils/types.js\";\n\nexport interface UseEditableTableProps<\n Q extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = Record<\n string,\n never\n >,\n FunctionColumns extends Record<string, QueryDefinition<{}>> = Record<\n string,\n never\n >,\n> {\n editMode?: \"always\" | \"manual\";\n\n onCellValueChanged?: ObjectTableProps<\n Q,\n RDPs,\n FunctionColumns\n >[\"onCellValueChanged\"];\n\n onSubmitEdits?: ObjectTableProps<\n Q,\n RDPs,\n FunctionColumns\n >[\"onSubmitEdits\"];\n}\n\nexport function useEditableTable<\n Q extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = Record<\n string,\n never\n >,\n FunctionColumns extends Record<string, QueryDefinition<{}>> = Record<\n string,\n never\n >,\n>({\n editMode = \"manual\",\n onCellValueChanged,\n onSubmitEdits,\n}: UseEditableTableProps<Q, RDPs, FunctionColumns>): EditableConfig<\n Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>,\n unknown\n> {\n const [isActive, setActive] = useState(editMode === \"always\");\n const [cellEdits, setCellEdits] = useState<\n Record<\n string,\n CellEditInfo<\n Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>,\n unknown\n >\n >\n >(\n {},\n );\n\n const handleCellEdit = useCallback(\n (\n cellId: string,\n info: CellEditInfo<\n Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>,\n unknown\n >,\n ) => {\n // If value is changed back to original, remove it from edits\n if (info.newValue === info.oldValue) {\n setCellEdits(prev => {\n const { [cellId]: _, ...rest } = prev;\n return rest;\n });\n } else {\n setCellEdits(prev => ({\n ...prev,\n [cellId]: info,\n }));\n }\n\n onCellValueChanged?.(info);\n },\n [onCellValueChanged],\n );\n\n const clearEdits = useCallback(() => {\n setCellEdits({});\n }, []);\n\n const handleSubmitEdits = useCallback(async () => {\n const edits = Object.values(cellEdits);\n return onSubmitEdits ? onSubmitEdits(edits) : false;\n }, [cellEdits, onSubmitEdits]);\n\n const editModeConfig: EditMode = editMode === \"always\"\n ? { type: \"always\", isActive: true }\n : { type: \"manual\", isActive, setActive };\n\n return {\n cellEdits,\n onCellEdit: handleCellEdit,\n onSubmitEdits: onSubmitEdits ? handleSubmitEdits : undefined,\n clearEdits,\n editMode: editModeConfig,\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA,SAASA,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AA8B7C,OAAO,SAASC,gBAAgBA,CAU9B;EACAC,QAAQ,GAAG,QAAQ;EACnBC,kBAAkB;EAClBC;AAC+C,CAAC,EAGhD;EACA,MAAM,CAACC,QAAQ,EAAEC,SAAS,CAAC,GAAGN,QAAQ,CAACE,QAAQ,KAAK,QAAQ,CAAC;EAC7D,MAAM,CAACK,SAAS,EAAEC,YAAY,CAAC,GAAGR,QAAQ,CASxC,CAAC,CACH,CAAC;EAED,MAAMS,cAAc,GAAGV,WAAW,CAChC,CACEW,MAAc,EACdC,IAGC,KACE;IACH;IACA,IAAIA,IAAI,CAACC,QAAQ,KAAKD,IAAI,CAACE,QAAQ,EAAE;MACnCL,YAAY,CAACM,IAAI,IAAI;QACnB,MAAM;UAAE,CAACJ,MAAM,GAAGK,CAAC;UAAE,GAAGC;QAAK,CAAC,GAAGF,IAAI;QACrC,OAAOE,IAAI;MACb,CAAC,CAAC;IACJ,CAAC,MAAM;MACLR,YAAY,CAACM,IAAI,KAAK;QACpB,GAAGA,IAAI;QACP,CAACJ,MAAM,GAAGC;MACZ,CAAC,CAAC,CAAC;IACL;IAEAR,kBAAkB,GAAGQ,IAAI,CAAC;EAC5B,CAAC,EACD,CAACR,kBAAkB,CACrB,CAAC;EAED,MAAMc,UAAU,GAAGlB,WAAW,CAAC,MAAM;IACnCS,YAAY,CAAC,CAAC,CAAC,CAAC;EAClB,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMU,iBAAiB,GAAGnB,WAAW,CAAC,YAAY;IAChD,MAAMoB,KAAK,GAAGC,MAAM,CAACC,MAAM,CAACd,SAAS,CAAC;IACtC,OAAOH,aAAa,GAAGA,aAAa,CAACe,KAAK,CAAC,GAAG,KAAK;EACrD,CAAC,EAAE,CAACZ,SAAS,EAAEH,aAAa,CAAC,CAAC;EAE9B,MAAMkB,cAAwB,GAAGpB,QAAQ,KAAK,QAAQ,GAClD;IAAEqB,IAAI,EAAE,QAAQ;IAAElB,QAAQ,EAAE;EAAK,CAAC,GAClC;IAAEkB,IAAI,EAAE,QAAQ;IAAElB,QAAQ;IAAEC;EAAU,CAAC;EAE3C,OAAO;IACLC,SAAS;IACTiB,UAAU,EAAEf,cAAc;IAC1BL,aAAa,EAAEA,aAAa,GAAGc,iBAAiB,GAAGO,SAAS;IAC5DR,UAAU;IACVf,QAAQ,EAAEoB;EACZ,CAAC;AACH","ignoreList":[]}
|
|
@@ -77,8 +77,6 @@ export function useObjectTableData(objectOrInterfaceType, columnDefinitions, fil
|
|
|
77
77
|
|
|
78
78
|
// Return the appropriate result based on which hook is enabled
|
|
79
79
|
if (shouldUseObjectSet) {
|
|
80
|
-
// eslint-disable-next-line no-console
|
|
81
|
-
console.debug("Using useObjectSet for data fetching in ObjectTable because objectSet is provided and objectType is an object.");
|
|
82
80
|
// Convert UseObjectSetResult to UseOsdkListResult format
|
|
83
81
|
return {
|
|
84
82
|
data: objectSetResult.data,
|
|
@@ -89,9 +87,6 @@ export function useObjectTableData(objectOrInterfaceType, columnDefinitions, fil
|
|
|
89
87
|
isOptimistic: false // ObjectSet doesn't support optimistic updates
|
|
90
88
|
};
|
|
91
89
|
}
|
|
92
|
-
|
|
93
|
-
// eslint-disable-next-line no-console
|
|
94
|
-
console.debug("Using useOsdkObjects for data fetching in ObjectTable because objectSet is not provided or objectType is an interface.");
|
|
95
90
|
return osdkObjectsResult;
|
|
96
91
|
}
|
|
97
92
|
//# sourceMappingURL=useObjectTableData.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useObjectTableData.js","names":["useObjectSet","useOsdkObjects","useMemo","PAGE_SIZE","useObjectTableData","objectOrInterfaceType","columnDefinitions","filter","sorting","objectSet","objectSetOptions","orderBy","length","undefined","reduce","acc","sort","id","desc","withProperties","rdpColumns","map","colDef","locator","colLocator","type","cur","creator","isObjectType","shouldUseObjectSet","objectSetResult","where","pageSize","enabled","osdkObjectsResult","
|
|
1
|
+
{"version":3,"file":"useObjectTableData.js","names":["useObjectSet","useOsdkObjects","useMemo","PAGE_SIZE","useObjectTableData","objectOrInterfaceType","columnDefinitions","filter","sorting","objectSet","objectSetOptions","orderBy","length","undefined","reduce","acc","sort","id","desc","withProperties","rdpColumns","map","colDef","locator","colLocator","type","cur","creator","isObjectType","shouldUseObjectSet","objectSetResult","where","pageSize","enabled","osdkObjectsResult","data","fetchMore","isLoading","error","totalCount","isOptimistic"],"sources":["useObjectTableData.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n DerivedProperty,\n ObjectOrInterfaceDefinition,\n ObjectSet,\n PropertyKeys,\n QueryDefinition,\n SimplePropertyDef,\n WhereClause,\n} from \"@osdk/api\";\nimport type { UseOsdkListResult } from \"@osdk/react/experimental\";\nimport { useObjectSet, useOsdkObjects } from \"@osdk/react/experimental\";\nimport type { SortingState } from \"@tanstack/react-table\";\nimport { useMemo } from \"react\";\nimport type { ColumnDefinition, ObjectSetOptions } from \"../ObjectTableApi.js\";\n\nconst PAGE_SIZE = 50;\n\ntype WithProperties<\n Q extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = Record<\n string,\n never\n >,\n> = {\n [K in keyof RDPs]: DerivedProperty.Creator<Q, RDPs[K]>;\n};\n/**\n * This hook is a wrapper that conditionally uses either useObjectSet or useOsdkObjects\n * based on whether an objectSet prop is provided.\n * It extracts RDP locators from columnDefinitions and applies withProperties\n * to return data containing the derived properties.\n */\nexport function useObjectTableData<\n Q extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = Record<\n string,\n never\n >,\n FunctionColumns extends Record<string, QueryDefinition<{}>> = Record<\n string,\n never\n >,\n>(\n objectOrInterfaceType: Q,\n columnDefinitions?: Array<ColumnDefinition<Q, RDPs, FunctionColumns>>,\n filter?: WhereClause<Q, RDPs>,\n sorting?: SortingState,\n objectSet?: ObjectSet<Q>,\n objectSetOptions?: ObjectSetOptions<Q>,\n): UseOsdkListResult<Q, RDPs> {\n const orderBy = useMemo(() => {\n if (!sorting || sorting.length === 0) {\n return undefined;\n }\n\n return sorting.reduce<{ [K in PropertyKeys<Q>]?: \"asc\" | \"desc\" }>(\n (acc, sort) => {\n acc[sort.id as PropertyKeys<Q>] = sort.desc ? \"desc\" : \"asc\";\n return acc;\n },\n {},\n );\n }, [sorting]);\n\n // Extract derived properties definition\n const withProperties = useMemo(() => {\n if (!columnDefinitions) {\n return;\n }\n\n const rdpColumns = columnDefinitions.map(colDef => colDef.locator).filter(\n (colLocator) => {\n return colLocator.type === \"rdp\";\n },\n );\n\n if (!rdpColumns.length) {\n return;\n }\n\n return rdpColumns.reduce<WithProperties<Q, RDPs>>(\n (acc, cur) => {\n return {\n ...acc,\n [cur.id]: cur.creator,\n };\n },\n {} as WithProperties<Q, RDPs>,\n );\n }, [columnDefinitions]);\n\n // When objectSet is provided and it's an object type, use useObjectSet. Otherwise, use useOsdkObjects.\n const isObjectType = objectOrInterfaceType.type === \"object\";\n const shouldUseObjectSet = !!objectSet && isObjectType;\n\n // When shouldUseObjectSet is true, we know objectSet is defined\n // and objectOrInterfaceType is an ObjectTypeDefinition\n const objectSetResult = useObjectSet(\n shouldUseObjectSet ? objectSet as ObjectSet<Q> : undefined as any,\n {\n ...(objectSetOptions as ObjectSetOptions<Q>),\n withProperties: withProperties as WithProperties<\n Q,\n RDPs\n >,\n where: filter,\n orderBy,\n pageSize: PAGE_SIZE,\n enabled: shouldUseObjectSet,\n },\n );\n\n const osdkObjectsResult = useOsdkObjects<\n Q,\n RDPs\n >(\n objectOrInterfaceType,\n {\n withProperties,\n pageSize: PAGE_SIZE,\n where: filter,\n orderBy,\n enabled: !shouldUseObjectSet,\n },\n );\n\n // Return the appropriate result based on which hook is enabled\n if (shouldUseObjectSet) {\n // Convert UseObjectSetResult to UseOsdkListResult format\n return {\n data: objectSetResult.data,\n fetchMore: objectSetResult.fetchMore,\n isLoading: objectSetResult.isLoading,\n error: objectSetResult.error,\n totalCount: objectSetResult.totalCount,\n isOptimistic: false, // ObjectSet doesn't support optimistic updates\n } as UseOsdkListResult<Q, RDPs>;\n }\n\n return osdkObjectsResult;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA,SAASA,YAAY,EAAEC,cAAc,QAAQ,0BAA0B;AAEvE,SAASC,OAAO,QAAQ,OAAO;AAG/B,MAAMC,SAAS,GAAG,EAAE;AAWpB;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAWhCC,qBAAwB,EACxBC,iBAAqE,EACrEC,MAA6B,EAC7BC,OAAsB,EACtBC,SAAwB,EACxBC,gBAAsC,EACV;EAC5B,MAAMC,OAAO,GAAGT,OAAO,CAAC,MAAM;IAC5B,IAAI,CAACM,OAAO,IAAIA,OAAO,CAACI,MAAM,KAAK,CAAC,EAAE;MACpC,OAAOC,SAAS;IAClB;IAEA,OAAOL,OAAO,CAACM,MAAM,CACnB,CAACC,GAAG,EAAEC,IAAI,KAAK;MACbD,GAAG,CAACC,IAAI,CAACC,EAAE,CAAoB,GAAGD,IAAI,CAACE,IAAI,GAAG,MAAM,GAAG,KAAK;MAC5D,OAAOH,GAAG;IACZ,CAAC,EACD,CAAC,CACH,CAAC;EACH,CAAC,EAAE,CAACP,OAAO,CAAC,CAAC;;EAEb;EACA,MAAMW,cAAc,GAAGjB,OAAO,CAAC,MAAM;IACnC,IAAI,CAACI,iBAAiB,EAAE;MACtB;IACF;IAEA,MAAMc,UAAU,GAAGd,iBAAiB,CAACe,GAAG,CAACC,MAAM,IAAIA,MAAM,CAACC,OAAO,CAAC,CAAChB,MAAM,CACtEiB,UAAU,IAAK;MACd,OAAOA,UAAU,CAACC,IAAI,KAAK,KAAK;IAClC,CACF,CAAC;IAED,IAAI,CAACL,UAAU,CAACR,MAAM,EAAE;MACtB;IACF;IAEA,OAAOQ,UAAU,CAACN,MAAM,CACtB,CAACC,GAAG,EAAEW,GAAG,KAAK;MACZ,OAAO;QACL,GAAGX,GAAG;QACN,CAACW,GAAG,CAACT,EAAE,GAAGS,GAAG,CAACC;MAChB,CAAC;IACH,CAAC,EACD,CAAC,CACH,CAAC;EACH,CAAC,EAAE,CAACrB,iBAAiB,CAAC,CAAC;;EAEvB;EACA,MAAMsB,YAAY,GAAGvB,qBAAqB,CAACoB,IAAI,KAAK,QAAQ;EAC5D,MAAMI,kBAAkB,GAAG,CAAC,CAACpB,SAAS,IAAImB,YAAY;;EAEtD;EACA;EACA,MAAME,eAAe,GAAG9B,YAAY,CAClC6B,kBAAkB,GAAGpB,SAAS,GAAmBI,SAAgB,EACjE;IACE,GAAIH,gBAAwC;IAC5CS,cAAc,EAAEA,cAGf;IACDY,KAAK,EAAExB,MAAM;IACbI,OAAO;IACPqB,QAAQ,EAAE7B,SAAS;IACnB8B,OAAO,EAAEJ;EACX,CACF,CAAC;EAED,MAAMK,iBAAiB,GAAGjC,cAAc,CAItCI,qBAAqB,EACrB;IACEc,cAAc;IACda,QAAQ,EAAE7B,SAAS;IACnB4B,KAAK,EAAExB,MAAM;IACbI,OAAO;IACPsB,OAAO,EAAE,CAACJ;EACZ,CACF,CAAC;;EAED;EACA,IAAIA,kBAAkB,EAAE;IACtB;IACA,OAAO;MACLM,IAAI,EAAEL,eAAe,CAACK,IAAI;MAC1BC,SAAS,EAAEN,eAAe,CAACM,SAAS;MACpCC,SAAS,EAAEP,eAAe,CAACO,SAAS;MACpCC,KAAK,EAAER,eAAe,CAACQ,KAAK;MAC5BC,UAAU,EAAET,eAAe,CAACS,UAAU;MACtCC,YAAY,EAAE,KAAK,CAAE;IACvB,CAAC;EACH;EAEA,OAAON,iBAAiB;AAC1B","ignoreList":[]}
|
|
@@ -17,11 +17,4 @@
|
|
|
17
17
|
export function getCellId(cellIdentifier) {
|
|
18
18
|
return JSON.stringify(cellIdentifier);
|
|
19
19
|
}
|
|
20
|
-
export function getCellIdentifier(cellId) {
|
|
21
|
-
const parsed = JSON.parse(cellId);
|
|
22
|
-
if (typeof parsed === "object" && parsed != null && "rowId" in parsed && "columnId" in parsed) {
|
|
23
|
-
return parsed;
|
|
24
|
-
}
|
|
25
|
-
throw new Error("Parsed cellId does not have required properties");
|
|
26
|
-
}
|
|
27
20
|
//# sourceMappingURL=getCellId.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCellId.js","names":["getCellId","cellIdentifier","JSON","stringify"
|
|
1
|
+
{"version":3,"file":"getCellId.js","names":["getCellId","cellIdentifier","JSON","stringify"],"sources":["getCellId.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { CellIdentifier } from \"./types.js\";\n\nexport function getCellId(cellIdentifier: CellIdentifier): string {\n return JSON.stringify(cellIdentifier);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,OAAO,SAASA,SAASA,CAACC,cAA8B,EAAU;EAChE,OAAOC,IAAI,CAACC,SAAS,CAACF,cAAc,CAAC;AACvC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":[],"sources":["types.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { RowData } from \"@tanstack/react-table\";\n\nexport interface ColumnOption {\n id: string;\n name: string;\n canSort: boolean;\n}\n\nexport interface CellIdentifier {\n rowId: string;\n columnId: string;\n}\n\nexport interface
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["types.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { RowData } from \"@tanstack/react-table\";\n\nexport interface ColumnOption {\n id: string;\n name: string;\n canSort: boolean;\n}\n\nexport interface CellIdentifier {\n rowId: string;\n columnId: string;\n}\n\nexport interface CellEditInfo<\n TData extends RowData = unknown,\n CellValue = unknown,\n> extends CellIdentifier {\n newValue: CellValue;\n oldValue: CellValue;\n originalRowData: TData;\n}\n\nexport type EditMode =\n | { type: \"always\"; isActive: true }\n | { type: \"manual\"; isActive: boolean; setActive: (value: boolean) => void };\n\nexport interface EditableConfig<\n TData extends RowData = unknown,\n CellValue = unknown,\n> {\n cellEdits: Record<string, CellEditInfo<TData, CellValue>>;\n onCellEdit: (\n cellId: string,\n info: CellEditInfo<TData, CellValue>,\n ) => void;\n onSubmitEdits?: () => Promise<boolean>;\n clearEdits: () => void;\n editMode: EditMode;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.js","names":["FilterList","ObjectTable","BaseTable","ColumnConfigDialog"],"sources":["experimental.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { FilterList } from \"../filter-list/base/FilterList.js\";\nexport type {\n FilterDefinitionUnion,\n FilterListProps,\n} from \"../filter-list/FilterListApi.js\";\nexport type {\n FilterComponentType,\n FilterListItemProps,\n FilterState,\n PropertyFilterDefinition,\n} from \"../filter-list/FilterListItemApi.js\";\n\n// ObjectTable that loads and displays data for a given objectSet\nexport { ObjectTable } from \"../object-table/ObjectTable.js\";\nexport type {\n ColumnDefinition,\n ColumnDefinitionLocator,\n ObjectTableProps,\n} from \"../object-table/ObjectTableApi.js\";\nexport type {
|
|
1
|
+
{"version":3,"file":"experimental.js","names":["FilterList","ObjectTable","BaseTable","ColumnConfigDialog"],"sources":["experimental.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { FilterList } from \"../filter-list/base/FilterList.js\";\nexport type {\n FilterDefinitionUnion,\n FilterListProps,\n} from \"../filter-list/FilterListApi.js\";\nexport type {\n FilterComponentType,\n FilterListItemProps,\n FilterState,\n PropertyFilterDefinition,\n} from \"../filter-list/FilterListItemApi.js\";\n\n// ObjectTable that loads and displays data for a given objectSet\nexport { ObjectTable } from \"../object-table/ObjectTable.js\";\nexport type {\n ColumnDefinition,\n ColumnDefinitionLocator,\n ObjectTableProps,\n} from \"../object-table/ObjectTableApi.js\";\nexport type { CellEditInfo } from \"../object-table/utils/types.js\";\n\n// BaseTable that does not handle data fetching\nexport type { BaseTableProps } from \"../object-table/Table.js\";\nexport { BaseTable } from \"../object-table/Table.js\";\n\nexport { ColumnConfigDialog } from \"../object-table/ColumnConfigDialog.js\";\nexport type {\n ColumnConfigDialogProps,\n ColumnConfigOptions,\n} from \"../object-table/ColumnConfigDialog.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,QAAQ,mCAAmC;AAY9D;AACA,SAASC,WAAW,QAAQ,gCAAgC;;AAQ5D;;AAEA,SAASC,SAAS,QAAQ,0BAA0B;AAEpD,SAASC,kBAAkB,QAAQ,uCAAuC","ignoreList":[]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { CellContext } from "@tanstack/react-table";
|
|
1
|
+
import type { CellContext, RowData } from "@tanstack/react-table";
|
|
2
2
|
import React from "react";
|
|
3
|
-
export declare function renderDefaultCell<TData>(cellContext: CellContext<TData, unknown>): React.ReactNode;
|
|
3
|
+
export declare function renderDefaultCell<TData extends RowData>(cellContext: CellContext<TData, unknown>): React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,
|
|
1
|
+
{"mappings":"AAgBA,cAAc,aAAa,eAAe,uBAAwB;AAClE,OAAO,WAAW,OAAQ;AAI1B,OAAO,iBAAS,kBAAkB,cAAc,SAC9CA,aAAa,YAAY,kBACxB,MAAM","names":["cellContext: CellContext<TData, unknown>"],"sources":["../../../src/object-table/DefaultCellRenderer.tsx"],"version":3,"file":"DefaultCellRenderer.d.ts"}
|
|
@@ -1,10 +1,22 @@
|
|
|
1
|
+
import type { RowData } from "@tanstack/react-table";
|
|
1
2
|
import React from "react";
|
|
2
|
-
import type {
|
|
3
|
-
export interface EditableCellProps
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import type { CellEditInfo } from "./utils/types.js";
|
|
4
|
+
export interface EditableCellProps<
|
|
5
|
+
TData extends RowData,
|
|
6
|
+
CellValue = unknown
|
|
7
|
+
> {
|
|
8
|
+
initialValue: CellValue;
|
|
9
|
+
currentValue: CellValue;
|
|
6
10
|
cellId: string;
|
|
7
11
|
dataType?: string;
|
|
8
|
-
onCellEdit
|
|
12
|
+
onCellEdit: (cellId: string, info: CellEditInfo<TData, CellValue>) => void;
|
|
13
|
+
originalRowData: TData;
|
|
14
|
+
rowId: string;
|
|
15
|
+
columnId: string;
|
|
9
16
|
}
|
|
10
|
-
|
|
17
|
+
declare function EditableCellInner<
|
|
18
|
+
TData extends RowData,
|
|
19
|
+
CellValue = unknown
|
|
20
|
+
>({ initialValue, currentValue, cellId, dataType, onCellEdit, originalRowData, rowId, columnId }: EditableCellProps<TData, CellValue>): React.ReactElement;
|
|
21
|
+
export declare const EditableCell: typeof EditableCellInner;
|
|
22
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAiBA,OAAO,WAAyD,OAAQ;AAExE,cAAc,
|
|
1
|
+
{"mappings":"AAiBA,cAAc,eAAe,uBAAwB;AAErD,OAAO,WAAyD,OAAQ;AAExE,cAAc,oBAAoB,kBAAmB;AAErD,iBAAiB;CAAkB,cAAc;CAAS;EAAqB;CAC7E,cAAc;CACd,cAAc;CACd;CACA;CACA,aAAaA,gBAAgBC,MAAM,aAAa,OAAO;CACvD,iBAAiB;CACjB;CACA;AACD;AA4CD,iBAAS;CAAkB,cAAc;CAAS;EAAqB,EACrE,cACA,cACA,QACA,UACA,YACA,iBACA,OACA,UACoC,EAAnC,kBAAkB,OAAO,aAAa,MAAM;AAyE/C,OAAO,cAAM,qBAED","names":["cellId: string","info: CellEditInfo<TData, CellValue>"],"sources":["../../../src/object-table/EditableCell.tsx"],"version":3,"file":"EditableCell.d.ts"}
|
|
@@ -13,4 +13,4 @@ export declare function ObjectTable<
|
|
|
13
13
|
Q extends ObjectOrInterfaceDefinition,
|
|
14
14
|
RDPs extends Record<string, SimplePropertyDef> = Record<string, never>,
|
|
15
15
|
FunctionColumns extends Record<string, QueryDefinition<{}>> = Record<string, never>
|
|
16
|
-
>({ objectType, objectSet, columnDefinitions, filter, objectSetOptions, orderBy, defaultOrderBy, onOrderByChanged, onColumnsPinnedChanged, onColumnResize, onRowSelection, renderCellContextMenu, selectionMode, selectedRows, onColumnVisibilityChanged, onCellValueChanged, onSubmitEdits, enableOrdering, enableColumnPinning, enableColumnResizing, enableColumnConfig,...props }: ObjectTableProps<Q, RDPs, FunctionColumns>): React.ReactElement;
|
|
16
|
+
>({ objectType, objectSet, columnDefinitions, filter, objectSetOptions, orderBy, defaultOrderBy, onOrderByChanged, onColumnsPinnedChanged, onColumnResize, onRowSelection, renderCellContextMenu, selectionMode, selectedRows, onColumnVisibilityChanged, onCellValueChanged, onSubmitEdits, enableOrdering, enableColumnPinning, enableColumnResizing, enableColumnConfig, editMode,...props }: ObjectTableProps<Q, RDPs, FunctionColumns>): React.ReactElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cACE,6BAGA,iBACA,yBACK,WAAY;AAGnB,OAAO,WAAqC,OAAQ;AAUpD,cAAc,wBAAwB,qBAAsB;;;;;;;;;
|
|
1
|
+
{"mappings":"AAgBA,cACE,6BAGA,iBACA,yBACK,WAAY;AAGnB,OAAO,WAAqC,OAAQ;AAUpD,cAAc,wBAAwB,qBAAsB;;;;;;;;;AAe5D,OAAO,iBAAS;CACd,UAAU;CACV,aAAa,eAAe,qBAAqB;CAIjD,wBAAwB,eAAe,gBAAgB,CAAE,MAAK;EAI9D,EACA,YACA,WACA,mBACA,QACA,kBACA,SACA,gBACA,kBACA,wBACA,gBACA,gBACA,uBACA,eACA,cACA,2BACA,oBACA,eACA,gBACA,qBACA,sBACA,oBACA,SACA,GAAG,OACwC,EAA1C,iBAAiB,GAAG,MAAM,mBAAmB,MAAM","names":[],"sources":["../../../src/object-table/ObjectTable.tsx"],"version":3,"file":"ObjectTable.d.ts"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DerivedProperty, ObjectOrInterfaceDefinition, ObjectSet, Osdk, PrimaryKeyType, PropertyKeys, QueryDefinition, SimplePropertyDef, WhereClause } from "@osdk/api";
|
|
2
2
|
import type * as React from "react";
|
|
3
|
-
import type {
|
|
3
|
+
import type { CellEditInfo } from "./utils/types.js";
|
|
4
4
|
export type ColumnDefinition<
|
|
5
5
|
Q extends ObjectOrInterfaceDefinition,
|
|
6
6
|
RDPs extends Record<string, SimplePropertyDef> = Record<string, never>,
|
|
@@ -122,6 +122,14 @@ export interface ObjectTableProps<
|
|
|
122
122
|
*/
|
|
123
123
|
enableColumnConfig?: boolean;
|
|
124
124
|
/**
|
|
125
|
+
* Controls the edit mode behavior of the table.
|
|
126
|
+
* - "always": Editable cells are immediately in edit mode on row clicked.
|
|
127
|
+
* - "manual": User can toggle edit mode on/off via the Edit Table button.
|
|
128
|
+
*
|
|
129
|
+
* @default "manual"
|
|
130
|
+
*/
|
|
131
|
+
editMode?: "always" | "manual";
|
|
132
|
+
/**
|
|
125
133
|
* The default order by clause to sort the objects in the table.
|
|
126
134
|
* If provided without orderBy prop, the sorting is uncontrolled.
|
|
127
135
|
* If both orderBy and defaultOrderBy are provided, orderBy takes precedence.
|
|
@@ -152,16 +160,18 @@ export interface ObjectTableProps<
|
|
|
152
160
|
/**
|
|
153
161
|
* Called after the value of a cell is edited and committed by the user.
|
|
154
162
|
*
|
|
155
|
-
* @param
|
|
156
|
-
*
|
|
163
|
+
* @param info An object containing details about the cell that was edited,
|
|
164
|
+
* including the rowId, columnId, new and old values, and the row data before the edit
|
|
157
165
|
*/
|
|
158
|
-
onCellValueChanged?: (
|
|
166
|
+
onCellValueChanged?: (info: CellEditInfo<Osdk.Instance<Q, "$allBaseProperties", PropertyKeys<Q>, RDPs>, unknown>) => void;
|
|
159
167
|
/**
|
|
160
168
|
* If provided, the button Submit Edits will be shown in the table
|
|
161
169
|
*
|
|
162
|
-
* @param edits
|
|
170
|
+
* @param edits an array of edit info containing details about the edited cells
|
|
171
|
+
* including the rowId, columnId, new and old values, and the row data before the edit
|
|
172
|
+
* @return a promise that resolves to true if the edits were successfully submitted
|
|
163
173
|
*/
|
|
164
|
-
onSubmitEdits?: (edits:
|
|
174
|
+
onSubmitEdits?: (edits: CellEditInfo<Osdk.Instance<Q, "$allBaseProperties", PropertyKeys<Q>, RDPs>, unknown>[]) => Promise<boolean>;
|
|
165
175
|
/**
|
|
166
176
|
* Called when the column visibility or ordering changed.
|
|
167
177
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cACE,iBACA,6BACA,WACA,MACA,gBACA,cACA,iBACA,mBACA,mBACK,WAAY;AACnB,iBAAiB,WAAW,OAAQ;AACpC,cAAc,
|
|
1
|
+
{"mappings":"AAgBA,cACE,iBACA,6BACA,WACA,MACA,gBACA,cACA,iBACA,mBACA,mBACK,WAAY;AACnB,iBAAiB,WAAW,OAAQ;AACpC,cAAc,oBAAoB,kBAAmB;AAErD,YAAY;CACV,UAAU;CACV,aAAa,eAAe,qBAAqB;CACjD,wBAAwB,eAAe,gBAAgB,CAAE,MAAK;IAI5D;CACF,SAAS,wBAAwB,GAAG,MAAM;;;;CAK1C;;;;CAKA,SAAS,SAAS,UAAU;CAC5B;CACA;CACA;CACA;CACA;CACA;CACA;CAEA,cACEA,QAAQ,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI,OAChEC,SAAS,wBAAwB,GAAG,MAAM,qBACvC,MAAM;;;;;;;;;;CAWX;;;;;CAMA,qBAAqB,MAAM;AAC5B;AAED,YAAY;CACV,UAAU;CACV,aAAa,eAAe,qBAAqB;CACjD,wBAAwB,eAAe,gBAAgB,CAAE,MAAK;IAK5D;CACA,MAAM;CACN,IAAI,aAAa;AAClB,IACC;CACA,MAAM;CACN,UAAU;AACX,IACC;CACA,MAAM;CACN,UAAU;CACV,SAAS,gBAAgB,QAAQ,GAAG,WAAW;AAChD,IACC;CACA,MAAM;CACN;AACD;AAEH,iBAAiB;CACf,UAAU;CACV,aAAa,eAAe,qBAAqB;CACjD,wBAAwB,eAAe,gBAAgB,CAAE,MAAK;EAI9D;;;;;CAKA,YAAY;;;;;CAMZ,YAAY,UAAU;CAEtB,mBAAmB,iBAAiB;;;;;;CAOpC,oBAAoB,MAAM,iBAAiB,GAAG,MAAM;;;;;;CAOpD;;;;;CAMA,SAAS,YAAY,GAAG;;;;;;;CAQxB,mBAAmBC,UAAU,YAAY,GAAG;;;;;;CAO5C;;;;;;CAOA;;;;;;CAOA;;;;;;CAOA;;;;;;;;CASA,WAAW,WAAW;;;;;;CAOtB,iBAAiB,MAAM;EACrB,UAAU,aAAa;EACvB,WAAW,QAAQ;CACpB;;;;;;CAOD,UAAU,MAAM;EACd,UAAU,aAAa;EACvB,WAAW,QAAQ;CACpB;;;;;;;CAQD,oBACEC,YAAY,MAAM;EAChB,UAAU,aAAa;EACvB,WAAW,QAAQ;CACpB;;;;;;;CASH,sBACEC,MAAM,aACJ,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI;;;;;;;;CAY5D,iBAAiBC,OAAO,aACtB,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI,sBAElD;;;;;;;;CASR,6BACEC,WAAW,MAAM;EACf,UAAU,aAAa,WAAW,aAAa;EAC/C;CACD;;;;;;;;CAUH,0BACEC,WAAW,MAAM;EACf,UAAU,aAAa,WAAW,aAAa;EAC/C,QAAQ,SAAS,UAAU;CAC5B;;;;;;;CASH,kBACEC,UAAU,aAAa,WAAW,aAAa,iBAC/CC;;;;;;CAQF,cACET,QAAQ,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI;;;;;;;;;CAWlE,gBAAgB,WAAW,aAAa;;;;;CAMxC,eAAe,eAAe;;;;;;;CAS9B,kBAAkBU,gBAAgB,eAAe;;;;CAKjD,yBACEC,KAAK,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI,OAC7DC,uBACG,MAAM;;;;;;CAOX;CAEA;AACD;AAED,iBAAiB,iBACf,UAAU,6BACV;;;;CAIA,QAAQ,UAAU;;;;CAKlB,YAAY,UAAU;;;;CAKtB,WAAW,UAAU;AACtB","names":["object: Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>","locator: ColumnDefinitionLocator<Q, RDPs, FunctionColumns>","newWhere: WhereClause<Q, RDPs>","newOrderBy: Array<{\n property: PropertyKeys<Q>;\n direction: \"asc\" | \"desc\";\n }>","info: CellEditInfo<\n Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>,\n unknown\n >","edits: CellEditInfo<\n Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>,\n unknown\n >[]","newStates: Array<{\n columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns;\n isVisible: boolean;\n }>","newStates: Array<{\n columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns;\n pinned: \"left\" | \"right\" | \"none\";\n }>","columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns","newWidth: number | null","selectedRowIds: PrimaryKeyType<Q>[]","row: Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>","cellValue: unknown"],"sources":["../../../src/object-table/ObjectTableApi.ts"],"version":3,"file":"ObjectTableApi.d.ts"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Cell, RowData, Table } from "@tanstack/react-table";
|
|
2
2
|
import React, { type ReactElement } from "react";
|
|
3
3
|
import type { HeaderMenuFeatureFlags } from "./TableHeaderWithPopover.js";
|
|
4
|
-
import type {
|
|
4
|
+
import type { CellEditInfo, EditableConfig } from "./utils/types.js";
|
|
5
5
|
declare module "@tanstack/react-table" {
|
|
6
6
|
interface ColumnMeta<
|
|
7
7
|
TData extends RowData = unknown,
|
|
@@ -13,15 +13,11 @@ declare module "@tanstack/react-table" {
|
|
|
13
13
|
dataType?: string;
|
|
14
14
|
}
|
|
15
15
|
interface TableMeta<TData extends RowData = unknown> {
|
|
16
|
-
onCellEdit?: (cellId: string,
|
|
17
|
-
cellEdits?: Record<string,
|
|
16
|
+
onCellEdit?: (cellId: string, info: CellEditInfo<TData, unknown>) => void;
|
|
17
|
+
cellEdits?: Record<string, CellEditInfo<TData, unknown>>;
|
|
18
|
+
isInEditMode?: boolean;
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
interface EditableConfig {
|
|
21
|
-
onSubmitEdits?: () => Promise<void>;
|
|
22
|
-
clearEdits?: () => void;
|
|
23
|
-
cellEdits?: Record<string, CellValueState>;
|
|
24
|
-
}
|
|
25
21
|
export interface BaseTableProps<TData extends RowData> {
|
|
26
22
|
table: Table<TData>;
|
|
27
23
|
isLoading?: boolean;
|
|
@@ -32,7 +28,6 @@ export interface BaseTableProps<TData extends RowData> {
|
|
|
32
28
|
className?: string;
|
|
33
29
|
error?: Error;
|
|
34
30
|
headerMenuFeatureFlags?: HeaderMenuFeatureFlags;
|
|
35
|
-
editableConfig?: EditableConfig
|
|
31
|
+
editableConfig?: EditableConfig<TData, unknown>;
|
|
36
32
|
}
|
|
37
33
|
export declare function BaseTable<TData extends RowData>({ table, isLoading, fetchNextPage, onRowClick, rowHeight, renderCellContextMenu, className, error, headerMenuFeatureFlags, editableConfig }: BaseTableProps<TData>): ReactElement;
|
|
38
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,MAAM,SAAS,aAAa,uBAAwB;AAElE,OAAO,cACA,oBAKA,OAAQ;AAOf,cAAc,8BAA8B,6BAA8B;AAC1E,cAAc,sBAAsB,kBAAmB;
|
|
1
|
+
{"mappings":"AAgBA,cAAc,MAAM,SAAS,aAAa,uBAAwB;AAElE,OAAO,cACA,oBAKA,OAAQ;AAOf,cAAc,8BAA8B,6BAA8B;AAC1E,cAAc,cAAc,sBAAsB,kBAAmB;eAEtD,wBAAwB;WAC3B;EAAW,cAAc;EAAmB;GAAkB;EACtE;EACA;EACA;EACA;CACD;WACS,UAAU,cAAc,mBAAmB;EACnD,cACEA,gBACAC,MAAM,aAAa;EAErB,YAAY,eAAe,aAAa;EACxC;CACD;AACF;AAED,iBAAiB,eACf,cAAc,SACd;CACA,OAAO,MAAM;CACb;CACA,sBAAsB;CACtB,cAAcC,KAAK;CACnB;CACA,yBACEA,KAAK,OACLC,MAAM,KAAK,oBACR,MAAM;CACX;CACA,QAAQ;CACR,yBAAyB;CACzB,iBAAiB,eAAe;AACjC;AAED,OAAO,iBAAS,UACd,cAAc,SAEd,EACE,OACA,WACA,eACA,YACA,WACA,uBACA,WACA,OACA,wBACA,gBACsB,EAArB,eAAe,SACjB","names":["cellId: string","info: CellEditInfo<TData, unknown>","row: TData","cell: Cell<TData, unknown>"],"sources":["../../../src/object-table/Table.tsx"],"version":3,"file":"Table.d.ts"}
|
|
@@ -8,6 +8,9 @@ interface TableBodyProps<TData extends RowData> {
|
|
|
8
8
|
renderCellContextMenu?: (row: TData, cell: Cell<TData, unknown>) => React.ReactNode;
|
|
9
9
|
isLoadingMore?: boolean;
|
|
10
10
|
headerGroups?: Array<HeaderGroup<TData>>;
|
|
11
|
+
focusedRowId?: string | null;
|
|
12
|
+
setFocusedRowId?: (rowId: string | null) => void;
|
|
13
|
+
isInEditMode?: boolean;
|
|
11
14
|
}
|
|
12
|
-
export declare function TableBody<TData extends RowData>({ rows, tableContainerRef, onRowClick, renderCellContextMenu, rowHeight, isLoadingMore, headerGroups }: TableBodyProps<TData>): React.ReactElement;
|
|
15
|
+
export declare function TableBody<TData extends RowData>({ rows, tableContainerRef, onRowClick, renderCellContextMenu, rowHeight, isLoadingMore, headerGroups, focusedRowId, setFocusedRowId, isInEditMode }: TableBodyProps<TData>): React.ReactElement;
|
|
13
16
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,MAAM,aAAa,KAAK,eAAe,uBAAwB;AAE7E,OAAO,WAAgC,OAAQ;UAKrC,eAAe,cAAc,SAAS;CAC9C,MAAM,MAAM,IAAI;CAChB,mBAAmB,MAAM,UAAU;CACnC,cAAcA,KAAK;CACnB;CACA,yBACEA,KAAK,OACLC,MAAM,KAAK,oBACR,MAAM;CACX;CACA,eAAe,MAAM,YAAY;
|
|
1
|
+
{"mappings":"AAgBA,cAAc,MAAM,aAAa,KAAK,eAAe,uBAAwB;AAE7E,OAAO,WAAgC,OAAQ;UAKrC,eAAe,cAAc,SAAS;CAC9C,MAAM,MAAM,IAAI;CAChB,mBAAmB,MAAM,UAAU;CACnC,cAAcA,KAAK;CACnB;CACA,yBACEA,KAAK,OACLC,MAAM,KAAK,oBACR,MAAM;CACX;CACA,eAAe,MAAM,YAAY;CACjC;CACA,mBAAmBC;CACnB;AACD;AAED,OAAO,iBAAS,UAAU,cAAc,SAAS,EAC/C,MACA,mBACA,YACA,uBACA,WACA,eACA,cACA,cACA,iBACA,cACsB,EAArB,eAAe,SAAS,MAAM","names":["row: TData","cell: Cell<TData, unknown>","rowId: string | null"],"sources":["../../../src/object-table/TableBody.tsx"],"version":3,"file":"TableBody.d.ts"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RowData } from "@tanstack/react-table";
|
|
2
|
+
import { type ReactElement } from "react";
|
|
3
|
+
import type { EditableConfig } from "./utils/types.js";
|
|
4
|
+
interface TableEditContainerProps<TData extends RowData> {
|
|
5
|
+
editableConfig?: EditableConfig<TData, unknown>;
|
|
6
|
+
focusedRowId?: string | null;
|
|
7
|
+
}
|
|
8
|
+
export declare function TableEditContainer<TData extends RowData>({ editableConfig, focusedRowId }: TableEditContainerProps<TData>): ReactElement;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAgBA,cAAc,eAAe,uBAAwB;AACrD,cAAqB,oBAA2C,OAAQ;AAGxE,cAAc,sBAAsB,kBAAmB;UAE7C,wBACR,cAAc,SACd;CACA,iBAAiB,eAAe;CAChC;AACD;AAED,OAAO,iBAAS,mBACd,cAAc,SACd,EACA,gBACA,cAC+B,EAA9B,wBAAwB,SAAS","names":[],"sources":["../../../src/object-table/TableEditContainer.tsx"],"version":3,"file":"TableEditContainer.d.ts"}
|
|
@@ -6,6 +6,10 @@ interface TableRowProps<TData extends RowData> {
|
|
|
6
6
|
virtualRow: VirtualItem;
|
|
7
7
|
onRowClick?: (row: TData) => void;
|
|
8
8
|
renderCellContextMenu?: (row: TData, cell: Cell<TData, unknown>) => React.ReactNode;
|
|
9
|
+
focusedRowId?: string | null;
|
|
10
|
+
setFocusedRowId?: (rowId: string | null) => void;
|
|
11
|
+
isInEditMode?: boolean;
|
|
9
12
|
}
|
|
10
|
-
|
|
13
|
+
declare function TableRowInner<TData extends RowData>({ row, virtualRow, onRowClick, renderCellContextMenu, focusedRowId, setFocusedRowId, isInEditMode }: TableRowProps<TData>): React.ReactElement;
|
|
14
|
+
export declare const TableRow: typeof TableRowInner;
|
|
11
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,MAAM,KAAK,eAAe,uBAAwB;AAChE,cAAc,mBAAmB,yBAA0B;AAC3D,OAAO,WAA4B,OAAQ;UAIjC,cAAc,cAAc,SAAS;CAC7C,KAAK,IAAI;CACT,YAAY;CACZ,cAAcA,KAAK;CACnB,yBACEA,KAAK,OACLC,MAAM,KAAK,oBACR,MAAM;
|
|
1
|
+
{"mappings":"AAgBA,cAAc,MAAM,KAAK,eAAe,uBAAwB;AAChE,cAAc,mBAAmB,yBAA0B;AAC3D,OAAO,WAA4B,OAAQ;UAIjC,cAAc,cAAc,SAAS;CAC7C,KAAK,IAAI;CACT,YAAY;CACZ,cAAcA,KAAK;CACnB,yBACEA,KAAK,OACLC,MAAM,KAAK,oBACR,MAAM;CACX;CACA,mBAAmBC;CACnB;AACD;AAED,iBAAS,cAAc,cAAc,SAAS,EAC5C,KACA,YACA,YACA,uBACA,cACA,iBACA,cACqB,EAApB,cAAc,SAAS,MAAM;AA+BhC,OAAO,cAAM,iBAED","names":["row: TData","cell: Cell<TData, unknown>","rowId: string | null"],"sources":["../../../src/object-table/TableRow.tsx"],"version":3,"file":"TableRow.d.ts"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"","names":[],"sources":["../../../../../src/object-table/hooks/__tests__/useEditableTable.test.ts"],"version":3,"file":"useEditableTable.test.d.ts"}
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import type { ObjectOrInterfaceDefinition, QueryDefinition, SimplePropertyDef } from "@osdk/api";
|
|
1
|
+
import type { ObjectOrInterfaceDefinition, Osdk, PropertyKeys, QueryDefinition, SimplePropertyDef } from "@osdk/api";
|
|
2
2
|
import type { ObjectTableProps } from "../ObjectTableApi.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { EditableConfig } from "../utils/types.js";
|
|
4
4
|
export interface UseEditableTableProps<
|
|
5
5
|
Q extends ObjectOrInterfaceDefinition,
|
|
6
6
|
RDPs extends Record<string, SimplePropertyDef> = Record<string, never>,
|
|
7
7
|
FunctionColumns extends Record<string, QueryDefinition<{}>> = Record<string, never>
|
|
8
8
|
> {
|
|
9
|
+
editMode?: "always" | "manual";
|
|
9
10
|
onCellValueChanged?: ObjectTableProps<Q, RDPs, FunctionColumns>["onCellValueChanged"];
|
|
10
11
|
onSubmitEdits?: ObjectTableProps<Q, RDPs, FunctionColumns>["onSubmitEdits"];
|
|
11
12
|
}
|
|
12
|
-
export interface UseEditableTableResult {
|
|
13
|
-
cellEdits: Record<string, CellValueState>;
|
|
14
|
-
handleCellEdit: (cellId: string, state: CellValueState) => void;
|
|
15
|
-
handleSubmitEdits: () => Promise<void>;
|
|
16
|
-
clearEdits: () => void;
|
|
17
|
-
}
|
|
18
13
|
export declare function useEditableTable<
|
|
19
14
|
Q extends ObjectOrInterfaceDefinition,
|
|
20
15
|
RDPs extends Record<string, SimplePropertyDef> = Record<string, never>,
|
|
21
16
|
FunctionColumns extends Record<string, QueryDefinition<{}>> = Record<string, never>
|
|
22
|
-
>({ onCellValueChanged, onSubmitEdits }: UseEditableTableProps<Q, RDPs, FunctionColumns>):
|
|
17
|
+
>({ editMode, onCellValueChanged, onSubmitEdits }: UseEditableTableProps<Q, RDPs, FunctionColumns>): EditableConfig<Osdk.Instance<Q, "$allBaseProperties", PropertyKeys<Q>, RDPs>, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cACE,6BACA,iBACA,yBACK,WAAY;AAEnB,cAAc,wBAAwB,sBAAuB;
|
|
1
|
+
{"mappings":"AAgBA,cACE,6BACA,MACA,cACA,iBACA,yBACK,WAAY;AAEnB,cAAc,wBAAwB,sBAAuB;AAC7D,cAA4B,sBAAgC,mBAAoB;AAEhF,iBAAiB;CACf,UAAU;CACV,aAAa,eAAe,qBAAqB;CAIjD,wBAAwB,eAAe,gBAAgB,CAAE,MAAK;EAI9D;CACA,WAAW,WAAW;CAEtB,qBAAqB,iBACnB,GACA,MACA,iBACA;CAEF,gBAAgB,iBACd,GACA,MACA,iBACA;AACH;AAED,OAAO,iBAAS;CACd,UAAU;CACV,aAAa,eAAe,qBAAqB;CAIjD,wBAAwB,eAAe,gBAAgB,CAAE,MAAK;EAI9D,EACA,UACA,oBACA,eACgD,EAA/C,sBAAsB,GAAG,MAAM,mBAAmB,eACnD,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI","names":[],"sources":["../../../../src/object-table/hooks/useEditableTable.ts"],"version":3,"file":"useEditableTable.d.ts"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,sBAAsB,YAAa;AAEjD,OAAO,iBAAS,UAAUA,gBAAgB
|
|
1
|
+
{"mappings":"AAgBA,cAAc,sBAAsB,YAAa;AAEjD,OAAO,iBAAS,UAAUA,gBAAgB","names":["cellIdentifier: CellIdentifier"],"sources":["../../../../src/object-table/utils/getCellId.ts"],"version":3,"file":"getCellId.d.ts"}
|
|
@@ -8,7 +8,29 @@ export interface CellIdentifier {
|
|
|
8
8
|
rowId: string;
|
|
9
9
|
columnId: string;
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
export interface CellEditInfo<
|
|
12
|
+
TData extends RowData = unknown,
|
|
13
|
+
CellValue = unknown
|
|
14
|
+
> extends CellIdentifier {
|
|
15
|
+
newValue: CellValue;
|
|
16
|
+
oldValue: CellValue;
|
|
17
|
+
originalRowData: TData;
|
|
18
|
+
}
|
|
19
|
+
export type EditMode = {
|
|
20
|
+
type: "always"
|
|
21
|
+
isActive: true
|
|
22
|
+
} | {
|
|
23
|
+
type: "manual"
|
|
24
|
+
isActive: boolean
|
|
25
|
+
setActive: (value: boolean) => void
|
|
26
|
+
};
|
|
27
|
+
export interface EditableConfig<
|
|
28
|
+
TData extends RowData = unknown,
|
|
29
|
+
CellValue = unknown
|
|
30
|
+
> {
|
|
31
|
+
cellEdits: Record<string, CellEditInfo<TData, CellValue>>;
|
|
32
|
+
onCellEdit: (cellId: string, info: CellEditInfo<TData, CellValue>) => void;
|
|
33
|
+
onSubmitEdits?: () => Promise<boolean>;
|
|
34
|
+
clearEdits: () => void;
|
|
35
|
+
editMode: EditMode;
|
|
14
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,eAAe,uBAAwB;AAErD,iBAAiB,aAAa;CAC5B;CACA;CACA;AACD;AAED,iBAAiB,eAAe;CAC9B;CACA;AACD;AAED,iBAAiB,
|
|
1
|
+
{"mappings":"AAgBA,cAAc,eAAe,uBAAwB;AAErD,iBAAiB,aAAa;CAC5B;CACA;CACA;AACD;AAED,iBAAiB,eAAe;CAC9B;CACA;AACD;AAED,iBAAiB;CACf,cAAc;CACd;UACQ,eAAe;CACvB,UAAU;CACV,UAAU;CACV,iBAAiB;AAClB;AAED,YAAY,WACR;CAAE,MAAM;CAAU,UAAU;AAAM,IAClC;CAAE,MAAM;CAAU;CAAmB,YAAYA;AAAyB;AAE9E,iBAAiB;CACf,cAAc;CACd;EACA;CACA,WAAW,eAAe,aAAa,OAAO;CAC9C,aACEC,gBACAC,MAAM,aAAa,OAAO;CAE5B,sBAAsB;CACtB;CACA,UAAU;AACX","names":["value: boolean","cellId: string","info: CellEditInfo<TData, CellValue>"],"sources":["../../../../src/object-table/utils/types.ts"],"version":3,"file":"types.d.ts"}
|
|
@@ -3,7 +3,7 @@ export type { FilterDefinitionUnion, FilterListProps } from "../filter-list/Filt
|
|
|
3
3
|
export type { FilterComponentType, FilterListItemProps, FilterState, PropertyFilterDefinition } from "../filter-list/FilterListItemApi.js";
|
|
4
4
|
export { ObjectTable } from "../object-table/ObjectTable.js";
|
|
5
5
|
export type { ColumnDefinition, ColumnDefinitionLocator, ObjectTableProps } from "../object-table/ObjectTableApi.js";
|
|
6
|
-
export type {
|
|
6
|
+
export type { CellEditInfo } from "../object-table/utils/types.js";
|
|
7
7
|
export type { BaseTableProps } from "../object-table/Table.js";
|
|
8
8
|
export { BaseTable } from "../object-table/Table.js";
|
|
9
9
|
export { ColumnConfigDialog } from "../object-table/ColumnConfigDialog.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,SAAS,kBAAkB;AAC3B,cACE,uBACA,uBACK;AACP,cACE,qBACA,qBACA,aACA,gCACK;AAGP,SAAS,mBAAmB;AAC5B,cACE,kBACA,yBACA,wBACK;AACP,
|
|
1
|
+
{"mappings":"AAgBA,SAAS,kBAAkB;AAC3B,cACE,uBACA,uBACK;AACP,cACE,qBACA,qBACA,aACA,gCACK;AAGP,SAAS,mBAAmB;AAC5B,cACE,kBACA,yBACA,wBACK;AACP,cAAc,oBAAoB;AAGlC,cAAc,sBAAsB;AACpC,SAAS,iBAAiB;AAE1B,SAAS,0BAA0B;AACnC,cACE,yBACA,2BACK","names":[],"sources":["../../../src/public/experimental.ts"],"version":3,"file":"experimental.d.ts"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/react-components",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.11",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
"react": "^18.3.1",
|
|
67
67
|
"react-dom": "^18.3.1",
|
|
68
68
|
"typescript": "~5.5.4",
|
|
69
|
-
"@osdk/api": "2.8.0-beta.
|
|
70
|
-
"@osdk/client": "2.8.0-beta.
|
|
71
|
-
"@osdk/
|
|
69
|
+
"@osdk/api": "2.8.0-beta.15",
|
|
70
|
+
"@osdk/client": "2.8.0-beta.15",
|
|
71
|
+
"@osdk/monorepo.tsconfig": "~0.7.0-beta.1",
|
|
72
72
|
"@osdk/monorepo.api-extractor": "~0.7.0-beta.1",
|
|
73
|
-
"@osdk/
|
|
73
|
+
"@osdk/react": "0.10.0-beta.7"
|
|
74
74
|
},
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|