@osdk/react-components 0.41.0 → 0.42.0-main-ecfcf3d26dbf2ca0124cc59848ff773e87f339c4

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 (84) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/browser/cbac-picker/CbacBanner.js +6 -3
  3. package/build/browser/cbac-picker/CbacBanner.js.map +1 -1
  4. package/build/browser/cbac-picker/base/BaseCbacBanner.js +18 -1
  5. package/build/browser/cbac-picker/base/BaseCbacBanner.js.map +1 -1
  6. package/build/browser/cbac-picker/base/BaseCbacBanner.module.css +6 -0
  7. package/build/browser/cbac-picker/base/BaseCbacBanner.module.css.js +1 -0
  8. package/build/browser/styles.css +10 -0
  9. package/build/browser/tokens/component-tokens/cbac-picker.css +4 -0
  10. package/build/browser/util/UserAgent.js +1 -1
  11. package/build/browser/util/UserAgent.js.map +1 -1
  12. package/build/cjs/{chunk-3OWSHPWL.cjs → chunk-2F55VJ75.cjs} +4 -4
  13. package/build/cjs/{chunk-3OWSHPWL.cjs.map → chunk-2F55VJ75.cjs.map} +1 -1
  14. package/build/cjs/chunk-2KEOGT7E.cjs +11 -0
  15. package/build/cjs/{chunk-XGOBDPLC.cjs.map → chunk-2KEOGT7E.cjs.map} +1 -1
  16. package/build/cjs/{chunk-V53JNAEC.cjs → chunk-5ZJIJ2KU.cjs} +4 -4
  17. package/build/cjs/{chunk-V53JNAEC.cjs.map → chunk-5ZJIJ2KU.cjs.map} +1 -1
  18. package/build/cjs/chunk-72BR4CWL.cjs +11 -0
  19. package/build/cjs/{chunk-P7EZ2DQ2.cjs.map → chunk-72BR4CWL.cjs.map} +1 -1
  20. package/build/cjs/{chunk-LWVPWBMP.cjs → chunk-7H3YLRWV.cjs} +4 -4
  21. package/build/cjs/{chunk-LWVPWBMP.cjs.map → chunk-7H3YLRWV.cjs.map} +1 -1
  22. package/build/cjs/chunk-AAI637QW.cjs +11 -0
  23. package/build/cjs/{chunk-FKOFZSZD.cjs.map → chunk-AAI637QW.cjs.map} +1 -1
  24. package/build/cjs/{chunk-ZMAWPOG5.cjs → chunk-AMIL4453.cjs} +26 -8
  25. package/build/cjs/chunk-AMIL4453.cjs.map +1 -0
  26. package/build/cjs/chunk-DOCAILZS.cjs +11 -0
  27. package/build/cjs/{chunk-XXPWKSVT.cjs.map → chunk-DOCAILZS.cjs.map} +1 -1
  28. package/build/cjs/{chunk-MSI7HILM.cjs → chunk-EPGQKD2W.cjs} +7 -7
  29. package/build/cjs/{chunk-MSI7HILM.cjs.map → chunk-EPGQKD2W.cjs.map} +1 -1
  30. package/build/cjs/chunk-FSZ55W6N.cjs +11 -0
  31. package/build/cjs/{chunk-TPJZ6QL2.cjs.map → chunk-FSZ55W6N.cjs.map} +1 -1
  32. package/build/cjs/{chunk-AJTZWKW2.cjs → chunk-MOOLZJVZ.cjs} +22 -22
  33. package/build/cjs/{chunk-AJTZWKW2.cjs.map → chunk-MOOLZJVZ.cjs.map} +1 -1
  34. package/build/cjs/{chunk-OWBDRWL6.cjs → chunk-OWJ273YN.cjs} +3 -3
  35. package/build/cjs/chunk-OWJ273YN.cjs.map +1 -0
  36. package/build/cjs/{chunk-4FCWR6OW.cjs → chunk-PMXCM5IU.cjs} +4 -4
  37. package/build/cjs/{chunk-4FCWR6OW.cjs.map → chunk-PMXCM5IU.cjs.map} +1 -1
  38. package/build/cjs/{chunk-2PZPTWXN.cjs → chunk-U4LEIAUA.cjs} +4 -4
  39. package/build/cjs/{chunk-2PZPTWXN.cjs.map → chunk-U4LEIAUA.cjs.map} +1 -1
  40. package/build/cjs/{chunk-GLBBDB6P.cjs → chunk-VRX3IDUJ.cjs} +4 -4
  41. package/build/cjs/{chunk-GLBBDB6P.cjs.map → chunk-VRX3IDUJ.cjs.map} +1 -1
  42. package/build/cjs/public/experimental/action-form.cjs +4 -4
  43. package/build/cjs/public/experimental/cbac-picker.cjs +14 -14
  44. package/build/cjs/public/experimental/cbac-picker.css +27 -22
  45. package/build/cjs/public/experimental/cbac-picker.css.map +1 -1
  46. package/build/cjs/public/experimental/cbac-picker.d.cts +4 -2
  47. package/build/cjs/public/experimental/document-viewer.cjs +4 -4
  48. package/build/cjs/public/experimental/email-viewer.cjs +3 -3
  49. package/build/cjs/public/experimental/excel-viewer.cjs +3 -3
  50. package/build/cjs/public/experimental/filter-list.cjs +15 -15
  51. package/build/cjs/public/experimental/image-viewer.cjs +3 -3
  52. package/build/cjs/public/experimental/markdown-renderer.cjs +3 -3
  53. package/build/cjs/public/experimental/object-table.cjs +22 -22
  54. package/build/cjs/public/experimental/object-table.css +5 -0
  55. package/build/cjs/public/experimental/object-table.css.map +1 -1
  56. package/build/cjs/public/experimental/pdf-viewer.cjs +7 -7
  57. package/build/cjs/public/experimental/tiff-renderer.cjs +3 -3
  58. package/build/cjs/public/experimental/video-viewer.cjs +3 -3
  59. package/build/cjs/public/experimental/xml-viewer.cjs +3 -3
  60. package/build/cjs/public/experimental.cjs +74 -74
  61. package/build/cjs/public/experimental.css +5 -0
  62. package/build/cjs/public/experimental.css.map +1 -1
  63. package/build/esm/cbac-picker/CbacBanner.js +6 -3
  64. package/build/esm/cbac-picker/CbacBanner.js.map +1 -1
  65. package/build/esm/cbac-picker/base/BaseCbacBanner.js +18 -1
  66. package/build/esm/cbac-picker/base/BaseCbacBanner.js.map +1 -1
  67. package/build/esm/cbac-picker/base/BaseCbacBanner.module.css +6 -0
  68. package/build/esm/tokens/component-tokens/cbac-picker.css +4 -0
  69. package/build/esm/util/UserAgent.js +1 -1
  70. package/build/esm/util/UserAgent.js.map +1 -1
  71. package/build/types/cbac-picker/CbacBanner.d.ts +2 -1
  72. package/build/types/cbac-picker/CbacBanner.d.ts.map +1 -1
  73. package/build/types/cbac-picker/base/BaseCbacBanner.d.ts +2 -1
  74. package/build/types/cbac-picker/base/BaseCbacBanner.d.ts.map +1 -1
  75. package/docs/CSSVariables.md +11 -10
  76. package/docs/CbacPicker.md +13 -0
  77. package/package.json +5 -5
  78. package/build/cjs/chunk-FKOFZSZD.cjs +0 -11
  79. package/build/cjs/chunk-OWBDRWL6.cjs.map +0 -1
  80. package/build/cjs/chunk-P7EZ2DQ2.cjs +0 -11
  81. package/build/cjs/chunk-TPJZ6QL2.cjs +0 -11
  82. package/build/cjs/chunk-XGOBDPLC.cjs +0 -11
  83. package/build/cjs/chunk-XXPWKSVT.cjs +0 -11
  84. package/build/cjs/chunk-ZMAWPOG5.cjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @osdk/react-components
