@wordpress/format-library 5.32.0 → 5.32.1-next.ff1cebbba.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/build/bold/index.js +69 -58
- package/build/bold/index.js.map +7 -1
- package/build/code/index.js +62 -54
- package/build/code/index.js.map +7 -1
- package/build/default-formats.js +52 -24
- package/build/default-formats.js.map +7 -1
- package/build/image/index.js +185 -153
- package/build/image/index.js.map +7 -1
- package/build/index.js +28 -18
- package/build/index.js.map +7 -1
- package/build/italic/index.js +69 -58
- package/build/italic/index.js.map +7 -1
- package/build/keyboard/index.js +47 -36
- package/build/keyboard/index.js.map +7 -1
- package/build/language/index.js +145 -113
- package/build/language/index.js.map +7 -1
- package/build/link/css-classes-setting.js +81 -0
- package/build/link/css-classes-setting.js.map +7 -0
- package/build/link/index.js +162 -167
- package/build/link/index.js.map +7 -1
- package/build/link/inline.js +186 -174
- package/build/link/inline.js.map +7 -1
- package/build/link/use-link-instance-key.js +25 -19
- package/build/link/use-link-instance-key.js.map +7 -1
- package/build/link/utils.js +66 -115
- package/build/link/utils.js.map +7 -1
- package/build/lock-unlock.js +31 -15
- package/build/lock-unlock.js.map +7 -1
- package/build/non-breaking-space/index.js +44 -28
- package/build/non-breaking-space/index.js.map +7 -1
- package/build/strikethrough/index.js +57 -42
- package/build/strikethrough/index.js.map +7 -1
- package/build/subscript/index.js +47 -36
- package/build/subscript/index.js.map +7 -1
- package/build/superscript/index.js +47 -36
- package/build/superscript/index.js.map +7 -1
- package/build/text-color/index.js +102 -70
- package/build/text-color/index.js.map +7 -1
- package/build/text-color/inline.js +118 -116
- package/build/text-color/inline.js.map +7 -1
- package/build/underline/index.js +62 -40
- package/build/underline/index.js.map +7 -1
- package/build/unknown/index.js +51 -37
- package/build/unknown/index.js.map +7 -1
- package/build-module/bold/index.js +52 -52
- package/build-module/bold/index.js.map +7 -1
- package/build-module/code/index.js +41 -46
- package/build-module/code/index.js.map +7 -1
- package/build-module/default-formats.js +34 -19
- package/build-module/default-formats.js.map +7 -1
- package/build-module/image/index.js +174 -144
- package/build-module/image/index.js.map +7 -1
- package/build-module/index.js +6 -14
- package/build-module/index.js.map +7 -1
- package/build-module/italic/index.js +52 -52
- package/build-module/italic/index.js.map +7 -1
- package/build-module/keyboard/index.js +25 -30
- package/build-module/keyboard/index.js.map +7 -1
- package/build-module/language/index.js +128 -105
- package/build-module/language/index.js.map +7 -1
- package/build-module/link/css-classes-setting.js +67 -0
- package/build-module/link/css-classes-setting.js.map +7 -0
- package/build-module/link/index.js +128 -146
- package/build-module/link/index.js.map +7 -1
- package/build-module/link/inline.js +158 -154
- package/build-module/link/inline.js.map +7 -1
- package/build-module/link/use-link-instance-key.js +7 -14
- package/build-module/link/use-link-instance-key.js.map +7 -1
- package/build-module/link/utils.js +46 -101
- package/build-module/link/utils.js.map +7 -1
- package/build-module/lock-unlock.js +8 -7
- package/build-module/lock-unlock.js.map +7 -1
- package/build-module/non-breaking-space/index.js +22 -22
- package/build-module/non-breaking-space/index.js.map +7 -1
- package/build-module/strikethrough/index.js +38 -36
- package/build-module/strikethrough/index.js.map +7 -1
- package/build-module/subscript/index.js +25 -30
- package/build-module/subscript/index.js.map +7 -1
- package/build-module/superscript/index.js +25 -30
- package/build-module/superscript/index.js.map +7 -1
- package/build-module/text-color/index.js +72 -61
- package/build-module/text-color/index.js.map +7 -1
- package/build-module/text-color/inline.js +107 -106
- package/build-module/text-color/inline.js.map +7 -1
- package/build-module/underline/index.js +43 -34
- package/build-module/underline/index.js.map +7 -1
- package/build-module/unknown/index.js +26 -28
- package/build-module/unknown/index.js.map +7 -1
- package/build-style/style-rtl.css +0 -194
- package/build-style/style.css +0 -194
- package/package.json +21 -15
- package/src/image/style.scss +3 -0
- package/src/link/css-classes-setting.js +89 -0
- package/src/link/index.js +1 -0
- package/src/link/inline.js +19 -0
- package/src/link/style.scss +3 -0
- package/src/link/test/css-classes-setting.js +144 -0
- package/src/link/utils.js +8 -0
- package/src/style.scss +4 -4
- package/src/text-color/style.scss +2 -0
- package/build/default-formats.native.js +0 -16
- package/build/default-formats.native.js.map +0 -1
- package/build/link/index.native.js +0 -174
- package/build/link/index.native.js.map +0 -1
- package/build/link/modal-screens/link-picker-screen.native.js +0 -67
- package/build/link/modal-screens/link-picker-screen.native.js.map +0 -1
- package/build/link/modal-screens/link-settings-screen.native.js +0 -226
- package/build/link/modal-screens/link-settings-screen.native.js.map +0 -1
- package/build/link/modal-screens/screens.native.js +0 -11
- package/build/link/modal-screens/screens.native.js.map +0 -1
- package/build/link/modal.native.js +0 -53
- package/build/link/modal.native.js.map +0 -1
- package/build/text-color/index.native.js +0 -134
- package/build/text-color/index.native.js.map +0 -1
- package/build/text-color/inline.native.js +0 -150
- package/build/text-color/inline.native.js.map +0 -1
- package/build-module/default-formats.native.js +0 -10
- package/build-module/default-formats.native.js.map +0 -1
- package/build-module/link/index.native.js +0 -166
- package/build-module/link/index.native.js.map +0 -1
- package/build-module/link/modal-screens/link-picker-screen.native.js +0 -59
- package/build-module/link/modal-screens/link-picker-screen.native.js.map +0 -1
- package/build-module/link/modal-screens/link-settings-screen.native.js +0 -218
- package/build-module/link/modal-screens/link-settings-screen.native.js.map +0 -1
- package/build-module/link/modal-screens/screens.native.js +0 -5
- package/build-module/link/modal-screens/screens.native.js.map +0 -1
- package/build-module/link/modal.native.js +0 -45
- package/build-module/link/modal.native.js.map +0 -1
- package/build-module/text-color/index.native.js +0 -126
- package/build-module/text-color/index.native.js.map +0 -1
- package/build-module/text-color/inline.native.js +0 -142
- package/build-module/text-color/inline.native.js.map +0 -1
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
} = unlock(blockEditorPrivateApis);
|
|
17
|
-
const name = 'core/bold';
|
|
18
|
-
const title = __('Bold');
|
|
19
|
-
export const bold = {
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { __ } from "@wordpress/i18n";
|
|
3
|
+
import { toggleFormat } from "@wordpress/rich-text";
|
|
4
|
+
import {
|
|
5
|
+
RichTextToolbarButton,
|
|
6
|
+
RichTextShortcut,
|
|
7
|
+
__unstableRichTextInputEvent,
|
|
8
|
+
privateApis as blockEditorPrivateApis
|
|
9
|
+
} from "@wordpress/block-editor";
|
|
10
|
+
import { formatBold } from "@wordpress/icons";
|
|
11
|
+
import { unlock } from "../lock-unlock";
|
|
12
|
+
const { essentialFormatKey } = unlock(blockEditorPrivateApis);
|
|
13
|
+
const name = "core/bold";
|
|
14
|
+
const title = __("Bold");
|
|
15
|
+
const bold = {
|
|
20
16
|
name,
|
|
21
17
|
title,
|
|
22
|
-
tagName:
|
|
18
|
+
tagName: "strong",
|
|
23
19
|
className: null,
|
|
24
20
|
[essentialFormatKey]: true,
|
|
25
|
-
edit({
|
|
26
|
-
isActive,
|
|
27
|
-
value,
|
|
28
|
-
onChange,
|
|
29
|
-
onFocus
|
|
30
|
-
}) {
|
|
21
|
+
edit({ isActive, value, onChange, onFocus }) {
|
|
31
22
|
function onToggle() {
|
|
32
|
-
onChange(toggleFormat(value, {
|
|
33
|
-
type: name,
|
|
34
|
-
title
|
|
35
|
-
}));
|
|
23
|
+
onChange(toggleFormat(value, { type: name, title }));
|
|
36
24
|
}
|
|
37
25
|
function onClick() {
|
|
38
|
-
onChange(toggleFormat(value, {
|
|
39
|
-
type: name
|
|
40
|
-
}));
|
|
26
|
+
onChange(toggleFormat(value, { type: name }));
|
|
41
27
|
onFocus();
|
|
42
28
|
}
|
|
43
|
-
return
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
29
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
30
|
+
/* @__PURE__ */ jsx(
|
|
31
|
+
RichTextShortcut,
|
|
32
|
+
{
|
|
33
|
+
type: "primary",
|
|
34
|
+
character: "b",
|
|
35
|
+
onUse: onToggle
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ jsx(
|
|
39
|
+
RichTextToolbarButton,
|
|
40
|
+
{
|
|
41
|
+
name: "bold",
|
|
42
|
+
icon: formatBold,
|
|
43
|
+
title,
|
|
44
|
+
onClick,
|
|
45
|
+
isActive,
|
|
46
|
+
shortcutType: "primary",
|
|
47
|
+
shortcutCharacter: "b"
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ jsx(
|
|
51
|
+
__unstableRichTextInputEvent,
|
|
52
|
+
{
|
|
53
|
+
inputType: "formatBold",
|
|
54
|
+
onInput: onToggle
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
] });
|
|
61
58
|
}
|
|
62
59
|
};
|
|
63
|
-
|
|
60
|
+
export {
|
|
61
|
+
bold
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/bold/index.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { toggleFormat } from '@wordpress/rich-text';\nimport {\n\tRichTextToolbarButton,\n\tRichTextShortcut,\n\t__unstableRichTextInputEvent,\n\tprivateApis as blockEditorPrivateApis,\n} from '@wordpress/block-editor';\nimport { formatBold } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../lock-unlock';\n\nconst { essentialFormatKey } = unlock( blockEditorPrivateApis );\n\nconst name = 'core/bold';\nconst title = __( 'Bold' );\n\nexport const bold = {\n\tname,\n\ttitle,\n\ttagName: 'strong',\n\tclassName: null,\n\t[ essentialFormatKey ]: true,\n\tedit( { isActive, value, onChange, onFocus } ) {\n\t\tfunction onToggle() {\n\t\t\tonChange( toggleFormat( value, { type: name, title } ) );\n\t\t}\n\n\t\tfunction onClick() {\n\t\t\tonChange( toggleFormat( value, { type: name } ) );\n\t\t\tonFocus();\n\t\t}\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<RichTextShortcut\n\t\t\t\t\ttype=\"primary\"\n\t\t\t\t\tcharacter=\"b\"\n\t\t\t\t\tonUse={ onToggle }\n\t\t\t\t/>\n\t\t\t\t<RichTextToolbarButton\n\t\t\t\t\tname=\"bold\"\n\t\t\t\t\ticon={ formatBold }\n\t\t\t\t\ttitle={ title }\n\t\t\t\t\tonClick={ onClick }\n\t\t\t\t\tisActive={ isActive }\n\t\t\t\t\tshortcutType=\"primary\"\n\t\t\t\t\tshortcutCharacter=\"b\"\n\t\t\t\t/>\n\t\t\t\t<__unstableRichTextInputEvent\n\t\t\t\t\tinputType=\"formatBold\"\n\t\t\t\t\tonInput={ onToggle }\n\t\t\t\t/>\n\t\t\t</>\n\t\t);\n\t},\n};\n"],
|
|
5
|
+
"mappings": "AAwCG,mBACC,KADD;AArCH,SAAS,UAAU;AACnB,SAAS,oBAAoB;AAC7B;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AAAA,OACT;AACP,SAAS,kBAAkB;AAK3B,SAAS,cAAc;AAEvB,MAAM,EAAE,mBAAmB,IAAI,OAAQ,sBAAuB;AAE9D,MAAM,OAAO;AACb,MAAM,QAAQ,GAAI,MAAO;AAElB,MAAM,OAAO;AAAA,EACnB;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT,WAAW;AAAA,EACX,CAAE,kBAAmB,GAAG;AAAA,EACxB,KAAM,EAAE,UAAU,OAAO,UAAU,QAAQ,GAAI;AAC9C,aAAS,WAAW;AACnB,eAAU,aAAc,OAAO,EAAE,MAAM,MAAM,MAAM,CAAE,CAAE;AAAA,IACxD;AAEA,aAAS,UAAU;AAClB,eAAU,aAAc,OAAO,EAAE,MAAM,KAAK,CAAE,CAAE;AAChD,cAAQ;AAAA,IACT;AAEA,WACC,iCACC;AAAA;AAAA,QAAC;AAAA;AAAA,UACA,MAAK;AAAA,UACL,WAAU;AAAA,UACV,OAAQ;AAAA;AAAA,MACT;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACA,MAAK;AAAA,UACL,MAAO;AAAA,UACP;AAAA,UACA;AAAA,UACA;AAAA,UACA,cAAa;AAAA,UACb,mBAAkB;AAAA;AAAA,MACnB;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACA,WAAU;AAAA,UACV,SAAU;AAAA;AAAA,MACX;AAAA,OACD;AAAA,EAEF;AACD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
const name =
|
|
10
|
-
const title = __(
|
|
11
|
-
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { __ } from "@wordpress/i18n";
|
|
3
|
+
import { toggleFormat, remove, applyFormat } from "@wordpress/rich-text";
|
|
4
|
+
import {
|
|
5
|
+
RichTextToolbarButton,
|
|
6
|
+
RichTextShortcut
|
|
7
|
+
} from "@wordpress/block-editor";
|
|
8
|
+
import { code as codeIcon } from "@wordpress/icons";
|
|
9
|
+
const name = "core/code";
|
|
10
|
+
const title = __("Inline code");
|
|
11
|
+
const code = {
|
|
12
12
|
name,
|
|
13
13
|
title,
|
|
14
|
-
tagName:
|
|
14
|
+
tagName: "code",
|
|
15
15
|
className: null,
|
|
16
16
|
__unstableInputRule(value) {
|
|
17
|
-
const BACKTICK =
|
|
18
|
-
const {
|
|
19
|
-
start,
|
|
20
|
-
text
|
|
21
|
-
} = value;
|
|
17
|
+
const BACKTICK = "`";
|
|
18
|
+
const { start, text } = value;
|
|
22
19
|
const characterBefore = text[start - 1];
|
|
23
|
-
|
|
24
|
-
// Quick check the text for the necessary character.
|
|
25
20
|
if (characterBefore !== BACKTICK) {
|
|
26
21
|
return value;
|
|
27
22
|
}
|
|
@@ -39,37 +34,37 @@ export const code = {
|
|
|
39
34
|
}
|
|
40
35
|
value = remove(value, startIndex, startIndex + 1);
|
|
41
36
|
value = remove(value, endIndex, endIndex + 1);
|
|
42
|
-
value = applyFormat(value, {
|
|
43
|
-
type: name
|
|
44
|
-
}, startIndex, endIndex);
|
|
37
|
+
value = applyFormat(value, { type: name }, startIndex, endIndex);
|
|
45
38
|
return value;
|
|
46
39
|
},
|
|
47
|
-
edit({
|
|
48
|
-
value,
|
|
49
|
-
onChange,
|
|
50
|
-
onFocus,
|
|
51
|
-
isActive
|
|
52
|
-
}) {
|
|
40
|
+
edit({ value, onChange, onFocus, isActive }) {
|
|
53
41
|
function onClick() {
|
|
54
|
-
onChange(toggleFormat(value, {
|
|
55
|
-
type: name,
|
|
56
|
-
title
|
|
57
|
-
}));
|
|
42
|
+
onChange(toggleFormat(value, { type: name, title }));
|
|
58
43
|
onFocus();
|
|
59
44
|
}
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
45
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
46
|
+
/* @__PURE__ */ jsx(
|
|
47
|
+
RichTextShortcut,
|
|
48
|
+
{
|
|
49
|
+
type: "access",
|
|
50
|
+
character: "x",
|
|
51
|
+
onUse: onClick
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
/* @__PURE__ */ jsx(
|
|
55
|
+
RichTextToolbarButton,
|
|
56
|
+
{
|
|
57
|
+
icon: codeIcon,
|
|
58
|
+
title,
|
|
59
|
+
onClick,
|
|
60
|
+
isActive,
|
|
61
|
+
role: "menuitemcheckbox"
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
] });
|
|
73
65
|
}
|
|
74
66
|
};
|
|
75
|
-
|
|
67
|
+
export {
|
|
68
|
+
code
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/code/index.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { toggleFormat, remove, applyFormat } from '@wordpress/rich-text';\nimport {\n\tRichTextToolbarButton,\n\tRichTextShortcut,\n} from '@wordpress/block-editor';\nimport { code as codeIcon } from '@wordpress/icons';\n\nconst name = 'core/code';\nconst title = __( 'Inline code' );\n\nexport const code = {\n\tname,\n\ttitle,\n\ttagName: 'code',\n\tclassName: null,\n\t__unstableInputRule( value ) {\n\t\tconst BACKTICK = '`';\n\t\tconst { start, text } = value;\n\t\tconst characterBefore = text[ start - 1 ];\n\n\t\t// Quick check the text for the necessary character.\n\t\tif ( characterBefore !== BACKTICK ) {\n\t\t\treturn value;\n\t\t}\n\n\t\tif ( start - 2 < 0 ) {\n\t\t\treturn value;\n\t\t}\n\n\t\tconst indexBefore = text.lastIndexOf( BACKTICK, start - 2 );\n\t\tif ( indexBefore === -1 ) {\n\t\t\treturn value;\n\t\t}\n\n\t\tconst startIndex = indexBefore;\n\t\tconst endIndex = start - 2;\n\n\t\tif ( startIndex === endIndex ) {\n\t\t\treturn value;\n\t\t}\n\n\t\tvalue = remove( value, startIndex, startIndex + 1 );\n\t\tvalue = remove( value, endIndex, endIndex + 1 );\n\t\tvalue = applyFormat( value, { type: name }, startIndex, endIndex );\n\n\t\treturn value;\n\t},\n\tedit( { value, onChange, onFocus, isActive } ) {\n\t\tfunction onClick() {\n\t\t\tonChange( toggleFormat( value, { type: name, title } ) );\n\t\t\tonFocus();\n\t\t}\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<RichTextShortcut\n\t\t\t\t\ttype=\"access\"\n\t\t\t\t\tcharacter=\"x\"\n\t\t\t\t\tonUse={ onClick }\n\t\t\t\t/>\n\t\t\t\t<RichTextToolbarButton\n\t\t\t\t\ticon={ codeIcon }\n\t\t\t\t\ttitle={ title }\n\t\t\t\t\tonClick={ onClick }\n\t\t\t\t\tisActive={ isActive }\n\t\t\t\t\trole=\"menuitemcheckbox\"\n\t\t\t\t/>\n\t\t\t</>\n\t\t);\n\t},\n};\n"],
|
|
5
|
+
"mappings": "AA0DG,mBACC,KADD;AAvDH,SAAS,UAAU;AACnB,SAAS,cAAc,QAAQ,mBAAmB;AAClD;AAAA,EACC;AAAA,EACA;AAAA,OACM;AACP,SAAS,QAAQ,gBAAgB;AAEjC,MAAM,OAAO;AACb,MAAM,QAAQ,GAAI,aAAc;AAEzB,MAAM,OAAO;AAAA,EACnB;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT,WAAW;AAAA,EACX,oBAAqB,OAAQ;AAC5B,UAAM,WAAW;AACjB,UAAM,EAAE,OAAO,KAAK,IAAI;AACxB,UAAM,kBAAkB,KAAM,QAAQ,CAAE;AAGxC,QAAK,oBAAoB,UAAW;AACnC,aAAO;AAAA,IACR;AAEA,QAAK,QAAQ,IAAI,GAAI;AACpB,aAAO;AAAA,IACR;AAEA,UAAM,cAAc,KAAK,YAAa,UAAU,QAAQ,CAAE;AAC1D,QAAK,gBAAgB,IAAK;AACzB,aAAO;AAAA,IACR;AAEA,UAAM,aAAa;AACnB,UAAM,WAAW,QAAQ;AAEzB,QAAK,eAAe,UAAW;AAC9B,aAAO;AAAA,IACR;AAEA,YAAQ,OAAQ,OAAO,YAAY,aAAa,CAAE;AAClD,YAAQ,OAAQ,OAAO,UAAU,WAAW,CAAE;AAC9C,YAAQ,YAAa,OAAO,EAAE,MAAM,KAAK,GAAG,YAAY,QAAS;AAEjE,WAAO;AAAA,EACR;AAAA,EACA,KAAM,EAAE,OAAO,UAAU,SAAS,SAAS,GAAI;AAC9C,aAAS,UAAU;AAClB,eAAU,aAAc,OAAO,EAAE,MAAM,MAAM,MAAM,CAAE,CAAE;AACvD,cAAQ;AAAA,IACT;AAEA,WACC,iCACC;AAAA;AAAA,QAAC;AAAA;AAAA,UACA,MAAK;AAAA,UACL,WAAU;AAAA,UACV,OAAQ;AAAA;AAAA,MACT;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACA,MAAO;AAAA,UACP;AAAA,UACA;AAAA,UACA;AAAA,UACA,MAAK;AAAA;AAAA,MACN;AAAA,OACD;AAAA,EAEF;AACD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,19 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { bold } from "./bold";
|
|
2
|
+
import { code } from "./code";
|
|
3
|
+
import { image } from "./image";
|
|
4
|
+
import { italic } from "./italic";
|
|
5
|
+
import { link } from "./link";
|
|
6
|
+
import { strikethrough } from "./strikethrough";
|
|
7
|
+
import { underline } from "./underline";
|
|
8
|
+
import { textColor } from "./text-color";
|
|
9
|
+
import { subscript } from "./subscript";
|
|
10
|
+
import { superscript } from "./superscript";
|
|
11
|
+
import { keyboard } from "./keyboard";
|
|
12
|
+
import { unknown } from "./unknown";
|
|
13
|
+
import { language } from "./language";
|
|
14
|
+
import { nonBreakingSpace } from "./non-breaking-space";
|
|
15
|
+
var default_formats_default = [
|
|
16
|
+
bold,
|
|
17
|
+
code,
|
|
18
|
+
image,
|
|
19
|
+
italic,
|
|
20
|
+
link,
|
|
21
|
+
strikethrough,
|
|
22
|
+
underline,
|
|
23
|
+
textColor,
|
|
24
|
+
subscript,
|
|
25
|
+
superscript,
|
|
26
|
+
keyboard,
|
|
27
|
+
unknown,
|
|
28
|
+
language,
|
|
29
|
+
nonBreakingSpace
|
|
30
|
+
];
|
|
31
|
+
export {
|
|
32
|
+
default_formats_default as default
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=default-formats.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/default-formats.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * Internal dependencies\n */\nimport { bold } from './bold';\nimport { code } from './code';\nimport { image } from './image';\nimport { italic } from './italic';\nimport { link } from './link';\nimport { strikethrough } from './strikethrough';\nimport { underline } from './underline';\nimport { textColor } from './text-color';\nimport { subscript } from './subscript';\nimport { superscript } from './superscript';\nimport { keyboard } from './keyboard';\nimport { unknown } from './unknown';\nimport { language } from './language';\nimport { nonBreakingSpace } from './non-breaking-space';\n\nexport default [\n\tbold,\n\tcode,\n\timage,\n\titalic,\n\tlink,\n\tstrikethrough,\n\tunderline,\n\ttextColor,\n\tsubscript,\n\tsuperscript,\n\tkeyboard,\n\tunknown,\n\tlanguage,\n\tnonBreakingSpace,\n];\n"],
|
|
5
|
+
"mappings": "AAGA,SAAS,YAAY;AACrB,SAAS,YAAY;AACrB,SAAS,aAAa;AACtB,SAAS,cAAc;AACvB,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAC9B,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,mBAAmB;AAC5B,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AAEjC,IAAO,0BAAQ;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|