@osdk/react-components 0.44.0 → 0.44.1-main-f6806eea6aec61e22bc9ec12dfb4862eb72ee9e4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/build/browser/action-form/ActionFormApi.js.map +1 -1
  3. package/build/browser/util/UserAgent.js +1 -1
  4. package/build/browser/util/UserAgent.js.map +1 -1
  5. package/build/cjs/{chunk-N45BQ26H.cjs → chunk-4W3CNPZT.cjs} +3 -3
  6. package/build/cjs/chunk-4W3CNPZT.cjs.map +1 -0
  7. package/build/cjs/chunk-73QWODHO.cjs +11 -0
  8. package/build/cjs/{chunk-ZGMU42DU.cjs.map → chunk-73QWODHO.cjs.map} +1 -1
  9. package/build/cjs/{chunk-D7BAQUGI.cjs → chunk-FGZFHVMZ.cjs} +4 -4
  10. package/build/cjs/{chunk-D7BAQUGI.cjs.map → chunk-FGZFHVMZ.cjs.map} +1 -1
  11. package/build/cjs/{chunk-7ENXFKYI.cjs → chunk-FVIIWE72.cjs} +4 -4
  12. package/build/cjs/{chunk-7ENXFKYI.cjs.map → chunk-FVIIWE72.cjs.map} +1 -1
  13. package/build/cjs/{chunk-X65WLOZN.cjs → chunk-MAQN7OKP.cjs} +4 -4
  14. package/build/cjs/{chunk-X65WLOZN.cjs.map → chunk-MAQN7OKP.cjs.map} +1 -1
  15. package/build/cjs/{chunk-KTPA2XHA.cjs → chunk-N6WTMGQI.cjs} +4 -4
  16. package/build/cjs/{chunk-KTPA2XHA.cjs.map → chunk-N6WTMGQI.cjs.map} +1 -1
  17. package/build/cjs/chunk-ONDYYAA7.cjs +11 -0
  18. package/build/cjs/{chunk-W5LEU56M.cjs.map → chunk-ONDYYAA7.cjs.map} +1 -1
  19. package/build/cjs/chunk-QUHBBRGN.cjs +11 -0
  20. package/build/cjs/{chunk-PBJYYMMU.cjs.map → chunk-QUHBBRGN.cjs.map} +1 -1
  21. package/build/cjs/chunk-RKB7K42T.cjs +11 -0
  22. package/build/cjs/{chunk-YLXJJD54.cjs.map → chunk-RKB7K42T.cjs.map} +1 -1
  23. package/build/cjs/{chunk-EM7DJHRL.cjs → chunk-SK2QJ2OC.cjs} +4 -4
  24. package/build/cjs/{chunk-EM7DJHRL.cjs.map → chunk-SK2QJ2OC.cjs.map} +1 -1
  25. package/build/cjs/chunk-U5O24G5K.cjs +11 -0
  26. package/build/cjs/{chunk-RQM6LNLG.cjs.map → chunk-U5O24G5K.cjs.map} +1 -1
  27. package/build/cjs/{chunk-7ZXDJEGV.cjs → chunk-U7EBEV7V.cjs} +4 -4
  28. package/build/cjs/{chunk-7ZXDJEGV.cjs.map → chunk-U7EBEV7V.cjs.map} +1 -1
  29. package/build/cjs/{chunk-KOBBEHQ5.cjs → chunk-UEQIWYHD.cjs} +4 -4
  30. package/build/cjs/{chunk-KOBBEHQ5.cjs.map → chunk-UEQIWYHD.cjs.map} +1 -1
  31. package/build/cjs/{chunk-EM5ILZLP.cjs → chunk-WM3PCHEL.cjs} +4 -4
  32. package/build/cjs/{chunk-EM5ILZLP.cjs.map → chunk-WM3PCHEL.cjs.map} +1 -1
  33. package/build/cjs/public/experimental/action-form.cjs +4 -4
  34. package/build/cjs/public/experimental/action-form.d.cts +27 -5
  35. package/build/cjs/public/experimental/cbac-picker.cjs +11 -11
  36. package/build/cjs/public/experimental/document-viewer.cjs +4 -4
  37. package/build/cjs/public/experimental/email-viewer.cjs +3 -3
  38. package/build/cjs/public/experimental/excel-viewer.cjs +3 -3
  39. package/build/cjs/public/experimental/filter-list.cjs +15 -15
  40. package/build/cjs/public/experimental/image-viewer.cjs +3 -3
  41. package/build/cjs/public/experimental/markdown-renderer.cjs +3 -3
  42. package/build/cjs/public/experimental/object-table.cjs +21 -21
  43. package/build/cjs/public/experimental/pdf-viewer.cjs +7 -7
  44. package/build/cjs/public/experimental/tiff-renderer.cjs +3 -3
  45. package/build/cjs/public/experimental/video-viewer.cjs +3 -3
  46. package/build/cjs/public/experimental/xml-viewer.cjs +3 -3
  47. package/build/cjs/public/experimental.cjs +71 -71
  48. package/build/esm/action-form/ActionFormApi.js.map +1 -1
  49. package/build/esm/util/UserAgent.js +1 -1
  50. package/build/esm/util/UserAgent.js.map +1 -1
  51. package/build/types/action-form/ActionFormApi.d.ts +27 -5
  52. package/build/types/action-form/ActionFormApi.d.ts.map +1 -1
  53. package/docs/ActionForm.md +13 -13
  54. package/docs/ActionFormOverview.md +96 -0
  55. package/docs/ObjectTable.md +1 -1
  56. package/docs/ObjectTableOverview.md +1 -1
  57. package/package.json +8 -8
  58. package/build/cjs/chunk-N45BQ26H.cjs.map +0 -1
  59. package/build/cjs/chunk-PBJYYMMU.cjs +0 -11
  60. package/build/cjs/chunk-RQM6LNLG.cjs +0 -11
  61. package/build/cjs/chunk-W5LEU56M.cjs +0 -11
  62. package/build/cjs/chunk-YLXJJD54.cjs +0 -11
  63. package/build/cjs/chunk-ZGMU42DU.cjs +0 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @osdk/react-components
