@orangelogic/design-system 2.198.0 → 2.199.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/{folder-select.CIqVGGFl.js → folder-select.B-_hk2eW.js} +1 -1
- package/library/chunks/{tree.CmEdKtzK.js → tree-item.Dtrk65zS.js} +601 -601
- package/library/components/atoms.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +2 -2
- package/library/components/molecules.js +1 -1
- package/library/components/tree-item.js +1 -1
- package/library/components/tree.js +1 -1
- package/library/components/types.js +23334 -22658
- package/library/package.json +1 -1
- 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
|
@@ -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;
|