@orangelogic/design-system 2.152.0 → 2.154.0

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.
@@ -1,7 +1,7 @@
1
1
  import { _ as kd, a as Sa, b as Be, c as Je } from "../chunks/inheritsLoose.BuSn_CvZ.js";
2
2
  import { c as ps, a as Bn } from "../chunks/_commonjsHelpers.DQNKXVTB.js";
3
3
  import { r as Sb } from "../chunks/___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
4
- import { C as Cb } from "../chunks/image.DYRVQgG1.js";
4
+ import { C as Cb } from "../chunks/image.DazATuAV.js";
5
5
  import Mb from "./resize-observer.js";
6
6
  import { r as Db, R as Pb, a as Rp, b as Lb } from "../chunks/resizable-component.styles.CAfXABBc.js";
7
7
  import { c as Rb } from "../chunks/component.styles.CRO4Odto.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.152.0",
4
+ "version": "2.154.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -104,6 +104,12 @@ export default class CxImage extends ResizableElement {
104
104
  * The loading attribute of the image.
105
105
  */
106
106
  htmlLoading: 'eager' | 'lazy';
107
+ /**
108
+ * When true, omits the `crossorigin` attribute on the underlying `<img>`, disabling the
109
+ * CORS request mode. Defaults to false, i.e. the image loads with `crossorigin="anonymous"`
110
+ * (e.g. set `no-crossorigin` in Site Builder contexts where CORS headers are absent).
111
+ */
112
+ noCrossorigin: boolean;
107
113
  /**
108
114
  * The type of click handler to use.
109
115
  * - automatic: The click handler is automatically handled by the image.
@@ -143,6 +149,7 @@ export default class CxImage extends ResizableElement {
143
149
  'image--has-action': boolean;
144
150
  'image--hidden': boolean;
145
151
  };
152
+ /** The crossorigin value for the `<img>`; `undefined` (attribute omitted) when `noCrossorigin` is set. */
146
153
  get crossorigin(): string | undefined;
147
154
  /**
148
155
  * Whether the image have zoom action.
@@ -0,0 +1,8 @@
1
+ export type CxAnnotationButtonClickEvent = CustomEvent<{
2
+ active: boolean;
3
+ }>;
4
+ declare global {
5
+ interface GlobalEventHandlersEventMap {
6
+ 'cx-annotation-button-click': CxAnnotationButtonClickEvent;
7
+ }
8
+ }
@@ -10,6 +10,7 @@ export * from './cx-after-collapse';
10
10
  export * from './cx-after-expand';
11
11
  export * from './cx-after-hide';
12
12
  export * from './cx-after-show';
13
+ export * from './cx-annotation-button-click';
13
14
  export * from './cx-annotator-tool-change';
14
15
  export * from './cx-asset-data-display-slot-change';
15
16
  export * from './cx-asset-format-picker-select';
@@ -97,6 +97,11 @@ export default class CxGalleryItem extends HighlightableElement {
97
97
  * The object fit style for the image.
98
98
  */
99
99
  objectFit: ObjectFit;
100
+ /**
101
+ * When true, forwards `no-crossorigin` to the inner `<cx-image>`, disabling CORS mode.
102
+ * Defaults to false (the image loads with `crossorigin="anonymous"`).
103
+ */
104
+ noCrossorigin: boolean;
100
105
  /**
101
106
  * Whether to open the link in a new tab.
102
107
  */
@@ -1,4 +1,5 @@
1
1
  import { AnnotationState } from '@markerjs/markerjs3';
2
+ import { CxAnnotationButtonClickEvent } from '../../../events/src/cx-annotation-button-click';
2
3
  import { CxTimeBasedChangeEvent } from '../../../events/src/cx-time-based-change';
3
4
  import { default as CxComment } from '../comment/comment.ts';
4
5
  import { TimecodeMode } from '../../../types/src/video-editor';
