@orangelogic/design-system 3.55.0 → 3.57.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
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "3.55.0",
4
+ "version": "3.57.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -74,6 +74,7 @@ export default class CxIconPicker extends CortexElement {
74
74
  private readonly select;
75
75
  private readonly customOption;
76
76
  private readonly dropdown?;
77
+ private readonly selectVirtualizer?;
77
78
  value: {
78
79
  name: string;
79
80
  src: string;
@@ -155,6 +156,10 @@ export default class CxIconPicker extends CortexElement {
155
156
  * @default undefined
156
157
  */
157
158
  onRequestAsset: ((type: AssetTypeString, multiple?: boolean) => Promise<Asset | Record<string, Asset>>) | undefined;
159
+ /**
160
+ * Lower-cased text the icon list is filtered by. Set from the select's input in select mode
161
+ * and from the panel's search input in button mode.
162
+ */
158
163
  searchTerm: string;
159
164
  /**
160
165
  * Recreate the virtualizer for each open because it does not reliably
@@ -171,6 +176,8 @@ export default class CxIconPicker extends CortexElement {
171
176
  /** Called by the containing form when reporting errors on save. */
172
177
  reportValidity(): boolean;
173
178
  handleVariantChange(): Promise<void>;
179
+ /** cx-select re-checks no-option-text only on its own render, not when the virtualizer swaps options. */
180
+ handleSelectOptionsChange(): Promise<void>;
174
181
  handleCustomIconValidation(): Promise<void>;
175
182
  private updateCustomIconValidity;
176
183
  renderOption(item: IconData): import('lit-html').TemplateResult<1> | typeof nothing;
@@ -200,12 +207,17 @@ export default class CxIconPicker extends CortexElement {
200
207
  handleContentBuilderAssetSelect(event: CxAssetPickerSelectEvent): Promise<void>;
201
208
  handleContentBuilderAssetDelete(): Promise<void>;
202
209
  private handleSearchInput;
210
+ /** Native input, not cx-input: cx-input also fires on an option pick, with its label in the input. */
211
+ private handleSelectSearchInput;
212
+ /** cx-select drops its typed filter on blur and on clear. */
213
+ private handleSelectSearchReset;
203
214
  private handleMenuSelect;
204
215
  private handleBicolorChange;
205
216
  private setValueMenuSelect;
206
217
  setSelectOptionCurrent(option: HTMLElement, current?: boolean): void;
207
218
  selectGetOptionLabel(option: HTMLElement): string;
208
- selectFilterCallback(option: HTMLElement, value: string): boolean;
219
+ /** Filtering is done by virtualListItems; this runs per rendered option, so it can't track the search term. */
220
+ selectFilterCallback(option: HTMLElement): boolean;
209
221
  private renderIcon;
210
222
  private renderCustomIconPickerMenuItem;
211
223
  private renderCustomIconPicker;
@@ -110,7 +110,11 @@ export default class CxMarkdownViewer extends CortexElement {
110
110
  * byte-exact. One ending for the whole document: a mixed-ending source comes back uniformly CRLF.
111
111
  */
112
112
  private restoreLineEndings;
113
- /** Prism escapes its input, so the result is safe to pass to `unsafeHTML` unsanitized. */
113
+ /**
114
+ * Prism escapes its input, so the result is safe to pass to `unsafeHTML` unsanitized. Without the
115
+ * markdown grammar the source is shown escaped and unhighlighted: `highlight` would throw and
116
+ * leave the whole viewer unrendered.
117
+ */
114
118
  private highlightSource;
115
119
  /** Formatting and table controls for the rich view. */
116
120
  private renderFormatToolbar;
@@ -0,0 +1 @@
1
+ export declare function restorePrismGlobal(): void;
@@ -0,0 +1,2 @@
1
+ import { default as BundledPrism } from 'prismjs';
2
+ export declare const hostPrism: typeof BundledPrism;
@@ -0,0 +1,8 @@
1
+ import { Extension } from '@tiptap/core';
2
+ /**
3
+ * Typing over a select-all (Ctrl+A) keeps the formatting of the first character, as TinyMCE and
4
+ * Google Docs do. An `AllSelection` starts on the document itself, outside any paragraph, so
5
+ * ProseMirror finds no marks to carry over and the typed text came out unformatted.
6
+ */
7
+ declare const SelectAllFormat: Extension<any, any>;
8
+ export default SelectAllFormat;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "3.55.0",
4
+ "version": "3.57.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {