@osdk/react-components 0.71.0 → 0.71.1-main-3371bee33d5cc9209801cbc570e6e71e623b49a5

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 (101) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/browser/action-form/ActionForm.js +0 -1
  3. package/build/browser/action-form/ActionForm.js.map +1 -1
  4. package/build/browser/util/UserAgent.js +1 -1
  5. package/build/browser/util/UserAgent.js.map +1 -1
  6. package/build/cjs/chunk-5334XCUT.cjs +11 -0
  7. package/build/cjs/{chunk-3UGRXRKV.cjs.map → chunk-5334XCUT.cjs.map} +1 -1
  8. package/build/cjs/{chunk-NTUWUKZB.cjs → chunk-5OLXIP3F.cjs} +4 -4
  9. package/build/cjs/{chunk-NTUWUKZB.cjs.map → chunk-5OLXIP3F.cjs.map} +1 -1
  10. package/build/cjs/{chunk-32Y2RY7H.cjs → chunk-7GCJLKBB.cjs} +4 -4
  11. package/build/cjs/{chunk-32Y2RY7H.cjs.map → chunk-7GCJLKBB.cjs.map} +1 -1
  12. package/build/cjs/{chunk-CAONDUZN.cjs → chunk-CF7EH4I3.cjs} +4 -4
  13. package/build/cjs/{chunk-CAONDUZN.cjs.map → chunk-CF7EH4I3.cjs.map} +1 -1
  14. package/build/cjs/chunk-CUVGXOR4.cjs +12 -0
  15. package/build/cjs/{chunk-N5OUOCF4.cjs.map → chunk-CUVGXOR4.cjs.map} +1 -1
  16. package/build/cjs/{chunk-MAXE2BB2.cjs → chunk-EYREEL5L.cjs} +4 -4
  17. package/build/cjs/{chunk-MAXE2BB2.cjs.map → chunk-EYREEL5L.cjs.map} +1 -1
  18. package/build/cjs/{chunk-RQPSLWEV.cjs → chunk-FQP75B6R.cjs} +5 -5
  19. package/build/cjs/{chunk-RQPSLWEV.cjs.map → chunk-FQP75B6R.cjs.map} +1 -1
  20. package/build/cjs/chunk-GEK44QQA.cjs +11 -0
  21. package/build/cjs/{chunk-UP36MPTW.cjs.map → chunk-GEK44QQA.cjs.map} +1 -1
  22. package/build/cjs/{chunk-MO3NEYJU.cjs → chunk-K32OS35W.cjs} +4 -4
  23. package/build/cjs/{chunk-MO3NEYJU.cjs.map → chunk-K32OS35W.cjs.map} +1 -1
  24. package/build/cjs/chunk-KQOO7P2C.cjs +11 -0
  25. package/build/cjs/{chunk-DAXAAR7K.cjs.map → chunk-KQOO7P2C.cjs.map} +1 -1
  26. package/build/cjs/chunk-KX4KHSIJ.cjs +11 -0
  27. package/build/cjs/{chunk-HRJWZ6E4.cjs.map → chunk-KX4KHSIJ.cjs.map} +1 -1
  28. package/build/cjs/{chunk-SMASMA2B.cjs → chunk-QCJTUIL4.cjs} +4 -4
  29. package/build/cjs/{chunk-SMASMA2B.cjs.map → chunk-QCJTUIL4.cjs.map} +1 -1
  30. package/build/cjs/{chunk-5LWCGOHS.cjs → chunk-R4P6Z6DN.cjs} +5 -5
  31. package/build/cjs/{chunk-5LWCGOHS.cjs.map → chunk-R4P6Z6DN.cjs.map} +1 -1
  32. package/build/cjs/{chunk-ZL44QNV2.cjs → chunk-SGCKQX6C.cjs} +4 -4
  33. package/build/cjs/{chunk-ZL44QNV2.cjs.map → chunk-SGCKQX6C.cjs.map} +1 -1
  34. package/build/cjs/{chunk-PZ5LUOUW.cjs → chunk-TNS3VOUR.cjs} +4 -4
  35. package/build/cjs/{chunk-PZ5LUOUW.cjs.map → chunk-TNS3VOUR.cjs.map} +1 -1
  36. package/build/cjs/{chunk-Y5JKJFPB.cjs → chunk-TQGAFP6X.cjs} +4 -5
  37. package/build/cjs/chunk-TQGAFP6X.cjs.map +1 -0
  38. package/build/cjs/{chunk-OZNDHMVV.cjs → chunk-TS5P4S22.cjs} +8 -8
  39. package/build/cjs/{chunk-OZNDHMVV.cjs.map → chunk-TS5P4S22.cjs.map} +1 -1
  40. package/build/cjs/chunk-UIYQRPGJ.cjs +12 -0
  41. package/build/cjs/{chunk-UURCX3QO.cjs.map → chunk-UIYQRPGJ.cjs.map} +1 -1
  42. package/build/cjs/{chunk-VTGFV25H.cjs → chunk-USH2JE3P.cjs} +4 -4
  43. package/build/cjs/{chunk-VTGFV25H.cjs.map → chunk-USH2JE3P.cjs.map} +1 -1
  44. package/build/cjs/chunk-VHBZXTYS.cjs +11 -0
  45. package/build/cjs/{chunk-ZANR3SS5.cjs.map → chunk-VHBZXTYS.cjs.map} +1 -1
  46. package/build/cjs/chunk-WDHH6GMT.cjs +11 -0
  47. package/build/cjs/{chunk-L5TK77NC.cjs.map → chunk-WDHH6GMT.cjs.map} +1 -1
  48. package/build/cjs/{chunk-JTAL7SFA.cjs → chunk-WQ6IB2TI.cjs} +4 -4
  49. package/build/cjs/{chunk-JTAL7SFA.cjs.map → chunk-WQ6IB2TI.cjs.map} +1 -1
  50. package/build/cjs/chunk-X4NFUEBD.cjs +34 -0
  51. package/build/cjs/{chunk-ROMTZA5M.cjs.map → chunk-X4NFUEBD.cjs.map} +1 -1
  52. package/build/cjs/{chunk-5T55VLU6.cjs → chunk-Y3UEYVZ5.cjs} +4 -4
  53. package/build/cjs/{chunk-5T55VLU6.cjs.map → chunk-Y3UEYVZ5.cjs.map} +1 -1
  54. package/build/cjs/{chunk-O2QKCDAZ.cjs → chunk-Y4WHNRLQ.cjs} +3 -3
  55. package/build/cjs/chunk-Y4WHNRLQ.cjs.map +1 -0
  56. package/build/cjs/chunk-YU77KU3F.cjs +48 -0
  57. package/build/cjs/{chunk-RTY7B4BL.cjs.map → chunk-YU77KU3F.cjs.map} +1 -1
  58. package/build/cjs/public/action-form.cjs +4 -4
  59. package/build/cjs/public/document-viewer.cjs +4 -4
  60. package/build/cjs/public/email-viewer.cjs +3 -3
  61. package/build/cjs/public/experimental/action-form.cjs +5 -5
  62. package/build/cjs/public/experimental/cbac-picker.cjs +8 -8
  63. package/build/cjs/public/experimental/document-viewer.cjs +5 -5
  64. package/build/cjs/public/experimental/email-viewer.cjs +5 -5
  65. package/build/cjs/public/experimental/filter-list.cjs +16 -16
  66. package/build/cjs/public/experimental/image-viewer.cjs +5 -5
  67. package/build/cjs/public/experimental/markdown-renderer.cjs +7 -7
  68. package/build/cjs/public/experimental/object-table.cjs +23 -23
  69. package/build/cjs/public/experimental/pdf-viewer.cjs +25 -25
  70. package/build/cjs/public/experimental/spreadsheet-viewer.cjs +5 -5
  71. package/build/cjs/public/experimental/tiff-renderer.cjs +7 -7
  72. package/build/cjs/public/experimental/video-viewer.cjs +5 -5
  73. package/build/cjs/public/experimental/workshop-module.cjs +2 -2
  74. package/build/cjs/public/experimental/xml-viewer.cjs +5 -5
  75. package/build/cjs/public/experimental.cjs +109 -109
  76. package/build/cjs/public/filter-list.cjs +15 -15
  77. package/build/cjs/public/image-viewer.cjs +3 -3
  78. package/build/cjs/public/markdown-viewer.cjs +3 -3
  79. package/build/cjs/public/object-table.cjs +22 -22
  80. package/build/cjs/public/pdf-viewer.cjs +7 -7
  81. package/build/cjs/public/spreadsheet-viewer.cjs +3 -3
  82. package/build/cjs/public/tiff-viewer.cjs +3 -3
  83. package/build/cjs/public/video-viewer.cjs +3 -3
  84. package/build/cjs/public/xml-viewer.cjs +3 -3
  85. package/build/esm/action-form/ActionForm.js +0 -1
  86. package/build/esm/action-form/ActionForm.js.map +1 -1
  87. package/build/esm/util/UserAgent.js +1 -1
  88. package/build/esm/util/UserAgent.js.map +1 -1
  89. package/package.json +8 -8
  90. package/build/cjs/chunk-3UGRXRKV.cjs +0 -11
  91. package/build/cjs/chunk-DAXAAR7K.cjs +0 -11
  92. package/build/cjs/chunk-HRJWZ6E4.cjs +0 -11
  93. package/build/cjs/chunk-L5TK77NC.cjs +0 -11
  94. package/build/cjs/chunk-N5OUOCF4.cjs +0 -12
  95. package/build/cjs/chunk-O2QKCDAZ.cjs.map +0 -1
  96. package/build/cjs/chunk-ROMTZA5M.cjs +0 -34
  97. package/build/cjs/chunk-RTY7B4BL.cjs +0 -48
  98. package/build/cjs/chunk-UP36MPTW.cjs +0 -11
  99. package/build/cjs/chunk-UURCX3QO.cjs +0 -12
  100. package/build/cjs/chunk-Y5JKJFPB.cjs.map +0 -1
  101. package/build/cjs/chunk-ZANR3SS5.cjs +0 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @osdk/react-components
2
2
 
3
+ ## 0.71.1-main-3371bee33d5cc9209801cbc570e6e71e623b49a5
4
+
5
+ ### Patch Changes
6
+
7
+ - bccff2b: Stop rethrowing submission errors so they no longer appear on the submit button tooltip
8
+ - Updated dependencies [0bcfdc9]
9
+ - Updated dependencies [b8cfd7c]
10
+ - @osdk/client@2.90.0-main-3371bee33d5cc9209801cbc570e6e71e623b49a5
11
+ - @osdk/api@2.90.0-main-3371bee33d5cc9209801cbc570e6e71e623b49a5
12
+ - @osdk/aip-core@0.13.0
13
+ - @osdk/react@2.90.0-main-3371bee33d5cc9209801cbc570e6e71e623b49a5
14
+
3
15
  ## 0.71.0
4
16
 
5
17
  ### Minor Changes
@@ -196,7 +196,6 @@ export const ActionForm = typedReactMemo(function ({
196
196
  type: "submission",
197
197
  error: e
198
198
  });
199
- throw e;
200
199
  }
201
200
  }, [coerceFormState, osdkValidateAction, onValidationResponse, onSubmit, osdkApplyAction, onSuccess, onError]);
202
201
  const handleFieldValueChange = useCallback((fieldKey, value) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ActionForm.js","names":["useOsdkAction","useOsdkMetadata","React","useCallback","useEffect","useMemo","useRef","useState","useDebouncedCallback","typedReactMemo","BaseForm","coerceFieldValue","getDefaultFieldDefinitions","EMPTY_FORM_CONTENT","EMPTY_VALIDATION_ERRORS","getValidationErrors","response","errors","criterion","submissionCriteria","result","push","message","configuredFailureMessage","paramKey","param","Object","entries","parameters","label","getParameterErrorMessage","evaluatedConstraints","length","constraints","c","toRendererDef","def","defaultValue","fieldDefinition","fieldKey","String","fieldType","type","fieldComponentProps","undefined","ActionForm","actionDefinition","formTitle","showFormTitle","formFieldDefinitions","formContentDefinitions","formState","controlledFormState","onFormStateChange","isSubmitDisabled","onSubmit","onValidationResponse","onSuccess","onError","applyAction","osdkApplyAction","validateAction","osdkValidateAction","isPending","metadata","loading","metadataLoading","error","metadataError","validationErrors","setValidationErrors","extractFieldDefinition","customFieldDefinitions","map","item","definition","key","fields","rendererFieldDefinitions","defaults","coerceFormState","rawState","coerced","value","formStateRef","current","debouncedValidate","validation","handleSubmit","rawFormState","e","handleFieldValueChange","prev","resolvedTitle","displayName","apiName","commonProps","formContent","isLoading","onFieldValueChange","createElement","_extends"],"sources":["ActionForm.tsx"],"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 ActionMetadata,\n ActionValidationResponse,\n} from \"@osdk/api\";\nimport { useOsdkAction, useOsdkMetadata } from \"@osdk/react\";\nimport React, {\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\n\nimport { useDebouncedCallback } from \"../shared/hooks/useDebouncedCallback.js\";\nimport { typedReactMemo } from \"../shared/typedMemo.js\";\nimport type {\n ActionFormProps,\n FormErrorEntry,\n FormContentItem,\n FormState,\n} from \"./ActionFormApi.js\";\nimport { BaseForm } from \"./BaseForm.js\";\nimport type {\n FormFieldDefinition,\n RendererFieldDefinition,\n} from \"./FormFieldApi.js\";\nimport { coerceFieldValue } from \"./utils/coerceFieldValue.js\";\nimport { getDefaultFieldDefinitions } from \"./utils/getDefaultFieldDefinitions.js\";\n\nconst EMPTY_FORM_CONTENT: ReadonlyArray<FormContentItem> = [];\nconst EMPTY_VALIDATION_ERRORS: ReadonlyArray<FormErrorEntry> = [];\n\nfunction getValidationErrors(\n response: ActionValidationResponse,\n): ReadonlyArray<FormErrorEntry> {\n const errors: FormErrorEntry[] = [];\n\n for (const criterion of response.submissionCriteria) {\n if (criterion.result === \"INVALID\") {\n errors.push({\n message:\n criterion.configuredFailureMessage ??\n \"Submission criteria not met. Review the values and try again.\",\n });\n }\n }\n\n for (const [paramKey, param] of Object.entries(response.parameters)) {\n if (param.result === \"INVALID\") {\n errors.push({\n label: paramKey,\n message: getParameterErrorMessage(param.evaluatedConstraints),\n });\n }\n }\n\n if (errors.length === 0 && response.result === \"INVALID\") {\n errors.push({ message: \"Validation failed\" });\n }\n\n return errors.length > 0 ? errors : EMPTY_VALIDATION_ERRORS;\n}\n\n// TODO: Derive constraint-specific error messages from evaluatedConstraints\n// (e.g. \"Must have at least 3 characters\" for stringLength constraints)\n// and surface them inline next to the field, matching Foundry ActionForm behavior.\nfunction getParameterErrorMessage(\n constraints: ReadonlyArray<{\n type: string;\n configuredFailureMessage?: string;\n }>,\n): string {\n for (const c of constraints) {\n if (\"configuredFailureMessage\" in c && c.configuredFailureMessage != null) {\n return c.configuredFailureMessage;\n }\n }\n return \"The parameter value is invalid\";\n}\n\nfunction toRendererDef<Q extends ActionDefinition<unknown>>(\n def: FormFieldDefinition<Q>,\n parameters: ActionMetadata[\"parameters\"] | undefined,\n): RendererFieldDefinition {\n const { defaultValue, ...fieldDefinition } = def;\n return {\n ...fieldDefinition,\n fieldKey: String(def.fieldKey),\n fieldType: parameters?.[String(def.fieldKey)]?.type,\n fieldComponentProps:\n defaultValue === undefined\n ? def.fieldComponentProps\n : { ...def.fieldComponentProps, defaultValue },\n } as RendererFieldDefinition;\n}\n\nexport const ActionForm: <Q extends ActionDefinition<unknown>>(\n props: ActionFormProps<Q>,\n) => React.ReactElement = typedReactMemo(function ActionFormFn<\n Q extends ActionDefinition<unknown>,\n>({\n actionDefinition,\n formTitle,\n showFormTitle = false,\n formFieldDefinitions,\n formContentDefinitions,\n formState: controlledFormState,\n onFormStateChange,\n isSubmitDisabled,\n onSubmit,\n onValidationResponse,\n onSuccess,\n onError,\n}: ActionFormProps<Q>): React.ReactElement {\n const {\n applyAction: osdkApplyAction,\n validateAction: osdkValidateAction,\n isPending,\n } = useOsdkAction(actionDefinition);\n const {\n metadata,\n loading: metadataLoading,\n error: metadataError,\n } = useOsdkMetadata(actionDefinition);\n\n useEffect(\n function saveMetadataError() {\n if (metadataError != null) {\n onError?.({ type: \"unknown\", error: metadataError });\n }\n },\n [metadataError, onError],\n );\n\n const parameters = metadata?.parameters;\n\n const [validationErrors, setValidationErrors] = useState<\n ReadonlyArray<FormErrorEntry>\n >(EMPTY_VALIDATION_ERRORS);\n\n const extractFieldDefinition = useCallback(\n (def: FormFieldDefinition<Q>): RendererFieldDefinition =>\n toRendererDef(def, parameters),\n [parameters],\n );\n\n const customFieldDefinitions = useMemo(():\n | ReadonlyArray<FormContentItem>\n | undefined => {\n if (formContentDefinitions != null) {\n return formContentDefinitions.map(\n (item): FormContentItem =>\n item.type === \"field\"\n ? {\n type: \"field\",\n definition: extractFieldDefinition(item.definition),\n }\n : {\n type: \"section\",\n key: item.key,\n definition: {\n ...item.definition,\n fields: item.definition.fields.map(extractFieldDefinition),\n },\n },\n );\n }\n if (formFieldDefinitions != null) {\n return formFieldDefinitions.map(\n (def): FormContentItem => ({\n type: \"field\",\n definition: extractFieldDefinition(def),\n }),\n );\n }\n return undefined;\n }, [formContentDefinitions, formFieldDefinitions, extractFieldDefinition]);\n\n const rendererFieldDefinitions = useMemo(():\n | ReadonlyArray<FormContentItem>\n | undefined => {\n if (metadata != null && customFieldDefinitions == null) {\n const defaults = getDefaultFieldDefinitions(metadata);\n return defaults.length === 0\n ? EMPTY_FORM_CONTENT\n : defaults.map(\n (def): FormContentItem => ({ type: \"field\", definition: def }),\n );\n }\n return undefined;\n }, [metadata, customFieldDefinitions]);\n\n const formContent =\n customFieldDefinitions ?? rendererFieldDefinitions ?? EMPTY_FORM_CONTENT;\n\n const coerceFormState = useCallback(\n (rawState: Record<string, unknown>): Record<string, unknown> => {\n const coerced: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(rawState)) {\n coerced[key] = coerceFieldValue(parameters?.[key]?.type, value);\n }\n return coerced;\n },\n [parameters],\n );\n\n const formStateRef = useRef<Record<string, unknown>>(\n controlledFormState != null\n ? (controlledFormState as Record<string, unknown>)\n : {},\n );\n if (controlledFormState != null) {\n formStateRef.current = controlledFormState as Record<string, unknown>;\n }\n\n const debouncedValidate = useDebouncedCallback(async () => {\n if (onSubmit != null) {\n return;\n }\n const formState = coerceFormState(formStateRef.current);\n try {\n const validation = await osdkValidateAction(formState);\n if (validation != null) {\n onValidationResponse?.(validation);\n if (validation.result === \"INVALID\") {\n setValidationErrors(getValidationErrors(validation));\n } else {\n setValidationErrors(EMPTY_VALIDATION_ERRORS);\n }\n }\n } catch {\n // Validation errors from the network are not surfaced inline;\n // they will be caught at submit time.\n }\n }, 500);\n\n const handleSubmit = useCallback(\n async (rawFormState: Record<string, unknown>) => {\n const formState = coerceFormState(rawFormState) as FormState<Q>;\n try {\n if (onSubmit != null) {\n await onSubmit(formState, osdkApplyAction);\n } else {\n const validation = await osdkValidateAction(formState);\n if (validation != null) {\n onValidationResponse?.(validation);\n if (validation.result === \"INVALID\") {\n setValidationErrors(getValidationErrors(validation));\n return;\n }\n }\n setValidationErrors(EMPTY_VALIDATION_ERRORS);\n const result = await osdkApplyAction(formState);\n onSuccess?.(result);\n }\n } catch (e) {\n onError?.({ type: \"submission\", error: e });\n throw e;\n }\n },\n [\n coerceFormState,\n osdkValidateAction,\n onValidationResponse,\n onSubmit,\n osdkApplyAction,\n onSuccess,\n onError,\n ],\n );\n\n const handleFieldValueChange = useCallback(\n (fieldKey: string, value: unknown) => {\n setValidationErrors(EMPTY_VALIDATION_ERRORS);\n formStateRef.current = { ...formStateRef.current, [fieldKey]: value };\n onFormStateChange?.(\n (prev) =>\n ({\n ...prev,\n [fieldKey]: value,\n }) as FormState<Q>,\n );\n void debouncedValidate();\n },\n [onFormStateChange, debouncedValidate],\n );\n\n const resolvedTitle = showFormTitle\n ? (formTitle ?? metadata?.displayName ?? actionDefinition.apiName)\n : undefined;\n\n const isControlled = controlledFormState != null;\n\n const commonProps = {\n formTitle: resolvedTitle,\n formContent,\n onSubmit: handleSubmit,\n isSubmitDisabled,\n isPending,\n isLoading: metadataLoading,\n onFieldValueChange: handleFieldValueChange,\n validationErrors,\n };\n\n if (!isControlled) {\n return <BaseForm {...commonProps} />;\n }\n\n return <BaseForm {...commonProps} formState={controlledFormState} />;\n});\n\n// The inner render fn is anonymous in the published build, so set a displayName\n// on the memo wrapper for React DevTools and the OSDK devtools component tree.\n(ActionForm as { displayName?: string }).displayName = \"ActionForm\";\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOA,SAASA,aAAa,EAAEC,eAAe,QAAQ,aAAa;AAC5D,OAAOC,KAAK,IACVC,WAAW,EACXC,SAAS,EACTC,OAAO,EACPC,MAAM,EACNC,QAAQ,QACH,OAAO;AAEd,SAASC,oBAAoB,QAAQ,yCAAyC;AAC9E,SAASC,cAAc,QAAQ,wBAAwB;AAOvD,SAASC,QAAQ,QAAQ,eAAe;AAKxC,SAASC,gBAAgB,QAAQ,6BAA6B;AAC9D,SAASC,0BAA0B,QAAQ,uCAAuC;AAElF,MAAMC,kBAAkD,GAAG,EAAE;AAC7D,MAAMC,uBAAsD,GAAG,EAAE;AAEjE,SAASC,mBAAmBA,CAC1BC,QAAkC,EACH;EAC/B,MAAMC,MAAwB,GAAG,EAAE;EAEnC,KAAK,MAAMC,SAAS,IAAIF,QAAQ,CAACG,kBAAkB,EAAE;IACnD,IAAID,SAAS,CAACE,MAAM,KAAK,SAAS,EAAE;MAClCH,MAAM,CAACI,IAAI,CAAC;QACVC,OAAO,EACLJ,SAAS,CAACK,wBAAwB,IAClC;MACJ,CAAC,CAAC;IACJ;EACF;EAEA,KAAK,MAAM,CAACC,QA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IACtBlC,gBAAgB;IAChBS,SAAS;IACTmC,SAAS,EAAEhC,eAAe;IAC1BiC,kBAAkB,EAAER,sBAAsB;IAC1CtB;EACF,CAAC;EAED,IAAI,EAbiBjB,mBAAmB,IAAI,IAAI,CAa/B,EAAE;IACjB,oBAAOlD,KAAA,CAAAkG,aAAA,CAAC1F,QAAQ,EAAKsF,WAAc,CAAC;EACtC;EAEA,oBAAO9F,KAAA,CAAAkG,aAAA,CAAC1F,QAAQ,EAAA2F,QAAA,KAAKL,WAAW;IAAE7C,SAAS,EAAEC;EAAoB,EAAE,CAAC;AACtE,CAAC,CAAC;;AAEF;AACA;AACCP,UAAU,CAA8BiD,WAAW,GAAG,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"ActionForm.js","names":["useOsdkAction","useOsdkMetadata","React","useCallback","useEffect","useMemo","useRef","useState","useDebouncedCallback","typedReactMemo","BaseForm","coerceFieldValue","getDefaultFieldDefinitions","EMPTY_FORM_CONTENT","EMPTY_VALIDATION_ERRORS","getValidationErrors","response","errors","criterion","submissionCriteria","result","push","message","configuredFailureMessage","paramKey","param","Object","entries","parameters","label","getParameterErrorMessage","evaluatedConstraints","length","constraints","c","toRendererDef","def","defaultValue","fieldDefinition","fieldKey","String","fieldType","type","fieldComponentProps","undefined","ActionForm","actionDefinition","formTitle","showFormTitle","formFieldDefinitions","formContentDefinitions","formState","controlledFormState","onFormStateChange","isSubmitDisabled","onSubmit","onValidationResponse","onSuccess","onError","applyAction","osdkApplyAction","validateAction","osdkValidateAction","isPending","metadata","loading","metadataLoading","error","metadataError","validationErrors","setValidationErrors","extractFieldDefinition","customFieldDefinitions","map","item","definition","key","fields","rendererFieldDefinitions","defaults","coerceFormState","rawState","coerced","value","formStateRef","current","debouncedValidate","validation","handleSubmit","rawFormState","e","handleFieldValueChange","prev","resolvedTitle","displayName","apiName","commonProps","formContent","isLoading","onFieldValueChange","createElement","_extends"],"sources":["ActionForm.tsx"],"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 ActionMetadata,\n ActionValidationResponse,\n} from \"@osdk/api\";\nimport { useOsdkAction, useOsdkMetadata } from \"@osdk/react\";\nimport React, {\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\n\nimport { useDebouncedCallback } from \"../shared/hooks/useDebouncedCallback.js\";\nimport { typedReactMemo } from \"../shared/typedMemo.js\";\nimport type {\n ActionFormProps,\n FormErrorEntry,\n FormContentItem,\n FormState,\n} from \"./ActionFormApi.js\";\nimport { BaseForm } from \"./BaseForm.js\";\nimport type {\n FormFieldDefinition,\n RendererFieldDefinition,\n} from \"./FormFieldApi.js\";\nimport { coerceFieldValue } from \"./utils/coerceFieldValue.js\";\nimport { getDefaultFieldDefinitions } from \"./utils/getDefaultFieldDefinitions.js\";\n\nconst EMPTY_FORM_CONTENT: ReadonlyArray<FormContentItem> = [];\nconst EMPTY_VALIDATION_ERRORS: ReadonlyArray<FormErrorEntry> = [];\n\nfunction getValidationErrors(\n response: ActionValidationResponse,\n): ReadonlyArray<FormErrorEntry> {\n const errors: FormErrorEntry[] = [];\n\n for (const criterion of response.submissionCriteria) {\n if (criterion.result === \"INVALID\") {\n errors.push({\n message:\n criterion.configuredFailureMessage ??\n \"Submission criteria not met. Review the values and try again.\",\n });\n }\n }\n\n for (const [paramKey, param] of Object.entries(response.parameters)) {\n if (param.result === \"INVALID\") {\n errors.push({\n label: paramKey,\n message: getParameterErrorMessage(param.evaluatedConstraints),\n });\n }\n }\n\n if (errors.length === 0 && response.result === \"INVALID\") {\n errors.push({ message: \"Validation failed\" });\n }\n\n return errors.length > 0 ? errors : EMPTY_VALIDATION_ERRORS;\n}\n\n// TODO: Derive constraint-specific error messages from evaluatedConstraints\n// (e.g. \"Must have at least 3 characters\" for stringLength constraints)\n// and surface them inline next to the field, matching Foundry ActionForm behavior.\nfunction getParameterErrorMessage(\n constraints: ReadonlyArray<{\n type: string;\n configuredFailureMessage?: string;\n }>,\n): string {\n for (const c of constraints) {\n if (\"configuredFailureMessage\" in c && c.configuredFailureMessage != null) {\n return c.configuredFailureMessage;\n }\n }\n return \"The parameter value is invalid\";\n}\n\nfunction toRendererDef<Q extends ActionDefinition<unknown>>(\n def: FormFieldDefinition<Q>,\n parameters: ActionMetadata[\"parameters\"] | undefined,\n): RendererFieldDefinition {\n const { defaultValue, ...fieldDefinition } = def;\n return {\n ...fieldDefinition,\n fieldKey: String(def.fieldKey),\n fieldType: parameters?.[String(def.fieldKey)]?.type,\n fieldComponentProps:\n defaultValue === undefined\n ? def.fieldComponentProps\n : { ...def.fieldComponentProps, defaultValue },\n } as RendererFieldDefinition;\n}\n\nexport const ActionForm: <Q extends ActionDefinition<unknown>>(\n props: ActionFormProps<Q>,\n) => React.ReactElement = typedReactMemo(function ActionFormFn<\n Q extends ActionDefinition<unknown>,\n>({\n actionDefinition,\n formTitle,\n showFormTitle = false,\n formFieldDefinitions,\n formContentDefinitions,\n formState: controlledFormState,\n onFormStateChange,\n isSubmitDisabled,\n onSubmit,\n onValidationResponse,\n onSuccess,\n onError,\n}: ActionFormProps<Q>): React.ReactElement {\n const {\n applyAction: osdkApplyAction,\n validateAction: osdkValidateAction,\n isPending,\n } = useOsdkAction(actionDefinition);\n const {\n metadata,\n loading: metadataLoading,\n error: metadataError,\n } = useOsdkMetadata(actionDefinition);\n\n useEffect(\n function saveMetadataError() {\n if (metadataError != null) {\n onError?.({ type: \"unknown\", error: metadataError });\n }\n },\n [metadataError, onError],\n );\n\n const parameters = metadata?.parameters;\n\n const [validationErrors, setValidationErrors] = useState<\n ReadonlyArray<FormErrorEntry>\n >(EMPTY_VALIDATION_ERRORS);\n\n const extractFieldDefinition = useCallback(\n (def: FormFieldDefinition<Q>): RendererFieldDefinition =>\n toRendererDef(def, parameters),\n [parameters],\n );\n\n const customFieldDefinitions = useMemo(():\n | ReadonlyArray<FormContentItem>\n | undefined => {\n if (formContentDefinitions != null) {\n return formContentDefinitions.map(\n (item): FormContentItem =>\n item.type === \"field\"\n ? {\n type: \"field\",\n definition: extractFieldDefinition(item.definition),\n }\n : {\n type: \"section\",\n key: item.key,\n definition: {\n ...item.definition,\n fields: item.definition.fields.map(extractFieldDefinition),\n },\n },\n );\n }\n if (formFieldDefinitions != null) {\n return formFieldDefinitions.map(\n (def): FormContentItem => ({\n type: \"field\",\n definition: extractFieldDefinition(def),\n }),\n );\n }\n return undefined;\n }, [formContentDefinitions, formFieldDefinitions, extractFieldDefinition]);\n\n const rendererFieldDefinitions = useMemo(():\n | ReadonlyArray<FormContentItem>\n | undefined => {\n if (metadata != null && customFieldDefinitions == null) {\n const defaults = getDefaultFieldDefinitions(metadata);\n return defaults.length === 0\n ? EMPTY_FORM_CONTENT\n : defaults.map(\n (def): FormContentItem => ({ type: \"field\", definition: def }),\n );\n }\n return undefined;\n }, [metadata, customFieldDefinitions]);\n\n const formContent =\n customFieldDefinitions ?? rendererFieldDefinitions ?? EMPTY_FORM_CONTENT;\n\n const coerceFormState = useCallback(\n (rawState: Record<string, unknown>): Record<string, unknown> => {\n const coerced: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(rawState)) {\n coerced[key] = coerceFieldValue(parameters?.[key]?.type, value);\n }\n return coerced;\n },\n [parameters],\n );\n\n const formStateRef = useRef<Record<string, unknown>>(\n controlledFormState != null\n ? (controlledFormState as Record<string, unknown>)\n : {},\n );\n if (controlledFormState != null) {\n formStateRef.current = controlledFormState as Record<string, unknown>;\n }\n\n const debouncedValidate = useDebouncedCallback(async () => {\n if (onSubmit != null) {\n return;\n }\n const formState = coerceFormState(formStateRef.current);\n try {\n const validation = await osdkValidateAction(formState);\n if (validation != null) {\n onValidationResponse?.(validation);\n if (validation.result === \"INVALID\") {\n setValidationErrors(getValidationErrors(validation));\n } else {\n setValidationErrors(EMPTY_VALIDATION_ERRORS);\n }\n }\n } catch {\n // Validation errors from the network are not surfaced inline;\n // they will be caught at submit time.\n }\n }, 500);\n\n const handleSubmit = useCallback(\n async (rawFormState: Record<string, unknown>) => {\n const formState = coerceFormState(rawFormState) as FormState<Q>;\n try {\n if (onSubmit != null) {\n await onSubmit(formState, osdkApplyAction);\n } else {\n const validation = await osdkValidateAction(formState);\n if (validation != null) {\n onValidationResponse?.(validation);\n if (validation.result === \"INVALID\") {\n setValidationErrors(getValidationErrors(validation));\n return;\n }\n }\n setValidationErrors(EMPTY_VALIDATION_ERRORS);\n const result = await osdkApplyAction(formState);\n onSuccess?.(result);\n }\n } catch (e) {\n onError?.({ type: \"submission\", error: e });\n }\n },\n [\n coerceFormState,\n osdkValidateAction,\n onValidationResponse,\n onSubmit,\n osdkApplyAction,\n onSuccess,\n onError,\n ],\n );\n\n const handleFieldValueChange = useCallback(\n (fieldKey: string, value: unknown) => {\n setValidationErrors(EMPTY_VALIDATION_ERRORS);\n formStateRef.current = { ...formStateRef.current, [fieldKey]: value };\n onFormStateChange?.(\n (prev) =>\n ({\n ...prev,\n [fieldKey]: value,\n }) as FormState<Q>,\n );\n void debouncedValidate();\n },\n [onFormStateChange, debouncedValidate],\n );\n\n const resolvedTitle = showFormTitle\n ? (formTitle ?? metadata?.displayName ?? actionDefinition.apiName)\n : undefined;\n\n const isControlled = controlledFormState != null;\n\n const commonProps = {\n formTitle: resolvedTitle,\n formContent,\n onSubmit: handleSubmit,\n isSubmitDisabled,\n isPending,\n isLoading: metadataLoading,\n onFieldValueChange: handleFieldValueChange,\n validationErrors,\n };\n\n if (!isControlled) {\n return <BaseForm {...commonProps} />;\n }\n\n return <BaseForm {...commonProps} formState={controlledFormState} />;\n});\n\n// The inner render fn is anonymous in the published build, so set a displayName\n// on the memo wrapper for React DevTools and the OSDK devtools component tree.\n(ActionForm as { displayName?: string }).displayName = \"ActionForm\";\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOA,SAASA,aAAa,EAAEC,eAAe,QAAQ,aAAa;AAC5D,OAAOC,KAAK,IACVC,WAAW,EACXC,SAAS,EACTC,OAAO,EACPC,MAAM,EACNC,QAAQ,QACH,OAAO;AAEd,SAASC,oBAAoB,QAAQ,yCAAyC;AAC9E,SAASC,cAAc,QAAQ,wBAAwB;AAOvD,SAASC,QAAQ,QAAQ,eAAe;AAKxC,SAASC,gBAAgB,QAAQ,6BAA6B;AAC9D,SAASC,0BAA0B,QAAQ,uCAAuC;AAElF,MAAMC,kBAAkD,GAAG,EAAE;AAC7D,MAAMC,uBAAsD,GAAG,EAAE;AAEjE,SAASC,mBAAmBA,CAC1BC,QAAkC,EACH;EAC/B,MAAMC,MAAwB,GAAG,EAAE;EAEnC,KAAK,MAAMC,SAAS,IAAIF,QAAQ,CAACG,kBAAkB,EAAE;IACnD,IAAID,SAAS,CAACE,MAAM,KAAK,SAAS,EAAE;MAClCH,MAAM,CAACI,IAAI,CAAC;QACVC,OAAO,EACLJ,SAAS,CAACK,wBAAwB,IAClC;MACJ,CAAC,CAAC;IACJ;EACF;EAEA,KAAK,MAAM,CAACC,QAAQ,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACX,QAAQ,CAACY,UAAU,CAAC,EAAE;IACnE,IAAIH,KAAK,CAACL,MAAM,KAAK,SAAS,EAAE;MAC9BH,MAAM,CAACI,IAAI,CAAC;QACVQ,KAAK,EAAEL,QAAQ;QACfF,OAAO,EAAEQ,wBAAwB,CAACL,KAAK,CAACM,oBAAoB;MAC9D,CAAC,CAAC;IACJ;EACF;EAEA,IAAId,MAAM,CAACe,MAAM,KAAK,CAAC,IAAIhB,QAAQ,CAACI,MAAM,KA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C,CAAC;;AAEF;AACA;AACCP,UAAU,CAA8BiD,WAAW,GAAG,YAAY","ignoreList":[]}
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- const PACKAGE_USER_AGENT = `osdk-react-components/${"0.71.0"}`;
17
+ const PACKAGE_USER_AGENT = `osdk-react-components/${"0.71.1-main-3371bee33d5cc9209801cbc570e6e71e623b49a5"}`;
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":[]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkRVZE7LPI_cjs = require('./chunk-RVZE7LPI.cjs');
4
+ var chunkY4WHNRLQ_cjs = require('./chunk-Y4WHNRLQ.cjs');
5
+
6
+ // src/public/xml-viewer.ts
7
+ var XmlViewer2 = chunkY4WHNRLQ_cjs.withOsdkMetrics(chunkRVZE7LPI_cjs.XmlViewer, "XmlViewer");
8
+
9
+ exports.XmlViewer = XmlViewer2;
10
+ //# sourceMappingURL=chunk-5334XCUT.cjs.map
11
+ //# sourceMappingURL=chunk-5334XCUT.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/xml-viewer.ts"],"names":["XmlViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,UAAAA,GAAYC,iCAAA,CAAgBD,2BAAA,EAAY,WAAW","file":"chunk-3UGRXRKV.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// BaseXmlViewer\nexport { BaseXmlViewer } from \"../xml-viewer/BaseXmlViewer.js\";\n// XmlViewer (Media wrapper)\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nimport { XmlViewer as _XmlViewer } from \"../xml-viewer/XmlViewer.js\";\nexport const XmlViewer = withOsdkMetrics(_XmlViewer, \"XmlViewer\");"]}
1
+ {"version":3,"sources":["../../src/public/xml-viewer.ts"],"names":["XmlViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,UAAAA,GAAYC,iCAAA,CAAgBD,2BAAA,EAAY,WAAW","file":"chunk-5334XCUT.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// BaseXmlViewer\nexport { BaseXmlViewer } from \"../xml-viewer/BaseXmlViewer.js\";\n// XmlViewer (Media wrapper)\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nimport { XmlViewer as _XmlViewer } from \"../xml-viewer/XmlViewer.js\";\nexport const XmlViewer = withOsdkMetrics(_XmlViewer, \"XmlViewer\");"]}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk4KHF42ZL_cjs = require('./chunk-4KHF42ZL.cjs');
4
- var chunkO2QKCDAZ_cjs = require('./chunk-O2QKCDAZ.cjs');
4
+ var chunkY4WHNRLQ_cjs = require('./chunk-Y4WHNRLQ.cjs');
5
5
  var icons = require('@blueprintjs/icons');
