@osdk/react-components 0.2.0-beta.24 → 0.2.0-beta.26

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 (175) hide show
  1. package/AGENTS.md +4 -0
  2. package/CHANGELOG.md +38 -0
  3. package/build/browser/action-form/ActionForm.js +15 -11
  4. package/build/browser/action-form/ActionForm.js.map +1 -1
  5. package/build/browser/action-form/FormFieldApi.js.map +1 -1
  6. package/build/browser/action-form/fields/{TextInputField.module.css → BaseInput.module.css} +2 -2
  7. package/build/browser/action-form/fields/BaseInput.module.css.js +6 -0
  8. package/build/browser/action-form/fields/CustomField.js +30 -0
  9. package/build/browser/action-form/fields/CustomField.js.map +1 -0
  10. package/build/browser/action-form/fields/FormFieldRenderer.js +26 -16
  11. package/build/browser/action-form/fields/FormFieldRenderer.js.map +1 -1
  12. package/build/browser/action-form/fields/RadioButtonsField.js +57 -0
  13. package/build/browser/action-form/fields/RadioButtonsField.js.map +1 -0
  14. package/build/browser/action-form/fields/RadioButtonsField.module.css +83 -0
  15. package/build/browser/action-form/fields/RadioButtonsField.module.css.js +10 -0
  16. package/build/browser/action-form/fields/TextAreaField.js +50 -0
  17. package/build/browser/action-form/fields/TextAreaField.js.map +1 -0
  18. package/build/browser/action-form/fields/TextInputField.js +3 -3
  19. package/build/browser/action-form/fields/TextInputField.js.map +1 -1
  20. package/build/browser/action-form/utils/getDefaultFieldDefinitions.js +97 -10
  21. package/build/browser/action-form/utils/getDefaultFieldDefinitions.js.map +1 -1
  22. package/build/browser/base-components/dialog/Dialog.js +4 -2
  23. package/build/browser/base-components/dialog/Dialog.js.map +1 -1
  24. package/build/browser/object-table/ObjectTableApi.js.map +1 -1
  25. package/build/browser/object-table/hooks/useFunctionColumnsData.js +57 -192
  26. package/build/browser/object-table/hooks/useFunctionColumnsData.js.map +1 -1
  27. package/build/browser/pdf-viewer/PdfViewer.js +49 -8
  28. package/build/browser/pdf-viewer/PdfViewer.js.map +1 -1
  29. package/build/browser/pdf-viewer/PdfViewerContext.js +108 -0
  30. package/build/browser/pdf-viewer/PdfViewerContext.js.map +1 -0
  31. package/build/browser/pdf-viewer/components/PdfViewerAnnotationLayer.js +85 -18
  32. package/build/browser/pdf-viewer/components/PdfViewerAnnotationLayer.js.map +1 -1
  33. package/build/browser/pdf-viewer/components/PdfViewerAnnotationLayer.module.css +18 -0
  34. package/build/browser/pdf-viewer/components/PdfViewerAnnotationLayer.module.css.js +1 -0
  35. package/build/browser/pdf-viewer/components/PdfViewerContent.js +15 -3
  36. package/build/browser/pdf-viewer/components/PdfViewerContent.js.map +1 -1
  37. package/build/browser/pdf-viewer/components/PdfViewerOutlineSidebar.module.css +1 -1
  38. package/build/browser/pdf-viewer/components/PdfViewerSidebar.module.css +1 -1
  39. package/build/browser/pdf-viewer/components/PdfViewerSidebarHeader.module.css +1 -1
  40. package/build/browser/pdf-viewer/components/PdfViewerToolbar.js +29 -2
  41. package/build/browser/pdf-viewer/components/PdfViewerToolbar.js.map +1 -1
  42. package/build/browser/pdf-viewer/components/PdfViewerToolbar.module.css +5 -0
  43. package/build/browser/pdf-viewer/components/PdfViewerToolbar.module.css.js +1 -0
  44. package/build/browser/pdf-viewer/constants.js +2 -1
  45. package/build/browser/pdf-viewer/constants.js.map +1 -1
  46. package/build/browser/pdf-viewer/hooks/usePdfAnnotationsByPage.js +30 -0
  47. package/build/browser/pdf-viewer/hooks/usePdfAnnotationsByPage.js.map +1 -0
  48. package/build/browser/pdf-viewer/hooks/usePdfFormFields.js +341 -0
  49. package/build/browser/pdf-viewer/hooks/usePdfFormFields.js.map +1 -0
  50. package/build/browser/pdf-viewer/hooks/usePdfHighlightMode.js +227 -0
  51. package/build/browser/pdf-viewer/hooks/usePdfHighlightMode.js.map +1 -0
  52. package/build/browser/pdf-viewer/hooks/usePdfViewer.js +16 -10
  53. package/build/browser/pdf-viewer/hooks/usePdfViewer.js.map +1 -1
  54. package/build/browser/pdf-viewer/hooks/usePdfViewerCore.js +3 -3
  55. package/build/browser/pdf-viewer/hooks/usePdfViewerCore.js.map +1 -1
  56. package/build/browser/pdf-viewer/hooks/usePdfViewerSearch.js +3 -3
  57. package/build/browser/pdf-viewer/hooks/usePdfViewerSearch.js.map +1 -1
  58. package/build/browser/pdf-viewer/hooks/usePdfViewerState.js +3 -3
  59. package/build/browser/pdf-viewer/hooks/usePdfViewerState.js.map +1 -1
  60. package/build/browser/pdf-viewer/types.js.map +1 -1
  61. package/build/browser/public/experimental.js +5 -0
  62. package/build/browser/public/experimental.js.map +1 -1
  63. package/build/browser/styles.css +144 -35
  64. package/build/cjs/{chunk-GT6IV6LV.cjs → chunk-MRRRZN44.cjs} +6 -4
  65. package/build/cjs/chunk-MRRRZN44.cjs.map +1 -0
  66. package/build/cjs/public/experimental.cjs +1981 -1314
  67. package/build/cjs/public/experimental.cjs.map +1 -1
  68. package/build/cjs/public/experimental.css +82 -5
  69. package/build/cjs/public/experimental.css.map +1 -1
  70. package/build/cjs/public/experimental.d.cts +267 -26
  71. package/build/cjs/public/primitives.cjs +5 -5
  72. package/build/cjs/public/primitives.d.cts +3 -2
  73. package/build/esm/action-form/ActionForm.js +15 -11
  74. package/build/esm/action-form/ActionForm.js.map +1 -1
  75. package/build/esm/action-form/FormFieldApi.js.map +1 -1
  76. package/build/esm/action-form/fields/{TextInputField.module.css → BaseInput.module.css} +2 -2
  77. package/build/esm/action-form/fields/CustomField.js +30 -0
  78. package/build/esm/action-form/fields/CustomField.js.map +1 -0
  79. package/build/esm/action-form/fields/FormFieldRenderer.js +26 -16
  80. package/build/esm/action-form/fields/FormFieldRenderer.js.map +1 -1
  81. package/build/esm/action-form/fields/RadioButtonsField.js +57 -0
  82. package/build/esm/action-form/fields/RadioButtonsField.js.map +1 -0
  83. package/build/esm/action-form/fields/RadioButtonsField.module.css +83 -0
  84. package/build/esm/action-form/fields/TextAreaField.js +50 -0
  85. package/build/esm/action-form/fields/TextAreaField.js.map +1 -0
  86. package/build/esm/action-form/fields/TextInputField.js +3 -3
  87. package/build/esm/action-form/fields/TextInputField.js.map +1 -1
  88. package/build/esm/action-form/utils/getDefaultFieldDefinitions.js +97 -10
  89. package/build/esm/action-form/utils/getDefaultFieldDefinitions.js.map +1 -1
  90. package/build/esm/base-components/dialog/Dialog.js +4 -2
  91. package/build/esm/base-components/dialog/Dialog.js.map +1 -1
  92. package/build/esm/object-table/ObjectTableApi.js.map +1 -1
  93. package/build/esm/object-table/hooks/useFunctionColumnsData.js +57 -192
  94. package/build/esm/object-table/hooks/useFunctionColumnsData.js.map +1 -1
  95. package/build/esm/pdf-viewer/PdfViewer.js +49 -8
  96. package/build/esm/pdf-viewer/PdfViewer.js.map +1 -1
  97. package/build/esm/pdf-viewer/PdfViewerContext.js +108 -0
  98. package/build/esm/pdf-viewer/PdfViewerContext.js.map +1 -0
  99. package/build/esm/pdf-viewer/components/PdfViewerAnnotationLayer.js +85 -18
  100. package/build/esm/pdf-viewer/components/PdfViewerAnnotationLayer.js.map +1 -1
  101. package/build/esm/pdf-viewer/components/PdfViewerAnnotationLayer.module.css +18 -0
  102. package/build/esm/pdf-viewer/components/PdfViewerContent.js +15 -3
  103. package/build/esm/pdf-viewer/components/PdfViewerContent.js.map +1 -1
  104. package/build/esm/pdf-viewer/components/PdfViewerOutlineSidebar.module.css +1 -1
  105. package/build/esm/pdf-viewer/components/PdfViewerSidebar.module.css +1 -1
  106. package/build/esm/pdf-viewer/components/PdfViewerSidebarHeader.module.css +1 -1
  107. package/build/esm/pdf-viewer/components/PdfViewerToolbar.js +29 -2
  108. package/build/esm/pdf-viewer/components/PdfViewerToolbar.js.map +1 -1
  109. package/build/esm/pdf-viewer/components/PdfViewerToolbar.module.css +5 -0
  110. package/build/esm/pdf-viewer/constants.js +2 -1
  111. package/build/esm/pdf-viewer/constants.js.map +1 -1
  112. package/build/esm/pdf-viewer/hooks/usePdfAnnotationsByPage.js +30 -0
  113. package/build/esm/pdf-viewer/hooks/usePdfAnnotationsByPage.js.map +1 -0
  114. package/build/esm/pdf-viewer/hooks/usePdfFormFields.js +341 -0
  115. package/build/esm/pdf-viewer/hooks/usePdfFormFields.js.map +1 -0
  116. package/build/esm/pdf-viewer/hooks/usePdfHighlightMode.js +227 -0
  117. package/build/esm/pdf-viewer/hooks/usePdfHighlightMode.js.map +1 -0
  118. package/build/esm/pdf-viewer/hooks/usePdfViewer.js +16 -10
  119. package/build/esm/pdf-viewer/hooks/usePdfViewer.js.map +1 -1
  120. package/build/esm/pdf-viewer/hooks/usePdfViewerCore.js +3 -3
  121. package/build/esm/pdf-viewer/hooks/usePdfViewerCore.js.map +1 -1
  122. package/build/esm/pdf-viewer/hooks/usePdfViewerSearch.js +3 -3
  123. package/build/esm/pdf-viewer/hooks/usePdfViewerSearch.js.map +1 -1
  124. package/build/esm/pdf-viewer/hooks/usePdfViewerState.js +3 -3
  125. package/build/esm/pdf-viewer/hooks/usePdfViewerState.js.map +1 -1
  126. package/build/esm/pdf-viewer/types.js.map +1 -1
  127. package/build/esm/public/experimental.js +5 -0
  128. package/build/esm/public/experimental.js.map +1 -1
  129. package/build/types/action-form/FormFieldApi.d.ts +11 -5
  130. package/build/types/action-form/FormFieldApi.d.ts.map +1 -1
  131. package/build/types/action-form/fields/CustomField.d.ts +9 -0
  132. package/build/types/action-form/fields/CustomField.d.ts.map +1 -0
  133. package/build/types/action-form/fields/FormFieldRenderer.d.ts.map +1 -1
  134. package/build/types/action-form/fields/RadioButtonsField.d.ts +3 -0
  135. package/build/types/action-form/fields/RadioButtonsField.d.ts.map +1 -0
  136. package/build/types/action-form/fields/TextAreaField.d.ts +3 -0
  137. package/build/types/action-form/fields/TextAreaField.d.ts.map +1 -0
  138. package/build/types/action-form/utils/getDefaultFieldDefinitions.d.ts +7 -4
  139. package/build/types/action-form/utils/getDefaultFieldDefinitions.d.ts.map +1 -1
  140. package/build/types/base-components/dialog/Dialog.d.ts +3 -2
  141. package/build/types/base-components/dialog/Dialog.d.ts.map +1 -1
  142. package/build/types/object-table/ObjectTableApi.d.ts +4 -3
  143. package/build/types/object-table/ObjectTableApi.d.ts.map +1 -1
  144. package/build/types/object-table/hooks/useFunctionColumnsData.d.ts.map +1 -1
  145. package/build/types/pdf-viewer/PdfViewer.d.ts +2 -2
  146. package/build/types/pdf-viewer/PdfViewer.d.ts.map +1 -1
  147. package/build/types/pdf-viewer/PdfViewerContext.d.ts +64 -0
  148. package/build/types/pdf-viewer/PdfViewerContext.d.ts.map +1 -0
  149. package/build/types/pdf-viewer/components/PdfViewerAnnotationLayer.d.ts.map +1 -1
  150. package/build/types/pdf-viewer/components/PdfViewerContent.d.ts +8 -4
  151. package/build/types/pdf-viewer/components/PdfViewerContent.d.ts.map +1 -1
  152. package/build/types/pdf-viewer/components/PdfViewerToolbar.d.ts +6 -1
  153. package/build/types/pdf-viewer/components/PdfViewerToolbar.d.ts.map +1 -1
  154. package/build/types/pdf-viewer/constants.d.ts +1 -1
  155. package/build/types/pdf-viewer/constants.d.ts.map +1 -1
  156. package/build/types/pdf-viewer/hooks/usePdfAnnotationsByPage.d.ts +5 -0
  157. package/build/types/pdf-viewer/hooks/usePdfAnnotationsByPage.d.ts.map +1 -0
  158. package/build/types/pdf-viewer/hooks/usePdfFormFields.d.ts +24 -0
  159. package/build/types/pdf-viewer/hooks/usePdfFormFields.d.ts.map +1 -0
  160. package/build/types/pdf-viewer/hooks/usePdfHighlightMode.d.ts +36 -0
  161. package/build/types/pdf-viewer/hooks/usePdfHighlightMode.d.ts.map +1 -0
  162. package/build/types/pdf-viewer/hooks/usePdfViewer.d.ts.map +1 -1
  163. package/build/types/pdf-viewer/types.d.ts +137 -13
  164. package/build/types/pdf-viewer/types.d.ts.map +1 -1
  165. package/build/types/public/experimental.d.ts +6 -1
  166. package/build/types/public/experimental.d.ts.map +1 -1
  167. package/package.json +6 -6
  168. package/build/browser/action-form/fields/TextInputField.module.css.js +0 -6
  169. package/build/browser/action-form/utils/getDefaultFieldComponent.js +0 -56
  170. package/build/browser/action-form/utils/getDefaultFieldComponent.js.map +0 -1
  171. package/build/cjs/chunk-GT6IV6LV.cjs.map +0 -1
  172. package/build/esm/action-form/utils/getDefaultFieldComponent.js +0 -56
  173. package/build/esm/action-form/utils/getDefaultFieldComponent.js.map +0 -1
  174. package/build/types/action-form/utils/getDefaultFieldComponent.d.ts +0 -6
  175. package/build/types/action-form/utils/getDefaultFieldComponent.d.ts.map +0 -1