2
2
 
3
+ ## 0.42.0-main-ecfcf3d26dbf2ca0124cc59848ff773e87f339c4
4
+
5
+ ### Minor Changes
6
+
7
+ - 12e6a69: Add an `isLoading` prop to `CbacBanner`/`BaseCbacBanner` that renders an animated skeleton placeholder matching the banner's width and height. On the OSDK `CbacBanner`, it is OR'd with the banner query's own loading state so the skeleton also shows automatically while marking data is being fetched.
8
+
3
9
  ## 0.41.0
4
10
 
5
11
  ### Minor Changes
@@ -22,10 +22,12 @@ export function CbacBanner({
22
22
  markingIds,
23
23
  onClick,
24
24
  onDismiss,
25
- className
25
+ className,
26
+ isLoading = false
26
27
  }) {
27
28
  const {
28
- banner
29
+ banner,
30
+ isLoading: isFetchingCbacMarkings
29
31
  } = useCbacBanner({
30
32
  markingIds
31
33
  });
@@ -36,7 +38,8 @@ export function CbacBanner({
36
38
  backgroundColors: resolved.backgroundColors,
37
39
  onClick: onClick,
38
40
  onDismiss: onDismiss,
39
- className: className
41
+ className: className,
42
+ isLoading: isFetchingCbacMarkings || isLoading
40
43
  });
41
44
  }
42
45
  //# sourceMappingURL=CbacBanner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CbacBanner.js","names":["useCbacBanner","React","BaseCbacBanner","resolveBannerDisplay","CbacBanner","markingIds","onClick","onDismiss","className","banner","resolved","createElement","classificationString","textColor","backgroundColors"],"sources":["CbacBanner.tsx"],"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 { useCbacBanner } from \"@osdk/react/platform-apis\";\nimport React from \"react\";\n\nimport { BaseCbacBanner } from \"./base/BaseCbacBanner.js\";\nimport { resolveBannerDisplay } from \"./utils/cbacPickerUtils.js\";\n\nexport interface CbacBannerProps {\n markingIds: string[];\n onClick?: () => void;\n onDismiss?: () => void;\n className?: string;\n}\n\nexport function CbacBanner({\n markingIds,\n onClick,\n onDismiss,\n className,\n}: CbacBannerProps): React.ReactElement {\n const { banner } = useCbacBanner({ markingIds });\n const resolved = resolveBannerDisplay(banner);\n\n return (\n <BaseCbacBanner\n classificationString={resolved.classificationString}\n textColor={resolved.textColor}\n backgroundColors={resolved.backgroundColors}\n onClick={onClick}\n onDismiss={onDismiss}\n className={className}\n />\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,QAAQ,2BAA2B;AACzD,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,oBAAoB,QAAQ,4BAA4B;AASjE,OAAO,SAASC,UAAUA,CAAC;EACzBC,UAAU;EACVC,OAAO;EACPC,SAAS;EACTC;AACe,CAAC,EAAsB;EACtC,MAAM;IAAEC;EAAO,CAAC,GAAGT,aAAa,CAAC;IAAEK;EAAW,CAAC,CAAC;EAChD,MAAMK,QAAQ,GAAGP,oBAAoB,CAACM,MAAM,CAAC;EAE7C,oBACER,KAAA,CAAAU,aAAA,CAACT,cAAc;IACbU,oBAAoB,EAAEF,QAAQ,CAACE,oBAAqB;IACpDC,SAAS,EAAEH,QAAQ,CAACG,SAAU;IAC9BC,gBAAgB,EAAEJ,QAAQ,CAACI,gBAAiB;IAC5CR,OAAO,EAAEA,OAAQ;IACjBC,SAAS,EAAEA,SAAU;IACrBC,SAAS,EAAEA;EAAU,CACtB,CAAC;AAEN","ignoreList":[]}
1
+ {"version":3,"file":"CbacBanner.js","names":["useCbacBanner","React","BaseCbacBanner","resolveBannerDisplay","CbacBanner","markingIds","onClick","onDismiss","className","isLoading","banner","isFetchingCbacMarkings","resolved","createElement","classificationString","textColor","backgroundColors"],"sources":["CbacBanner.tsx"],"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 { useCbacBanner } from \"@osdk/react/platform-apis\";\nimport React from \"react\";\n\nimport { BaseCbacBanner } from \"./base/BaseCbacBanner.js\";\nimport { resolveBannerDisplay } from \"./utils/cbacPickerUtils.js\";\n\nexport interface CbacBannerProps {\n markingIds: string[];\n onClick?: () => void;\n onDismiss?: () => void;\n className?: string;\n isLoading?: boolean;\n}\n\nexport function CbacBanner({\n markingIds,\n onClick,\n onDismiss,\n className,\n isLoading = false,\n}: CbacBannerProps): React.ReactElement {\n const { banner, isLoading: isFetchingCbacMarkings } = useCbacBanner({\n markingIds,\n });\n const resolved = resolveBannerDisplay(banner);\n\n return (\n <BaseCbacBanner\n classificationString={resolved.classificationString}\n textColor={resolved.textColor}\n backgroundColors={resolved.backgroundColors}\n onClick={onClick}\n onDismiss={onDismiss}\n className={className}\n isLoading={isFetchingCbacMarkings || isLoading}\n />\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,QAAQ,2BAA2B;AACzD,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,oBAAoB,QAAQ,4BAA4B;AAUjE,OAAO,SAASC,UAAUA,CAAC;EACzBC,UAAU;EACVC,OAAO;EACPC,SAAS;EACTC,SAAS;EACTC,SAAS,GAAG;AACG,CAAC,EAAsB;EACtC,MAAM;IAAEC,MAAM;IAAED,SAAS,EAAEE;EAAuB,CAAC,GAAGX,aAAa,CAAC;IAClEK;EACF,CAAC,CAAC;EACF,MAAMO,QAAQ,GAAGT,oBAAoB,CAACO,MAAM,CAAC;EAE7C,oBACET,KAAA,CAAAY,aAAA,CAACX,cAAc;IACbY,oBAAoB,EAAEF,QAAQ,CAACE,oBAAqB;IACpDC,SAAS,EAAEH,QAAQ,CAACG,SAAU;IAC9BC,gBAAgB,EAAEJ,QAAQ,CAACI,gBAAiB;IAC5CV,OAAO,EAAEA,OAAQ;IACjBC,SAAS,EAAEA,SAAU;IACrBC,SAAS,EAAEA,SAAU;IACrBC,SAAS,EAAEE,sBAAsB,IAAIF;EAAU,CAChD,CAAC;AAEN","ignoreList":[]}
@@ -18,6 +18,7 @@ import { Button } from "@base-ui/react/button";
18
18
  import { Cross } from "@blueprintjs/icons";
19
19
  import classnames from "classnames";
