@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.
- package/library/chunks/{block-width.HFgTbOhY.js → block-width.CPMzQD89.js} +21 -7
- package/library/chunks/{color-swatch-group.fB89QMxH.js → color-swatch-group.DnLiXSB9.js} +3 -3
- package/library/chunks/{config-manager.MYzwsduU.js → config-manager.C7v_dgBh.js} +2 -2
- package/library/chunks/{configs-controller.CVQQJkir.js → configs-controller.DNSGtqMU.js} +2 -2
- package/library/chunks/{header.CU8r46mR.js → header.BDEqW3TI.js} +58 -42
- package/library/chunks/{markdown.DMexA2xN.js → markdown.Ce5rh6vN.js} +566 -566
- package/library/chunks/{src.CKXY7ep6.js → src.qAKiRBjl.js} +2 -2
- package/library/components/atoms.js +3 -3
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/header.js +1 -1
- package/library/components/markdown.js +1 -1
- package/library/components/organisms.js +1 -1
- package/library/components/types.js +11644 -11591
- package/library/package.json +1 -1
- package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +13 -1
- package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +5 -1
- package/library/packages/molecules/src/markdown-viewer/prism-global.d.ts +1 -0
- package/library/packages/molecules/src/markdown-viewer/prism-global.mock.d.ts +2 -0
- package/library/packages/tools/src/tiptap/extensions/select-all-format/index.d.ts +8 -0
- package/package.json +1 -1
package/library/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|
-
/**
|
|
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,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;
|