@@ -37,11 +37,16 @@ export { PdfViewerToolbar } from "../pdf-viewer/components/PdfViewerToolbar.js";
37
37
 
38
38
  // PdfViewer hooks — primitive
39
39
  export { usePdfAnnotationPortals } from "../pdf-viewer/hooks/usePdfAnnotationPortals.js";
40
+ export { usePdfAnnotationsByPage } from "../pdf-viewer/hooks/usePdfAnnotationsByPage.js";
40
41
  export { usePdfDocument } from "../pdf-viewer/hooks/usePdfDocument.js";
42
+ export { usePdfFormFields } from "../pdf-viewer/hooks/usePdfFormFields.js";
43
+ export { usePdfHighlightMode } from "../pdf-viewer/hooks/usePdfHighlightMode.js";
41
44
  export { usePdfOutline } from "../pdf-viewer/hooks/usePdfOutline.js";
42
45
  export { usePdfViewer } from "../pdf-viewer/hooks/usePdfViewer.js";
43
46
  export { usePdfViewerSearch } from "../pdf-viewer/hooks/usePdfViewerSearch.js";
44
47
  export { usePdfViewerSync } from "../pdf-viewer/hooks/usePdfViewerSync.js";
48
+ // PdfViewer context
49
+ export { PdfViewerProvider, usePdfViewerContext, usePdfViewerInstance } from "../pdf-viewer/PdfViewerContext.js";
45
50
  // PdfViewer hooks — composition
46
51
  export { usePdfViewerCore } from "../pdf-viewer/hooks/usePdfViewerCore.js";
47
52
  export { usePdfViewerState } from "../pdf-viewer/hooks/usePdfViewerState.js";