20
20
  import React from "react";
21
+ import { SkeletonBar } from "../../base-components/skeleton/SkeletonBar.js";
21
22
  import { backgroundFromColors } from "../utils/cbacPickerUtils.js";
22
23
  import styles from "./BaseCbacBanner.module.css.js";
23
24
  export function BaseCbacBanner({
@@ -26,7 +27,8 @@ export function BaseCbacBanner({
26
27
  backgroundColors,
27
28
  onClick,
28
29
  onDismiss,
29
- className
30
+ className,
31
+ isLoading = false
30
32
  }) {
31
33
  const bannerStyle = React.useMemo(() => ({
32
34
  "--osdk-cbac-banner-bg": backgroundFromColors(backgroundColors),
@@ -36,6 +38,11 @@ export function BaseCbacBanner({
36
38
  e.stopPropagation();
37
39
  onDismiss?.();
38
40
  }, [onDismiss]);
41
+ if (isLoading) {
42
+ return /*#__PURE__*/React.createElement(BannerSkeleton, {
43
+ className: className
44
+ });
45
+ }
39
46
  const dismissButton = onDismiss != null ? /*#__PURE__*/React.createElement(Button, {
40
47
  className: styles.dismissButton,
41
48
  onClick: handleDismiss,
@@ -61,4 +68,14 @@ export function BaseCbacBanner({
61
68
  className: styles.banner
62
69
  }, classificationString), dismissButton);
63
70
  }
71
+ function BannerSkeleton({
72
+ className
73
+ }) {
74
+ return /*#__PURE__*/React.createElement("div", {
75
+ className: classnames(styles.bannerRow, className),
76
+ "aria-hidden": "true"
77
+ }, /*#__PURE__*/React.createElement(SkeletonBar, {
78
+ className: styles.skeletonBanner
79
+ }));
80
+ }
64
81
  //# sourceMappingURL=BaseCbacBanner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseCbacBanner.js","names":["Button","Cross","classnames","React","backgroundFromColors","styles","BaseCbacBanner","classificationString","textColor","backgroundColors","onClick","onDismiss","className","bannerStyle","useMemo","handleDismiss","useCallback","e","stopPropagation","dismissButton","createElement","size","color","bannerRow","style","banner","clickable"],"sources":["BaseCbacBanner.tsx"],"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 { Button } from \"@base-ui/react/button\";\nimport { Cross } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport React from \"react\";\n\nimport { backgroundFromColors } from \"../utils/cbacPickerUtils.js\";\n\nimport styles from \"./BaseCbacBanner.module.css\";\n\nexport interface BaseCbacBannerProps {\n classificationString: string;\n textColor: string;\n backgroundColors: string[];\n onClick?: () => void;\n onDismiss?: () => void;\n className?: string;\n}\n\nexport function BaseCbacBanner({\n classificationString,\n textColor,\n backgroundColors,\n onClick,\n onDismiss,\n className,\n}: BaseCbacBannerProps): React.ReactElement {\n const bannerStyle = React.useMemo(\n (): React.CSSProperties =>\n ({\n \"--osdk-cbac-banner-bg\": backgroundFromColors(backgroundColors),\n \"--osdk-cbac-banner-color\": textColor,\n }) as React.CSSProperties,\n [textColor, backgroundColors]\n );\n\n const handleDismiss = React.useCallback(\n (e: React.MouseEvent) => {\n e.stopPropagation();\n onDismiss?.();\n },\n [onDismiss]\n );\n\n const dismissButton =\n onDismiss != null ? (\n <Button\n className={styles.dismissButton}\n onClick={handleDismiss}\n aria-label=\"Clear classification\"\n >\n <Cross size={12} color=\"currentColor\" />\n </Button>\n ) : null;\n\n if (onClick != null) {\n return (\n <div\n className={classnames(styles.bannerRow, className)}\n style={bannerStyle}\n >\n <Button\n className={classnames(styles.banner, styles.clickable)}\n onClick={onClick}\n aria-label=\"Edit classification\"\n >\n {classificationString}\n </Button>\n {dismissButton}\n </div>\n );\n }\n\n return (\n <div\n className={classnames(styles.bannerRow, className)}\n style={bannerStyle}\n >\n <span className={styles.banner}>{classificationString}</span>\n {dismissButton}\n </div>\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,KAAK,QAAQ,oBAAoB;AAC1C,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,oBAAoB,QAAQ,6BAA6B;AAElE,OAAOC,MAAM,MAAM,6BAA6B;AAWhD,OAAO,SAASC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AS,EAAEX,SAAS,CAAE;IACnDY,KAAK,EAAEX;EAAY,gBAEnBV,KAAA,CAAAiB,aAAA;IAAMR,SAAS,EAAEP,MAAM,CAACoB;EAAO,GAAElB,oBAA2B,CAAC,EAC5DY,aACE,CAAC;AAEV","ignoreList":[]}
1
+ {"version":3,"file":"BaseCbacBanner.js","names":["Button","Cross","classnames","React","SkeletonBar","backgroundFromColors","styles","BaseCbacBanner","classificationString","textColor","backgroundColors","onClick","onDismiss","className","isLoading","bannerStyle","useMemo","handleDismiss","useCallback","e","stopPropagation","createElement","BannerSkeleton","dismissButton","size","color","bannerRow","style","banner","clickable","skeletonBanner"],"sources":["BaseCbacBanner.tsx"],"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 { Button } from \"@base-ui/react/button\";\nimport { Cross } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport React from \"react\";\n\nimport { SkeletonBar } from \"../../base-components/skeleton/SkeletonBar.js\";\nimport { backgroundFromColors } from \"../utils/cbacPickerUtils.js\";\n\nimport styles from \"./BaseCbacBanner.module.css\";\n\nexport interface BaseCbacBannerProps {\n classificationString: string;\n textColor: string;\n backgroundColors: string[];\n onClick?: () => void;\n onDismiss?: () => void;\n className?: string;\n isLoading?: boolean;\n}\n\nexport function BaseCbacBanner({\n classificationString,\n textColor,\n backgroundColors,\n onClick,\n onDismiss,\n className,\n isLoading = false,\n}: BaseCbacBannerProps): React.ReactElement {\n const bannerStyle = React.useMemo(\n (): React.CSSProperties =>\n ({\n \"--osdk-cbac-banner-bg\": backgroundFromColors(backgroundColors),\n \"--osdk-cbac-banner-color\": textColor,\n }) as React.CSSProperties,\n [textColor, backgroundColors]\n );\n\n const handleDismiss = React.useCallback(\n (e: React.MouseEvent) => {\n e.stopPropagation();\n onDismiss?.();\n },\n [onDismiss]\n );\n\n if (isLoading) {\n return <BannerSkeleton className={className} />;\n }\n\n const dismissButton =\n onDismiss != null ? (\n <Button\n className={styles.dismissButton}\n onClick={handleDismiss}\n aria-label=\"Clear classification\"\n >\n <Cross size={12} color=\"currentColor\" />\n </Button>\n ) : null;\n\n if (onClick != null) {\n return (\n <div\n className={classnames(styles.bannerRow, className)}\n style={bannerStyle}\n >\n <Button\n className={classnames(styles.banner, styles.clickable)}\n onClick={onClick}\n aria-label=\"Edit classification\"\n >\n {classificationString}\n </Button>\n {dismissButton}\n </div>\n );\n }\n\n return (\n <div\n className={classnames(styles.bannerRow, className)}\n style={bannerStyle}\n >\n <span className={styles.banner}>{classificationString}</span>\n {dismissButton}\n </div>\n );\n}\n\nfunction BannerSkeleton({\n className,\n}: {\n className?: string;\n}): React.ReactElement {\n return (\n <div className={classnames(styles.bannerRow, className)} aria-hidden=\"true\">\n <SkeletonBar className={styles.skeletonBanner} />\n </div>\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,KAAK,QAAQ,oBAAoB;AAC1C,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,WAAW,QAAQ,+CAA+C;AAC3E,SAASC,oBAAoB,QAAQ,6BAA6B;AAElE,OAAOC,MAAM,MAAM,6BAA6B;AAYhD,OAAO,SAASC,cAAcA,CAAC;EAC7BC,oBAAoB;EACpBC,SAAS;EACTC,gBAAgB;EAChBC,OAAO;EACPC,SAAS;EACTC,SAAS;EACTC,SAAS,GAAG;AACO,CAAC,EAAsB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B,SAAS,EAAEb,SAAS,CAAE;IACnDc,KAAK,EAAEZ;EAAY,gBAEnBZ,KAAA,CAAAkB,aAAA;IAAMR,SAAS,EAAEP,MAAM,CAACsB;EAAO,GAAEpB,oBAA2B,CAAC,EAC5De,aACE,CAAC;AAEV;AAEA,SAASD,cAAcA,CAAC;EACtBT;AAGF,CAAC,EAAsB;EACrB,oBACEV,KAAA,CAAAkB,aAAA;IAAKR,SAAS,EAAEX,UAAU,CAACI,MAAM,CAACoB,SAAS,EAAEb,SAAS,CAAE;IAAC,eAAY;EAAM,gBACzEV,KAAA,CAAAkB,aAAA,CAACjB,WAAW;IAACS,SAAS,EAAEP,MAAM,CAACwB;EAAe,CAAE,CAC7C,CAAC;AAEV","ignoreList":[]}
@@ -36,6 +36,12 @@
36
36
  color: inherit;
37
37
  }
38
38
 
39
+ .skeletonBanner {
40
+ flex: 1;
41
+ height: var(--osdk-cbac-banner-skeleton-height);
42
+ border-radius: var(--osdk-cbac-banner-border-radius);
43
+ }
44
+
39
45
  .clickable {
40
46
  cursor: pointer;
41
47
  }
@@ -2,6 +2,7 @@
2
2
  const styles = {
3
3
  "bannerRow": "BaseCbacBanner-module__bannerRow___oxu42hEl",
4
4
  "banner": "BaseCbacBanner-module__banner___IjvLA5g7",
5
+ "skeletonBanner": "BaseCbacBanner-module__skeletonBanner___KSmlUq-R",
5
6
  "clickable": "BaseCbacBanner-module__clickable___EhVZQgrU",
6
7
  "dismissButton": "BaseCbacBanner-module__dismissButton___pEhcnzSL"
7
8
  };
@@ -937,6 +937,10 @@
937
937
  --osdk-cbac-banner-placeholder-color: var(
938
938
  --osdk-typography-color-default-rest
939
939
  );
940
+ /* Line height of the banner text plus its top/bottom padding. */
941
+ --osdk-cbac-banner-skeleton-height: calc(
942
+ var(--osdk-cbac-banner-font-size) * 1.5 + var(--osdk-surface-spacing) * 2
943
+ );
940
944
 
941
945
  /* Marking Button */
942
946
  --osdk-cbac-marking-button-padding: calc(var(--osdk-surface-spacing) * 0.5)
@@ -5495,6 +5499,12 @@
5495
5499
  color: inherit;
5496
5500
  }
5497
5501
 
5502
+ .BaseCbacBanner-module__skeletonBanner___KSmlUq-R {
5503
+ flex: 1;
5504
+ height: var(--osdk-cbac-banner-skeleton-height);
5505
+ border-radius: var(--osdk-cbac-banner-border-radius);
5506
+ }
5507
+
5498
5508
  .BaseCbacBanner-module__clickable___EhVZQgrU {
5499
5509
  cursor: pointer;
5500
5510
  }
@@ -28,6 +28,10 @@
28
28
  --osdk-cbac-banner-placeholder-color: var(
29
29
  --osdk-typography-color-default-rest
30
30
  );
31
+ /* Line height of the banner text plus its top/bottom padding. */
32
+ --osdk-cbac-banner-skeleton-height: calc(
33
+ var(--osdk-cbac-banner-font-size) * 1.5 + var(--osdk-surface-spacing) * 2
34
+ );
31
35
 
32
36
  /* Marking Button */
33
37
  --osdk-cbac-marking-button-padding: calc(var(--osdk-surface-spacing) * 0.5)
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- const PACKAGE_USER_AGENT = `osdk-react-components/${"0.41.0"}`;
17
+ const PACKAGE_USER_AGENT = `osdk-react-components/${"0.42.0-main-ecfcf3d26dbf2ca0124cc59848ff773e87f339c4"}`;
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":[]}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkXJDMSVW4_cjs = require('./chunk-XJDMSVW4.cjs');
4
- var chunkOWBDRWL6_cjs = require('./chunk-OWBDRWL6.cjs');
4
+ var chunkOWJ273YN_cjs = require('./chunk-OWJ273YN.cjs');
5
5
  var icons = require('@blueprintjs/icons');
6
6
  var classnames = require('classnames');
7
7
  require('pdfjs-dist/web/pdf_viewer.css');
@@ -179,12 +179,12 @@ function usePdfViewerInstance(options) {
179
179
  }
180
180
 
181
181
  // src/public/experimental/pdf-viewer.ts
182
- var PdfViewer2 = chunkOWBDRWL6_cjs.withOsdkMetrics(chunkXJDMSVW4_cjs.PdfViewer, "PdfViewer");
182
+ var PdfViewer2 = chunkOWJ273YN_cjs.withOsdkMetrics(chunkXJDMSVW4_cjs.PdfViewer, "PdfViewer");
183
183
 
184
184
  exports.PdfViewer = PdfViewer2;
185
185
  exports.PdfViewerContent = PdfViewerContent;
186
186
  exports.PdfViewerProvider = PdfViewerProvider;
187
187
  exports.usePdfViewerContext = usePdfViewerContext;
188
188
  exports.usePdfViewerInstance = usePdfViewerInstance;
189
- //# sourceMappingURL=chunk-3OWSHPWL.cjs.map
190
- //# sourceMappingURL=chunk-3OWSHPWL.cjs.map
189
+ //# sourceMappingURL=chunk-2F55VJ75.cjs.map
190
+ //# sourceMappingURL=chunk-2F55VJ75.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/pdf-viewer/components/PdfViewerContent.tsx","../../src/pdf-viewer/PdfViewerContext.tsx","../../src/public/experimental/pdf-viewer.ts"],"names":["EMPTY_ANNOTATION_ARRAY","usePdfViewerCore","usePdfAnnotationsByPage","usePdfFormFields","useRef","useEffect","classnames","PdfViewer_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,WAAA,GAAc,CAAA;AAAA,EACd,YAAA,GAAe,CAAA;AAAA,EACf,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ACvD,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;;;AC9DO,IAAMC,UAAAA,GAAYC,iCAAA,CAAgBD,2BAAA,EAAY,WAAW","file":"chunk-3OWSHPWL.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 \"../PdfViewer.module.css\";\nexport function PdfViewerContent({\n src,\n annotations = EMPTY_ANNOTATION_ARRAY,\n onAnnotationClick,\n initialPage = 1,\n initialScale = 1.0,\n onPageChange: onPageChangeProp,\n onScaleChange: onScaleChangeProp,\n formData,\n onFormChange,\n className\n}) {\n const viewer = usePdfViewerCore({\n src,\n initialPage,\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 initialPage: options.initialPage,\n initialScale: options.initialScale,\n initialAutoSize: options.initialAutoSize,\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.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 const highlightEnabled = 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// PdfViewer\nexport { BasePdfViewer } from \"../../pdf-viewer/PdfViewer.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// PdfViewer context\nexport { PdfViewerProvider, usePdfViewerContext, usePdfViewerInstance } from \"../../pdf-viewer/PdfViewerContext.js\";\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/PdfRenderer.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/experimental/pdf-viewer.ts"],"names":["EMPTY_ANNOTATION_ARRAY","usePdfViewerCore","usePdfAnnotationsByPage","usePdfFormFields","useRef","useEffect","classnames","PdfViewer_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,WAAA,GAAc,CAAA;AAAA,EACd,YAAA,GAAe,CAAA;AAAA,EACf,YAAA,EAAc,gBAAA;AAAA,EACd,aAAA,EAAe,iBAAA;AAAA,EACf,QAAA;AAAA,EACA,YAAA;AAAA,EACA;AACF,CAAA,EAAG;AACD,EAAA,MAAM,SAASC,kCAAA,CAAiB;AAAA,IAC9B,GAAA;AAAA,IACA,WAAA;AAAA,IACA;AAAA,GACD,CAAA;AACD,EAAA,MAAM,iBAAA,GAAoBC,0CAAwB,WAAW,CAAA;AAC7D,EAAAC,kCAAA,CAAiB;AAAA,I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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;;;AC9DO,IAAMC,UAAAA,GAAYC,iCAAA,CAAgBD,2BAAA,EAAY,WAAW","file":"chunk-2F55VJ75.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 \"../PdfViewer.module.css\";\nexport function PdfViewerContent({\n src,\n annotations = EMPTY_ANNOTATION_ARRAY,\n onAnnotationClick,\n initialPage = 1,\n initialScale = 1.0,\n onPageChange: onPageChangeProp,\n onScaleChange: onScaleChangeProp,\n formData,\n onFormChange,\n className\n}) {\n const viewer = usePdfViewerCore({\n src,\n initialPage,\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 initialPage: options.initialPage,\n initialScale: options.initialScale,\n initialAutoSize: options.initialAutoSize,\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.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 const highlightEnabled = 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// PdfViewer\nexport { BasePdfViewer } from \"../../pdf-viewer/PdfViewer.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// PdfViewer context\nexport { PdfViewerProvider, usePdfViewerContext, usePdfViewerInstance } from \"../../pdf-viewer/PdfViewerContext.js\";\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/PdfRenderer.js\";\nimport { withOsdkMetrics } from \"../../util/withOsdkMetrics.js\";\nexport const PdfViewer = withOsdkMetrics(_PdfViewer, \"PdfViewer\");"]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkGKDO6NU7_cjs = require('./chunk-GKDO6NU7.cjs');
4
+ var chunkOWJ273YN_cjs = require('./chunk-OWJ273YN.cjs');
5
+
6
+ // src/public/experimental/excel-viewer.ts
7
+ var ExcelViewer2 = chunkOWJ273YN_cjs.withOsdkMetrics(chunkGKDO6NU7_cjs.ExcelViewer, "ExcelViewer");
8
+
9
+ exports.ExcelViewer = ExcelViewer2;
10
+ //# sourceMappingURL=chunk-2KEOGT7E.cjs.map
11
+ //# sourceMappingURL=chunk-2KEOGT7E.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/experimental/excel-viewer.ts"],"names":["ExcelViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,YAAAA,GAAcC,iCAAA,CAAgBD,6BAAA,EAAc,aAAa","file":"chunk-XGOBDPLC.cjs","sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// BaseExcelViewer\nexport { BaseExcelViewer } from \"../../excel-viewer/BaseExcelViewer.js\";\n// ExcelViewer (Media wrapper)\nimport { ExcelViewer as _ExcelViewer } from \"../../excel-viewer/ExcelViewer.js\";\nimport { withOsdkMetrics } from \"../../util/withOsdkMetrics.js\";\nexport const ExcelViewer = withOsdkMetrics(_ExcelViewer, \"ExcelViewer\");"]}
1
+ {"version":3,"sources":["../../src/public/experimental/excel-viewer.ts"],"names":["ExcelViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,YAAAA,GAAcC,iCAAA,CAAgBD,6BAAA,EAAc,aAAa","file":"chunk-2KEOGT7E.cjs","sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// BaseExcelViewer\nexport { BaseExcelViewer } from \"../../excel-viewer/BaseExcelViewer.js\";\n// ExcelViewer (Media wrapper)\nimport { ExcelViewer as _ExcelViewer } from \"../../excel-viewer/ExcelViewer.js\";\nimport { withOsdkMetrics } from \"../../util/withOsdkMetrics.js\";\nexport const ExcelViewer = withOsdkMetrics(_ExcelViewer, \"ExcelViewer\");"]}
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkP55Q2MCT_cjs = require('./chunk-P55Q2MCT.cjs');
4
- var chunkOWBDRWL6_cjs = require('./chunk-OWBDRWL6.cjs');
4
+ var chunkOWJ273YN_cjs = require('./chunk-OWJ273YN.cjs');
5
5
 
6
6
  // src/public/experimental/markdown-renderer.ts
7
- var MarkdownViewerMedia2 = chunkOWBDRWL6_cjs.withOsdkMetrics(chunkP55Q2MCT_cjs.MarkdownViewerMedia, "MarkdownViewerMedia");
7
+ var MarkdownViewerMedia2 = chunkOWJ273YN_cjs.withOsdkMetrics(chunkP55Q2MCT_cjs.MarkdownViewerMedia, "MarkdownViewerMedia");
8
8
 
9
9
  exports.MarkdownViewerMedia = MarkdownViewerMedia2;
10
- //# sourceMappingURL=chunk-V53JNAEC.cjs.map
11
- //# sourceMappingURL=chunk-V53JNAEC.cjs.map
10
+ //# sourceMappingURL=chunk-5ZJIJ2KU.cjs.map
11
+ //# sourceMappingURL=chunk-5ZJIJ2KU.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/experimental/markdown-renderer.ts"],"names":["MarkdownViewerMedia","withOsdkMetrics"],"mappings":";;;;;;AAsBO,IAAMA,oBAAAA,GAAsBC,iCAAA,CAAgBD,qCAAA,EAAsB,qBAAqB","file":"chunk-V53JNAEC.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\n// MarkdownRenderer\nexport { MarkdownRenderer } from \"../../markdown-renderer/MarkdownRenderer.js\";\n\n// MarkdownViewerMedia (Media wrapper)\nimport { MarkdownViewerMedia as _MarkdownViewerMedia } from \"../../markdown-renderer/MarkdownViewerMedia.js\";\nimport { withOsdkMetrics } from \"../../util/withOsdkMetrics.js\";\nexport const MarkdownViewerMedia = withOsdkMetrics(_MarkdownViewerMedia, \"MarkdownViewerMedia\");"]}
1
+ {"version":3,"sources":["../../src/public/experimental/markdown-renderer.ts"],"names":["MarkdownViewerMedia","withOsdkMetrics"],"mappings":";;;;;;AAsBO,IAAMA,oBAAAA,GAAsBC,iCAAA,CAAgBD,qCAAA,EAAsB,qBAAqB","file":"chunk-5ZJIJ2KU.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\n// MarkdownRenderer\nexport { MarkdownRenderer } from \"../../markdown-renderer/MarkdownRenderer.js\";\n\n// MarkdownViewerMedia (Media wrapper)\nimport { MarkdownViewerMedia as _MarkdownViewerMedia } from \"../../markdown-renderer/MarkdownViewerMedia.js\";\nimport { withOsdkMetrics } from \"../../util/withOsdkMetrics.js\";\nexport const MarkdownViewerMedia = withOsdkMetrics(_MarkdownViewerMedia, \"MarkdownViewerMedia\");"]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkRVZE7LPI_cjs = require('./chunk-RVZE7LPI.cjs');
4
+ var chunkOWJ273YN_cjs = require('./chunk-OWJ273YN.cjs');
5
+
6
+ // src/public/experimental/xml-viewer.ts
7
+ var XmlViewer2 = chunkOWJ273YN_cjs.withOsdkMetrics(chunkRVZE7LPI_cjs.XmlViewer, "XmlViewer");
8
+
9
+ exports.XmlViewer = XmlViewer2;
10
+ //# sourceMappingURL=chunk-72BR4CWL.cjs.map
11
+ //# sourceMappingURL=chunk-72BR4CWL.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/experimental/xml-viewer.ts"],"names":["XmlViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,UAAAA,GAAYC,iCAAA,CAAgBD,2BAAA,EAAY,WAAW","file":"chunk-P7EZ2DQ2.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/experimental/xml-viewer.ts"],"names":["XmlViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,UAAAA,GAAYC,iCAAA,CAAgBD,2BAAA,EAAY,WAAW","file":"chunk-72BR4CWL.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,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkLB3IHFAB_cjs = require('./chunk-LB3IHFAB.cjs');
4
- var chunkOWBDRWL6_cjs = require('./chunk-OWBDRWL6.cjs');
4
+ var chunkOWJ273YN_cjs = require('./chunk-OWJ273YN.cjs');
5
5
 
6
6
  // src/public/experimental/tiff-renderer.ts
7
- var TiffViewerMedia2 = chunkOWBDRWL6_cjs.withOsdkMetrics(chunkLB3IHFAB_cjs.TiffViewerMedia, "TiffViewerMedia");
7
+ var TiffViewerMedia2 = chunkOWJ273YN_cjs.withOsdkMetrics(chunkLB3IHFAB_cjs.TiffViewerMedia, "TiffViewerMedia");
8
8
 
9
9
  exports.TiffViewerMedia = TiffViewerMedia2;
10
- //# sourceMappingURL=chunk-LWVPWBMP.cjs.map
11
- //# sourceMappingURL=chunk-LWVPWBMP.cjs.map
10
+ //# sourceMappingURL=chunk-7H3YLRWV.cjs.map
11
+ //# sourceMappingURL=chunk-7H3YLRWV.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/experimental/tiff-renderer.ts"],"names":["TiffViewerMedia","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,gBAAAA,GAAkBC,iCAAA,CAAgBD,iCAAA,EAAkB,iBAAiB","file":"chunk-LWVPWBMP.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\n// TiffRenderer\nexport { TiffRenderer } from \"../../images/tiff-renderer/TiffRenderer.js\";\n// TiffViewerMedia (Media wrapper)\nimport { TiffViewerMedia as _TiffViewerMedia } from \"../../images/tiff-renderer/TiffViewerMedia.js\";\nimport { withOsdkMetrics } from \"../../util/withOsdkMetrics.js\";\nexport const TiffViewerMedia = withOsdkMetrics(_TiffViewerMedia, \"TiffViewerMedia\");"]}
1
+ {"version":3,"sources":["../../src/public/experimental/tiff-renderer.ts"],"names":["TiffViewerMedia","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,gBAAAA,GAAkBC,iCAAA,CAAgBD,iCAAA,EAAkB,iBAAiB","file":"chunk-7H3YLRWV.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\n// TiffRenderer\nexport { TiffRenderer } from \"../../images/tiff-renderer/TiffRenderer.js\";\n// TiffViewerMedia (Media wrapper)\nimport { TiffViewerMedia as _TiffViewerMedia } from \"../../images/tiff-renderer/TiffViewerMedia.js\";\nimport { withOsdkMetrics } from \"../../util/withOsdkMetrics.js\";\nexport const TiffViewerMedia = withOsdkMetrics(_TiffViewerMedia, \"TiffViewerMedia\");"]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkOISZU73V_cjs = require('./chunk-OISZU73V.cjs');
4
+ var chunkOWJ273YN_cjs = require('./chunk-OWJ273YN.cjs');
5
+
6
+ // src/public/experimental/email-viewer.ts
7
+ var EmailViewer2 = chunkOWJ273YN_cjs.withOsdkMetrics(chunkOISZU73V_cjs.EmailViewer, "EmailViewer");
8
+
9
+ exports.EmailViewer = EmailViewer2;
10
+ //# sourceMappingURL=chunk-AAI637QW.cjs.map
11
+ //# sourceMappingURL=chunk-AAI637QW.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/experimental/email-viewer.ts"],"names":["EmailViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,YAAAA,GAAcC,iCAAA,CAAgBD,6BAAA,EAAc,aAAa","file":"chunk-FKOFZSZD.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// BaseEmailViewer\nexport { BaseEmailViewer } from \"../../email-viewer/BaseEmailViewer.js\";\n// EmailViewer (Media wrapper)\nimport { EmailViewer as _EmailViewer } from \"../../email-viewer/EmailViewer.js\";\nimport { withOsdkMetrics } from \"../../util/withOsdkMetrics.js\";\nexport const EmailViewer = withOsdkMetrics(_EmailViewer, \"EmailViewer\");"]}
1
+ {"version":3,"sources":["../../src/public/experimental/email-viewer.ts"],"names":["EmailViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,YAAAA,GAAcC,iCAAA,CAAgBD,6BAAA,EAAc,aAAa","file":"chunk-AAI637QW.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// BaseEmailViewer\nexport { BaseEmailViewer } from \"../../email-viewer/BaseEmailViewer.js\";\n// EmailViewer (Media wrapper)\nimport { EmailViewer as _EmailViewer } from \"../../email-viewer/EmailViewer.js\";\nimport { withOsdkMetrics } from \"../../util/withOsdkMetrics.js\";\nexport const EmailViewer = withOsdkMetrics(_EmailViewer, \"EmailViewer\");"]}
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var chunk7LXS66DW_cjs = require('./chunk-7LXS66DW.cjs');
3
4
  var button = require('@base-ui/react/button');
4
5
  var icons = require('@blueprintjs/icons');
5
6
  var classnames = require('classnames');
@@ -11,8 +12,6 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
12
  var classnames__default = /*#__PURE__*/_interopDefault(classnames);
12
13
  var React__default = /*#__PURE__*/_interopDefault(React);
13
14
 
14
- // src/cbac-picker/base/BaseCbacBanner.tsx
15
-
16
15
  // src/cbac-picker/utils/cbacPickerUtils.ts
17
16
  var UNMARKED_BACKGROUND_COLORS = ["#8F99A8"];
18
17
  var UNMARKED_TEXT_COLOR = "#FFFFFF";
@@ -68,7 +67,8 @@ function BaseCbacBanner({
68
67
  backgroundColors,
69
68
  onClick,
70
69
  onDismiss,
71
- className
70
+ className,
71
+ isLoading = false
72
72
  }) {
73
73
  const bannerStyle = React__default.default.useMemo(() => ({
74
74
  "--osdk-cbac-banner-bg": backgroundFromColors(backgroundColors),
@@ -78,6 +78,11 @@ function BaseCbacBanner({
78
78
  e.stopPropagation();
79
79
  onDismiss?.();
80
80
  }, [onDismiss]);
81
+ if (isLoading) {
82
+ return /* @__PURE__ */ React__default.default.createElement(BannerSkeleton, {
83
+ className
84
+ });
85
+ }
81
86
  const dismissButton = onDismiss != null ? /* @__PURE__ */ React__default.default.createElement(button.Button, {
82
87
  className: BaseCbacBanner_default.dismissButton,
83
88
  onClick: handleDismiss,
@@ -103,14 +108,26 @@ function BaseCbacBanner({
103
108
  className: BaseCbacBanner_default.banner
104
109
  }, classificationString), dismissButton);
105
110
  }
111
+ function BannerSkeleton({
112
+ className
113
+ }) {
114
+ return /* @__PURE__ */ React__default.default.createElement("div", {
115
+ className: classnames__default.default(BaseCbacBanner_default.bannerRow, className),
116
+ "aria-hidden": "true"
117
+ }, /* @__PURE__ */ React__default.default.createElement(chunk7LXS66DW_cjs.SkeletonBar, {
118
+ className: BaseCbacBanner_default.skeletonBanner
119
+ }));
120
+ }
106
121
  function CbacBanner({
107
122
  markingIds,
108
123
  onClick,
109
124
  onDismiss,
110
- className
125
+ className,
126
+ isLoading = false
111
127
  }) {
112
128
  const {
113
- banner
129
+ banner,
130
+ isLoading: isFetchingCbacMarkings
114
131
  } = platformApis.useCbacBanner({
115
132
  markingIds
116
133
  });
@@ -121,7 +138,8 @@ function CbacBanner({
121
138
  backgroundColors: resolved.backgroundColors,
122
139
  onClick,
123
140
  onDismiss,
124
- className
141
+ className,
142
+ isLoading: isFetchingCbacMarkings || isLoading
125
143
  });
126
144
  }
127
145
 
@@ -132,5 +150,5 @@ exports.backgroundFromColors = backgroundFromColors;
132
150
  exports.groupMarkingsByCategory = groupMarkingsByCategory;
133
151
  exports.resolveBannerDisplay = resolveBannerDisplay;
134
152
  exports.resolveRequiredGroups = resolveRequiredGroups;
135
- //# sourceMappingURL=chunk-ZMAWPOG5.cjs.map
136
- //# sourceMappingURL=chunk-ZMAWPOG5.cjs.map
153
+ //# sourceMappingURL=chunk-AMIL4453.cjs.map
154
+ //# sourceMappingURL=chunk-AMIL4453.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/cbac-picker/utils/cbacPickerUtils.ts","../../src/cbac-picker/base/BaseCbacBanner.module.css","../../src/cbac-picker/base/BaseCbacBanner.tsx","../../src/cbac-picker/CbacBanner.tsx"],"names":["React","Button","Cross","classnames","SkeletonBar","useCbacBanner"],"mappings":";;;;;;;;;;;;;;;AAgBA,IAAM,0BAAA,GAA6B,CAAC,SAAS,CAAA;AAC7C,IAAM,mBAAA,GAAsB,SAAA;AAC5B,IAAM,8BAAA,GAAiC,UAAA;AAChC,IAAM,cAAc;AACpB,SAAS,qBAAqB,gBAAA,EAAkB;AACrD,EAAA,OAAO,gBAAA,CAAiB,MAAA,GAAS,CAAA,GAAI,CAAA,0BAAA,EAA6B,gBAAA,CAAiB,IAAA,CAAK,I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AA,CAAM,cAAc,KAAA,EAAO;AAAA,IAC7C,SAAA,EAAWG,2BAAA,CAAW,sBAAA,CAAO,SAAA,EAAW,SAAS,CAAA;AAAA,IACjD,aAAA,EAAe;AAAA,GACjB,kBAAgBH,sBAAA,CAAM,aAAA,CAAcI,6BAAA,EAAa;AAAA,IAC/C,WAAW,sBAAA,CAAO;AAAA,GACnB,CAAC,CAAA;AACJ;AC3DO,SAAS,UAAA,CAAW;AAAA,EACzB,UAAA;AAAA,EACA,OAAA;AAAA,EACA,SAAA;AAAA,EACA,SAAA;AAAA,EACA,SAAA,GAAY;AACd,CAAA,EAAG;AACD,EAAA,MAAM;AAAA,IACJ,MAAA;AAAA,IACA,SAAA,EAAW;AAAA,MACTC,0BAAA,CAAc;AAAA,IAChB;AAAA,GACD,CAAA;AACD,EAAA,MAAM,QAAA,GAAW,qBAAqB,MAAM,CAAA;AAC5C,EAAA,uBAAoBL,sBAAAA,CAAM,aAAA,CAAc,cAAA,EAAgB;AAAA,IACtD,sBAAsB,QAAA,CAAS,oBAAA;AAAA,IAC/B,WAAW,QAAA,CAAS,SAAA;AAAA,IACpB,kBAAkB,QAAA,CAAS,gBAAA;AAAA,IAC3B,OAAA;AAAA,IACA,SAAA;AAAA,IACA,SAAA;AAAA,IACA,WAAW,sBAAA,IAA0B;AAAA,GACtC,CAAA;AACH","file":"chunk-AMIL4453.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\nconst UNMARKED_BACKGROUND_COLORS = [\"#8F99A8\"];\nconst UNMARKED_TEXT_COLOR = \"#FFFFFF\";\nconst UNMARKED_CLASSIFICATION_STRING = \"UNMARKED\";\nexport const EMPTY_ARRAY = [];\nexport function backgroundFromColors(backgroundColors) {\n return backgroundColors.length > 1 ? `linear-gradient(to right, ${backgroundColors.join(\", \")})` : backgroundColors[0] ?? \"transparent\";\n}\nexport function resolveBannerDisplay(banner) {\n return {\n classificationString: banner?.classificationString ?? UNMARKED_CLASSIFICATION_STRING,\n textColor: banner?.textColor ?? UNMARKED_TEXT_COLOR,\n backgroundColors: banner?.backgroundColors ?? UNMARKED_BACKGROUND_COLORS\n };\n}\nexport function groupMarkingsByCategory(markingIds, categories, markings) {\n if (markingIds.length === 0 || categories === undefined || markings === undefined) {\n return [];\n }\n const selected = new Set(markingIds);\n const categoryNames = new Map(categories.map(c => [c.id, c.name]));\n const grouped = new Map();\n for (const marking of markings) {\n if (selected.has(marking.id)) {\n const name = categoryNames.get(marking.categoryId) ?? marking.categoryId;\n const list = grouped.get(name);\n if (list !== undefined) {\n list.push(marking.name);\n } else {\n grouped.set(name, [marking.name]);\n }\n }\n }\n return Array.from(grouped, ([categoryName, markingNames]) => ({\n categoryName,\n markingNames\n }));\n}\nexport function resolveRequiredGroups(categoryGroups, requiredMarkingGroups) {\n const markingIdToName = new Map(categoryGroups.flatMap(g => g.markings).map(m => [m.id, m.name]));\n return requiredMarkingGroups.map(ids => ({\n markingNames: ids.map(id => markingIdToName.get(id) ?? id)\n }));\n}","/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n.bannerRow {\n display: flex;\n align-items: center;\n border-radius: var(--osdk-cbac-banner-border-radius);\n width: 100%;\n box-sizing: border-box;\n background: var(--osdk-cbac-banner-bg);\n color: var(--osdk-cbac-banner-color);\n}\n\n.banner {\n flex: 1;\n padding: var(--osdk-cbac-banner-padding);\n font-size: var(--osdk-cbac-banner-font-size);\n font-weight: var(--osdk-cbac-banner-font-weight);\n text-align: var(--osdk-cbac-banner-text-align);\n font-family: inherit;\n border: none;\n background: transparent;\n color: inherit;\n}\n\n.skeletonBanner {\n flex: 1;\n height: var(--osdk-cbac-banner-skeleton-height);\n border-radius: var(--osdk-cbac-banner-border-radius);\n}\n\n.clickable {\n cursor: pointer;\n}\n\n.clickable:focus-visible {\n outline: var(--osdk-focus-outline);\n outline-offset: var(--osdk-focus-visible-outline-offset);\n}\n\n.clickable:hover {\n filter: brightness(0.9);\n text-decoration: underline;\n}\n\n.dismissButton {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: calc(var(--osdk-surface-spacing) * 1);\n margin-right: calc(var(--osdk-surface-spacing) * 1);\n background: transparent;\n border: none;\n color: inherit;\n cursor: pointer;\n border-radius: var(--osdk-surface-border-radius);\n flex-shrink: 0;\n}\n\n.dismissButton:hover {\n filter: brightness(0.8);\n}\n\n.dismissButton:focus-visible {\n outline: var(--osdk-focus-outline);\n outline-offset: var(--osdk-focus-visible-outline-offset);\n}\n","/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Button } from \"@base-ui/react/button\";\nimport { Cross } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport React from \"react\";\nimport { SkeletonBar } from \"../../base-components/skeleton/SkeletonBar.js\";\nimport { backgroundFromColors } from \"../utils/cbacPickerUtils.js\";\nimport styles from \"./BaseCbacBanner.module.css\";\nexport function BaseCbacBanner({\n classificationString,\n textColor,\n backgroundColors,\n onClick,\n onDismiss,\n className,\n isLoading = false\n}) {\n const bannerStyle = React.useMemo(() => ({\n \"--osdk-cbac-banner-bg\": backgroundFromColors(backgroundColors),\n \"--osdk-cbac-banner-color\": textColor\n }), [textColor, backgroundColors]);\n const handleDismiss = React.useCallback(e => {\n e.stopPropagation();\n onDismiss?.();\n }, [onDismiss]);\n if (isLoading) {\n return /*#__PURE__*/React.createElement(BannerSkeleton, {\n className: className\n });\n }\n const dismissButton = onDismiss != null ? /*#__PURE__*/React.createElement(Button, {\n className: styles.dismissButton,\n onClick: handleDismiss,\n \"aria-label\": \"Clear classification\"\n }, /*#__PURE__*/React.createElement(Cross, {\n size: 12,\n color: \"currentColor\"\n })) : null;\n if (onClick != null) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classnames(styles.bannerRow, className),\n style: bannerStyle\n }, /*#__PURE__*/React.createElement(Button, {\n className: classnames(styles.banner, styles.clickable),\n onClick: onClick,\n \"aria-label\": \"Edit classification\"\n }, classificationString), dismissButton);\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classnames(styles.bannerRow, className),\n style: bannerStyle\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: styles.banner\n }, classificationString), dismissButton);\n}\nfunction BannerSkeleton({\n className\n}) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classnames(styles.bannerRow, className),\n \"aria-hidden\": \"true\"\n }, /*#__PURE__*/React.createElement(SkeletonBar, {\n className: styles.skeletonBanner\n }));\n}","/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useCbacBanner } from \"@osdk/react/platform-apis\";\nimport React from \"react\";\nimport { BaseCbacBanner } from \"./base/BaseCbacBanner.js\";\nimport { resolveBannerDisplay } from \"./utils/cbacPickerUtils.js\";\nexport function CbacBanner({\n markingIds,\n onClick,\n onDismiss,\n className,\n isLoading = false\n}) {\n const {\n banner,\n isLoading: isFetchingCbacMarkings\n } = useCbacBanner({\n markingIds\n });\n const resolved = resolveBannerDisplay(banner);\n return /*#__PURE__*/React.createElement(BaseCbacBanner, {\n classificationString: resolved.classificationString,\n textColor: resolved.textColor,\n backgroundColors: resolved.backgroundColors,\n onClick: onClick,\n onDismiss: onDismiss,\n className: className,\n isLoading: isFetchingCbacMarkings || isLoading\n });\n}"]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkKHMOMROL_cjs = require('./chunk-KHMOMROL.cjs');
4
+ var chunkOWJ273YN_cjs = require('./chunk-OWJ273YN.cjs');
5
+
6
+ // src/public/experimental/video-viewer.ts
7
+ var VideoViewer2 = chunkOWJ273YN_cjs.withOsdkMetrics(chunkKHMOMROL_cjs.VideoViewer, "VideoViewer");
8
+
9
+ exports.VideoViewer = VideoViewer2;
10
+ //# sourceMappingURL=chunk-DOCAILZS.cjs.map
11
+ //# sourceMappingURL=chunk-DOCAILZS.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/experimental/video-viewer.ts"],"names":["VideoViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,YAAAA,GAAcC,iCAAA,CAAgBD,6BAAA,EAAc,aAAa","file":"chunk-XXPWKSVT.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// BaseVideoViewer\nexport { BaseVideoViewer } from \"../../video-viewer/BaseVideoViewer.js\";\n// VideoViewer (Media wrapper)\nimport { withOsdkMetrics } from \"../../util/withOsdkMetrics.js\";\nimport { VideoViewer as _VideoViewer } from \"../../video-viewer/VideoViewer.js\";\nexport const VideoViewer = withOsdkMetrics(_VideoViewer, \"VideoViewer\");"]}
1
+ {"version":3,"sources":["../../src/public/experimental/video-viewer.ts"],"names":["VideoViewer","withOsdkMetrics"],"mappings":";;;;;;AAqBO,IAAMA,YAAAA,GAAcC,iCAAA,CAAgBD,6BAAA,EAAc,aAAa","file":"chunk-DOCAILZS.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// BaseVideoViewer\nexport { BaseVideoViewer } from \"../../video-viewer/BaseVideoViewer.js\";\n// VideoViewer (Media wrapper)\nimport { withOsdkMetrics } from \"../../util/withOsdkMetrics.js\";\nimport { VideoViewer as _VideoViewer } from \"../../video-viewer/VideoViewer.js\";\nexport const VideoViewer = withOsdkMetrics(_VideoViewer, \"VideoViewer\");"]}