6
6
  var classnames = require('classnames');
7
7
  require('pdfjs-dist/web/pdf_viewer.css');
@@ -187,12 +187,12 @@ function usePdfViewerInstance(options) {
187
187
  }
188
188
 
189
189
  // src/public/pdf-viewer.ts
190
- var PdfViewer2 = chunkO2QKCDAZ_cjs.withOsdkMetrics(chunk4KHF42ZL_cjs.PdfViewer, "PdfViewer");
190
+ var PdfViewer2 = chunkY4WHNRLQ_cjs.withOsdkMetrics(chunk4KHF42ZL_cjs.PdfViewer, "PdfViewer");
191
191
 
192
192
  exports.PdfViewer = PdfViewer2;
193
193
  exports.PdfViewerContent = PdfViewerContent;
194
194
  exports.PdfViewerProvider = PdfViewerProvider;
195
195
  exports.usePdfViewerContext = usePdfViewerContext;
196
196
  exports.usePdfViewerInstance = usePdfViewerInstance;
197
- //# sourceMappingURL=chunk-NTUWUKZB.cjs.map
198
- //# sourceMappingURL=chunk-NTUWUKZB.cjs.map
197
+ //# sourceMappingURL=chunk-5OLXIP3F.cjs.map
198
+ //# sourceMappingURL=chunk-5OLXIP3F.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/pdf-viewer/components/PdfViewerContent.tsx","../../src/pdf-viewer/PdfViewerContext.tsx","../../src/public/pdf-viewer.ts"],"names":["EMPTY_ANNOTATION_ARRAY","usePdfViewerCore","usePdfAnnotationsByPage","usePdfFormFields","useRef","useEffect","classnames","BasePdfViewer_default","React","Spin","ErrorIcon","PdfAnnotationOverlay","useContext","usePdfViewerState","usePdfHighlightMode","useMemo","PdfViewer","withOsdkMetrics"],"mappings":";;;;;;;;;;;;;;AA0BO,SAAS,gBAAA,CAAiB;AAAA,EAC/B,GAAA;AAAA,EACA,WAAA,GAAcA,wCAAA;AAAA,EACd,iBAAA;AAAA,EACA,W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AA,GAAc,QAAQ,WAAA,IAAeH,wCAAA;AAC3C,EAAA,MAAM,iBAAA,GAAoBE,0CAAwB,WAAW,CAAA;AAG7D,EAAA,MAAM,gBAAA,GAAmB,OAAA,CAAQ,eAAA,IAAmB,OAAA,CAAQ,gBAAA,IAAoB,KAAA;AAChF,EAAA,MAAM,cAAA,GAAiB,QAAQ,cAAA,IAAkB,KAAA;AACjD,EAAA,MAAM,cAAA,GAAiB,OAAA,CAAQ,YAAA,IAAgB,IAAA,IAAQ,aAAA;AACvD,EAAA,MAAM;AAAA,IACJ,iBAAA;AAAA,IACA;AAAA,GACF,GAAI,OAAA;AACJ,EAAA,OAAOa,cAAQ,OAAO;AAAA,IACpB,GAAG,MAAA;AAAA,IACH,gBAAA;AAAA,IACA,mBAAA;AAAA,IACA,mBAAA;AAAA,IACA,aAAA;AAAA,IACA,cAAA;AAAA,IACA,WAAA;AAAA,IACA,iBAAA;AAAA,IACA,iBAAA;AAAA,IACA,cAAA;AAAA,IACA,cAAA;AAAA,IACA;AAAA,GACF,CAAA,EAAI,CAAC,MAAA,EAAQ,gBAAA,EAAkB,qBAAqB,mBAAA,EAAqB,aAAA,EAAe,cAAA,EAAgB,WAAA,EAAa,iBAAA,EAAmB,iBAAA,EAAmB,cAAA,EAAgB,cAAA,EAAgB,YAAY,CAAC,CAAA;AAC1M;;;ACjEO,IAAMC,UAAAA,GAAYC,iCAAA,CAAgBD,2BAAA,EAAY,WAAW","file":"chunk-NTUWUKZB.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\nimport { Error as ErrorIcon, Spin } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport \"pdfjs-dist/web/pdf_viewer.css\";\nimport React, { useEffect, useRef } from \"react\";\nimport { EMPTY_ANNOTATION_ARRAY } from \"../constants.js\";\nimport { usePdfAnnotationsByPage } from \"../hooks/usePdfAnnotationsByPage.js\";\nimport { usePdfFormFields } from \"../hooks/usePdfFormFields.js\";\nimport { usePdfViewerCore } from \"../hooks/usePdfViewerCore.js\";\nimport { PdfAnnotationOverlay } from \"./PdfAnnotationOverlay.js\";\nimport styles from \"../BasePdfViewer.module.css\";\nexport function PdfViewerContent({\n src,\n annotations = EMPTY_ANNOTATION_ARRAY,\n onAnnotationClick,\n defaultPage,\n initialPage,\n defaultScale,\n initialScale,\n onPageChange: onPageChangeProp,\n onScaleChange: onScaleChangeProp,\n formData,\n onFormChange,\n className\n}) {\n const viewer = usePdfViewerCore({\n src,\n defaultPage,\n initialPage,\n defaultScale,\n initialScale\n });\n const annotationsByPage = usePdfAnnotationsByPage(annotations);\n usePdfFormFields({\n pdfViewerRef: viewer.pdfViewerRef,\n eventBusRef: viewer.eventBusRef,\n document: viewer.document,\n formData,\n onFormChange\n });\n\n // Use refs for callbacks to avoid firing on initial mount\n const onPageChangeRef = useRef(onPageChangeProp);\n onPageChangeRef.current = onPageChangeProp;\n const onScaleChangeRef = useRef(onScaleChangeProp);\n onScaleChangeRef.current = onScaleChangeProp;\n const isInitialMountRef = useRef(true);\n useEffect(function notifyPageChange() {\n if (isInitialMountRef.current) {\n return;\n }\n onPageChangeRef.current?.(viewer.currentPage);\n }, [viewer.currentPage]);\n useEffect(function notifyScaleChange() {\n if (isInitialMountRef.current) {\n return;\n }\n onScaleChangeRef.current?.(viewer.scale);\n }, [viewer.scale]);\n useEffect(function clearInitialMount() {\n isInitialMountRef.current = false;\n }, []);\n const rootClassName = classnames(styles.pdfViewer, className);\n if (viewer.loading) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.loadingContainer\n }, /*#__PURE__*/React.createElement(Spin, {\n className: styles.spinnerIcon\n }), \"Loading\\u2026\"));\n }\n if (viewer.error != null) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.errorContainer\n }, /*#__PURE__*/React.createElement(ErrorIcon, {\n className: styles.errorIcon\n }), \"Failed to load PDF: \", viewer.error.message));\n }\n if (viewer.document == null) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.loadingContainer\n }, \"No document\"));\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.scrollContainerWrapper\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: viewer.containerRef,\n className: styles.scrollContainer\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: viewer.viewerRef,\n className: \"pdfViewer\"\n }), viewer.portalTargets.map(target => {\n const pageAnnotations = annotationsByPage[target.pageNumber] ?? EMPTY_ANNOTATION_ARRAY;\n if (pageAnnotations.length === 0) {\n return null;\n }\n return /*#__PURE__*/React.createElement(PdfAnnotationOverlay, {\n key: target.pageNumber,\n target: target,\n annotations: pageAnnotations,\n onAnnotationClick: onAnnotationClick\n });\n }))));\n}","/*\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 React, { createContext, useContext, useMemo } from \"react\";\nimport { EMPTY_ANNOTATION_ARRAY } from \"./constants.js\";\nimport { usePdfAnnotationsByPage } from \"./hooks/usePdfAnnotationsByPage.js\";\nimport { usePdfFormFields } from \"./hooks/usePdfFormFields.js\";\nimport { usePdfHighlightMode } from \"./hooks/usePdfHighlightMode.js\";\nimport { usePdfViewerState } from \"./hooks/usePdfViewerState.js\";\n\n/** The shape of the value provided by {@link PdfViewerProvider}. */\n\nconst PdfViewerContext = /*#__PURE__*/createContext(null);\n/** Provides {@link PdfViewerContextValue} to descendant components. */\nexport function PdfViewerProvider({\n value,\n children\n}) {\n return /*#__PURE__*/React.createElement(PdfViewerContext.Provider, {\n value: value\n }, children);\n}\n\n/**\n * Returns the nearest {@link PdfViewerContextValue} from a {@link PdfViewerProvider}.\n * Throws if called outside a provider.\n */\nexport function usePdfViewerContext() {\n const ctx = useContext(PdfViewerContext);\n if (ctx == null) {\n throw new Error(\"usePdfViewerContext must be used within a PdfViewerProvider\");\n }\n return ctx;\n}\n\n/**\n * Consumer-facing setup hook analogous to react-hook-form's `useForm()`.\n * Accepts viewer options and returns a {@link PdfViewerContextValue} suitable\n * for passing to {@link PdfViewerProvider}.\n */\nexport function usePdfViewerInstance(options) {\n const viewer = usePdfViewerState({\n src: options.src,\n defaultPage: options.defaultPage,\n initialPage: options.initialPage,\n defaultScale: options.defaultScale,\n initialScale: options.initialScale,\n defaultAutoSize: options.defaultAutoSize,\n initialAutoSize: options.initialAutoSize,\n defaultSidebarOpen: options.defaultSidebarOpen,\n initialSidebarOpen: options.initialSidebarOpen,\n sidebarMode: options.sidebarMode,\n onDownload: options.onDownload\n });\n const {\n highlightModeActive,\n toggleHighlightMode\n } = usePdfHighlightMode({\n pdfViewerRef: viewer.pdfViewerRef,\n document: viewer.document,\n enabled: options.enableHighlight ?? options.highlightEnabled ?? false,\n onTextHighlight: options.onTextHighlight,\n onHighlightDelete: options.onHighlightDelete\n });\n const {\n hasFormFields,\n submitFormData\n } = usePdfFormFields({\n pdfViewerRef: viewer.pdfViewerRef,\n eventBusRef: viewer.eventBusRef,\n document: viewer.document,\n formData: options.formData,\n onFormSubmit: options.onFormSubmit,\n onFormChange: options.onFormChange\n });\n const annotations = options.annotations ?? EMPTY_ANNOTATION_ARRAY;\n const annotationsByPage = usePdfAnnotationsByPage(annotations);\n\n // `highlightEnabled` is the deprecated spelling of `enableHighlight`.\n const highlightEnabled = options.enableHighlight ?? options.highlightEnabled ?? false;\n const enableDownload = options.enableDownload ?? false;\n const enableFormSave = options.onFormSubmit != null && hasFormFields;\n const {\n onAnnotationClick,\n outlineIcons\n } = options;\n return useMemo(() => ({\n ...viewer,\n highlightEnabled,\n highlightModeActive,\n toggleHighlightMode,\n hasFormFields,\n submitFormData,\n annotations,\n annotationsByPage,\n onAnnotationClick,\n enableDownload,\n enableFormSave,\n outlineIcons\n }), [viewer, highlightEnabled, highlightModeActive, toggleHighlightMode, hasFormFields, submitFormData, annotations, annotationsByPage, onAnnotationClick, enableDownload, enableFormSave, outlineIcons]);\n}","/*\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\n// BasePdfViewer\nexport { BasePdfViewer } from \"../pdf-viewer/BasePdfViewer.js\";\n// PdfViewer building blocks\nexport { PdfViewerAnnotationLayer } from \"../pdf-viewer/components/PdfViewerAnnotationLayer.js\";\nexport { PdfViewerContent } from \"../pdf-viewer/components/PdfViewerContent.js\";\nexport { PdfViewerOutlineSidebar } from \"../pdf-viewer/components/PdfViewerOutlineSidebar.js\";\nexport { PdfViewerSearchBar } from \"../pdf-viewer/components/PdfViewerSearchBar.js\";\nexport { PdfViewerSidebar } from \"../pdf-viewer/components/PdfViewerSidebar.js\";\nexport { PdfViewerToolbar } from \"../pdf-viewer/components/PdfViewerToolbar.js\";\n\n// PdfViewer hooks — primitive\nexport { usePdfAnnotationPortals } from \"../pdf-viewer/hooks/usePdfAnnotationPortals.js\";\nexport { usePdfAnnotationsByPage } from \"../pdf-viewer/hooks/usePdfAnnotationsByPage.js\";\nexport { usePdfDocument } from \"../pdf-viewer/hooks/usePdfDocument.js\";\nexport { usePdfFormFields } from \"../pdf-viewer/hooks/usePdfFormFields.js\";\nexport { usePdfHighlightMode } from \"../pdf-viewer/hooks/usePdfHighlightMode.js\";\nexport { usePdfOutline } from \"../pdf-viewer/hooks/usePdfOutline.js\";\nexport { usePdfViewer } from \"../pdf-viewer/hooks/usePdfViewer.js\";\nexport { usePdfViewerSearch } from \"../pdf-viewer/hooks/usePdfViewerSearch.js\";\nexport { usePdfViewerSync } from \"../pdf-viewer/hooks/usePdfViewerSync.js\";\n\n// PdfViewer context\n\nexport { PdfViewerProvider, usePdfViewerContext, usePdfViewerInstance } from \"../pdf-viewer/PdfViewerContext.js\";\n\n// PdfViewer hooks — composition\nexport { usePdfViewerCore } from \"../pdf-viewer/hooks/usePdfViewerCore.js\";\nexport { usePdfViewerState } from \"../pdf-viewer/hooks/usePdfViewerState.js\";\n\n// PdfViewer (Media wrapper)\nimport { PdfViewer as _PdfViewer } from \"../pdf-viewer/PdfViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nexport const PdfViewer = withOsdkMetrics(_PdfViewer, \"PdfViewer\");"]}
1
+ {"version":3,"sources":["../../src/pdf-viewer/components/PdfViewerContent.tsx","../../src/pdf-viewer/PdfViewerContext.tsx","../../src/public/pdf-viewer.ts"],"names":["EMPTY_ANNOTATION_ARRAY","usePdfViewerCore","usePdfAnnotationsByPage","usePdfFormFields","useRef","useEffect","classnames","BasePdfViewer_default","React","Spin","ErrorIcon","PdfAnnotationOverlay","useContext","usePdfViewerState","usePdfHighlightMode","useMemo","PdfViewer","withO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AAA,IACjB,UAAU,OAAA,CAAQ,QAAA;AAAA,IAClB,cAAc,OAAA,CAAQ,YAAA;AAAA,IACtB,cAAc,OAAA,CAAQ;AAAA,GACvB,CAAA;AACD,EAAA,MAAM,WAAA,GAAc,QAAQ,WAAA,IAAeH,wCAAA;AAC3C,EAAA,MAAM,iBAAA,GAAoBE,0CAAwB,WAAW,CAAA;AAG7D,EAAA,MAAM,gBAAA,GAAmB,OAAA,CAAQ,eAAA,IAAmB,OAAA,CAAQ,gBAAA,IAAoB,KAAA;AAChF,EAAA,MAAM,cAAA,GAAiB,QAAQ,cAAA,IAAkB,KAAA;AACjD,EAAA,MAAM,cAAA,GAAiB,OAAA,CAAQ,YAAA,IAAgB,IAAA,IAAQ,aAAA;AACvD,EAAA,MAAM;AAAA,IACJ,iBAAA;AAAA,IACA;AAAA,GACF,GAAI,OAAA;AACJ,EAAA,OAAOa,cAAQ,OAAO;AAAA,IACpB,GAAG,MAAA;AAAA,IACH,gBAAA;AAAA,IACA,mBAAA;AAAA,IACA,mBAAA;AAAA,IACA,aAAA;AAAA,IACA,cAAA;AAAA,IACA,WAAA;AAAA,IACA,iBAAA;AAAA,IACA,iBAAA;AAAA,IACA,cAAA;AAAA,IACA,cAAA;AAAA,IACA;AAAA,GACF,CAAA,EAAI,CAAC,MAAA,EAAQ,gBAAA,EAAkB,qBAAqB,mBAAA,EAAqB,aAAA,EAAe,cAAA,EAAgB,WAAA,EAAa,iBAAA,EAAmB,iBAAA,EAAmB,cAAA,EAAgB,cAAA,EAAgB,YAAY,CAAC,CAAA;AAC1M;;;ACjEO,IAAMC,UAAAA,GAAYC,iCAAA,CAAgBD,2BAAA,EAAY,WAAW","file":"chunk-5OLXIP3F.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\nimport { Error as ErrorIcon, Spin } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport \"pdfjs-dist/web/pdf_viewer.css\";\nimport React, { useEffect, useRef } from \"react\";\nimport { EMPTY_ANNOTATION_ARRAY } from \"../constants.js\";\nimport { usePdfAnnotationsByPage } from \"../hooks/usePdfAnnotationsByPage.js\";\nimport { usePdfFormFields } from \"../hooks/usePdfFormFields.js\";\nimport { usePdfViewerCore } from \"../hooks/usePdfViewerCore.js\";\nimport { PdfAnnotationOverlay } from \"./PdfAnnotationOverlay.js\";\nimport styles from \"../BasePdfViewer.module.css\";\nexport function PdfViewerContent({\n src,\n annotations = EMPTY_ANNOTATION_ARRAY,\n onAnnotationClick,\n defaultPage,\n initialPage,\n defaultScale,\n initialScale,\n onPageChange: onPageChangeProp,\n onScaleChange: onScaleChangeProp,\n formData,\n onFormChange,\n className\n}) {\n const viewer = usePdfViewerCore({\n src,\n defaultPage,\n initialPage,\n defaultScale,\n initialScale\n });\n const annotationsByPage = usePdfAnnotationsByPage(annotations);\n usePdfFormFields({\n pdfViewerRef: viewer.pdfViewerRef,\n eventBusRef: viewer.eventBusRef,\n document: viewer.document,\n formData,\n onFormChange\n });\n\n // Use refs for callbacks to avoid firing on initial mount\n const onPageChangeRef = useRef(onPageChangeProp);\n onPageChangeRef.current = onPageChangeProp;\n const onScaleChangeRef = useRef(onScaleChangeProp);\n onScaleChangeRef.current = onScaleChangeProp;\n const isInitialMountRef = useRef(true);\n useEffect(function notifyPageChange() {\n if (isInitialMountRef.current) {\n return;\n }\n onPageChangeRef.current?.(viewer.currentPage);\n }, [viewer.currentPage]);\n useEffect(function notifyScaleChange() {\n if (isInitialMountRef.current) {\n return;\n }\n onScaleChangeRef.current?.(viewer.scale);\n }, [viewer.scale]);\n useEffect(function clearInitialMount() {\n isInitialMountRef.current = false;\n }, []);\n const rootClassName = classnames(styles.pdfViewer, className);\n if (viewer.loading) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.loadingContainer\n }, /*#__PURE__*/React.createElement(Spin, {\n className: styles.spinnerIcon\n }), \"Loading\\u2026\"));\n }\n if (viewer.error != null) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.errorContainer\n }, /*#__PURE__*/React.createElement(ErrorIcon, {\n className: styles.errorIcon\n }), \"Failed to load PDF: \", viewer.error.message));\n }\n if (viewer.document == null) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.loadingContainer\n }, \"No document\"));\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: rootClassName\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.scrollContainerWrapper\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: viewer.containerRef,\n className: styles.scrollContainer\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: viewer.viewerRef,\n className: \"pdfViewer\"\n }), viewer.portalTargets.map(target => {\n const pageAnnotations = annotationsByPage[target.pageNumber] ?? EMPTY_ANNOTATION_ARRAY;\n if (pageAnnotations.length === 0) {\n return null;\n }\n return /*#__PURE__*/React.createElement(PdfAnnotationOverlay, {\n key: target.pageNumber,\n target: target,\n annotations: pageAnnotations,\n onAnnotationClick: onAnnotationClick\n });\n }))));\n}","/*\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 React, { createContext, useContext, useMemo } from \"react\";\nimport { EMPTY_ANNOTATION_ARRAY } from \"./constants.js\";\nimport { usePdfAnnotationsByPage } from \"./hooks/usePdfAnnotationsByPage.js\";\nimport { usePdfFormFields } from \"./hooks/usePdfFormFields.js\";\nimport { usePdfHighlightMode } from \"./hooks/usePdfHighlightMode.js\";\nimport { usePdfViewerState } from \"./hooks/usePdfViewerState.js\";\n\n/** The shape of the value provided by {@link PdfViewerProvider}. */\n\nconst PdfViewerContext = /*#__PURE__*/createContext(null);\n/** Provides {@link PdfViewerContextValue} to descendant components. */\nexport function PdfViewerProvider({\n value,\n children\n}) {\n return /*#__PURE__*/React.createElement(PdfViewerContext.Provider, {\n value: value\n }, children);\n}\n\n/**\n * Returns the nearest {@link PdfViewerContextValue} from a {@link PdfViewerProvider}.\n * Throws if called outside a provider.\n */\nexport function usePdfViewerContext() {\n const ctx = useContext(PdfViewerContext);\n if (ctx == null) {\n throw new Error(\"usePdfViewerContext must be used within a PdfViewerProvider\");\n }\n return ctx;\n}\n\n/**\n * Consumer-facing setup hook analogous to react-hook-form's `useForm()`.\n * Accepts viewer options and returns a {@link PdfViewerContextValue} suitable\n * for passing to {@link PdfViewerProvider}.\n */\nexport function usePdfViewerInstance(options) {\n const viewer = usePdfViewerState({\n src: options.src,\n defaultPage: options.defaultPage,\n initialPage: options.initialPage,\n defaultScale: options.defaultScale,\n initialScale: options.initialScale,\n defaultAutoSize: options.defaultAutoSize,\n initialAutoSize: options.initialAutoSize,\n defaultSidebarOpen: options.defaultSidebarOpen,\n initialSidebarOpen: options.initialSidebarOpen,\n sidebarMode: options.sidebarMode,\n onDownload: options.onDownload\n });\n const {\n highlightModeActive,\n toggleHighlightMode\n } = usePdfHighlightMode({\n pdfViewerRef: viewer.pdfViewerRef,\n document: viewer.document,\n enabled: options.enableHighlight ?? options.highlightEnabled ?? false,\n onTextHighlight: options.onTextHighlight,\n onHighlightDelete: options.onHighlightDelete\n });\n const {\n hasFormFields,\n submitFormData\n } = usePdfFormFields({\n pdfViewerRef: viewer.pdfViewerRef,\n eventBusRef: viewer.eventBusRef,\n document: viewer.document,\n formData: options.formData,\n onFormSubmit: options.onFormSubmit,\n onFormChange: options.onFormChange\n });\n const annotations = options.annotations ?? EMPTY_ANNOTATION_ARRAY;\n const annotationsByPage = usePdfAnnotationsByPage(annotations);\n\n // `highlightEnabled` is the deprecated spelling of `enableHighlight`.\n const highlightEnabled = options.enableHighlight ?? options.highlightEnabled ?? false;\n const enableDownload = options.enableDownload ?? false;\n const enableFormSave = options.onFormSubmit != null && hasFormFields;\n const {\n onAnnotationClick,\n outlineIcons\n } = options;\n return useMemo(() => ({\n ...viewer,\n highlightEnabled,\n highlightModeActive,\n toggleHighlightMode,\n hasFormFields,\n submitFormData,\n annotations,\n annotationsByPage,\n onAnnotationClick,\n enableDownload,\n enableFormSave,\n outlineIcons\n }), [viewer, highlightEnabled, highlightModeActive, toggleHighlightMode, hasFormFields, submitFormData, annotations, annotationsByPage, onAnnotationClick, enableDownload, enableFormSave, outlineIcons]);\n}","/*\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\n// BasePdfViewer\nexport { BasePdfViewer } from \"../pdf-viewer/BasePdfViewer.js\";\n// PdfViewer building blocks\nexport { PdfViewerAnnotationLayer } from \"../pdf-viewer/components/PdfViewerAnnotationLayer.js\";\nexport { PdfViewerContent } from \"../pdf-viewer/components/PdfViewerContent.js\";\nexport { PdfViewerOutlineSidebar } from \"../pdf-viewer/components/PdfViewerOutlineSidebar.js\";\nexport { PdfViewerSearchBar } from \"../pdf-viewer/components/PdfViewerSearchBar.js\";\nexport { PdfViewerSidebar } from \"../pdf-viewer/components/PdfViewerSidebar.js\";\nexport { PdfViewerToolbar } from \"../pdf-viewer/components/PdfViewerToolbar.js\";\n\n// PdfViewer hooks — primitive\nexport { usePdfAnnotationPortals } from \"../pdf-viewer/hooks/usePdfAnnotationPortals.js\";\nexport { usePdfAnnotationsByPage } from \"../pdf-viewer/hooks/usePdfAnnotationsByPage.js\";\nexport { usePdfDocument } from \"../pdf-viewer/hooks/usePdfDocument.js\";\nexport { usePdfFormFields } from \"../pdf-viewer/hooks/usePdfFormFields.js\";\nexport { usePdfHighlightMode } from \"../pdf-viewer/hooks/usePdfHighlightMode.js\";\nexport { usePdfOutline } from \"../pdf-viewer/hooks/usePdfOutline.js\";\nexport { usePdfViewer } from \"../pdf-viewer/hooks/usePdfViewer.js\";\nexport { usePdfViewerSearch } from \"../pdf-viewer/hooks/usePdfViewerSearch.js\";\nexport { usePdfViewerSync } from \"../pdf-viewer/hooks/usePdfViewerSync.js\";\n\n// PdfViewer context\n\nexport { PdfViewerProvider, usePdfViewerContext, usePdfViewerInstance } from \"../pdf-viewer/PdfViewerContext.js\";\n\n// PdfViewer hooks — composition\nexport { usePdfViewerCore } from \"../pdf-viewer/hooks/usePdfViewerCore.js\";\nexport { usePdfViewerState } from \"../pdf-viewer/hooks/usePdfViewerState.js\";\n\n// PdfViewer (Media wrapper)\nimport { PdfViewer as _PdfViewer } from \"../pdf-viewer/PdfViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nexport const PdfViewer = withOsdkMetrics(_PdfViewer, \"PdfViewer\");"]}
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkDAXAAR7K_cjs = require('./chunk-DAXAAR7K.cjs');
3
+ var chunkKQOO7P2C_cjs = require('./chunk-KQOO7P2C.cjs');
4
4
  var chunkVOROB7KJ_cjs = require('./chunk-VOROB7KJ.cjs');
5
5
 
6
6
  // src/public/experimental/image-viewer.ts
7
7
  var BaseImageViewer2 = chunkVOROB7KJ_cjs.BaseImageViewer;
8
- var ImageViewer2 = chunkDAXAAR7K_cjs.ImageViewer;
8
+ var ImageViewer2 = chunkKQOO7P2C_cjs.ImageViewer;
9
9
 
10
10
  exports.BaseImageViewer = BaseImageViewer2;
11
11
  exports.ImageViewer = ImageViewer2;
12
- //# sourceMappingURL=chunk-32Y2RY7H.cjs.map
13
- //# sourceMappingURL=chunk-32Y2RY7H.cjs.map
12
+ //# sourceMappingURL=chunk-7GCJLKBB.cjs.map
13
+ //# sourceMappingURL=chunk-7GCJLKBB.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/experimental/image-viewer.ts"],"names":["BaseImageViewer","ImageViewer"],"mappings":";;;;;;AAmBO,IAAMA,gBAAAA,GAAyBA;AAO/B,IAAMC,YAAAA,GAAqBA","file":"chunk-32Y2RY7H.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\nimport * as Stable from \"../image-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/image-viewer` instead. */\nexport const BaseImageViewer = Stable.BaseImageViewer;\n\n/** @deprecated Import from `@osdk/react-components/image-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/image-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/image-viewer` instead. */\nexport const ImageViewer = Stable.ImageViewer;"]}
1
+ {"version":3,"sources":["../../src/public/experimental/image-viewer.ts"],"names":["BaseImageViewer","ImageViewer"],"mappings":";;;;;;AAmBO,IAAMA,gBAAAA,GAAyBA;AAO/B,IAAMC,YAAAA,GAAqBA","file":"chunk-7GCJLKBB.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\nimport * as Stable from \"../image-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/image-viewer` instead. */\nexport const BaseImageViewer = Stable.BaseImageViewer;\n\n/** @deprecated Import from `@osdk/react-components/image-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/image-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/image-viewer` instead. */\nexport const ImageViewer = Stable.ImageViewer;"]}
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunk3UGRXRKV_cjs = require('./chunk-3UGRXRKV.cjs');
3
+ var chunk5334XCUT_cjs = require('./chunk-5334XCUT.cjs');
4
4
  var chunkRVZE7LPI_cjs = require('./chunk-RVZE7LPI.cjs');