@@ -1 +1 @@
1
- {"version":3,"file":"experimental.js","names":["BaseFilterList","FilterList","deserializeFilterStates","serializeFilterStates","ObjectTable","BaseTable","ColumnConfigDialog","BasePdfViewer","PdfViewerAnnotationLayer","PdfViewerContent","PdfViewerOutlineSidebar","PdfViewerSearchBar","PdfViewerSidebar","PdfViewerToolbar","usePdfAnnotationPortals","usePdfDocument","usePdfOutline","usePdfViewer","usePdfViewerSearch","usePdfViewerSync","usePdfViewerCore","usePdfViewerState","PdfViewer","ActionForm","BaseForm"],"sources":["experimental.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { BaseFilterList } from \"../filter-list/base/BaseFilterList.js\";\nexport type {\n BaseFilterListProps,\n RenderFilterInput,\n} from \"../filter-list/base/BaseFilterListApi.js\";\nexport { FilterList } from \"../filter-list/FilterList.js\";\n\nexport type {\n FilterDefinitionUnion,\n FilterListProps,\n} from \"../filter-list/FilterListApi.js\";\nexport type {\n FilterComponentType,\n FilterListItemProps,\n FilterState,\n PropertyFilterDefinition,\n} from \"../filter-list/FilterListItemApi.js\";\nexport {\n deserializeFilterStates,\n serializeFilterStates,\n} from \"../filter-list/utils/filterStateSerialization.js\";\n\n// ObjectTable that loads and displays data for a given objectSet\nexport { ObjectTable } from \"../object-table/ObjectTable.js\";\nexport type {\n ColumnDefinition,\n ColumnDefinitionLocator,\n CustomColumnLocator,\n FunctionColumnLocator,\n ObjectTableProps,\n PropertyColumnLocator,\n RdpColumnLocator,\n} from \"../object-table/ObjectTableApi.js\";\nexport type { CellEditInfo } from \"../object-table/utils/types.js\";\n\n// BaseTable that does not handle data fetching\nexport type { BaseTableProps } from \"../object-table/Table.js\";\nexport { BaseTable } from \"../object-table/Table.js\";\n\nexport { ColumnConfigDialog } from \"../object-table/ColumnConfigDialog.js\";\nexport type {\n ColumnConfigDialogProps,\n ColumnConfigOptions,\n} from \"../object-table/ColumnConfigDialog.js\";\n\n// PdfViewer\nexport { BasePdfViewer } from \"../pdf-viewer/PdfViewer.js\";\nexport type {\n AnnotationType,\n PdfAnnotation,\n PdfDownloadResult,\n PdfViewerProps,\n SidebarMode,\n} from \"../pdf-viewer/types.js\";\n\n// PdfViewer building blocks\nexport {\n PdfViewerAnnotationLayer,\n type PdfViewerAnnotationLayerProps,\n} from \"../pdf-viewer/components/PdfViewerAnnotationLayer.js\";\nexport {\n PdfViewerContent,\n type PdfViewerContentProps,\n} from \"../pdf-viewer/components/PdfViewerContent.js\";\nexport {\n PdfViewerOutlineSidebar,\n type PdfViewerOutlineSidebarProps,\n} from \"../pdf-viewer/components/PdfViewerOutlineSidebar.js\";\nexport {\n PdfViewerSearchBar,\n type PdfViewerSearchBarProps,\n} from \"../pdf-viewer/components/PdfViewerSearchBar.js\";\nexport {\n PdfViewerSidebar,\n type PdfViewerSidebarProps,\n} from \"../pdf-viewer/components/PdfViewerSidebar.js\";\nexport {\n PdfViewerToolbar,\n type PdfViewerToolbarProps,\n} from \"../pdf-viewer/components/PdfViewerToolbar.js\";\n\n// PdfViewer hooks — primitive\nexport {\n type AnnotationPortalTarget,\n usePdfAnnotationPortals,\n} from \"../pdf-viewer/hooks/usePdfAnnotationPortals.js\";\nexport { usePdfDocument } from \"../pdf-viewer/hooks/usePdfDocument.js\";\nexport { usePdfOutline } from \"../pdf-viewer/hooks/usePdfOutline.js\";\nexport {\n usePdfViewer,\n type UsePdfViewerResult,\n} from \"../pdf-viewer/hooks/usePdfViewer.js\";\nexport {\n usePdfViewerSearch,\n type UsePdfViewerSearchResult,\n} from \"../pdf-viewer/hooks/usePdfViewerSearch.js\";\nexport { usePdfViewerSync } from \"../pdf-viewer/hooks/usePdfViewerSync.js\";\nexport { type OutlineItem } from \"../pdf-viewer/types.js\";\n\n// PdfViewer hooks — composition\nexport {\n usePdfViewerCore,\n type UsePdfViewerCoreOptions,\n type UsePdfViewerCoreResult,\n} from \"../pdf-viewer/hooks/usePdfViewerCore.js\";\nexport {\n usePdfViewerState,\n type UsePdfViewerStateOptions,\n type UsePdfViewerStateResult,\n} from \"../pdf-viewer/hooks/usePdfViewerState.js\";\n\n// PdfViewer (Media wrapper)\nexport {\n PdfViewer,\n type PdfViewerMediaProps,\n} from \"../pdf-viewer/PdfRenderer.js\";\n\nexport { ActionForm } from \"../action-form/ActionForm.js\";\nexport type {\n ActionFormProps,\n BaseFormProps,\n FormError,\n FormState,\n} from \"../action-form/ActionFormApi.js\";\nexport { BaseForm } from \"../action-form/BaseForm.js\";\nexport type {\n ActionParameters,\n BaseFormFieldProps,\n CustomFieldProps,\n DatetimePickerFieldProps,\n DropdownFieldProps,\n FieldComponent,\n FieldValueType,\n FilePickerProps,\n FormFieldDefinition,\n FormFieldPropsByType,\n NumberInputFieldProps,\n ObjectSetFieldProps,\n Option,\n RadioButtonsFieldProps,\n RendererFieldDefinition,\n TextAreaFieldProps,\n TextInputFieldProps,\n} from \"../action-form/FormFieldApi.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,cAAc,QAAQ,uCAAuC;AAKtE,SAASC,UAAU,QAAQ,8BAA8B;AAYzD,SACEC,uBAAuB,EACvBC,qBAAqB,QAChB,kDAAkD;;AAEzD;AACA,SAASC,WAAW,QAAQ,gCAAgC;;AAY5D;;AAEA,SAASC,SAAS,QAAQ,0BAA0B;AAEpD,SAASC,kBAAkB,QAAQ,uCAAuC;AAM1E;AACA,SAASC,aAAa,QAAQ,4BAA4B;AAS1D;AACA,SACEC,wBAAwB,QAEnB,sDAAsD;AAC7D,SACEC,gBAAgB,QAEX,8CAA8C;AACrD,SACEC,uBAAuB,QAElB,qDAAqD;AAC5D,SACEC,kBAAkB,QAEb,gDAAgD;AACvD,SACEC,gBAAgB,QAEX,8CAA8C;AACrD,SACEC,gBAAgB,QAEX,8CAA8C;;AAErD;AACA,SAEEC,uBAAuB,QAClB,gDAAgD;AACvD,SAASC,cAAc,QAAQ,uCAAuC;AACtE,SAASC,aAAa,QAAQ,sCAAsC;AACpE,SACEC,YAAY,QAEP,qCAAqC;AAC5C,SACEC,kBAAkB,QAEb,2CAA2C;AAClD,SAASC,gBAAgB,QAAQ,yCAAyC;AAG1E;AACA,SACEC,gBAAgB,QAGX,yCAAyC;AAChD,SACEC,iBAAiB,QAGZ,0CAA0C;;AAEjD;AACA,SACEC,SAAS,QAEJ,8BAA8B;AAErC,SAASC,UAAU,QAAQ,8BAA8B;AAOzD,SAASC,QAAQ,QAAQ,4BAA4B","ignoreList":[]}
1
+ {"version":3,"file":"experimental.js","names":["BaseFilterList","FilterList","deserializeFilterStates","serializeFilterStates","ObjectTable","BaseTable","ColumnConfigDialog","BasePdfViewer","PdfViewerAnnotationLayer","PdfViewerContent","PdfViewerOutlineSidebar","PdfViewerSearchBar","PdfViewerSidebar","PdfViewerToolbar","usePdfAnnotationPortals","usePdfAnnotationsByPage","usePdfDocument","usePdfFormFields","usePdfHighlightMode","usePdfOutline","usePdfViewer","usePdfViewerSearch","usePdfViewerSync","PdfViewerProvider","usePdfViewerContext","usePdfViewerInstance","usePdfViewerCore","usePdfViewerState","PdfViewer","ActionForm","BaseForm"],"sources":["experimental.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { BaseFilterList } from \"../filter-list/base/BaseFilterList.js\";\nexport type {\n BaseFilterListProps,\n RenderFilterInput,\n} from \"../filter-list/base/BaseFilterListApi.js\";\nexport { FilterList } from \"../filter-list/FilterList.js\";\n\nexport type {\n FilterDefinitionUnion,\n FilterListProps,\n} from \"../filter-list/FilterListApi.js\";\nexport type {\n FilterComponentType,\n FilterListItemProps,\n FilterState,\n PropertyFilterDefinition,\n} from \"../filter-list/FilterListItemApi.js\";\nexport {\n deserializeFilterStates,\n serializeFilterStates,\n} from \"../filter-list/utils/filterStateSerialization.js\";\n\n// ObjectTable that loads and displays data for a given objectSet\nexport { ObjectTable } from \"../object-table/ObjectTable.js\";\nexport type {\n ColumnDefinition,\n ColumnDefinitionLocator,\n CustomColumnLocator,\n FunctionColumnLocator,\n ObjectTableProps,\n PropertyColumnLocator,\n RdpColumnLocator,\n} from \"../object-table/ObjectTableApi.js\";\nexport type { CellEditInfo } from \"../object-table/utils/types.js\";\n\n// BaseTable that does not handle data fetching\nexport type { BaseTableProps } from \"../object-table/Table.js\";\nexport { BaseTable } from \"../object-table/Table.js\";\n\nexport { ColumnConfigDialog } from \"../object-table/ColumnConfigDialog.js\";\nexport type {\n ColumnConfigDialogProps,\n ColumnConfigOptions,\n} from \"../object-table/ColumnConfigDialog.js\";\n\n// PdfViewer\nexport { BasePdfViewer } from \"../pdf-viewer/PdfViewer.js\";\nexport type {\n AnnotationType,\n PdfAnnotation,\n PdfAnnotationRenderProps,\n PdfCustomAnnotation,\n PdfDownloadResult,\n PdfFormFieldValue,\n PdfRect,\n PdfTextHighlightEvent,\n PdfViewerProps,\n SidebarMode,\n} from \"../pdf-viewer/types.js\";\n\n// PdfViewer building blocks\nexport {\n PdfViewerAnnotationLayer,\n type PdfViewerAnnotationLayerProps,\n} from \"../pdf-viewer/components/PdfViewerAnnotationLayer.js\";\nexport {\n PdfViewerContent,\n type PdfViewerContentProps,\n} from \"../pdf-viewer/components/PdfViewerContent.js\";\nexport {\n PdfViewerOutlineSidebar,\n type PdfViewerOutlineSidebarProps,\n} from \"../pdf-viewer/components/PdfViewerOutlineSidebar.js\";\nexport {\n PdfViewerSearchBar,\n type PdfViewerSearchBarProps,\n} from \"../pdf-viewer/components/PdfViewerSearchBar.js\";\nexport {\n PdfViewerSidebar,\n type PdfViewerSidebarProps,\n} from \"../pdf-viewer/components/PdfViewerSidebar.js\";\nexport {\n PdfViewerToolbar,\n type PdfViewerToolbarProps,\n} from \"../pdf-viewer/components/PdfViewerToolbar.js\";\n\n// PdfViewer hooks — primitive\nexport {\n type AnnotationPortalTarget,\n usePdfAnnotationPortals,\n} from \"../pdf-viewer/hooks/usePdfAnnotationPortals.js\";\nexport { usePdfAnnotationsByPage } from \"../pdf-viewer/hooks/usePdfAnnotationsByPage.js\";\nexport { usePdfDocument } from \"../pdf-viewer/hooks/usePdfDocument.js\";\nexport {\n usePdfFormFields,\n type UsePdfFormFieldsOptions,\n type UsePdfFormFieldsResult,\n} from \"../pdf-viewer/hooks/usePdfFormFields.js\";\nexport {\n usePdfHighlightMode,\n type UsePdfHighlightModeOptions,\n type UsePdfHighlightModeResult,\n} from \"../pdf-viewer/hooks/usePdfHighlightMode.js\";\nexport { usePdfOutline } from \"../pdf-viewer/hooks/usePdfOutline.js\";\nexport {\n usePdfViewer,\n type UsePdfViewerResult,\n} from \"../pdf-viewer/hooks/usePdfViewer.js\";\nexport {\n usePdfViewerSearch,\n type UsePdfViewerSearchResult,\n} from \"../pdf-viewer/hooks/usePdfViewerSearch.js\";\nexport { usePdfViewerSync } from \"../pdf-viewer/hooks/usePdfViewerSync.js\";\nexport { type OutlineItem } from \"../pdf-viewer/types.js\";\n\n// PdfViewer context\nexport {\n type PdfViewerContextValue,\n PdfViewerProvider,\n usePdfViewerContext,\n usePdfViewerInstance,\n} from \"../pdf-viewer/PdfViewerContext.js\";\nexport type {\n PdfViewerHandle,\n PdfViewerInstanceOptions,\n} from \"../pdf-viewer/types.js\";\n\n// PdfViewer hooks — composition\nexport {\n usePdfViewerCore,\n type UsePdfViewerCoreOptions,\n type UsePdfViewerCoreResult,\n} from \"../pdf-viewer/hooks/usePdfViewerCore.js\";\nexport {\n usePdfViewerState,\n type UsePdfViewerStateOptions,\n type UsePdfViewerStateResult,\n} from \"../pdf-viewer/hooks/usePdfViewerState.js\";\n\n// PdfViewer (Media wrapper)\nexport {\n PdfViewer,\n type PdfViewerMediaProps,\n} from \"../pdf-viewer/PdfRenderer.js\";\n\nexport { ActionForm } from \"../action-form/ActionForm.js\";\nexport type {\n ActionFormProps,\n BaseFormProps,\n FormError,\n FormState,\n} from \"../action-form/ActionFormApi.js\";\nexport { BaseForm } from \"../action-form/BaseForm.js\";\nexport type {\n ActionParameters,\n BaseFormFieldProps,\n CustomFieldProps,\n DatetimePickerFieldProps,\n DropdownFieldProps,\n FieldComponent,\n FieldValueType,\n FilePickerProps,\n FormFieldDefinition,\n FormFieldPropsByType,\n NumberInputFieldProps,\n ObjectSetFieldProps,\n Option,\n RadioButtonsFieldProps,\n RendererFieldDefinition,\n TextAreaFieldProps,\n TextInputFieldProps,\n} from \"../action-form/FormFieldApi.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,cAAc,QAAQ,uCAAuC;AAKtE,SAASC,UAAU,QAAQ,8BAA8B;AAYzD,SACEC,uBAAuB,EACvBC,qBAAqB,QAChB,kDAAkD;;AAEzD;AACA,SAASC,WAAW,QAAQ,gCAAgC;;AAY5D;;AAEA,SAASC,SAAS,QAAQ,0BAA0B;AAEpD,SAASC,kBAAkB,QAAQ,uCAAuC;AAM1E;AACA,SAASC,aAAa,QAAQ,4BAA4B;AAc1D;AACA,SACEC,wBAAwB,QAEnB,sDAAsD;AAC7D,SACEC,gBAAgB,QAEX,8CAA8C;AACrD,SACEC,uBAAuB,QAElB,qDAAqD;AAC5D,SACEC,kBAAkB,QAEb,gDAAgD;AACvD,SACEC,gBAAgB,QAEX,8CAA8C;AACrD,SACEC,gBAAgB,QAEX,8CAA8C;;AAErD;AACA,SAEEC,uBAAuB,QAClB,gDAAgD;AACvD,SAASC,uBAAuB,QAAQ,gDAAgD;AACxF,SAASC,cAAc,QAAQ,uCAAuC;AACtE,SACEC,gBAAgB,QAGX,yCAAyC;AAChD,SACEC,mBAAmB,QAGd,4CAA4C;AACnD,SAASC,aAAa,QAAQ,sCAAsC;AACpE,SACEC,YAAY,QAEP,qCAAqC;AAC5C,SACEC,kBAAkB,QAEb,2CAA2C;AAClD,SAASC,gBAAgB,QAAQ,yCAAyC;AAG1E;AACA,SAEEC,iBAAiB,EACjBC,mBAAmB,EACnBC,oBAAoB,QACf,mCAAmC;AAM1C;AACA,SACEC,gBAAgB,QAGX,yCAAyC;AAChD,SACEC,iBAAiB,QAGZ,0CAA0C;;AAEjD;AACA,SACEC,SAAS,QAEJ,8BAA8B;AAErC,SAASC,UAAU,QAAQ,8BAA8B;AAOzD,SAASC,QAAQ,QAAQ,4BAA4B","ignoreList":[]}
@@ -63,9 +63,9 @@ export interface FormFieldDefinition<
63
63
  validate?: (value: FieldValueType<Q, K>) => Promise<boolean>;
64
64
  /**
65
65
  * The component props for the form field
66
- * Excludes runtime props (key, onChange) which are managed by ActionForm
66
+ * Excludes runtime props (value, onChange) which are managed by ActionForm
67
67
  */
68
- fieldComponentProps?: Omit<FormFieldPropsByType[ValidFormFieldForPropertyType<FieldDescriptorType<Q, K>>], "key" | "onChange">;
68
+ fieldComponentProps: Omit<FormFieldPropsByType[ValidFormFieldForPropertyType<FieldDescriptorType<Q, K>>], "value" | "onChange">;
69
69
  }
70
70
  type ValidationError = {
71
71
  type: ValidationRule
@@ -175,7 +175,9 @@ export interface FilePickerProps extends BaseFormFieldProps<File | File[]> {
175
175
  /**
176
176
  * Text area field props
177
177
  */
178
- export interface TextAreaFieldProps extends BaseFormFieldProps<string>, Pick<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "wrap" | "minLength" | "maxLength"> {}
178
+ export interface TextAreaFieldProps extends BaseFormFieldProps<string>, Pick<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "wrap" | "minLength" | "maxLength"> {
179
+ placeholder?: string;
180
+ }
179
181
  export interface TextInputFieldProps extends BaseFormFieldProps<string>, Pick<React.InputHTMLAttributes<HTMLInputElement>, "minLength" | "maxLength"> {
180
182
  placeholder?: string;
181
183
  }
@@ -188,7 +190,11 @@ export interface NumberInputFieldProps extends BaseFormFieldProps<number>, Pick<
188
190
  */
189
191
  export interface RadioButtonsFieldProps<V> extends BaseFormFieldProps<V> {
190
192
  /**
191
- * Available options for radio buttons
193
+ * Available options for radio buttons.
194
+ *
195
+ * Values are compared by reference equality (`===`). When options contain
196
+ * non-primitive values, pass the same object references for `value` and
197
+ * the corresponding option entry.
192
198
  */
193
199
  options: Option<V>[];
194
200
  }
@@ -297,7 +303,7 @@ export type RendererFieldDefinition = { [K in FieldComponent] : {
297
303
  placeholder?: string
298
304
  helperText?: string
299
305
  helperTextPlacement?: "bottom" | "tooltip"
300
- fieldComponentProps?: Omit<FormFieldPropsByType[K], "value" | "onChange">
306
+ fieldComponentProps: Omit<FormFieldPropsByType[K], "value" | "onChange">
301
307
  } }[FieldComponent];
302
308
  /**
303
309
  * Gets valid form field types for a given property type
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,kBACA,gBACA,aACA,qBACA,uBACA,WACA,4BACK,WAAY;AACnB,YAAY,WAAW,OAAQ;;;;AAK/B,iBAAiB;CACf,UAAU;CACV,UAAU,SAAS,KAAK,SAAS;EACjC;;;;CAIA,UAAU;;;;;CAMV;;;;CAKA,eAAe,eAAe,GAAG;;;;CAKjC,gBAAgB,8BAA8B,oBAAoB,GAAG;;;;CAKrE;;;;CAKA;;;;;CAMA;;;;;;CAOA,sBAAsB,WAAW;;;;CAKjC;;;;;;;CAQA,qBAAqBA,OAAO;;;;;;;CAQ5B,YAAYC,OAAO,eAAe,GAAG,OAAO;;;;;CAM5C,sBAAsB,KACpB,qBACE,8BACE,oBAAoB,GAAG,MAG3B,QAAQ;AAEX;KAEI,kBAAkB;CAAE,MAAM;CAAgB;AAAe;KAEzD,iBACD,aACA,QACA,QACA,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Error","value: FieldValueType<Q, K>","date: Date","item: V","a: V","b: V","props: BaseFormFieldProps<V>","value: V | null"],"sources":["../../../src/action-form/FormFieldApi.ts"],"version":3,"file":"FormFieldApi.d.ts"}
1
+ {"mappings":"AAgBA,cACE,kBACA,gBACA,aACA,qBACA,uBACA,WACA,4BACK,WAAY;AACnB,YAAY,WAAW,OAAQ;;;;AAK/B,iBAAiB;CACf,UAAU;CACV,UAAU,SAAS,KAAK,SAAS;EACjC;;;;CAIA,UAAU;;;;;CAMV;;;;CAKA,eAAe,eAAe,GAAG;;;;CAKjC,gBAAgB,8BAA8B,oBAAoB,GAAG;;;;CAKrE;;;;CAKA;;;;;CAMA;;;;;;CAOA,sBAAsB,WAAW;;;;CAKjC;;;;;;;CAQA,qBAAqBA,OAAO;;;;;;;CAQ5B,YAAYC,OAAO,eAAe,GAAG,OAAO;;;;;CAM5C,qBAAqB,KACnB,qBACE,8BACE,oBAAoB,GAAG,MAG3B,UAAU;AAEb;KAEI,kBAAkB;CAAE,MAAM;CAAgB;AAAe;KAEzD,iBACD,aACA,QACA,QACA,cACA,cACA,YACA;;;;AAKJ,iBAAiB,qBAAqB;CACpC,iBAAiB;CACjB,UAAU;CACV,aAAa;CACb,cAAc;CACd,YAAY,oBAAoB;CAChC,eAAe;CACf,WAAW;CACX,YAAY;CACZ,QAAQ;AACT;;;;;;AAOD,iBAAiB,iCAAiC,mBAAmB,MAAM;;;;;CAKzE,MAAM;;;;;CAMN,MAAM;;;;CAKN;;;;;CAMA;;;;CAKA;;CAGA,cAAcC,MAAM;AACrB;;;;AAKD,iBAAiB;CAAmB;CAAG,2BAA2B;UACxD,mBAAmB,iBAAiB,OAAO,MAAM,GAC3D;;;;CAIE,OAAO;;;;CAKP,qBAAqBC,MAAM;;;;;CAM3B,aAAaA,MAAM;;;;;CAMnB,eAAeC,GAAG,GAAGC,GAAG;;;;;;CAOxB;;;;CAKA;;;;CAKA,aAAa;AACd;AAED,iBAAiB,wBAAwB,mBAAmB,OAAO,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;AAK3B,YAAY,iBACR,oBACA,aACA,gBACA,iBACA,kBACA,eACA,cACA,eACA;;;;;AAMJ,YAAY,YACR,YACA,WACA,YACA,SACA,WACA,aACA,cACA,eACA,YACA,mBACA,eACA,aACA,YACA;CAAE,MAAM;CAAU;AAAgB,IAClC;CAAE,MAAM;CAAa;AAAmB,IACxC;CAAE,MAAM;CAAa;AAAmB,IACxC;CAAE,MAAM;CAAU,QAAQ;AAAwB;;;;;;;;;AAUtD,YAAY,6BACT,KAAK,kBAAiB;CACrB;CACA,gBAAgB;CAChB,YAAY;CACZ;CACA;CACA;CACA;CACA;CACA,sBAAsB,WAAW;CACjC,qBAAqB,KAAK,qBAAqB,IAAI,UAAU;AAC9D,IACD;;;;AAKF,YAAY,8BAA8B,UAAU,uBAClD,UAAU,cAAc,eACpB,UAAU,WAAW,aACrB,UAAU,mBAAmB,eAAe,gBAC5C,UAAU,YAAY,kBAAkB,aACxC,UAAU,WAAW,eAAe,cACpC,UAAU,aAAa,cAAc,oBACrC,UACE,WACA,YACA,SACA,UACA,UACA,SACA,YAAY","names":["error: ValidationError","value: FieldValueType<Q, K>","date: Date","item: V","a: V","b: V","props: BaseFormFieldProps<V>","value: V | null"],"sources":["../../../src/action-form/FormFieldApi.ts"],"version":3,"file":"FormFieldApi.d.ts"}
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import type { CustomFieldProps } from "../FormFieldApi.js";
3
+ /**
4
+ * Renders a user-provided custom field. Delegates all rendering to the
5
+ * `customRenderer` callback, passing through the standard form field props
6
+ * (value, onChange, id) so the custom implementation can participate in
7
+ * form state management.
8
+ */
9
+ export declare const CustomField: React.FC<CustomFieldProps<unknown>>;
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,OAAO,WAAqB,OAAQ;AACpC,cAAc,wBAAwB,oBAAqB;;;;;;;AAQ3D,OAAO,cAAMA,aAAa,MAAM,GAAG","names":["CustomField: React.FC<CustomFieldProps<unknown>>"],"sources":["../../../../src/action-form/fields/CustomField.tsx"],"version":3,"file":"CustomField.d.ts"}
@@ -1 +1 @@
1
- {"mappings":"AAgBA,OAAO,WAAqB,OAAQ;AAEpC,cAAc,+BAA+B,oBAAqB;AAOlE,iBAAiB,uBAAuB;CACtC,iBAAiB;CACjB;CACA,qBAAqBA;AACtB;AAED,OAAO,cAAMC,mBAAmB,MAAM,GAAG","names":["value: unknown","FormFieldRenderer: React.FC<FormFieldRendererProps>"],"sources":["../../../../src/action-form/fields/FormFieldRenderer.tsx"],"version":3,"file":"FormFieldRenderer.d.ts"}
1
+ {"mappings":"AAgBA,OAAO,WAAqB,OAAQ;AAEpC,cAAc,+BAA+B,oBAAqB;AAQlE,iBAAiB,uBAAuB;CACtC,iBAAiB;CACjB;CACA,qBAAqBA;AACtB;AAED,OAAO,cAAMC,mBAAmB,MAAM,GAAG","names":["value: unknown","FormFieldRenderer: React.FC<FormFieldRendererProps>"],"sources":["../../../../src/action-form/fields/FormFieldRenderer.tsx"],"version":3,"file":"FormFieldRenderer.d.ts"}
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import type { RadioButtonsFieldProps } from "../FormFieldApi.js";
3
+ export declare const RadioButtonsField: <V>(props: RadioButtonsFieldProps<V>) => React.ReactElement;
@@ -0,0 +1 @@
1
+ {"mappings":"AAkBA,OAAO,WAA2C,OAAQ;AAE1D,cAAsB,8BAA8B,oBAAqB;AAGzE,OAAO,cAAMA,oBAAoB,GAC/BC,OAAO,uBAAuB,OAC3B,MAAM","names":["RadioButtonsField: <V>(\n props: RadioButtonsFieldProps<V>,\n) => React.ReactElement","props: RadioButtonsFieldProps<V>"],"sources":["../../../../src/action-form/fields/RadioButtonsField.tsx"],"version":3,"file":"RadioButtonsField.d.ts"}
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import type { TextAreaFieldProps } from "../FormFieldApi.js";
3
+ export declare function TextAreaField({ id, value, onChange, placeholder, rows, wrap, minLength, maxLength }: TextAreaFieldProps): React.ReactElement;
@@ -0,0 +1 @@
1
+ {"mappings":"AAiBA,OAAO,WAA4B,OAAQ;AAC3C,cAAc,0BAA0B,oBAAqB;AAK7D,OAAO,iBAAS,cAAc,EAC5B,IACA,OACA,UACA,aACA,MACA,MACA,WACA,WACmB,EAAlB,qBAAqB,MAAM","names":[],"sources":["../../../../src/action-form/fields/TextAreaField.tsx"],"version":3,"file":"TextAreaField.d.ts"}
@@ -1,6 +1,9 @@
1
- import type { ActionDefinition, ActionMetadata } from "@osdk/api";
2
- import type { FormFieldDefinition } from "../FormFieldApi.js";
1
+ import type { ActionMetadata } from "@osdk/api";
2
+ import type { RendererFieldDefinition } from "../FormFieldApi.js";
3
3
  /**
4
- * Derives default field definitions from fetched ActionMetadata.
4
+ * Derives default field definitions from ActionMetadata.
5
+ *
6
+ * Each parameter type maps to a concrete RendererFieldDefinition with the
7
+ * correct fieldComponent and default fieldComponentProps.
5
8
  */
6
- export declare function getDefaultFieldDefinitions<Q extends ActionDefinition<unknown>>(metadata: ActionMetadata): ReadonlyArray<FormFieldDefinition<Q>>;
9
+ export declare function getDefaultFieldDefinitions(metadata: ActionMetadata): ReadonlyArray<RendererFieldDefinition>;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,kBAAkB,sBAAsB,WAAY;AAClE,cAIE,2BAEK,oBAAqB;;;;AAM5B,OAAO,iBAAS,2BACd,UAAU,2BACVA,UAAU,iBAAiB,cAAc,oBAAoB","names":["metadata: ActionMetadata"],"sources":["../../../../src/action-form/utils/getDefaultFieldDefinitions.ts"],"version":3,"file":"getDefaultFieldDefinitions.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,sBAAsB,WAAY;AAEhD,cAAc,+BAA+B,oBAAqB;;;;;;;AAQlE,OAAO,iBAAS,2BACdA,UAAU,iBACT,cAAc","names":["metadata: ActionMetadata"],"sources":["../../../../src/action-form/utils/getDefaultFieldDefinitions.ts"],"version":3,"file":"getDefaultFieldDefinitions.d.ts"}
@@ -1,10 +1,11 @@
1
1
  import React from "react";
2
2
  export interface DialogProps {
3
3
  isOpen: boolean;
4
- onOpenChange: () => void;
4
+ onOpenChange: (open: boolean) => void;
5
5
  title: React.ReactNode;
6
6
  children: React.ReactNode;
7
7
  footer?: React.ReactNode;
8
8
  className?: string;
9
+ disablePointerDismissal?: boolean;
9
10
  }
10
- export declare function Dialog({ isOpen, onOpenChange, title, children, footer, className }: DialogProps): React.ReactElement;
11
+ export declare function Dialog({ isOpen, onOpenChange, title, children, footer, className, disablePointerDismissal }: DialogProps): React.ReactElement;
@@ -1 +1 @@
1
- {"mappings":"AAmBA,OAAO,WAAW,OAAQ;AAG1B,iBAAiB,YAAY;CAC3B;CACA;CACA,OAAO,MAAM;CACb,UAAU,MAAM;CAChB,SAAS,MAAM;CACf;AACD;AAED,OAAO,iBAAS,OAAO,EACrB,QACA,cACA,OACA,UACA,QACA,WACY,EAAX,cAAc,MAAM","names":[],"sources":["../../../../src/base-components/dialog/Dialog.tsx"],"version":3,"file":"Dialog.d.ts"}
1
+ {"mappings":"AAmBA,OAAO,WAAW,OAAQ;AAG1B,iBAAiB,YAAY;CAC3B;CACA,eAAeA;CACf,OAAO,MAAM;CACb,UAAU,MAAM;CAChB,SAAS,MAAM;CACf;CACA;AACD;AAED,OAAO,iBAAS,OAAO,EACrB,QACA,cACA,OACA,UACA,QACA,WACA,yBACY,EAAX,cAAc,MAAM","names":["open: boolean"],"sources":["../../../../src/base-components/dialog/Dialog.tsx"],"version":3,"file":"Dialog.d.ts"}
@@ -1,4 +1,5 @@
1
- import type { DerivedProperty, ObjectOrInterfaceDefinition, ObjectSet, Osdk, PrimaryKeyType, PropertyKeys, QueryDefinition, QueryMetadata, SimplePropertyDef, WhereClause } from "@osdk/api";
1
+ import type { CompileTimeMetadata, DerivedProperty, ObjectOrInterfaceDefinition, ObjectSet, Osdk, PrimaryKeyType, PropertyKeys, QueryDefinition, SimplePropertyDef, WhereClause } from "@osdk/api";
2
+ import type { QueryParameterType } from "@osdk/client/unstable-do-not-use";
2
3
  import type * as React from "react";
3
4
  import type { CellEditInfo } from "./utils/types.js";
4
5
  export type ColumnDefinition<
@@ -46,7 +47,7 @@ export type ColumnDefinition<
46
47
  */
47
48
  renderHeader?: () => React.ReactNode
48
49
  };
49
- export type ExtractQueryParameters<TQueryDef extends QueryDefinition> = TQueryDef["__DefinitionMetadata"] extends QueryMetadata ? TQueryDef["__DefinitionMetadata"]["parameters"] : never;
50
+ export type ExtractQueryParameters<Q extends QueryDefinition> = CompileTimeMetadata<Q>["parameters"] extends Record<string, never> ? undefined : QueryParameterType<CompileTimeMetadata<Q>["parameters"]>;
50
51
  export interface PropertyColumnLocator<Q extends ObjectOrInterfaceDefinition> {
51
52
  type: "property";
52
53
  id: PropertyKeys<Q>;
@@ -68,7 +69,7 @@ export interface FunctionColumnLocator<
68
69
  * @param objectSet - The current object set.
69
70
  * @returns - The function's input parameters including the object set.
70
71
  */
71
- getFunctionParams: (objectSet: ObjectSet<Q>) => ExtractQueryParameters<FunctionColumns[keyof FunctionColumns]>;
72
+ getFunctionParams: (objectSet: ObjectSet<Q, RDPs>) => ExtractQueryParameters<FunctionColumns[keyof FunctionColumns]>;
72
73
  /**
73
74
  * Function to generate keys for looking up results in the FunctionsMap.
74
75
  * @param object - The object instance
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,iBACA,6BACA,WACA,MACA,gBACA,cACA,iBACA,eACA,mBACA,mBACK,WAAY;AACnB,iBAAiB,WAAW,OAAQ;AACpC,cAAc,oBAAoB,kBAAmB;AAErD,YAAY;CACV,UAAU;CACV,aAAa,eAAe,qBAAqB;CACjD,wBAAwB,eAAe,gBAAgB,CAAE,MAAK;IAI5D;CACF,SAAS,wBAAwB,GAAG,MAAM;;;;CAK1C;;;;CAKA,SAAS,SAAS,UAAU;CAC5B;CACA;CACA;CACA;CACA;CACA;CACA;;;;;;;CAQA,gBACEA,mBACG;CAEL,cACEC,QAAQ,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI,OAChEC,SAAS,wBAAwB,GAAG,MAAM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AU,aAAa;EACvB,WAAW,QAAQ;CACpB;;;;;;CAOD,UAAU,MAAM;EACd,UAAU,aAAa;EACvB,WAAW,QAAQ;CACpB;;;;;;;CAQD,oBACEC,YAAY,MAAM;EAChB,UAAU,aAAa;EACvB,WAAW,QAAQ;CACpB;;;;;;;CASH,sBACEC,MAAM,aACJ,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI;;;;;;;;CAY5D,iBAAiBC,OAAO,aACtB,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI,sBAElD;;;;;;;;CASR,6BACEC,WAAW,MAAM;EACf,UAAU,aAAa,WAAW,aAAa;EAC/C;CACD;;;;;;;;CAUH,0BACEC,WAAW,MAAM;EACf,UAAU,aAAa,WAAW,aAAa;EAC/C,QAAQ,SAAS,UAAU;CAC5B;;;;;;;CASH,kBACEC,UAAU,aAAa,WAAW,aAAa,iBAC/CC;;;;;;CAQF,cACEX,QAAQ,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI;;;;;;;;;CAWlE,gBAAgB,WAAW,aAAa;;;;;CAMxC,eAAe,eAAe;;;;;CAM9B;;;;;;;;CASA,kBACEY,gBAAgB,eAAe,MAC/BC;;;;CAKF,yBACEC,KAAK,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI,OAC7DC,uBACG,MAAM;;;;;;CAOX;CAEA;AACD;AAED,iBAAiB,iBACf,UAAU,6BACV;;;;CAIA,QAAQ,UAAU;;;;CAKlB,YAAY,UAAU;;;;CAKtB,WAAW,UAAU;AACtB","names":["value: unknown","object: Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>","locator: ColumnDefinitionLocator<Q, RDPs, FunctionColumns>","objectSet: ObjectSet<Q>","cellData: unknown","newWhere: WhereClause<Q, RDPs>","newOrderBy: Array<{\n property: PropertyKeys<Q>;\n direction: \"asc\" | \"desc\";\n }>","info: CellEditInfo<\n Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>,\n unknown\n >","edits: CellEditInfo<\n Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>,\n unknown\n >[]","newStates: Array<{\n columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns;\n isVisible: boolean;\n }>","newStates: Array<{\n columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns;\n pinned: \"left\" | \"right\" | \"none\";\n }>","columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns","newWidth: number | null","selectedRowIds: PrimaryKeyType<Q>[]","isSelectAll?: boolean","row: Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>","cellValue: unknown"],"sources":["../../../src/object-table/ObjectTableApi.ts"],"version":3,"file":"ObjectTableApi.d.ts"}
1
+ {"mappings":"AAgBA,cACE,qBACA,iBACA,6BACA,WACA,MACA,gBACA,cACA,iBACA,mBACA,mBACK,WAAY;AACnB,cAAc,0BAA0B,kCAAmC;AAC3E,iBAAiB,WAAW,OAAQ;AACpC,cAAc,oBAAoB,kBAAmB;AAErD,YAAY;CACV,UAAU;CACV,aAAa,eAAe,qBAAqB;CACjD,wBAAwB,eAAe,gBAAgB,CAAE,MAAK;IAI5D;CACF,SAAS,wBAAwB,GAAG,MAAM;;;;CAK1C;;;;CAKA,SAAS,SAAS,UAAU;CAC5B;CACA;CACA;CACA;CACA;CACA;CACA;;;;;;;CAQA,gBACEA,mBACG;CAEL,cACEC,QAAQ,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI,OAChEC,SAAS,wBAAwB,GAAG,MAAM,qBACvC,MAAM;;;;;;;;;;CAWX;;;;;CAMA,qBAAqB,MAAM;AAC5B;AAED,YAAY,uBACV,UAAU,mBACR,oBAAoB,GAAG,sBAAsB,oCAE7C,mBAAmB,oBAAoB,GAAG;AAE9C,iBAAiB,sBAAsB,UAAU,6BAA6B;CAC5E,MAAM;CACN,IAAI,aAAa;AAClB;AAED,iBAAiB;CACf,UAAU;CACV,aAAa,eAAe,qBAAqB;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;;;CAY5D,iBAAiBC,OAAO,aACtB,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI,sBAElD;;;;;;;;CASR,6BACEC,WAAW,MAAM;EACf,UAAU,aAAa,WAAW,aAAa;EAC/C;CACD;;;;;;;;CAUH,0BACEC,WAAW,MAAM;EACf,UAAU,aAAa,WAAW,aAAa;EAC/C,QAAQ,SAAS,UAAU;CAC5B;;;;;;;CASH,kBACEC,UAAU,aAAa,WAAW,aAAa,iBAC/CC;;;;;;CAQF,cACEX,QAAQ,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI;;;;;;;;;CAWlE,gBAAgB,WAAW,aAAa;;;;;CAMxC,eAAe,eAAe;;;;;CAM9B;;;;;;;;CASA,kBACEY,gBAAgB,eAAe,MAC/BC;;;;CAKF,yBACEC,KAAK,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI,OAC7DC,uBACG,MAAM;;;;;;CAOX;CAEA;AACD;AAED,iBAAiB,iBACf,UAAU,6BACV;;;;CAIA,QAAQ,UAAU;;;;CAKlB,YAAY,UAAU;;;;CAKtB,WAAW,UAAU;AACtB","names":["value: unknown","object: Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>","locator: ColumnDefinitionLocator<Q, RDPs, FunctionColumns>","objectSet: ObjectSet<Q, RDPs>","cellData: unknown","newWhere: WhereClause<Q, RDPs>","newOrderBy: Array<{\n property: PropertyKeys<Q>;\n direction: \"asc\" | \"desc\";\n }>","info: CellEditInfo<\n Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>,\n unknown\n >","edits: CellEditInfo<\n Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>,\n unknown\n >[]","newStates: Array<{\n columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns;\n isVisible: boolean;\n }>","newStates: Array<{\n columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns;\n pinned: \"left\" | \"right\" | \"none\";\n }>","columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns","newWidth: number | null","selectedRowIds: PrimaryKeyType<Q>[]","isSelectAll?: boolean","row: Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>","cellValue: unknown"],"sources":["../../../src/object-table/ObjectTableApi.ts"],"version":3,"file":"ObjectTableApi.d.ts"}
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,6BACA,WACA,MACA,cACA,iBACA,yBACK,WAAY;AAGnB,cACE,wBAGK,sBAAuB;AAC9B,cACO,qBAEA,2BAA4B;AAEnC,iBAAiB,mBAAmB;qBACd;8BACU;CAC7B;AACF;AAqCD,OAAO,iBAAS;CACd,UAAU;CACV,aAAa,eAAe,qBAAqB;CACjD,wBAAwB,eAAe,gBAAgB,CAAE,MAAK;EAK9DA,WAAW,UAAU,GAAG,mBACxBC,SACI,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI,qBAE5DC,oBAAoB,MAAM,iBAAiB,GAAG,MAAM,oBACnD","names":["objectSet: ObjectSet<Q, RDPs> | undefined","objects:\n | Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>[]\n | undefined","columnDefinitions?: Array<ColumnDefinition<Q, RDPs, FunctionColumns>>"],"sources":["../../../../src/object-table/hooks/useFunctionColumnsData.ts"],"version":3,"file":"useFunctionColumnsData.d.ts"}
1
+ {"mappings":"AAgBA,cACE,6BACA,WACA,MACA,cACA,iBACA,yBACK,WAAY;AAOnB,cACE,wBAEK,sBAAuB;AAC9B,cACO,qBAEA,2BAA4B;AAEnC,iBAAiB,mBAAmB;qBACd;8BACU;CAC7B;AACF;AAmBD,OAAO,iBAAS;CACd,UAAU;CACV,aAAa,eAAe,qBAAqB;CACjD,wBAAwB,eAAe,gBAAgB,CAAE,MAAK;EAK9DA,WAAW,UAAU,GAAG,mBACxBC,SACI,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI,qBAE5DC,oBAAoB,MAAM,iBAAiB,GAAG,MAAM,oBACnD","names":["objectSet: ObjectSet<Q, RDPs> | undefined","objects:\n | Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>[]\n | undefined","columnDefinitions?: Array<ColumnDefinition<Q, RDPs, FunctionColumns>>"],"sources":["../../../../src/object-table/hooks/useFunctionColumnsData.ts"],"version":3,"file":"useFunctionColumnsData.d.ts"}
@@ -1,4 +1,4 @@
1
1
  import "pdfjs-dist/web/pdf_viewer.css";
2
2
  import React from "react";
3
- import type { PdfViewerProps } from "./types.js";
4
- export declare function BasePdfViewer({ src, annotations, onAnnotationClick, onDownload, initialPage, initialScale, initialSidebarOpen, enableDownload, sidebarMode: sidebarModeProp, outlineIcons, className }: PdfViewerProps): React.ReactElement;
3
+ import type { PdfViewerHandle, PdfViewerProps } from "./types.js";
4
+ export declare const BasePdfViewer: React.ForwardRefExoticComponent<PdfViewerProps & React.RefAttributes<PdfViewerHandle>>;
@@ -1 +1 @@
1
- {"mappings":"AAkBA,OAAO,+BAAgC;AACvC,OAAO,WAAW,OAAQ;AAU1B,cAAc,sBAAsB,YAAa;AAEjD,OAAO,iBAAS,cAAc,EAC5B,KACA,aACA,mBACA,YACA,aACA,cACA,oBACA,gBACA,aAAa,iBACb,cACA,WACe,EAAd,iBAAiB,MAAM","names":[],"sources":["../../../src/pdf-viewer/PdfViewer.tsx"],"version":3,"file":"PdfViewer.d.ts"}
1
+ {"mappings":"AAkBA,OAAO,+BAAgC;AACvC,OAAO,WAAgD,OAAQ;AAa/D,cAAc,iBAAiB,sBAAsB,YAAa;AAElE,OAAO,cAAMA,eAAe,MAAM,0BAChC,iBAAiB,MAAM,cAAc","names":["BasePdfViewer: React.ForwardRefExoticComponent<\n PdfViewerProps & React.RefAttributes<PdfViewerHandle>\n>"],"sources":["../../../src/pdf-viewer/PdfViewer.tsx"],"version":3,"file":"PdfViewer.d.ts"}
@@ -0,0 +1,64 @@
1
+ import type { PDFDocumentProxy } from "pdfjs-dist";
2
+ import type { EventBus, PDFFindController, PDFViewer } from "pdfjs-dist/web/pdf_viewer.mjs";
3
+ import React from "react";
4
+ import type { RefObject } from "react";
5
+ import type { AnnotationPortalTarget } from "./hooks/usePdfAnnotationPortals.js";
6
+ import type { UsePdfViewerSearchResult } from "./hooks/usePdfViewerSearch.js";
7
+ import type { OutlineItem, PdfAnnotation, PdfViewerInstanceOptions, SidebarMode } from "./types.js";
8
+ /** The shape of the value provided by {@link PdfViewerProvider}. */
9
+ export interface PdfViewerContextValue {
10
+ document: PDFDocumentProxy | undefined;
11
+ numPages: number;
12
+ loading: boolean;
13
+ error: Error | undefined;
14
+ containerRef: RefObject<HTMLDivElement>;
15
+ viewerRef: RefObject<HTMLDivElement>;
16
+ currentPage: number;
17
+ scrollToPage: (page: number) => void;
18
+ scale: number;
19
+ setScale: (scale: number) => void;
20
+ zoomIn: () => void;
21
+ zoomOut: () => void;
22
+ rotation: number;
23
+ rotateLeft: () => void;
24
+ rotateRight: () => void;
25
+ sidebarOpen: boolean;
26
+ sidebarMode: SidebarMode;
27
+ setSidebarMode: (mode: SidebarMode) => void;
28
+ toggleSidebar: () => void;
29
+ search: UsePdfViewerSearchResult;
30
+ outlineItems: OutlineItem[];
31
+ download: (filename?: string) => void;
32
+ portalTargets: AnnotationPortalTarget[];
33
+ highlightEnabled: boolean;
34
+ highlightModeActive: boolean;
35
+ toggleHighlightMode: () => void;
36
+ hasFormFields: boolean;
37
+ submitFormData: () => void;
38
+ annotations: PdfAnnotation[];
39
+ annotationsByPage: Record<number, PdfAnnotation[]>;
40
+ onAnnotationClick: ((annotation: PdfAnnotation) => void) | undefined;
41
+ enableDownload: boolean;
42
+ enableFormSave: boolean;
43
+ outlineIcons: Partial<Record<number, React.ComponentType>> | undefined;
44
+ pdfViewerRef: RefObject<PDFViewer | null>;
45
+ eventBusRef: RefObject<EventBus | null>;
46
+ findControllerRef: RefObject<PDFFindController | null>;
47
+ }
48
+ export interface PdfViewerProviderProps {
49
+ value: PdfViewerContextValue;
50
+ children: React.ReactNode;
51
+ }
52
+ /** Provides {@link PdfViewerContextValue} to descendant components. */
53
+ export declare function PdfViewerProvider({ value, children }: PdfViewerProviderProps): React.ReactElement;
54
+ /**
55
+ * Returns the nearest {@link PdfViewerContextValue} from a {@link PdfViewerProvider}.
56
+ * Throws if called outside a provider.
57
+ */
58
+ export declare function usePdfViewerContext(): PdfViewerContextValue;
59
+ /**
60
+ * Consumer-facing setup hook analogous to react-hook-form's `useForm()`.
61
+ * Accepts viewer options and returns a {@link PdfViewerContextValue} suitable
62
+ * for passing to {@link PdfViewerProvider}.
63
+ */
64
+ export declare function usePdfViewerInstance(options: PdfViewerInstanceOptions): PdfViewerContextValue;
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,wBAAwB,YAAa;AACnD,cACE,UACA,mBACA,iBACK,+BAAgC;AACvC,OAAO,WAAmD,OAAQ;AAClE,cAAc,iBAAiB,OAAQ;AAEvC,cACE,8BACK,oCAAqC;AAI5C,cAAc,gCAAgC,+BAAgC;AAE9E,cACE,aACA,eACA,0BACA,mBACK,YAAa;;AAGpB,iBAAiB,sBAAsB;CAErC,UAAU;CACV;CACA;CACA,OAAO;CACP,cAAc,UAAU;CACxB,WAAW,UAAU;CACrB;CACA,eAAeA;CACf;CACA,WAAWC;CACX;CACA;CACA;CACA;CACA;CACA;CACA,aAAa;CACb,iBAAiBC,MAAM;CACvB;CACA,QAAQ;CACR,cAAc;CACd,WAAWC;CACX,eAAe;CAGf;CACA;CACA;CAGA;CACA;CAGA,aAAa;CACb,mBAAmB,eAAe;CAClC,qBAAqBC,YAAY;CAGjC;CACA;CACA,cAAc,QAAQ,eAAe,MAAM;CAG3C,cAAc,UAAU;CACxB,aAAa,UAAU;CACvB,mBAAmB,UAAU;AAC9B;AAID,iBAAiB,uBAAuB;CACtC,OAAO;CACP,UAAU,MAAM;AACjB;;AAGD,OAAO,iBAAS,kBACd,EAAE,OAAO,UAAkC,EAAtB,yBACpB,MAAM;;;;;AAYT,OAAO,iBAAS,uBAAuB;;;;;;AAevC,OAAO,iBAAS,qBACdC,SAAS,2BACR","names":["page: number","scale: number","mode: SidebarMode","filename?: string","annotation: PdfAnnotation","options: PdfViewerInstanceOptions"],"sources":["../../../src/pdf-viewer/PdfViewerContext.tsx"],"version":3,"file":"PdfViewerContext.d.ts"}
@@ -1 +1 @@
1
- {"mappings":"AAiBA,OAAO,WAAqC,OAAQ;AACpD,cAAc,qBAAqB,aAAc;AAGjD,iBAAiB,8BAA8B;CAC7C,aAAa;CACb;CACA;CACA,qBAAqBA,YAAY;AAClC;AAgED,OAAO,iBAAS,yBAAyB,EACvC,aACA,YACA,OACA,mBAC8B,EAA7B,gCAAgC,MAAM","names":["annotation: PdfAnnotation"],"sources":["../../../../src/pdf-viewer/components/PdfViewerAnnotationLayer.tsx"],"version":3,"file":"PdfViewerAnnotationLayer.d.ts"}
1
+ {"mappings":"AAiBA,OAAO,WAAqC,OAAQ;AACpD,cAAc,qBAAmD,aAAc;AAG/E,iBAAiB,8BAA8B;CAC7C,aAAa;CACb;CACA;CACA,qBAAqBA,YAAY;AAClC;AA4JD,OAAO,iBAAS,yBAAyB,EACvC,aACA,YACA,OACA,mBAC8B,EAA7B,gCAAgC,MAAM","names":["annotation: PdfAnnotation"],"sources":["../../../../src/pdf-viewer/components/PdfViewerAnnotationLayer.tsx"],"version":3,"file":"PdfViewerAnnotationLayer.d.ts"}
@@ -1,11 +1,11 @@
1
1
  import "pdfjs-dist/web/pdf_viewer.css";
2
2
  import React from "react";
3
- import type { PdfAnnotation } from "../types.js";
3
+ import type { PdfAnnotation, PdfFormFieldValue } from "../types.js";
4
4
  export interface PdfViewerContentProps {
5
5
  /** PDF source — URL string or ArrayBuffer */
6
6
  src: string | ArrayBuffer;
7
- /** Annotations to overlay on the PDF, keyed by page number (1-indexed) */
8
- annotations?: Record<number, PdfAnnotation[]>;
7
+ /** Annotations to overlay on the PDF */
8
+ annotations?: PdfAnnotation[];
9
9
  /** Callback fired when an annotation is clicked */
10
10
  onAnnotationClick?: (annotation: PdfAnnotation) => void;
11
11
  /** Initial page number (1-indexed, default 1) */
@@ -16,7 +16,11 @@ export interface PdfViewerContentProps {
16
16
  onPageChange?: (page: number) => void;
17
17
  /** Callback fired when the zoom scale changes */
18
18
  onScaleChange?: (scale: number) => void;
19
+ /** Initial form field values keyed by field name. Applied when the document loads. */
20
+ formData?: Record<string, PdfFormFieldValue>;
21
+ /** Callback fired when any form field value changes. */
22
+ onFormChange?: (fieldName: string, value: PdfFormFieldValue) => void;
19
23
  /** Additional CSS class name for the root element */
20
24
  className?: string;
21
25
  }
22
- export declare function PdfViewerContent({ src, annotations, onAnnotationClick, initialPage, initialScale, onPageChange: onPageChangeProp, onScaleChange: onScaleChangeProp, className }: PdfViewerContentProps): React.ReactElement;
26
+ export declare function PdfViewerContent({ src, annotations, onAnnotationClick, initialPage, initialScale, onPageChange: onPageChangeProp, onScaleChange: onScaleChangeProp, formData, onFormChange, className }: PdfViewerContentProps): React.ReactElement;
@@ -1 +1 @@
1
- {"mappings":"AAkBA,OAAO,+BAAgC;AACvC,OAAO,WAAkC,OAAQ;AAKjD,cAAc,qBAAqB,aAAc;AAGjD,iBAAiB,sBAAsB;;CAErC,cAAc;;CAEd,cAAc,eAAe;;CAE7B,qBAAqBA,YAAY;;CAEjC;;CAEA;;CAEA,gBAAgBC;;CAEhB,iBAAiBC;;CAEjB;AACD;AAED,OAAO,iBAAS,iBAAiB,EAC/B,KACA,aACA,mBACA,aACA,cACA,cAAc,kBACd,eAAe,mBACf,WACsB,EAArB,wBAAwB,MAAM","names":["annotation: PdfAnnotation","page: number","scale: number"],"sources":["../../../../src/pdf-viewer/components/PdfViewerContent.tsx"],"version":3,"file":"PdfViewerContent.d.ts"}
1
+ {"mappings":"AAkBA,OAAO,+BAAgC;AACvC,OAAO,WAAkC,OAAQ;AAOjD,cAAc,eAAe,yBAAyB,aAAc;AAGpE,iBAAiB,sBAAsB;;CAErC,cAAc;;CAEd,cAAc;;CAEd,qBAAqBA,YAAY;;CAEjC;;CAEA;;CAEA,gBAAgBC;;CAEhB,iBAAiBC;;CAEjB,WAAW,eAAe;;CAE1B,gBAAgBC,mBAAmBC,OAAO;;CAE1C;AACD;AAED,OAAO,iBAAS,iBAAiB,EAC/B,KACA,aACA,mBACA,aACA,cACA,cAAc,kBACd,eAAe,mBACf,UACA,cACA,WACsB,EAArB,wBAAwB,MAAM","names":["annotation: PdfAnnotation","page: number","scale: number","fieldName: string","value: PdfFormFieldValue"],"sources":["../../../../src/pdf-viewer/components/PdfViewerContent.tsx"],"version":3,"file":"PdfViewerContent.d.ts"}
@@ -12,5 +12,10 @@ export interface PdfViewerToolbarProps {
12
12
  enableDownload: boolean;
13
13
  onRotateLeft: () => void;
14
14
  onRotateRight: () => void;
15
+ enableHighlight: boolean;
16
+ highlightModeActive: boolean;
17
+ onHighlightToggle: () => void;
18
+ enableFormSave?: boolean;
19
+ onFormSave?: () => void;
15
20
  }
16
- export declare function PdfViewerToolbar({ currentPage, numPages, scale, sidebarOpen, onPageChange, onScaleChange, onSearchOpen, onSidebarToggle, onDownload, enableDownload, onRotateLeft, onRotateRight }: PdfViewerToolbarProps): React.ReactElement;
21
+ export declare function PdfViewerToolbar({ currentPage, numPages, scale, sidebarOpen, onPageChange, onScaleChange, onSearchOpen, onSidebarToggle, onDownload, enableDownload, onRotateLeft, onRotateRight, enableHighlight, highlightModeActive, onHighlightToggle, enableFormSave, onFormSave }: PdfViewerToolbarProps): React.ReactElement;
@@ -1 +1 @@
1
- {"mappings":"AA4BA,OAAO,WAAiD,OAAQ;AAIhE,iBAAiB,sBAAsB;CACrC;CACA;CACA;CACA;CACA,eAAeA;CACf,gBAAgBC;CAChB;CACA;CACA;CACA;CACA;CACA;AACD;AAED,OAAO,iBAAS,iBAAiB,EAC/B,aACA,UACA,OACA,aACA,cACA,eACA,cACA,iBACA,YACA,gBACA,cACA,eACsB,EAArB,wBAAwB,MAAM","names":["page: number","scale: number"],"sources":["../../../../src/pdf-viewer/components/PdfViewerToolbar.tsx"],"version":3,"file":"PdfViewerToolbar.d.ts"}
1
+ {"mappings":"AA+BA,OAAO,WAAiD,OAAQ;AAIhE,iBAAiB,sBAAsB;CACrC;CACA;CACA;CACA;CACA,eAAeA;CACf,gBAAgBC;CAChB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD;AAED,OAAO,iBAAS,iBAAiB,EAC/B,aACA,UACA,OACA,aACA,cACA,eACA,cACA,iBACA,YACA,gBACA,cACA,eACA,iBACA,qBACA,mBACA,gBACA,YACsB,EAArB,wBAAwB,MAAM","names":["page: number","scale: number"],"sources":["../../../../src/pdf-viewer/components/PdfViewerToolbar.tsx"],"version":3,"file":"PdfViewerToolbar.d.ts"}
@@ -1,5 +1,4 @@
1
1
  import type { PdfAnnotation } from "./types.js";
2
- export declare const EMPTY_ANNOTATIONS: Record<number, PdfAnnotation[]>;
3
2
  export declare const EMPTY_ANNOTATION_ARRAY: PdfAnnotation[];
4
3
  export declare const EMPTY_STRING = "";
5
4
  export declare const SCALE_STEP = .25;
@@ -20,3 +19,4 @@ export declare const PAGE_CHANGING_EVENT = "pagechanging";
20
19
  export declare const SCALE_CHANGING_EVENT = "scalechanging";
21
20
  export declare const PAGE_RENDERED_EVENT = "pagerendered";
22
21
  export declare const PAGES_LOADED_EVENT = "pagesloaded";
22
+ export declare const ANNOTATION_LAYER_RENDERED_EVENT = "annotationlayerrendered";
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,qBAAqB,YAAa;AAGhD,OAAO,cAAMA,mBAAmB,eAAe;AAC/C,OAAO,cAAMC,wBAAwB;AACrC,OAAO,cAAM,eAAe;AAG5B,OAAO,cAAM,aAAa;AAC1B,OAAO,cAAM,YAAY;AACzB,OAAO,cAAM,YAAY;AACzB,OAAO,cAAM,sBAAsB;AACnC,OAAO,cAAM,gBAAgB;AAC7B,OAAO,cAAM,kBAAkB;AAC/B,OAAO,cAAMC;;AAMb,OAAO,cAAM,6BAA6B;;AAE1C,OAAO,cAAM,6BAA6B;AAG1C,OAAO,cAAM,aAAa;AAC1B,OAAO,cAAM,kCAAkC;AAC/C,OAAO,cAAM,kCAAkC;AAC/C,OAAO,cAAM,sBAAsB;AACnC,OAAO,cAAM,uBAAuB;AACpC,OAAO,cAAM,sBAAsB;AACnC,OAAO,cAAM,qBAAqB","names":["EMPTY_ANNOTATIONS: Record<number, PdfAnnotation[]>","EMPTY_ANNOTATION_ARRAY: PdfAnnotation[]","DEVICE_PIXEL_RATIO: number"],"sources":["../../../src/pdf-viewer/constants.ts"],"version":3,"file":"constants.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,qBAAqB,YAAa;AAGhD,OAAO,cAAMA,wBAAwB;AACrC,OAAO,cAAM,eAAe;AAG5B,OAAO,cAAM,aAAa;AAC1B,OAAO,cAAM,YAAY;AACzB,OAAO,cAAM,YAAY;AACzB,OAAO,cAAM,sBAAsB;AACnC,OAAO,cAAM,gBAAgB;AAC7B,OAAO,cAAM,kBAAkB;AAC/B,OAAO,cAAMC;;AAMb,OAAO,cAAM,6BAA6B;;AAE1C,OAAO,cAAM,6BAA6B;AAG1C,OAAO,cAAM,aAAa;AAC1B,OAAO,cAAM,kCAAkC;AAC/C,OAAO,cAAM,kCAAkC;AAC/C,OAAO,cAAM,sBAAsB;AACnC,OAAO,cAAM,uBAAuB;AACpC,OAAO,cAAM,sBAAsB;AACnC,OAAO,cAAM,qBAAqB;AAElC,OAAO,cAAM,kCAAkC","names":["EMPTY_ANNOTATION_ARRAY: PdfAnnotation[]","DEVICE_PIXEL_RATIO: number"],"sources":["../../../src/pdf-viewer/constants.ts"],"version":3,"file":"constants.d.ts"}
@@ -0,0 +1,5 @@
1
+ import type { PdfAnnotation } from "../types.js";
2
+ /**
3
+ * Groups a flat array of annotations by page number for efficient per-page lookup.
4
+ */
5
+ export declare function usePdfAnnotationsByPage(annotations: PdfAnnotation[]): Record<number, PdfAnnotation[]>;
@@ -0,0 +1 @@
1
+ {"mappings":"AAiBA,cAAc,qBAAqB,aAAc;;;;AAKjD,OAAO,iBAAS,wBACdA,aAAa,kBACZ,eAAe","names":["annotations: PdfAnnotation[]"],"sources":["../../../../src/pdf-viewer/hooks/usePdfAnnotationsByPage.ts"],"version":3,"file":"usePdfAnnotationsByPage.d.ts"}
@@ -0,0 +1,24 @@
1
+ import type { PDFDocumentProxy } from "pdfjs-dist";
2
+ import type { EventBus, PDFViewer } from "pdfjs-dist/web/pdf_viewer.mjs";
3
+ import type { RefObject } from "react";
4
+ import type { PdfFormFieldValue } from "../types.js";
5
+ export interface UsePdfFormFieldsOptions {
6
+ pdfViewerRef: RefObject<PDFViewer | null>;
7
+ eventBusRef: RefObject<EventBus | null>;
8
+ document: PDFDocumentProxy | undefined;
9
+ formData?: Record<string, PdfFormFieldValue>;
10
+ onFormSubmit?: (data: Record<string, PdfFormFieldValue>) => void;
11
+ onFormChange?: (fieldName: string, value: PdfFormFieldValue) => void;
12
+ }
13
+ export interface UsePdfFormFieldsResult {
14
+ /** Whether the loaded PDF contains interactive form fields. */
15
+ hasFormFields: boolean;
16
+ /** Collect all current form field values and invoke onFormSubmit. */
17
+ submitFormData: () => void;
18
+ }
19
+ /**
20
+ * Hook that manages interactive PDF form fields.
21
+ * Builds a field metadata map, pre-populates initial values,
22
+ * listens for field changes, and collects values on submit.
23
+ */
24
+ export declare function usePdfFormFields({ pdfViewerRef, eventBusRef, document, formData, onFormSubmit, onFormChange }: UsePdfFormFieldsOptions): UsePdfFormFieldsResult;
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,wBAAwB,YAAa;AACnD,cAAc,UAAU,iBAAiB,+BAAgC;AACzE,cAAc,iBAAiB,OAAQ;AAGvC,cAAc,yBAAyB,aAAc;AAerD,iBAAiB,wBAAwB;CACvC,cAAc,UAAU;CACxB,aAAa,UAAU;CACvB,UAAU;CACV,WAAW,eAAe;CAC1B,gBAAgBA,MAAM,eAAe;CACrC,gBAAgBC,mBAAmBC,OAAO;AAC3C;AAED,iBAAiB,uBAAuB;;CAEtC;;CAEA;AACD;;;;;;AAqED,OAAO,iBAAS,iBAAiB,EAC/B,cACA,aACA,UACA,UACA,cACA,cACwB,EAAvB,0BAA0B","names":["data: Record<string, PdfFormFieldValue>","fieldName: string","value: PdfFormFieldValue"],"sources":["../../../../src/pdf-viewer/hooks/usePdfFormFields.ts"],"version":3,"file":"usePdfFormFields.d.ts"}
@@ -0,0 +1,36 @@
1
+ import type { PDFDocumentProxy } from "pdfjs-dist";
2
+ import type { PDFViewer } from "pdfjs-dist/web/pdf_viewer.mjs";
3
+ import type { RefObject } from "react";
4
+ import type { PdfRect, PdfTextHighlightEvent } from "../types.js";
5
+ export interface UsePdfHighlightModeOptions {
6
+ pdfViewerRef: RefObject<PDFViewer | null>;
7
+ document: PDFDocumentProxy | undefined;
8
+ enabled: boolean;
9
+ onTextHighlight?: (event: PdfTextHighlightEvent) => void;
10
+ onHighlightDelete?: (event: PdfTextHighlightEvent) => void;
11
+ }
12
+ export interface UsePdfHighlightModeResult {
13
+ highlightModeActive: boolean;
14
+ toggleHighlightMode: () => void;
15
+ deleteHighlight: (editorId: string) => void;
16
+ }
17
+ /**
18
+ * Converts an RGB array (0.0–1.0 per channel) to a CSS hex color string.
19
+ */
20
+ export declare function rgbArrayToHex(color: number[]): string;
21
+ /**
22
+ * Converts quadPoints (PDF spec format) back to PdfRect[].
23
+ * QuadPoints are 8 values per quad: [x1,y1, x2,y2, x3,y3, x4,y4]
24
+ * representing the four corners of each highlight rect.
25
+ *
26
+ * PDF.js highlight editor produces axis-aligned quads with ordering:
27
+ * (x1,y1)=top-left, (x2,y2)=top-right, (x3,y3)=bottom-left, (x4,y4)=bottom-right
28
+ * We derive the bounding rect from x1, y1 (top), x2 (right edge), y3 (bottom).
29
+ */
30
+ export declare function quadPointsToRects(quadPoints: Float32Array): PdfRect[];
31
+ /**
32
+ * Hook that manages the PDF.js built-in highlight annotation editor mode.
33
+ * When active, users can select text to create highlights.
34
+ * A callback fires with the annotation details for persistence.
35
+ */
36
+ export declare function usePdfHighlightMode({ pdfViewerRef, document, enabled, onTextHighlight, onHighlightDelete }: UsePdfHighlightModeOptions): UsePdfHighlightModeResult;
@@ -0,0 +1 @@
1
+ {"mappings":"AAiBA,cAAc,wBAAwB,YAAa;AACnD,cAAc,iBAAiB,+BAAgC;AAC/D,cAAc,iBAAiB,OAAQ;AAEvC,cAAc,SAAS,6BAA6B,aAAc;AAElE,iBAAiB,2BAA2B;CAC1C,cAAc,UAAU;CACxB,UAAU;CACV;CACA,mBAAmBA,OAAO;CAC1B,qBAAqBA,OAAO;AAC7B;AAED,iBAAiB,0BAA0B;CACzC;CACA;CACA,kBAAkBC;AACnB;;;;AAKD,OAAO,iBAAS,cAAcC;;;;;;;;;;AAkB9B,OAAO,iBAAS,kBACdC,YAAY,eACX;;;;;;AAuBH,OAAO,iBAAS,oBAAoB,EAClC,cACA,UACA,SACA,iBACA,mBAC2B,EAA1B,6BAA6B","names":["event: PdfTextHighlightEvent","editorId: string","color: number[]","quadPoints: Float32Array"],"sources":["../../../../src/pdf-viewer/hooks/usePdfHighlightMode.ts"],"version":3,"file":"usePdfHighlightMode.d.ts"}
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,wBAAwB,YAAa;AACnD,SACE,UACA,mBAEA,iBACK,+BAAgC;AACvC,cAAc,iBAAiB,OAAQ;AAIvC,iBAAiB,mBAAmB;CAClC,cAAc,UAAU;CACxB,aAAa,UAAU;CACvB,mBAAmB,UAAU;AAC9B;AAED,OAAO,iBAAS,aACdA,cAAc,UAAU,wBACxBC,WAAW,UAAU,wBACrBC,UAAU,8BACVC,uBACAC,uBACC","names":["containerRef: RefObject<HTMLDivElement | null>","viewerRef: RefObject<HTMLDivElement | null>","document: PDFDocumentProxy | undefined","initialScale?: number","initialPage?: number"],"sources":["../../../../src/pdf-viewer/hooks/usePdfViewer.ts"],"version":3,"file":"usePdfViewer.d.ts"}
1
+ {"mappings":"AAiBA,cAAc,wBAAwB,YAAa;AACnD,SACE,UACA,mBAEA,iBACK,+BAAgC;AACvC,cAAc,iBAAiB,OAAQ;AAIvC,iBAAiB,mBAAmB;CAClC,cAAc,UAAU;CACxB,aAAa,UAAU;CACvB,mBAAmB,UAAU;AAC9B;AAED,OAAO,iBAAS,aACdA,cAAc,UAAU,wBACxBC,WAAW,UAAU,wBACrBC,UAAU,8BACVC,uBACAC,uBACC","names":["containerRef: RefObject<HTMLDivElement | null>","viewerRef: RefObject<HTMLDivElement | null>","document: PDFDocumentProxy | undefined","initialScale?: number","initialPage?: number"],"sources":["../../../../src/pdf-viewer/hooks/usePdfViewer.ts"],"version":3,"file":"usePdfViewer.d.ts"}