@orangelogic/design-system 2.198.0 → 2.200.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/{asset-link-format.B_Im2jz7.js → asset-link-format.DqokYoTI.js} +114 -116
- package/library/components/asset-link-format.js +1 -1
- package/library/components/organisms.js +1 -1
- package/library/components/types.js +24245 -23561
- package/library/package.json +1 -1
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/index.d.ts +13 -2
- package/library/packages/tools/src/tiptap/extensions/google/index.d.ts +4 -0
- package/library/packages/tools/src/tiptap/extensions/paste-inline-filter/index.d.ts +28 -0
- package/library/packages/tools/src/tiptap/utils/flatten-spans.d.ts +5 -0
- package/library/packages/tools/src/tiptap/utils/normalize-tabs.d.ts +7 -0
- package/package.json +1 -1
package/library/package.json
CHANGED
|
@@ -48,8 +48,6 @@ export default class CxSbImage extends CxImage {
|
|
|
48
48
|
retryOnError: boolean;
|
|
49
49
|
/** Content-builder images keep their measured box visible while the asset loads. */
|
|
50
50
|
skeleton: boolean;
|
|
51
|
-
/** Content-builder blocks hold the box without an animated sheen. */
|
|
52
|
-
protected placeholderSkeletonEffect: "none";
|
|
53
51
|
/**
|
|
54
52
|
* The path to the image to load in dark mode.
|
|
55
53
|
*/
|
|
@@ -16,6 +16,13 @@ export declare class ConfigFormController implements ReactiveController {
|
|
|
16
16
|
constructor(host: ReactiveControllerHost & CxConfigForm);
|
|
17
17
|
hostConnected(): void;
|
|
18
18
|
/**
|
|
19
|
+
* Resolves the delivery URL to persist for an asset under a given format.
|
|
20
|
+
*
|
|
21
|
+
* A blank `format` means `Auto`, which is what a reset leaves behind: the proxy is then
|
|
22
|
+
* derived from the asset's own extension and size (`resolveAutoFormat`), matching what
|
|
23
|
+
* the block computes at runtime. Without this the reset would keep whichever URL the
|
|
24
|
+
* previous hand-picked format wrote.
|
|
25
|
+
*
|
|
19
26
|
* `TRX` proxies preserve the asset's original extension. When that extension is not a
|
|
20
27
|
* browser-displayable image format, fall back to the `TR1` transformation proxy, which is
|
|
21
28
|
* always transcoded to a raster format. Mirrors the same fallback in `FetchImageController`
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { RTE_CONFIG } from '../../../../../../types/src/content-builder';
|
|
2
|
+
|
|
3
|
+
export declare const baseExtensions: (import('@tiptap/core').Mark<any, any> | import('@tiptap/core').Node<any, any> | import('@tiptap/core').Extension<any, any>)[];
|
|
2
4
|
export declare const basicFormatExtensions: import('@tiptap/core').Mark<import('@tiptap/extension-bold').BoldOptions, any>[];
|
|
3
5
|
export declare const textScriptExtensions: import('@tiptap/core').Mark<import('@tiptap/extension-subscript').SubscriptExtensionOptions, any>[];
|
|
4
6
|
export declare const linkExtensions: import('@tiptap/core').Mark<import('@tiptap/extension-link').LinkOptions, any>[];
|
|
@@ -25,4 +27,13 @@ export declare const lineHeightExtensions: import('@tiptap/core').Extension<{
|
|
|
25
27
|
export declare const blockFormatExtensions: import('@tiptap/core').Node<any, any>[];
|
|
26
28
|
export declare const listExtensions: import('@tiptap/core').Node<any, any>[];
|
|
27
29
|
export declare const customNodes: import('@tiptap/core').Node<any, any>[];
|
|
28
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Inline styling a paste may keep, derived from the same `rteConfigs` flags that
|
|
32
|
+
* decide which extensions are loaded. Anything not enabled at inline level is
|
|
33
|
+
* stripped on paste so the block-level setting stays in control — notably
|
|
34
|
+
* `font-family`, which has no inline config and is block-only.
|
|
35
|
+
*
|
|
36
|
+
* Keep in sync with the extension branches in `rich-text-editor/index.ts`.
|
|
37
|
+
*/
|
|
38
|
+
export declare const buildPasteInlineFilter: (rteConfigs?: RTE_CONFIG) => import('@tiptap/core').Extension<import('../../../../../../tools/src/tiptap/extensions/paste-inline-filter').PasteInlineFilterOptions, any>;
|
|
39
|
+
export declare const testingExtensions: (import('@tiptap/core').Mark<any, any> | import('@tiptap/core').Node<any, any> | import('@tiptap/core').Extension<any, any>)[];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
|
|
3
|
+
export type PasteInlineFilterOptions = {
|
|
4
|
+
/**
|
|
5
|
+
* Mark names that may survive a paste, e.g. `['bold', 'link']`.
|
|
6
|
+
* `textStyle` is always kept (it is filtered by `allowedStyles` instead) so
|
|
7
|
+
* that allowed declarations have a mark to live on.
|
|
8
|
+
*/
|
|
9
|
+
allowedMarks: string[];
|
|
10
|
+
/**
|
|
11
|
+
* Inline CSS properties that may survive a paste, e.g. `['color', 'font-size']`.
|
|
12
|
+
* Every other declaration on a `textStyle` mark is dropped so the block-level
|
|
13
|
+
* setting stays in control. An empty set strips all inline styling.
|
|
14
|
+
*/
|
|
15
|
+
allowedStyles: string[];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Removes inline styling that the host has not enabled, so block-level settings
|
|
19
|
+
* (font family, line height, …) are not overridden by whatever the clipboard
|
|
20
|
+
* carried. Pasted content from Google Docs, Word, and web pages all arrive as
|
|
21
|
+
* `<span style="...">` runs; without this filter those inline declarations win
|
|
22
|
+
* over the block setting and the setting appears to have no effect.
|
|
23
|
+
*
|
|
24
|
+
* Runs on `transformPasted`, so it covers every paste source rather than a
|
|
25
|
+
* single vendor-specific handler.
|
|
26
|
+
*/
|
|
27
|
+
declare const PasteInlineFilter: Extension<PasteInlineFilterOptions, any>;
|
|
28
|
+
export default PasteInlineFilter;
|