5
5
 
6
6
  // src/public/experimental/xml-viewer.ts
7
7
  var BaseXmlViewer2 = chunkRVZE7LPI_cjs.BaseXmlViewer;
8
- var XmlViewer2 = chunk3UGRXRKV_cjs.XmlViewer;
8
+ var XmlViewer2 = chunk5334XCUT_cjs.XmlViewer;
9
9
 
10
10
  exports.BaseXmlViewer = BaseXmlViewer2;
11
11
  exports.XmlViewer = XmlViewer2;
12
- //# sourceMappingURL=chunk-CAONDUZN.cjs.map
13
- //# sourceMappingURL=chunk-CAONDUZN.cjs.map
12
+ //# sourceMappingURL=chunk-CF7EH4I3.cjs.map
13
+ //# sourceMappingURL=chunk-CF7EH4I3.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/experimental/xml-viewer.ts"],"names":["BaseXmlViewer","XmlViewer"],"mappings":";;;;;;AAmBO,IAAMA,cAAAA,GAAuBA;AAO7B,IAAMC,UAAAA,GAAmBA","file":"chunk-CAONDUZN.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\nimport * as Stable from \"../xml-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/xml-viewer` instead. */\nexport const BaseXmlViewer = Stable.BaseXmlViewer;\n\n/** @deprecated Import from `@osdk/react-components/xml-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/xml-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/xml-viewer` instead. */\nexport const XmlViewer = Stable.XmlViewer;"]}
1
+ {"version":3,"sources":["../../src/public/experimental/xml-viewer.ts"],"names":["BaseXmlViewer","XmlViewer"],"mappings":";;;;;;AAmBO,IAAMA,cAAAA,GAAuBA;AAO7B,IAAMC,UAAAA,GAAmBA","file":"chunk-CF7EH4I3.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\nimport * as Stable from \"../xml-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/xml-viewer` instead. */\nexport const BaseXmlViewer = Stable.BaseXmlViewer;\n\n/** @deprecated Import from `@osdk/react-components/xml-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/xml-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/xml-viewer` instead. */\nexport const XmlViewer = Stable.XmlViewer;"]}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkTNS3VOUR_cjs = require('./chunk-TNS3VOUR.cjs');
4
+
5
+ // src/public/experimental/document-viewer.ts
6
+ var DocumentViewer2 = chunkTNS3VOUR_cjs.DocumentViewer;
7
+ var ViewerType2 = chunkTNS3VOUR_cjs.ViewerType;
8
+
9
+ exports.DocumentViewer = DocumentViewer2;
10
+ exports.ViewerType = ViewerType2;
11
+ //# sourceMappingURL=chunk-CUVGXOR4.cjs.map
12
+ //# sourceMappingURL=chunk-CUVGXOR4.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/experimental/document-viewer.ts"],"names":["DocumentViewer","ViewerType"],"mappings":";;;;;AAmBO,IAAMA,eAAAA,GAAwBA;AAK9B,IAAMC,WAAAA,GAAoBA","file":"chunk-N5OUOCF4.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\nimport * as Stable from \"../document-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/document-viewer` instead. */\nexport const DocumentViewer = Stable.DocumentViewer;\n\n/** @deprecated Import from `@osdk/react-components/document-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/document-viewer` instead. */\nexport const ViewerType = Stable.ViewerType;\n\n/** @deprecated Import from `@osdk/react-components/document-viewer` instead. */"]}
1
+ {"version":3,"sources":["../../src/public/experimental/document-viewer.ts"],"names":["DocumentViewer","ViewerType"],"mappings":";;;;;AAmBO,IAAMA,eAAAA,GAAwBA;AAK9B,IAAMC,WAAAA,GAAoBA","file":"chunk-CUVGXOR4.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\nimport * as Stable from \"../document-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/document-viewer` instead. */\nexport const DocumentViewer = Stable.DocumentViewer;\n\n/** @deprecated Import from `@osdk/react-components/document-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/document-viewer` instead. */\nexport const ViewerType = Stable.ViewerType;\n\n/** @deprecated Import from `@osdk/react-components/document-viewer` instead. */"]}
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkZANR3SS5_cjs = require('./chunk-ZANR3SS5.cjs');
3
+ var chunkVHBZXTYS_cjs = require('./chunk-VHBZXTYS.cjs');
4
4
  var chunkKHMOMROL_cjs = require('./chunk-KHMOMROL.cjs');