@@ -13,6 +14,7 @@ declare global {
13
14
  /**
14
15
  * @summary CxAnnotatorComment - An extension of the CxComment component that allows users to annotate a specific element.
15
16
  *
17
+ * @event {{ active: boolean }} cx-annotation-button-click - Emitted (bubbles, composed) via the inner `cx-annotator-comment-menu` when the annotation (draw) tool is toggled. `active` is `true` when annotation mode is opened, `false` when it is closed.
16
18
  * @event {{ active: boolean; tool: AnnotatorTool }} cx-annotator-tool-change - Emitted via the inner `cx-annotator` when a drawing tool is selected (`active: true`) or the active tool icon is clicked again to return to select mode (`active: false`). `tool` is the `AnnotatorTool` value (`arrow-marker`, `line-marker`, `rectangle-marker`, `freehand-marker`). Bubbles and composed.
17
19
  */
18
20
  export default class CxAnnotatorComment extends CxComment {
@@ -57,6 +59,13 @@ export default class CxAnnotatorComment extends CxComment {
57
59
  * Whether the time based feature is enabled.
58
60
  */
59
61
  timeBased: boolean;
62
+ /**
63
+ * By default, activating the annotation tool turns the time based feature on,
64
+ * because annotations are tied to a timestamp. Set this to skip that
65
+ * auto-enable — e.g. media without a timeline (images/PDFs) or flows that
66
+ * intentionally allow timeless annotations.
67
+ */
68
+ noAutoTimeBasedOnAnnotate: boolean;
60
69
  /**
61
70
  * The time values for the time based feature.
62
71
  */
@@ -72,6 +81,7 @@ export default class CxAnnotatorComment extends CxComment {
72
81
  runFirstUpdated(): void;
73
82
  handleTimeChange(): void;
74
83
  handleTimeBasedChange(event: CxTimeBasedChangeEvent): void;
84
+ handleAnnotationButtonClick(event: CxAnnotationButtonClickEvent): void;
75
85
  private get timecodeExtension();
76
86
  private handleUndoRequest;
77
87
  private handleRedoRequest;
@@ -6,7 +6,7 @@ import { default as CxXmlEditorPacketEditor } from './components/packet-editor/p
6
6
  import { default as CxXmlEditorViewer } from './components/viewer/viewer';
7
7
 
8
8
  /**
9
- * @summary Structured tree editor for the `<FetchRules>` XML rule schema: expand/collapse, add/copy/paste/delete
9
+ * @summary Structured tree editor for the FetchRules XML rule schema: expand/collapse, add/copy/paste/delete
10
10
  * elements, edit `Packet` search rules, and preview the resulting XML. Replaces the legacy React `orangelogic-react-xmleditor`
11
11
  * component; the host page owns persistence and listens for `cx-xml-editor-change`.
12
12
  *
@@ -2525,6 +2525,10 @@
2525
2525
  * The loading attribute of the image.
2526
2526
  */
2527
2527
  htmlLoading?: 'eager' | 'lazy';
2528
+ /**
2529
+ * When true, omits the `crossorigin` attribute on the underlying `img`, disabling the CORS request mode. Defaults to false, i.e. the image loads with `crossorigin="anonymous"` (e.g. set `no-crossorigin` in Site Builder contexts where CORS headers are absent).
2530
+ */
2531
+ noCrossorigin?: boolean;
2528
2532
  /**
2529
2533
  * The type of click handler to use. - automatic: The click handler is automatically handled by the image. - manual: The click handler is manually handled by the parent element.
2530
2534
  */
@@ -7585,6 +7589,10 @@
7585
7589
  * Whether the time based feature is enabled.
7586
7590
  */
7587
7591
  timeBased?: boolean;
7592
+ /**
7593
+ * By default, activating the annotation tool turns the time based feature on, because annotations are tied to a timestamp. Set this to skip that auto-enable — e.g. media without a timeline (images/PDFs) or flows that intentionally allow timeless annotations.
7594
+ */
7595
+ noAutoTimeBasedOnAnnotate?: boolean;
7588
7596
  /**
7589
7597
  * The time values for the time based feature.
7590
7598
  */
@@ -10299,7 +10307,7 @@
10299
10307
  preRender?: boolean;
10300
10308
  }
10301
10309
  /**
10302
- * Structured tree editor for the `<FetchRules>` XML rule schema: expand/collapse, add/copy/paste/delete elements, edit `Packet` search rules, and preview the resulting XML. Replaces the legacy React `orangelogic-react-xmleditor` component; the host page owns persistence and listens for `cx-xml-editor-change`.
10310
+ * Structured tree editor for the FetchRules XML rule schema: expand/collapse, add/copy/paste/delete elements, edit `Packet` search rules, and preview the resulting XML. Replaces the legacy React `orangelogic-react-xmleditor` component; the host page owns persistence and listens for `cx-xml-editor-change`.
10303
10311
  */
10304
10312
  interface CxXmlEditorAttributes extends HTMLAttributes<CxXmlEditor> {
10305
10313
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.152.0",
4
+ "version": "2.154.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {