@orangelogic/design-system 3.82.0 → 3.83.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/{sidebar.DxkAvwY0.js → sidebar.DrdAXkkP.js} +2 -2
- package/library/components/molecules.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/types.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/hybrid/rich-text/src/rich-text.d.ts +8 -1
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ var y = t`:host{--_background-color:var(--background-color,var(--cx-color-neutra
|
|
|
33
33
|
super.connectedCallback(), this.slot === "left" ? this.side = "left" : this.slot === "right" && (this.side = "right"), this.collapsible || (this.open = !0);
|
|
34
34
|
}
|
|
35
35
|
handleDrag(e) {
|
|
36
|
-
this.resizable && (e.cancelable && e.preventDefault(), this.state = "dragging", _(this, {
|
|
36
|
+
this.resizable && this.open && (e.cancelable && e.preventDefault(), this.state = "dragging", _(this, {
|
|
37
37
|
initialEvent: e,
|
|
38
38
|
onMove: (e) => {
|
|
39
39
|
let t = e;
|
|
@@ -66,7 +66,7 @@ var y = t`:host{--_background-color:var(--background-color,var(--cx-color-neutra
|
|
|
66
66
|
sidebar: !0,
|
|
67
67
|
"sidebar--left": this.side === "left",
|
|
68
68
|
"sidebar--no-header": !t,
|
|
69
|
-
"sidebar--not-resizable": !this.resizable,
|
|
69
|
+
"sidebar--not-resizable": !this.resizable || !this.open,
|
|
70
70
|
"sidebar--opened": this.open,
|
|
71
71
|
"sidebar--right": this.side === "right"
|
|
72
72
|
})}><div class=${p({
|
|
@@ -11,7 +11,7 @@ import { t as l } from "../chunks/padding-input-group.Dhk51pQL.js";
|
|
|
11
11
|
import { t as u } from "../chunks/position-picker.CaCGLfvq.js";
|
|
12
12
|
import { t as d } from "../chunks/shadow-input-group.DuQt9iFo.js";
|
|
13
13
|
import { t as f } from "../chunks/share-option-list.Bu0f6D6X.js";
|
|
14
|
-
import { t as p } from "../chunks/sidebar.
|
|
14
|
+
import { t as p } from "../chunks/sidebar.DrdAXkkP.js";
|
|
15
15
|
import { t as m } from "../chunks/size-input-group.ChoR00ML.js";
|
|
16
16
|
import { t as h } from "../chunks/stepper-wizard.DK-n_AOs.js";
|
|
17
17
|
import { t as g } from "../chunks/typeface.DH9z0cTo.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/sidebar.
|
|
1
|
+
import { t as e } from "../chunks/sidebar.DrdAXkkP.js";
|
|
2
2
|
export { e as default };
|
|
@@ -161,7 +161,7 @@ import { t as Vs } from "../chunks/padding-input-group.Dhk51pQL.js";
|
|
|
161
161
|
import { t as Hs } from "../chunks/position-picker.CaCGLfvq.js";
|
|
162
162
|
import { t as Us } from "../chunks/shadow-input-group.DuQt9iFo.js";
|
|
163
163
|
import { t as Ws } from "../chunks/share-option-list.Bu0f6D6X.js";
|
|
164
|
-
import { t as Gs } from "../chunks/sidebar.
|
|
164
|
+
import { t as Gs } from "../chunks/sidebar.DrdAXkkP.js";
|
|
165
165
|
import { t as Ks } from "../chunks/size-input-group.ChoR00ML.js";
|
|
166
166
|
import { t as qs } from "../chunks/stepper-wizard.DK-n_AOs.js";
|
|
167
167
|
import { t as Js } from "../chunks/typeface.DH9z0cTo.js";
|
package/library/package.json
CHANGED
|
@@ -68,7 +68,7 @@ import { RichTextMenuBarSpec, RichTextStyleFormat, RichTextToolbarSpec } from '.
|
|
|
68
68
|
* Optional **`fire-change-on-same-content`** (default true): when false, `cx-rich-text-change` is not emitted if `editor.getHTML()` matches the last emitted HTML.
|
|
69
69
|
*
|
|
70
70
|
* @event {{ files: FileList }} cx-rich-text-image-drop - Emitted when an image is dropped onto the editor; `detail.files` is the dropped files.
|
|
71
|
-
* @event {{ content: string }} cx-rich-text-change - Emitted when the document changes; `detail.content` is `
|
|
71
|
+
* @event {{ content: string }} cx-rich-text-change - Emitted when the document changes; `detail.content` is the published HTML, as `getValue()` returns it.
|
|
72
72
|
* @event cx-rich-text-blur - Emitted when the editor loses focus.
|
|
73
73
|
* @event cx-rich-text-focus - Emitted when the editor gains focus.
|
|
74
74
|
* @event cx-rich-text-click - Emitted when the user clicks inside the toolbar, editor, or table bubble.
|
|
@@ -83,6 +83,12 @@ export default class CxRichText extends CortexElement {
|
|
|
83
83
|
'cx-rich-text-toolbar': typeof CxRichTextToolbar;
|
|
84
84
|
'cx-rich-text-video-viewer': typeof CxRichTextVideoViewer;
|
|
85
85
|
};
|
|
86
|
+
/**
|
|
87
|
+
* The whole document is one paragraph with nothing in it: TinyMCE's rule for an empty field.
|
|
88
|
+
* Narrower than `editor.isEmpty`, which also counts several empty lines, or a table or list
|
|
89
|
+
* without text, as empty. A pending suggestion on that paragraph (`attrs.track`) counts as content.
|
|
90
|
+
*/
|
|
91
|
+
private static isOnlyEmptyParagraph;
|
|
86
92
|
readonly localize: LocalizeController;
|
|
87
93
|
private caretAnimationId?;
|
|
88
94
|
readonly editorContainer: HTMLDivElement;
|
|
@@ -292,6 +298,7 @@ export default class CxRichText extends CortexElement {
|
|
|
292
298
|
* The content as it should be published: stored, rendered by a viewer, or sent as email.
|
|
293
299
|
* `editor.getHTML()` stays a faithful serialization of the document, wrappers the schema forces
|
|
294
300
|
* included; this resolves those away. Hosts that persist the value should read this.
|
|
301
|
+
* A document holding only an empty paragraph publishes as an empty string.
|
|
295
302
|
*/
|
|
296
303
|
getValue(): string;
|
|
297
304
|
private teardownEditor;
|