5
5
 
6
6
  // src/public/experimental/video-viewer.ts
7
7
  var BaseVideoViewer2 = chunkKHMOMROL_cjs.BaseVideoViewer;
8
- var VideoViewer2 = chunkZANR3SS5_cjs.VideoViewer;
8
+ var VideoViewer2 = chunkVHBZXTYS_cjs.VideoViewer;
9
9
 
10
10
  exports.BaseVideoViewer = BaseVideoViewer2;
11
11
  exports.VideoViewer = VideoViewer2;
12
- //# sourceMappingURL=chunk-MAXE2BB2.cjs.map
13
- //# sourceMappingURL=chunk-MAXE2BB2.cjs.map
12
+ //# sourceMappingURL=chunk-EYREEL5L.cjs.map
13
+ //# sourceMappingURL=chunk-EYREEL5L.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/experimental/video-viewer.ts"],"names":["BaseVideoViewer","VideoViewer"],"mappings":";;;;;;AAmBO,IAAMA,gBAAAA,GAAyBA;AAO/B,IAAMC,YAAAA,GAAqBA","file":"chunk-MAXE2BB2.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\nimport * as Stable from \"../video-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/video-viewer` instead. */\nexport const BaseVideoViewer = Stable.BaseVideoViewer;\n\n/** @deprecated Import from `@osdk/react-components/video-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/video-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/video-viewer` instead. */\nexport const VideoViewer = Stable.VideoViewer;"]}
1
+ {"version":3,"sources":["../../src/public/experimental/video-viewer.ts"],"names":["BaseVideoViewer","VideoViewer"],"mappings":";;;;;;AAmBO,IAAMA,gBAAAA,GAAyBA;AAO/B,IAAMC,YAAAA,GAAqBA","file":"chunk-EYREEL5L.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\nimport * as Stable from \"../video-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/video-viewer` instead. */\nexport const BaseVideoViewer = Stable.BaseVideoViewer;\n\n/** @deprecated Import from `@osdk/react-components/video-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/video-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/video-viewer` instead. */\nexport const VideoViewer = Stable.VideoViewer;"]}
@@ -1,17 +1,17 @@
1
1
  'use strict';
2
2
 
3
- var chunkHRJWZ6E4_cjs = require('./chunk-HRJWZ6E4.cjs');
3
+ var chunkKX4KHSIJ_cjs = require('./chunk-KX4KHSIJ.cjs');
4
4
  var chunkDTYFQRFD_cjs = require('./chunk-DTYFQRFD.cjs');
5
5
 
6
6
  // src/public/experimental/tiff-renderer.ts
7
7
  var BaseTiffViewer2 = chunkDTYFQRFD_cjs.BaseTiffViewer;
8
- var TiffViewer2 = chunkHRJWZ6E4_cjs.TiffViewer;
8
+ var TiffViewer2 = chunkKX4KHSIJ_cjs.TiffViewer;
9
9
  var TiffRenderer = chunkDTYFQRFD_cjs.BaseTiffViewer;
10
- var TiffViewerMedia = chunkHRJWZ6E4_cjs.TiffViewer;
10
+ var TiffViewerMedia = chunkKX4KHSIJ_cjs.TiffViewer;
11
11
 
12
12
  exports.BaseTiffViewer = BaseTiffViewer2;
13
13
  exports.TiffRenderer = TiffRenderer;
14
14
  exports.TiffViewer = TiffViewer2;
15
15
  exports.TiffViewerMedia = TiffViewerMedia;
