@ckeditor/ckeditor5-paste-from-office 48.2.0 → 48.3.0-alpha.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/dist/augmentation.d.ts +8 -8
- package/dist/filters/bookmark.d.ts +10 -10
- package/dist/filters/br.d.ts +11 -11
- package/dist/filters/image.d.ts +19 -19
- package/dist/filters/list.d.ts +25 -25
- package/dist/filters/parse.d.ts +28 -28
- package/dist/filters/removeboldwrapper.d.ts +11 -11
- package/dist/filters/removegooglesheetstag.d.ts +11 -11
- package/dist/filters/removeinvalidtablewidth.d.ts +11 -11
- package/dist/filters/removemsattributes.d.ts +11 -11
- package/dist/filters/removestyleblock.d.ts +11 -11
- package/dist/filters/removexmlns.d.ts +11 -11
- package/dist/filters/replacemsfootnotes.d.ts +53 -50
- package/dist/filters/replacetabswithinprewithspaces.d.ts +20 -20
- package/dist/filters/space.d.ts +23 -23
- package/dist/filters/table.d.ts +12 -12
- package/dist/filters/utils.d.ts +17 -17
- package/dist/index-content.css +1 -0
- package/dist/index-editor.css +1 -0
- package/dist/index.css +0 -2
- package/dist/index.d.ts +25 -25
- package/dist/index.js +1372 -1663
- package/dist/index.js.map +1 -1
- package/dist/normalizer.d.ts +20 -20
- package/dist/normalizers/googledocsnormalizer.d.ts +27 -27
- package/dist/normalizers/googlesheetsnormalizer.d.ts +27 -27
- package/dist/normalizers/mswordnormalizer.d.ts +28 -28
- package/dist/pastefromoffice.d.ts +54 -54
- package/package.json +5 -5
- package/dist/index.css.map +0 -1
package/dist/filters/table.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { type ViewUpcastWriter, type ViewDocumentFragment } from
|
|
6
|
+
* @module paste-from-office/filters/table
|
|
7
|
+
*/
|
|
8
|
+
import { type ViewUpcastWriter, type ViewDocumentFragment } from "@ckeditor/ckeditor5-engine";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
* Applies border none for table and cells without a border specified.
|
|
11
|
+
* Normalizes style length units to px.
|
|
12
|
+
* Handles left block table alignment.
|
|
13
|
+
*
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
16
|
export declare function transformTables(documentFragment: ViewDocumentFragment, writer: ViewUpcastWriter, hasTablePropertiesPlugin?: boolean): void;
|
package/dist/filters/utils.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
* @module paste-from-office/filters/utils
|
|
7
|
+
*/
|
|
8
8
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
* Normalizes CSS length value to 'px'.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
13
|
export declare function convertCssLengthToPx(value: string): string;
|
|
14
14
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
* Returns true for value with 'px' unit.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
19
|
export declare function isPx(value?: string): value is string;
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
* Returns a rounded 'px' value.
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
25
|
export declare function toPx(value: number): string;
|
package/dist/index-content.css
CHANGED
package/dist/index-editor.css
CHANGED
package/dist/index.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { PasteFromOffice } from
|
|
9
|
-
export type { PasteFromOfficeNormalizer } from
|
|
10
|
-
export { PasteFromOfficeMSWordNormalizer } from
|
|
11
|
-
export { parsePasteOfficeHtml, type PasteOfficeHtmlParseResult } from
|
|
12
|
-
export { transformBookmarks as _transformPasteOfficeBookmarks } from
|
|
13
|
-
export { transformBlockBrsToParagraphs as _transformPasteOfficeBlockBrsToParagraphs } from
|
|
14
|
-
export { replaceImagesSourceWithBase64 as _replacePasteOfficeImagesSourceWithBase64, _convertHexToBase64 } from
|
|
15
|
-
export { transformListItemLikeElementsIntoLists as _transformPasteOfficeListItemLikeElementsIntoLists, unwrapParagraphInListItem as _unwrapPasteOfficeParagraphInListItem } from
|
|
16
|
-
export { removeBoldWrapper as _removePasteOfficeBoldWrapper } from
|
|
17
|
-
export { removeGoogleSheetsTag as _removePasteGoogleOfficeSheetsTag } from
|
|
18
|
-
export { removeInvalidTableWidth as _removePasteOfficeInvalidTableWidths } from
|
|
19
|
-
export { removeMSAttributes as _removePasteMSOfficeAttributes } from
|
|
20
|
-
export { removeStyleBlock as _removePasteOfficeStyleBlock } from
|
|
21
|
-
export { removeXmlns as _removePasteOfficeXmlnsAttributes } from
|
|
22
|
-
export { normalizeSpacing as _normalizePasteOfficeSpacing, normalizeSpacerunSpans as _normalizePasteOfficeSpaceRunSpans } from
|
|
23
|
-
export { transformTables as _transformPasteOfficeTables } from
|
|
24
|
-
export { convertCssLengthToPx as _convertPasteOfficeCssLengthToPx, isPx as _isPasteOfficePxValue, toPx as _toPasteOfficePxValue } from
|
|
25
|
-
export { GoogleDocsNormalizer as PasteFromOfficeGoogleDocsNormalizer } from
|
|
26
|
-
export { GoogleSheetsNormalizer as PasteFromOfficeGoogleSheetsNormalizer } from
|
|
27
|
-
import
|
|
6
|
+
* @module paste-from-office
|
|
7
|
+
*/
|
|
8
|
+
export { PasteFromOffice } from "./pastefromoffice.js";
|
|
9
|
+
export type { PasteFromOfficeNormalizer } from "./normalizer.js";
|
|
10
|
+
export { PasteFromOfficeMSWordNormalizer } from "./normalizers/mswordnormalizer.js";
|
|
11
|
+
export { parsePasteOfficeHtml, type PasteOfficeHtmlParseResult } from "./filters/parse.js";
|
|
12
|
+
export { transformBookmarks as _transformPasteOfficeBookmarks } from "./filters/bookmark.js";
|
|
13
|
+
export { transformBlockBrsToParagraphs as _transformPasteOfficeBlockBrsToParagraphs } from "./filters/br.js";
|
|
14
|
+
export { replaceImagesSourceWithBase64 as _replacePasteOfficeImagesSourceWithBase64, _convertHexToBase64 } from "./filters/image.js";
|
|
15
|
+
export { transformListItemLikeElementsIntoLists as _transformPasteOfficeListItemLikeElementsIntoLists, unwrapParagraphInListItem as _unwrapPasteOfficeParagraphInListItem } from "./filters/list.js";
|
|
16
|
+
export { removeBoldWrapper as _removePasteOfficeBoldWrapper } from "./filters/removeboldwrapper.js";
|
|
17
|
+
export { removeGoogleSheetsTag as _removePasteGoogleOfficeSheetsTag } from "./filters/removegooglesheetstag.js";
|
|
18
|
+
export { removeInvalidTableWidth as _removePasteOfficeInvalidTableWidths } from "./filters/removeinvalidtablewidth.js";
|
|
19
|
+
export { removeMSAttributes as _removePasteMSOfficeAttributes } from "./filters/removemsattributes.js";
|
|
20
|
+
export { removeStyleBlock as _removePasteOfficeStyleBlock } from "./filters/removestyleblock.js";
|
|
21
|
+
export { removeXmlns as _removePasteOfficeXmlnsAttributes } from "./filters/removexmlns.js";
|
|
22
|
+
export { normalizeSpacing as _normalizePasteOfficeSpacing, normalizeSpacerunSpans as _normalizePasteOfficeSpaceRunSpans } from "./filters/space.js";
|
|
23
|
+
export { transformTables as _transformPasteOfficeTables } from "./filters/table.js";
|
|
24
|
+
export { convertCssLengthToPx as _convertPasteOfficeCssLengthToPx, isPx as _isPasteOfficePxValue, toPx as _toPasteOfficePxValue } from "./filters/utils.js";
|
|
25
|
+
export { GoogleDocsNormalizer as PasteFromOfficeGoogleDocsNormalizer } from "./normalizers/googledocsnormalizer.js";
|
|
26
|
+
export { GoogleSheetsNormalizer as PasteFromOfficeGoogleSheetsNormalizer } from "./normalizers/googlesheetsnormalizer.js";
|
|
27
|
+
import "./augmentation.js";
|