2
2
 
3
+ ## 0.44.1-main-f6806eea6aec61e22bc9ec12dfb4862eb72ee9e4
4
+
5
+ ### Patch Changes
6
+
7
+ - 5d63ff0: Add an `ActionFormOverview.md` one-pager (usage, an `ActionFormProps` props reference, a `Style API` token summary, and an Advanced section covering `BaseForm`) rendered by the Storybook ActionForm Docs page.
8
+ - @osdk/api@2.53.0-main-f6806eea6aec61e22bc9ec12dfb4862eb72ee9e4
9
+ - @osdk/client@2.53.0-main-f6806eea6aec61e22bc9ec12dfb4862eb72ee9e4
10
+ - @osdk/react@2.53.0-main-f6806eea6aec61e22bc9ec12dfb4862eb72ee9e4
11
+
3
12
  ## 0.44.0
4
13
 
5
14
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"ActionFormApi.js","names":[],"sources":["ActionFormApi.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 ActionDefinition,\n ActionEditResponse,\n ActionValidationResponse,\n} from \"@osdk/api\";\nimport type { ActionValidationError } from \"@osdk/client\";\n\nimport type {\n ActionParameters,\n FieldKey,\n FieldValueType,\n FormFieldDefinition,\n RendererFieldDefinition,\n} from \"./FormFieldApi.js\";\n\n/**\n * Props for the ActionForm component.\n *\n * A discriminated union ensures that controlled mode (formState provided)\n * always requires onFormStateChange, and uncontrolled mode makes `onFormStateChange` optional\n */\nexport type ActionFormProps<Q extends ActionDefinition<unknown>> =\n | (ActionFormConfigProps<Q> & {\n /**\n * Current form values (controlled mode). Provide together with\n * `onFormStateChange`; omit both for uncontrolled mode.\n */\n formState: FormState<Q>;\n /**\n * Called with a state updater whenever a field value changes. Required\n * in controlled mode.\n */\n onFormStateChange: (\n updater: (prevState: FormState<Q>) => FormState<Q>,\n ) => void;\n })\n | (ActionFormConfigProps<Q> & {\n formState?: undefined;\n onFormStateChange?: (\n updater: (prevState: FormState<Q>) => FormState<Q>,\n ) => void;\n });\n\ninterface ActionFormConfigProps<\n Q extends ActionDefinition<unknown>,\n> extends Pick<BaseFormProps, \"formTitle\" | \"isSubmitDisabled\"> {\n actionDefinition: Q;\n\n /**\n * Whether to show the form title.\n *\n * @default false\n */\n showFormTitle?: boolean;\n\n /**\n * If not supplied, field definitions are constructed from `ActionParameters`.\n */\n formFieldDefinitions?: ReadonlyArray<FormFieldDefinition<Q>>;\n\n /**\n * If supplied, this will override the default submit action.\n * By default, the action's applyAction will be called.\n *\n * @param formState all field values when onSubmit is called\n * @param applyAction the function to execute the action\n * @returns a promise of the submission response\n */\n onSubmit?: (\n formState: FormState<Q>,\n applyAction: (\n args: ActionParameters<Q>,\n ) => Promise<ActionEditResponse | undefined>,\n ) => Promise<unknown> | void;\n\n /**\n * Called when the validation response is returned from a validateOnly submission\n *\n * @param results the validation response\n */\n onValidationResponse?: (results: ActionValidationResponse) => void;\n\n /**\n * Called when the action is successfully executed from a non-validateOnly submission\n *\n * @param results the submission response\n */\n onSuccess?: (results: ActionEditResponse | undefined) => void;\n\n /**\n * Called when there is an error in form submission\n *\n * @param error the error that occurred\n */\n onError?: (error: FormError) => void;\n}\n\n/**\n * Form values mapping parameter names to their values\n */\nexport type FormState<Q extends ActionDefinition<unknown>> = {\n [K in FieldKey<Q>]?: FieldValueType<Q, K>;\n};\n\n/**\n * Form error discriminated union\n */\nexport type FormError =\n | { type: \"validation\"; error: ActionValidationError }\n | { type: \"submission\"; error: unknown }\n | { type: \"unknown\"; error: unknown };\n\n/**\n * A single item in the form content array — either a standalone field\n * or a section that groups multiple fields.\n */\nexport type FormContentItem =\n | { type: \"field\"; definition: RendererFieldDefinition }\n | { type: \"section\"; key: string; definition: FormSectionDefinition };\n\n/**\n * Configuration for a form section — a visual group of fields with\n * optional title bar, collapse behavior, and multi-column layout.\n */\nexport interface FormSectionDefinition {\n title: string;\n description?: string;\n fields: ReadonlyArray<RendererFieldDefinition>;\n /** Whether the section starts collapsed. Default `false`. */\n collapsedByDefault?: boolean;\n /** Whether to show the title bar. Default `true`. */\n showTitleBar?: boolean;\n /** Number of columns for fields. Default `1`. */\n columnCount?: 1 | 2;\n /** Visual style. `\"box\"` = bordered card, `\"minimal\"` = heading only. Default `\"box\"`. */\n style?: \"box\" | \"minimal\";\n}\n\n/**\n * Props for the `BaseForm` component, which renders a form without\n * OSDK data fetching.\n *\n * Uses a discriminated union so that controlled mode (`formState` provided)\n * always requires `onFieldValueChange`, and uncontrolled mode omits both.\n * `onSubmit` receives the current form state so callers can access values\n * even in uncontrolled mode.\n */\nexport type BaseFormProps = BaseFormCommonProps &\n (\n | {\n formState: Record<string, unknown>;\n onFieldValueChange: (fieldKey: string, value: unknown) => void;\n }\n | {\n formState?: undefined;\n onFieldValueChange?: (fieldKey: string, value: unknown) => void;\n }\n );\n\ninterface BaseFormCommonProps {\n formTitle?: string;\n formContent: ReadonlyArray<FormContentItem>;\n onSubmit: (formState: Record<string, unknown>) => Promise<void> | void;\n isSubmitDisabled?: boolean;\n isPending?: boolean;\n isLoading?: boolean;\n className?: string;\n /** Label for the submit button. Default `\"Submit\"`. */\n submitButtonText?: string;\n /** Visual variant of the submit button. Default `\"primary\"`. */\n submitButtonVariant?: \"primary\" | \"secondary\";\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"ActionFormApi.js","names":[],"sources":["ActionFormApi.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 ActionDefinition,\n ActionEditResponse,\n ActionValidationResponse,\n} from \"@osdk/api\";\nimport type { ActionValidationError } from \"@osdk/client\";\n\nimport type {\n ActionParameters,\n FieldKey,\n FieldValueType,\n FormFieldDefinition,\n RendererFieldDefinition,\n} from \"./FormFieldApi.js\";\n\n/**\n * Props for the ActionForm component.\n *\n * A discriminated union ensures that controlled mode (formState provided)\n * always requires onFormStateChange, and uncontrolled mode makes `onFormStateChange` optional\n */\nexport type ActionFormProps<Q extends ActionDefinition<unknown>> =\n | (ActionFormConfigProps<Q> & {\n /**\n * The current form values.\n * If provided, the form state is controlled.\n */\n formState: FormState<Q>;\n /**\n * Called when a field value changes, with a state updater.\n * Required when the form state is controlled; also fires in\n * uncontrolled mode so callers can observe changes.\n */\n onFormStateChange: (\n updater: (prevState: FormState<Q>) => FormState<Q>,\n ) => void;\n })\n | (ActionFormConfigProps<Q> & {\n formState?: undefined;\n onFormStateChange?: (\n updater: (prevState: FormState<Q>) => FormState<Q>,\n ) => void;\n });\n\ninterface ActionFormConfigProps<\n Q extends ActionDefinition<unknown>,\n> extends Pick<BaseFormProps, \"formTitle\" | \"isSubmitDisabled\"> {\n /**\n * The OSDK action definition. Its parameters drive the rendered fields\n * and the submission.\n */\n actionDefinition: Q;\n\n /**\n * Whether to show the form title.\n *\n * @default false\n */\n showFormTitle?: boolean;\n\n /**\n * If not supplied, field definitions are constructed from `ActionParameters`.\n */\n formFieldDefinitions?: ReadonlyArray<FormFieldDefinition<Q>>;\n\n /**\n * If supplied, this will override the default submit action.\n * By default, the action's applyAction will be called.\n *\n * @param formState all field values when onSubmit is called\n * @param applyAction the function to execute the action\n * @returns a promise of the submission response\n */\n onSubmit?: (\n formState: FormState<Q>,\n applyAction: (\n args: ActionParameters<Q>,\n ) => Promise<ActionEditResponse | undefined>,\n ) => Promise<unknown> | void;\n\n /**\n * Called when the validation response is returned from a validateOnly submission\n *\n * @param results the validation response\n */\n onValidationResponse?: (results: ActionValidationResponse) => void;\n\n /**\n * Called when the action is successfully executed from a non-validateOnly submission\n *\n * @param results the submission response\n */\n onSuccess?: (results: ActionEditResponse | undefined) => void;\n\n /**\n * Called when there is an error in form submission\n *\n * @param error the error that occurred\n */\n onError?: (error: FormError) => void;\n}\n\n/**\n * Form values mapping parameter names to their values\n */\nexport type FormState<Q extends ActionDefinition<unknown>> = {\n [K in FieldKey<Q>]?: FieldValueType<Q, K>;\n};\n\n/**\n * Form error discriminated union\n */\nexport type FormError =\n | { type: \"validation\"; error: ActionValidationError }\n | { type: \"submission\"; error: unknown }\n | { type: \"unknown\"; error: unknown };\n\n/**\n * A single item in the form content array — either a standalone field\n * or a section that groups multiple fields.\n */\nexport type FormContentItem =\n | { type: \"field\"; definition: RendererFieldDefinition }\n | { type: \"section\"; key: string; definition: FormSectionDefinition };\n\n/**\n * Configuration for a form section — a visual group of fields with\n * optional title bar, collapse behavior, and multi-column layout.\n */\nexport interface FormSectionDefinition {\n title: string;\n description?: string;\n fields: ReadonlyArray<RendererFieldDefinition>;\n /** Whether the section starts collapsed. Default `false`. */\n collapsedByDefault?: boolean;\n /** Whether to show the title bar. Default `true`. */\n showTitleBar?: boolean;\n /** Number of columns for fields. Default `1`. */\n columnCount?: 1 | 2;\n /** Visual style. `\"box\"` = bordered card, `\"minimal\"` = heading only. Default `\"box\"`. */\n style?: \"box\" | \"minimal\";\n}\n\n/**\n * Props for the `BaseForm` component, which renders a form without\n * OSDK data fetching.\n *\n * Uses a discriminated union so that controlled mode (`formState` provided)\n * always requires `onFieldValueChange`; uncontrolled mode omits `formState`\n * (`onFieldValueChange` stays optional).\n * `onSubmit` receives the current form state so callers can access values\n * even in uncontrolled mode.\n */\nexport type BaseFormProps = BaseFormCommonProps &\n (\n | {\n /**\n * The current field values keyed by field key.\n * If provided, the form state is controlled.\n */\n formState: Record<string, unknown>;\n /**\n * Called when a field value changes.\n * Required when the form state is controlled; also fires in\n * uncontrolled mode so callers can observe changes.\n */\n onFieldValueChange: (fieldKey: string, value: unknown) => void;\n }\n | {\n formState?: undefined;\n onFieldValueChange?: (fieldKey: string, value: unknown) => void;\n }\n );\n\ninterface BaseFormCommonProps {\n /** Title shown in the form header. Omit to hide the header. */\n formTitle?: string;\n /** The fields and sections to render, in order. */\n formContent: ReadonlyArray<FormContentItem>;\n /** Called when the form is submitted with valid values. Receives the current form state. */\n onSubmit: (formState: Record<string, unknown>) => Promise<void> | void;\n /** Whether the submit button is disabled. Default `false`. */\n isSubmitDisabled?: boolean;\n /** Whether a submission is in progress. Shows the submit button in a pending state. Default `false`. */\n isPending?: boolean;\n /** Whether the form is loading its fields. Shows a skeleton placeholder. Default `false`. */\n isLoading?: boolean;\n /** Additional CSS class name for the root element. */\n className?: string;\n /** Label for the submit button. Default `\"Submit\"`. */\n submitButtonText?: string;\n /** Visual variant of the submit button. Default `\"primary\"`. */\n submitButtonVariant?: \"primary\" | \"secondary\";\n}\n"],"mappings":"","ignoreList":[]}
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- const PACKAGE_USER_AGENT = `osdk-react-components/${"0.44.0"}`;
17
+ const PACKAGE_USER_AGENT = `osdk-react-components/${"0.44.1-main-f6806eea6aec61e22bc9ec12dfb4862eb72ee9e4"}`;
18
18
  export function componentUserAgent(componentName) {
19
19
  return `${PACKAGE_USER_AGENT}/${componentName}`;
20
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"UserAgent.js","names":["PACKAGE_USER_AGENT","componentUserAgent","componentName"],"sources":["UserAgent.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\nconst PACKAGE_USER_AGENT = `osdk-react-components/${process.env.PACKAGE_VERSION}`;\n\nexport function componentUserAgent(componentName: string): string {\n return `${PACKAGE_USER_AGENT}/${componentName}`;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMA,kBAAkB,GAAG,mCAAsD;AAEjF,OAAO,SAASC,kBAAkBA,CAACC,aAAqB,EAAU;EAChE,OAAO,GAAGF,kBAAkB,IAAIE,aAAa,EAAE;AACjD","ignoreList":[]}
1
+ {"version":3,"file":"UserAgent.js","names":["PACKAGE_USER_AGENT","componentUserAgent","componentName"],"sources":["UserAgent.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\nconst PACKAGE_USER_AGENT = `osdk-react-components/${process.env.PACKAGE_VERSION}`;\n\nexport function componentUserAgent(componentName: string): string {\n return `${PACKAGE_USER_AGENT}/${componentName}`;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMA,kBAAkB,GAAG,iFAAsD;AAEjF,OAAO,SAASC,kBAAkBA,CAACC,aAAqB,EAAU;EAChE,OAAO,GAAGF,kBAAkB,IAAIE,aAAa,EAAE;AACjD","ignoreList":[]}
@@ -10,7 +10,7 @@ var React__default = /*#__PURE__*/_interopDefault(React);
10
10
  // src/util/withOsdkMetrics.ts
11
11
 
12
12
  // src/util/UserAgent.ts
13
- var PACKAGE_USER_AGENT = `osdk-react-components/${"0.44.0"}`;
13
+ var PACKAGE_USER_AGENT = `osdk-react-components/${"0.44.1-main-f6806eea6aec61e22bc9ec12dfb4862eb72ee9e4"}`;
14
14
  function componentUserAgent(componentName) {
15
15
  return `${PACKAGE_USER_AGENT}/${componentName}`;
16
16
  }
@@ -26,5 +26,5 @@ function withOsdkMetrics(Component, name) {
26
26
  }
27
27
 
28
28
  exports.withOsdkMetrics = withOsdkMetrics;
29
- //# sourceMappingURL=chunk-N45BQ26H.cjs.map
30
- //# sourceMappingURL=chunk-N45BQ26H.cjs.map
29
+ //# sourceMappingURL=chunk-4W3CNPZT.cjs.map
30
+ //# sourceMappingURL=chunk-4W3CNPZT.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/util/UserAgent.ts","../../src/util/withOsdkMetrics.ts"],"names":["useRegisterUserAgent","React"],"mappings":";;;;;;;;;;;;AAgBA,IAAM,kBAAA,GAAqB,yBAAyB,sDAA2B,CAAA,CAAA;AACxE,SAAS,mBAAmB,aAAA,EAAe;AAChD,EAAA,OAAO,CAAA,EAAG,kBAAkB,CAAA,CAAA,EAAI,aAAa,CAAA,CAAA;AAC/C;;;ACKO,SAAS,eAAA,CAAgB,WAAW,IAAA,EAAM;AAC/C,EAAA,MAAM,UAAU,CAAA,KAAA,KAAS;AACvB,IAAAA,0BAAA,CAAqB,kBAAA,CAAmB,IAAI,CAAC,CAAA;AAC7C,IAAA,uBAAoBC,sBAAA,CAAM,aAAA,CAAc,SAAA,EAAW,KAAK,CAAA;AAAA,EAC1D,CAAA;AACA,EAAA,OAAA,CAAQ,WAAA,GAAc,mBAAmB,IAAI,CAAA,CAAA,CAAA;AAC7C,EAAA,OAAO,OAAA;AACT","file":"chunk-4W3CNPZT.cjs","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\nconst PACKAGE_USER_AGENT = `osdk-react-components/${process.env.PACKAGE_VERSION}`;\nexport function componentUserAgent(componentName) {\n return `${PACKAGE_USER_AGENT}/${componentName}`;\n}","/*\n * Copyright 2026 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 { useRegisterUserAgent } from \"@osdk/react\";\nimport React from \"react\";\nimport { componentUserAgent } from \"./UserAgent.js\";\n\n// `any` is required: FunctionComponent defaults to FunctionComponent<{}> which\n// rejects components with required props. A generic P parameter doesn't help\n// because TS can't infer both P and C simultaneously from a single argument.\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function withOsdkMetrics(Component, name) {\n const Wrapped = props => {\n useRegisterUserAgent(componentUserAgent(name));\n return /*#__PURE__*/React.createElement(Component, props);\n };\n Wrapped.displayName = `withOsdkMetrics(${name})`;\n return Wrapped;\n}"]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkGKDO6NU7_cjs = require('./chunk-GKDO6NU7.cjs');
4
+ var chunk4W3CNPZT_cjs = require('./chunk-4W3CNPZT.cjs');
5
+
6
+ // src/public/experimental/excel-viewer.ts
7
+ var ExcelViewer2 = chunk4W3CNPZT_cjs.withOsdkMetrics(chunkGKDO6NU7_cjs.ExcelViewer, "ExcelViewer");
8
+
9
+ exports.ExcelViewer = ExcelViewer2;
10
+ //# sourceMappingURL=chunk-73QWODHO.cjs.map
11
+ //# sourceMappingURL=chunk-73QWODHO.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/experimental/excel-viewer.ts"],"names":["ExcelViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,YAAAA,GAAcC,iCAAA,CAAgBD,6BAAA,EAAc,aAAa","file":"chunk-ZGMU42DU.cjs","sourcesContent":["/*\n * Copyright 2026 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\n// BaseExcelViewer\nexport { BaseExcelViewer } from \"../../excel-viewer/BaseExcelViewer.js\";\n// ExcelViewer (Media wrapper)\nimport { ExcelViewer as _ExcelViewer } from \"../../excel-viewer/ExcelViewer.js\";\nimport { withOsdkMetrics } from \"../../util/withOsdkMetrics.js\";\nexport const ExcelViewer = withOsdkMetrics(_ExcelViewer, \"ExcelViewer\");"]}
1
+ {"version":3,"sources":["../../src/public/experimental/excel-viewer.ts"],"names":["ExcelViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,YAAAA,GAAcC,iCAAA,CAAgBD,6BAAA,EAAc,aAAa","file":"chunk-73QWODHO.cjs","sourcesContent":["/*\n * Copyright 2026 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\n// BaseExcelViewer\nexport { BaseExcelViewer } from \"../../excel-viewer/BaseExcelViewer.js\";\n// ExcelViewer (Media wrapper)\nimport { ExcelViewer as _ExcelViewer } from \"../../excel-viewer/ExcelViewer.js\";\nimport { withOsdkMetrics } from \"../../util/withOsdkMetrics.js\";\nexport const ExcelViewer = withOsdkMetrics(_ExcelViewer, \"ExcelViewer\");"]}
@@ -6,7 +6,7 @@ var chunk3KMJ6NKF_cjs = require('./chunk-3KMJ6NKF.cjs');
6
6
  var chunkYE4F6HIR_cjs = require('./chunk-YE4F6HIR.cjs');
7
7
  var chunk7LXS66DW_cjs = require('./chunk-7LXS66DW.cjs');
8
8
  var chunkUCTQICPR_cjs = require('./chunk-UCTQICPR.cjs');
9
- var chunkN45BQ26H_cjs = require('./chunk-N45BQ26H.cjs');
9
+ var chunk4W3CNPZT_cjs = require('./chunk-4W3CNPZT.cjs');
10
10
  var button = require('@base-ui/react/button');
11
11
  var classnames3 = require('classnames');
12
12
  var React15 = require('react');
@@ -5577,7 +5577,7 @@ function summarizeFilterValue(definition, state) {
5577
5577
  }
5578
5578
 
5579
5579
  // src/public/experimental/filter-list.ts
5580
- var FilterList2 = chunkN45BQ26H_cjs.withOsdkMetrics(FilterList, "FilterList");
5580
+ var FilterList2 = chunk4W3CNPZT_cjs.withOsdkMetrics(FilterList, "FilterList");
5581
5581
 
5582
5582
  exports.BaseFilterList = BaseFilterList;
5583
5583
  exports.FilterInput = FilterInput;
@@ -5592,5 +5592,5 @@ exports.narrowObjectSet = narrowObjectSet;
5592
5592
  exports.serializeFilterStates = serializeFilterStates;
5593
5593
  exports.summarizeFilterValue = summarizeFilterValue;
5594
5594
  exports.useFilterListState = useFilterListState;
5595
- //# sourceMappingURL=chunk-D7BAQUGI.cjs.map
5596
- //# sourceMappingURL=chunk-D7BAQUGI.cjs.map
5595
+ //# sourceMappingURL=chunk-FGZFHVMZ.cjs.map
5596
+ //# sourceMappingURL=chunk-FGZFHVMZ.cjs.map