16
- //# sourceMappingURL=chunk-RQPSLWEV.cjs.map
17
- //# sourceMappingURL=chunk-RQPSLWEV.cjs.map
16
+ //# sourceMappingURL=chunk-FQP75B6R.cjs.map
17
+ //# sourceMappingURL=chunk-FQP75B6R.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/experimental/tiff-renderer.ts"],"names":["BaseTiffViewer","TiffViewer"],"mappings":";;;;;;AAmBO,IAAMA,eAAAA,GAAwBA;AAO9B,IAAMC,WAAAA,GAAoBA;AAG1B,IAAM,YAAA,GAAsBD;AAK5B,IAAM,eAAA,GAAyBC","file":"chunk-RQPSLWEV.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\nimport * as Stable from \"../tiff-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/tiff-viewer` instead. */\nexport const BaseTiffViewer = Stable.BaseTiffViewer;\n\n/** @deprecated Import from `@osdk/react-components/tiff-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/tiff-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/tiff-viewer` instead. */\nexport const TiffViewer = Stable.TiffViewer;\n\n/** @deprecated Use `BaseTiffViewer` instead. */\nexport const TiffRenderer = Stable.BaseTiffViewer;\n\n/** @deprecated Use `BaseTiffViewerProps` instead. */\n\n/** @deprecated Use `TiffViewer` instead. */\nexport const TiffViewerMedia = Stable.TiffViewer;"]}
1
+ {"version":3,"sources":["../../src/public/experimental/tiff-renderer.ts"],"names":["BaseTiffViewer","TiffViewer"],"mappings":";;;;;;AAmBO,IAAMA,eAAAA,GAAwBA;AAO9B,IAAMC,WAAAA,GAAoBA;AAG1B,IAAM,YAAA,GAAsBD;AAK5B,IAAM,eAAA,GAAyBC","file":"chunk-FQP75B6R.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\nimport * as Stable from \"../tiff-viewer.js\";\n\n/** @deprecated Import from `@osdk/react-components/tiff-viewer` instead. */\nexport const BaseTiffViewer = Stable.BaseTiffViewer;\n\n/** @deprecated Import from `@osdk/react-components/tiff-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/tiff-viewer` instead. */\n\n/** @deprecated Import from `@osdk/react-components/tiff-viewer` instead. */\nexport const TiffViewer = Stable.TiffViewer;\n\n/** @deprecated Use `BaseTiffViewer` instead. */\nexport const TiffRenderer = Stable.BaseTiffViewer;\n\n/** @deprecated Use `BaseTiffViewerProps` instead. */\n\n/** @deprecated Use `TiffViewer` instead. */\nexport const TiffViewerMedia = Stable.TiffViewer;"]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkKFV264XS_cjs = require('./chunk-KFV264XS.cjs');
4
+ var chunkY4WHNRLQ_cjs = require('./chunk-Y4WHNRLQ.cjs');
5
+
6
+ // src/public/markdown-viewer.ts
7
+ var MarkdownViewer2 = chunkY4WHNRLQ_cjs.withOsdkMetrics(chunkKFV264XS_cjs.MarkdownViewer, "MarkdownViewer");
8
+
9
+ exports.MarkdownViewer = MarkdownViewer2;
10
+ //# sourceMappingURL=chunk-GEK44QQA.cjs.map
11
+ //# sourceMappingURL=chunk-GEK44QQA.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/markdown-viewer.ts"],"names":["MarkdownViewer","withOsdkMetrics"],"mappings":";;;;;;AAsBO,IAAMA,eAAAA,GAAiBC,iCAAA,CAAgBD,gCAAA,EAAiB,gBAAgB","file":"chunk-UP36MPTW.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\nimport { MarkdownViewer as _MarkdownViewer } from \"../markdown-viewer/MarkdownViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\n\n// BaseMarkdownViewer\nexport { BaseMarkdownViewer } from \"../markdown-viewer/BaseMarkdownViewer.js\";\n// MarkdownViewer (Media wrapper)\nexport const MarkdownViewer = withOsdkMetrics(_MarkdownViewer, \"MarkdownViewer\");"]}
1
+ {"version":3,"sources":["../../src/public/markdown-viewer.ts"],"names":["MarkdownViewer","withOsdkMetrics"],"mappings":";;;;;;AAsBO,IAAMA,eAAAA,GAAiBC,iCAAA,CAAgBD,gCAAA,EAAiB,gBAAgB","file":"chunk-GEK44QQA.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\nimport { MarkdownViewer as _MarkdownViewer } from \"../markdown-viewer/MarkdownViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\n\n// BaseMarkdownViewer\nexport { BaseMarkdownViewer } from \"../markdown-viewer/BaseMarkdownViewer.js\";\n// MarkdownViewer (Media wrapper)\nexport const MarkdownViewer = withOsdkMetrics(_MarkdownViewer, \"MarkdownViewer\");"]}
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkVWHXC6MQ_cjs = require('./chunk-VWHXC6MQ.cjs');
4
- var chunkO2QKCDAZ_cjs = require('./chunk-O2QKCDAZ.cjs');
4
+ var chunkY4WHNRLQ_cjs = require('./chunk-Y4WHNRLQ.cjs');
5
5
 
6
6
  // src/public/spreadsheet-viewer.ts
7
- var SpreadsheetViewer2 = chunkO2QKCDAZ_cjs.withOsdkMetrics(chunkVWHXC6MQ_cjs.SpreadsheetViewer, "SpreadsheetViewer");
7
+ var SpreadsheetViewer2 = chunkY4WHNRLQ_cjs.withOsdkMetrics(chunkVWHXC6MQ_cjs.SpreadsheetViewer, "SpreadsheetViewer");
8
8
 
9
9
  exports.SpreadsheetViewer = SpreadsheetViewer2;
10
- //# sourceMappingURL=chunk-MO3NEYJU.cjs.map
11
- //# sourceMappingURL=chunk-MO3NEYJU.cjs.map
10
+ //# sourceMappingURL=chunk-K32OS35W.cjs.map
11
+ //# sourceMappingURL=chunk-K32OS35W.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/spreadsheet-viewer.ts"],"names":["SpreadsheetViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,kBAAAA,GAAoBC,iCAAA,CAAgBD,mCAAA,EAAoB,mBAAmB","file":"chunk-MO3NEYJU.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// BaseSpreadsheetViewer\nexport { BaseSpreadsheetViewer } from \"../spreadsheet-viewer/BaseSpreadsheetViewer.js\";\n// SpreadsheetViewer (Media wrapper)\nimport { SpreadsheetViewer as _SpreadsheetViewer } from \"../spreadsheet-viewer/SpreadsheetViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nexport const SpreadsheetViewer = withOsdkMetrics(_SpreadsheetViewer, \"SpreadsheetViewer\");"]}
1
+ {"version":3,"sources":["../../src/public/spreadsheet-viewer.ts"],"names":["SpreadsheetViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,kBAAAA,GAAoBC,iCAAA,CAAgBD,mCAAA,EAAoB,mBAAmB","file":"chunk-K32OS35W.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// BaseSpreadsheetViewer\nexport { BaseSpreadsheetViewer } from \"../spreadsheet-viewer/BaseSpreadsheetViewer.js\";\n// SpreadsheetViewer (Media wrapper)\nimport { SpreadsheetViewer as _SpreadsheetViewer } from \"../spreadsheet-viewer/SpreadsheetViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nexport const SpreadsheetViewer = withOsdkMetrics(_SpreadsheetViewer, \"SpreadsheetViewer\");"]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkVOROB7KJ_cjs = require('./chunk-VOROB7KJ.cjs');
4
+ var chunkY4WHNRLQ_cjs = require('./chunk-Y4WHNRLQ.cjs');
5
+
6
+ // src/public/image-viewer.ts
7
+ var ImageViewer2 = chunkY4WHNRLQ_cjs.withOsdkMetrics(chunkVOROB7KJ_cjs.ImageViewer, "ImageViewer");
8
+
9
+ exports.ImageViewer = ImageViewer2;
10
+ //# sourceMappingURL=chunk-KQOO7P2C.cjs.map
11
+ //# sourceMappingURL=chunk-KQOO7P2C.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/image-viewer.ts"],"names":["ImageViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,YAAAA,GAAcC,iCAAA,CAAgBD,6BAAA,EAAc,aAAa","file":"chunk-DAXAAR7K.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// BaseImageViewer\nexport { BaseImageViewer } from \"../images/image-viewer/BaseImageViewer.js\";\n// ImageViewer (Media wrapper)\nimport { ImageViewer as _ImageViewer } from \"../images/image-viewer/ImageViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nexport const ImageViewer = withOsdkMetrics(_ImageViewer, \"ImageViewer\");"]}
1
+ {"version":3,"sources":["../../src/public/image-viewer.ts"],"names":["ImageViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,YAAAA,GAAcC,iCAAA,CAAgBD,6BAAA,EAAc,aAAa","file":"chunk-KQOO7P2C.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// BaseImageViewer\nexport { BaseImageViewer } from \"../images/image-viewer/BaseImageViewer.js\";\n// ImageViewer (Media wrapper)\nimport { ImageViewer as _ImageViewer } from \"../images/image-viewer/ImageViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\nexport const ImageViewer = withOsdkMetrics(_ImageViewer, \"ImageViewer\");"]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkDTYFQRFD_cjs = require('./chunk-DTYFQRFD.cjs');
4
+ var chunkY4WHNRLQ_cjs = require('./chunk-Y4WHNRLQ.cjs');
5
+
6
+ // src/public/tiff-viewer.ts
7
+ var TiffViewer2 = chunkY4WHNRLQ_cjs.withOsdkMetrics(chunkDTYFQRFD_cjs.TiffViewer, "TiffViewer");
8
+
9
+ exports.TiffViewer = TiffViewer2;
10
+ //# sourceMappingURL=chunk-KX4KHSIJ.cjs.map
11
+ //# sourceMappingURL=chunk-KX4KHSIJ.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/tiff-viewer.ts"],"names":["TiffViewer","withOsdkMetrics"],"mappings":";;;;;;AAsBO,IAAMA,WAAAA,GAAaC,iCAAA,CAAgBD,4BAAA,EAAa,YAAY","file":"chunk-HRJWZ6E4.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\nimport { TiffViewer as _TiffViewer } from \"../images/tiff-viewer/TiffViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\n\n// BaseTiffViewer\nexport { BaseTiffViewer } from \"../images/tiff-viewer/BaseTiffViewer.js\";\n// TiffViewer (Media wrapper)\nexport const TiffViewer = withOsdkMetrics(_TiffViewer, \"TiffViewer\");"]}
1
+ {"version":3,"sources":["../../src/public/tiff-viewer.ts"],"names":["TiffViewer","withOsdkMetrics"],"mappings":";;;;;;AAsBO,IAAMA,WAAAA,GAAaC,iCAAA,CAAgBD,4BAAA,EAAa,YAAY","file":"chunk-KX4KHSIJ.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\nimport { TiffViewer as _TiffViewer } from \"../images/tiff-viewer/TiffViewer.js\";\nimport { withOsdkMetrics } from \"../util/withOsdkMetrics.js\";\n\n// BaseTiffViewer\nexport { BaseTiffViewer } from \"../images/tiff-viewer/BaseTiffViewer.js\";\n// TiffViewer (Media wrapper)\nexport const TiffViewer = withOsdkMetrics(_TiffViewer, \"TiffViewer\");"]}
@@ -6,7 +6,7 @@ var chunk24W2HVQB_cjs = require('./chunk-24W2HVQB.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 chunkO2QKCDAZ_cjs = require('./chunk-O2QKCDAZ.cjs');
9
+ var chunkY4WHNRLQ_cjs = require('./chunk-Y4WHNRLQ.cjs');
10
10
  var button = require('@base-ui/react/button');
11
11
  var classnames3 = require('classnames');
12
12
  var React16 = require('react');
@@ -6019,7 +6019,7 @@ function summarizeFilterValue(definition, state) {
6019
6019
  }
6020
6020
 
6021
6021
  // src/public/filter-list.ts
6022
- var FilterList2 = chunkO2QKCDAZ_cjs.withOsdkMetrics(FilterList, "FilterList");
6022
+ var FilterList2 = chunkY4WHNRLQ_cjs.withOsdkMetrics(FilterList, "FilterList");
6023
6023
 
6024
6024
  exports.BaseFilterList = BaseFilterList;
6025
6025
  exports.FilterInput = FilterInput;
@@ -6034,5 +6034,5 @@ exports.narrowObjectSet = narrowObjectSet;
6034
6034
  exports.serializeFilterStates = serializeFilterStates;
6035
6035
  exports.summarizeFilterValue = summarizeFilterValue;
6036
6036
  exports.useFilterListState = useFilterListState;
6037
- //# sourceMappingURL=chunk-SMASMA2B.cjs.map
6038
- //# sourceMappingURL=chunk-SMASMA2B.cjs.map
6037
+ //# sourceMappingURL=chunk-QCJTUIL4.cjs.map
6038
+ //# sourceMappingURL=chunk-QCJTUIL4.cjs.map