@multiplatform.one/rich-text 7.90.1 → 7.90.3
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/cjs/editor/emoji.cjs +0 -4
- package/dist/cjs/editor/emoji.native.js +0 -4
- package/dist/cjs/editor/emoji.native.js.map +1 -1
- package/dist/cjs/editor/lazyKatex.cjs +1 -5
- package/dist/cjs/editor/lazyKatex.native.js +1 -5
- package/dist/cjs/editor/lazyKatex.native.js.map +1 -1
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/esm/editor/emoji.mjs +1 -4
- package/dist/esm/editor/emoji.mjs.map +1 -1
- package/dist/esm/editor/emoji.native.js +1 -4
- package/dist/esm/editor/emoji.native.js.map +1 -1
- package/dist/esm/editor/lazyKatex.mjs +1 -4
- package/dist/esm/editor/lazyKatex.mjs.map +1 -1
- package/dist/esm/editor/lazyKatex.native.js +1 -4
- package/dist/esm/editor/lazyKatex.native.js.map +1 -1
- package/dist/esm/types.mjs.map +1 -1
- package/dist/esm/types.native.js.map +1 -1
- package/dist/jsx/editor/emoji.mjs +1 -4
- package/dist/jsx/editor/emoji.mjs.map +1 -1
- package/dist/jsx/editor/emoji.native.js +0 -4
- package/dist/jsx/editor/emoji.native.js.map +1 -1
- package/dist/jsx/editor/lazyKatex.mjs +1 -4
- package/dist/jsx/editor/lazyKatex.mjs.map +1 -1
- package/dist/jsx/editor/lazyKatex.native.js +1 -5
- package/dist/jsx/editor/lazyKatex.native.js.map +1 -1
- package/dist/jsx/types.mjs.map +1 -1
- package/dist/jsx/types.native.js.map +1 -1
- package/package.json +8 -8
- package/src/editor/emoji.ts +0 -5
- package/src/editor/lazyKatex.ts +0 -5
- package/src/types.ts +0 -13
- package/types/RichEditor.d.ts +1 -1
- package/types/editor/emoji.d.ts +0 -2
- package/types/editor/emoji.d.ts.map +1 -1
- package/types/editor/lazyKatex.d.ts +0 -2
- package/types/editor/lazyKatex.d.ts.map +1 -1
- package/types/types.d.ts +0 -8
- package/types/types.d.ts.map +1 -1
- package/dist/cjs/editor/index.cjs +0 -33
- package/dist/cjs/editor/index.native.js +0 -36
- package/dist/cjs/editor/index.native.js.map +0 -1
- package/dist/cjs/editor/types.cjs +0 -54
- package/dist/cjs/editor/types.native.js +0 -57
- package/dist/cjs/editor/types.native.js.map +0 -1
- package/dist/esm/editor/index.mjs +0 -5
- package/dist/esm/editor/index.mjs.map +0 -1
- package/dist/esm/editor/index.native.js +0 -5
- package/dist/esm/editor/index.native.js.map +0 -1
- package/dist/esm/editor/types.mjs +0 -29
- package/dist/esm/editor/types.mjs.map +0 -1
- package/dist/esm/editor/types.native.js +0 -29
- package/dist/esm/editor/types.native.js.map +0 -1
- package/dist/jsx/editor/index.mjs +0 -5
- package/dist/jsx/editor/index.mjs.map +0 -1
- package/dist/jsx/editor/index.native.js +0 -36
- package/dist/jsx/editor/index.native.js.map +0 -1
- package/dist/jsx/editor/types.mjs +0 -29
- package/dist/jsx/editor/types.mjs.map +0 -1
- package/dist/jsx/editor/types.native.js +0 -57
- package/dist/jsx/editor/types.native.js.map +0 -1
- package/src/editor/index.ts +0 -10
- package/src/editor/types.ts +0 -142
- package/types/editor/index.d.ts +0 -11
- package/types/editor/index.d.ts.map +0 -1
- package/types/editor/types.d.ts +0 -80
- package/types/editor/types.d.ts.map +0 -1
package/types/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAM5D;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC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D;AACxD,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,YAAY,GACZ,OAAO,GACP,SAAS,GACT,WAAW,GACX,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var editor_exports = {};
|
|
24
|
-
__export(editor_exports, {
|
|
25
|
-
TiptapEditor: () => import_TiptapEditor.TiptapEditor,
|
|
26
|
-
getEditorCSS: () => import_editorStyles.getEditorCSS,
|
|
27
|
-
getEditorStateFromBridge: () => import_useEditorState.getEditorStateFromBridge,
|
|
28
|
-
getEditorStateFromTiptap: () => import_useEditorState.getEditorStateFromTiptap
|
|
29
|
-
});
|
|
30
|
-
module.exports = __toCommonJS(editor_exports);
|
|
31
|
-
var import_TiptapEditor = require("./TiptapEditor.cjs");
|
|
32
|
-
var import_editorStyles = require("./editorStyles.cjs");
|
|
33
|
-
var import_useEditorState = require("./useEditorState.cjs");
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
25
|
-
var editor_exports = {};
|
|
26
|
-
__export(editor_exports, {
|
|
27
|
-
TiptapEditor: () => import_TiptapEditor.TiptapEditor,
|
|
28
|
-
getEditorCSS: () => import_editorStyles.getEditorCSS,
|
|
29
|
-
getEditorStateFromBridge: () => import_useEditorState.getEditorStateFromBridge,
|
|
30
|
-
getEditorStateFromTiptap: () => import_useEditorState.getEditorStateFromTiptap
|
|
31
|
-
});
|
|
32
|
-
module.exports = __toCommonJS(editor_exports);
|
|
33
|
-
var import_TiptapEditor = require("./TiptapEditor.native.js");
|
|
34
|
-
var import_editorStyles = require("./editorStyles.native.js");
|
|
35
|
-
var import_useEditorState = require("./useEditorState.native.js");
|
|
36
|
-
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","editor_exports","__export","TiptapEditor","import_TiptapEditor","getEditorCSS","import_editorStyles","getEditorStateFromBridge","import_useEditorState","getEditorStateFromTiptap","module","exports","require"],"sources":["../../../src/editor/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAC,mBAAA,CAAAD,YAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAC,mBAAA,CAAAD,YAAA;EAAAE,wBAAA,EAAAA,CAAA,KAAAC,qBAAA,CAAAD,wBAAA;EAAAE,wBAAA,EAAAA,CAAA,KAAAD,qBAAA,CAAAC;AAAA;AAMAC,MAAA,CAAAC,OAAA,GAAAf,YAA6B,CAAAK,cAAA;AAE7B,IAAAG,mBAAA,GAA6BQ,OAAA;AAC7B,IAAAN,mBAAA,GAAAM,OAAmE","ignoreList":[]}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var types_exports = {};
|
|
24
|
-
__export(types_exports, {
|
|
25
|
-
defaultEditorState: () => defaultEditorState
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(types_exports);
|
|
28
|
-
const defaultEditorState = {
|
|
29
|
-
isBold: false,
|
|
30
|
-
isItalic: false,
|
|
31
|
-
isUnderline: false,
|
|
32
|
-
isStrike: false,
|
|
33
|
-
isCode: false,
|
|
34
|
-
isSubscript: false,
|
|
35
|
-
isSuperscript: false,
|
|
36
|
-
isHeading1: false,
|
|
37
|
-
isHeading2: false,
|
|
38
|
-
isHeading3: false,
|
|
39
|
-
isHeading4: false,
|
|
40
|
-
isHeading5: false,
|
|
41
|
-
isHeading6: false,
|
|
42
|
-
isParagraph: true,
|
|
43
|
-
isBulletList: false,
|
|
44
|
-
isOrderedList: false,
|
|
45
|
-
isTaskList: false,
|
|
46
|
-
isBlockquote: false,
|
|
47
|
-
isCodeBlock: false,
|
|
48
|
-
isLink: false,
|
|
49
|
-
canUndo: false,
|
|
50
|
-
canRedo: false,
|
|
51
|
-
textAlign: "left",
|
|
52
|
-
textColor: null,
|
|
53
|
-
highlightColor: null
|
|
54
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
25
|
-
var types_exports = {};
|
|
26
|
-
__export(types_exports, {
|
|
27
|
-
defaultEditorState: () => defaultEditorState
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(types_exports);
|
|
30
|
-
var defaultEditorState = {
|
|
31
|
-
isBold: false,
|
|
32
|
-
isItalic: false,
|
|
33
|
-
isUnderline: false,
|
|
34
|
-
isStrike: false,
|
|
35
|
-
isCode: false,
|
|
36
|
-
isSubscript: false,
|
|
37
|
-
isSuperscript: false,
|
|
38
|
-
isHeading1: false,
|
|
39
|
-
isHeading2: false,
|
|
40
|
-
isHeading3: false,
|
|
41
|
-
isHeading4: false,
|
|
42
|
-
isHeading5: false,
|
|
43
|
-
isHeading6: false,
|
|
44
|
-
isParagraph: true,
|
|
45
|
-
isBulletList: false,
|
|
46
|
-
isOrderedList: false,
|
|
47
|
-
isTaskList: false,
|
|
48
|
-
isBlockquote: false,
|
|
49
|
-
isCodeBlock: false,
|
|
50
|
-
isLink: false,
|
|
51
|
-
canUndo: false,
|
|
52
|
-
canRedo: false,
|
|
53
|
-
textAlign: "left",
|
|
54
|
-
textColor: null,
|
|
55
|
-
highlightColor: null
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=types.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","types_exports","__export","defaultEditorState","module","exports","isBold","isItalic","isUnderline","isStrike","isCode","isSubscript","isSuperscript","isHeading1","isHeading2","isHeading3","isHeading4","isHeading5","isHeading6","isParagraph","isBulletList","isOrderedList","isTaskList","isBlockquote","isCodeBlock","isLink","canUndo","canRedo","textAlign","textColor","highlightColor"],"sources":["../../../src/editor/types.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,kBAAA,EAAAA,CAAA,KAAAA;AAAA;AAmHOC,MAAM,CAAAC,OAAA,GAAAT,YAAkC,CAAAK,aAAA;AAAA,IAC7CE,kBAAQ;EACRG,MAAA,OAAU;EACVC,QAAA,OAAa;EACbC,WAAU;EACVC,QAAQ;EACRC,MAAA,OAAa;EACbC,WAAA,OAAe;EACfC,aAAY;EACZC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,UAAA,OAAa;EACbC,WAAA,MAAc;EACdC,YAAA,OAAe;EACfC,aAAY;EACZC,UAAA,OAAc;EACdC,YAAA,EAAa;EACbC,WAAQ;EACRC,MAAA,OAAS;EACTC,OAAA,EAAS;EACTC,OAAA,OAAW;EACXC,SAAA,EAAW;EACXC,SAAA;EACFC,cAAA","ignoreList":[]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { TiptapEditor } from "./TiptapEditor.mjs";
|
|
2
|
-
import { getEditorCSS } from "./editorStyles.mjs";
|
|
3
|
-
import { getEditorStateFromTiptap, getEditorStateFromBridge } from "./useEditorState.mjs";
|
|
4
|
-
export { TiptapEditor, getEditorCSS, getEditorStateFromBridge, getEditorStateFromTiptap };
|
|
5
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["TiptapEditor","getEditorCSS","getEditorStateFromTiptap","getEditorStateFromBridge"],"sources":["../../../src/editor/index.ts"],"sourcesContent":[null],"mappings":"AAMA,SAASA,YAAA,QAAoB;AAE7B,SAASC,YAAA,QAAoB;AAC7B,SAASC,wBAAA,EAA0BC,wBAAA,QAAgC","ignoreList":[]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { TiptapEditor } from "./TiptapEditor.native.js";
|
|
2
|
-
import { getEditorCSS } from "./editorStyles.native.js";
|
|
3
|
-
import { getEditorStateFromTiptap, getEditorStateFromBridge } from "./useEditorState.native.js";
|
|
4
|
-
export { TiptapEditor, getEditorCSS, getEditorStateFromBridge, getEditorStateFromTiptap };
|
|
5
|
-
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["TiptapEditor","getEditorCSS","getEditorStateFromTiptap","getEditorStateFromBridge"],"sources":["../../../src/editor/index.ts"],"sourcesContent":[null],"mappings":"AAMA,SAASA,YAAA,QAAoB;AAE7B,SAASC,YAAA,QAAoB;AAC7B,SAASC,wBAAA,EAA0BC,wBAAA,QAAgC","ignoreList":[]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const defaultEditorState = {
|
|
2
|
-
isBold: false,
|
|
3
|
-
isItalic: false,
|
|
4
|
-
isUnderline: false,
|
|
5
|
-
isStrike: false,
|
|
6
|
-
isCode: false,
|
|
7
|
-
isSubscript: false,
|
|
8
|
-
isSuperscript: false,
|
|
9
|
-
isHeading1: false,
|
|
10
|
-
isHeading2: false,
|
|
11
|
-
isHeading3: false,
|
|
12
|
-
isHeading4: false,
|
|
13
|
-
isHeading5: false,
|
|
14
|
-
isHeading6: false,
|
|
15
|
-
isParagraph: true,
|
|
16
|
-
isBulletList: false,
|
|
17
|
-
isOrderedList: false,
|
|
18
|
-
isTaskList: false,
|
|
19
|
-
isBlockquote: false,
|
|
20
|
-
isCodeBlock: false,
|
|
21
|
-
isLink: false,
|
|
22
|
-
canUndo: false,
|
|
23
|
-
canRedo: false,
|
|
24
|
-
textAlign: "left",
|
|
25
|
-
textColor: null,
|
|
26
|
-
highlightColor: null
|
|
27
|
-
};
|
|
28
|
-
export { defaultEditorState };
|
|
29
|
-
//# sourceMappingURL=types.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defaultEditorState","isBold","isItalic","isUnderline","isStrike","isCode","isSubscript","isSuperscript","isHeading1","isHeading2","isHeading3","isHeading4","isHeading5","isHeading6","isParagraph","isBulletList","isOrderedList","isTaskList","isBlockquote","isCodeBlock","isLink","canUndo","canRedo","textAlign","textColor","highlightColor"],"sources":["../../../src/editor/types.ts"],"sourcesContent":[null],"mappings":"AAmHO,MAAMA,kBAAA,GAAkC;EAC7CC,MAAA,EAAQ;EACRC,QAAA,EAAU;EACVC,WAAA,EAAa;EACbC,QAAA,EAAU;EACVC,MAAA,EAAQ;EACRC,WAAA,EAAa;EACbC,aAAA,EAAe;EACfC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,WAAA,EAAa;EACbC,YAAA,EAAc;EACdC,aAAA,EAAe;EACfC,UAAA,EAAY;EACZC,YAAA,EAAc;EACdC,WAAA,EAAa;EACbC,MAAA,EAAQ;EACRC,OAAA,EAAS;EACTC,OAAA,EAAS;EACTC,SAAA,EAAW;EACXC,SAAA,EAAW;EACXC,cAAA,EAAgB;AAClB","ignoreList":[]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var defaultEditorState = {
|
|
2
|
-
isBold: false,
|
|
3
|
-
isItalic: false,
|
|
4
|
-
isUnderline: false,
|
|
5
|
-
isStrike: false,
|
|
6
|
-
isCode: false,
|
|
7
|
-
isSubscript: false,
|
|
8
|
-
isSuperscript: false,
|
|
9
|
-
isHeading1: false,
|
|
10
|
-
isHeading2: false,
|
|
11
|
-
isHeading3: false,
|
|
12
|
-
isHeading4: false,
|
|
13
|
-
isHeading5: false,
|
|
14
|
-
isHeading6: false,
|
|
15
|
-
isParagraph: true,
|
|
16
|
-
isBulletList: false,
|
|
17
|
-
isOrderedList: false,
|
|
18
|
-
isTaskList: false,
|
|
19
|
-
isBlockquote: false,
|
|
20
|
-
isCodeBlock: false,
|
|
21
|
-
isLink: false,
|
|
22
|
-
canUndo: false,
|
|
23
|
-
canRedo: false,
|
|
24
|
-
textAlign: "left",
|
|
25
|
-
textColor: null,
|
|
26
|
-
highlightColor: null
|
|
27
|
-
};
|
|
28
|
-
export { defaultEditorState };
|
|
29
|
-
//# sourceMappingURL=types.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defaultEditorState","isBold","isItalic","isUnderline","isStrike","isCode","isSubscript","isSuperscript","isHeading1","isHeading2","isHeading3","isHeading4","isHeading5","isHeading6","isParagraph","isBulletList","isOrderedList","isTaskList","isBlockquote","isCodeBlock","isLink","canUndo","canRedo","textAlign","textColor","highlightColor"],"sources":["../../../src/editor/types.ts"],"sourcesContent":[null],"mappings":"AAmHO,IAAAA,kBAAM;EACXC,MAAA,EAAQ;EACRC,QAAA,EAAU;EACVC,WAAA,EAAa;EACbC,QAAA,EAAU;EACVC,MAAA,EAAQ;EACRC,WAAA,EAAa;EACbC,aAAA,EAAe;EACfC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,WAAA,EAAa;EACbC,YAAA,EAAc;EACdC,aAAA,EAAe;EACfC,UAAA,EAAY;EACZC,YAAA,EAAc;EACdC,WAAA,EAAa;EACbC,MAAA,EAAQ;EACRC,OAAA,EAAS;EACTC,OAAA,EAAS;EACTC,SAAA,EAAW;EACXC,SAAA,EAAW;EACXC,cAAA,EAAgB;AAClB","ignoreList":[]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { TiptapEditor } from "./TiptapEditor.mjs";
|
|
2
|
-
import { getEditorCSS } from "./editorStyles.mjs";
|
|
3
|
-
import { getEditorStateFromTiptap, getEditorStateFromBridge } from "./useEditorState.mjs";
|
|
4
|
-
export { TiptapEditor, getEditorCSS, getEditorStateFromBridge, getEditorStateFromTiptap };
|
|
5
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["TiptapEditor","getEditorCSS","getEditorStateFromTiptap","getEditorStateFromBridge"],"sources":["../../../src/editor/index.ts"],"sourcesContent":[null],"mappings":"AAMA,SAASA,YAAA,QAAoB;AAE7B,SAASC,YAAA,QAAoB;AAC7B,SAASC,wBAAA,EAA0BC,wBAAA,QAAgC","ignoreList":[]}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
25
|
-
var editor_exports = {};
|
|
26
|
-
__export(editor_exports, {
|
|
27
|
-
TiptapEditor: () => import_TiptapEditor.TiptapEditor,
|
|
28
|
-
getEditorCSS: () => import_editorStyles.getEditorCSS,
|
|
29
|
-
getEditorStateFromBridge: () => import_useEditorState.getEditorStateFromBridge,
|
|
30
|
-
getEditorStateFromTiptap: () => import_useEditorState.getEditorStateFromTiptap
|
|
31
|
-
});
|
|
32
|
-
module.exports = __toCommonJS(editor_exports);
|
|
33
|
-
var import_TiptapEditor = require("./TiptapEditor.native.js");
|
|
34
|
-
var import_editorStyles = require("./editorStyles.native.js");
|
|
35
|
-
var import_useEditorState = require("./useEditorState.native.js");
|
|
36
|
-
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor"],"sources":["../../../src/editor/index.ts"],"sourcesContent":[null],"mappings":"AAMA,YAAS;;AAET,IAAAA,SAAS,GAAAC,MAAA,CAAAC,cAAoB;AAC7B,IAAAC,gBAAS,GAAAF,MAAA,CAAAG,wBAA0B","ignoreList":[]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const defaultEditorState = {
|
|
2
|
-
isBold: false,
|
|
3
|
-
isItalic: false,
|
|
4
|
-
isUnderline: false,
|
|
5
|
-
isStrike: false,
|
|
6
|
-
isCode: false,
|
|
7
|
-
isSubscript: false,
|
|
8
|
-
isSuperscript: false,
|
|
9
|
-
isHeading1: false,
|
|
10
|
-
isHeading2: false,
|
|
11
|
-
isHeading3: false,
|
|
12
|
-
isHeading4: false,
|
|
13
|
-
isHeading5: false,
|
|
14
|
-
isHeading6: false,
|
|
15
|
-
isParagraph: true,
|
|
16
|
-
isBulletList: false,
|
|
17
|
-
isOrderedList: false,
|
|
18
|
-
isTaskList: false,
|
|
19
|
-
isBlockquote: false,
|
|
20
|
-
isCodeBlock: false,
|
|
21
|
-
isLink: false,
|
|
22
|
-
canUndo: false,
|
|
23
|
-
canRedo: false,
|
|
24
|
-
textAlign: "left",
|
|
25
|
-
textColor: null,
|
|
26
|
-
highlightColor: null
|
|
27
|
-
};
|
|
28
|
-
export { defaultEditorState };
|
|
29
|
-
//# sourceMappingURL=types.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defaultEditorState","isBold","isItalic","isUnderline","isStrike","isCode","isSubscript","isSuperscript","isHeading1","isHeading2","isHeading3","isHeading4","isHeading5","isHeading6","isParagraph","isBulletList","isOrderedList","isTaskList","isBlockquote","isCodeBlock","isLink","canUndo","canRedo","textAlign","textColor","highlightColor"],"sources":["../../../src/editor/types.ts"],"sourcesContent":[null],"mappings":"AAmHO,MAAMA,kBAAA,GAAkC;EAC7CC,MAAA,EAAQ;EACRC,QAAA,EAAU;EACVC,WAAA,EAAa;EACbC,QAAA,EAAU;EACVC,MAAA,EAAQ;EACRC,WAAA,EAAa;EACbC,aAAA,EAAe;EACfC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,UAAA,EAAY;EACZC,WAAA,EAAa;EACbC,YAAA,EAAc;EACdC,aAAA,EAAe;EACfC,UAAA,EAAY;EACZC,YAAA,EAAc;EACdC,WAAA,EAAa;EACbC,MAAA,EAAQ;EACRC,OAAA,EAAS;EACTC,OAAA,EAAS;EACTC,SAAA,EAAW;EACXC,SAAA,EAAW;EACXC,cAAA,EAAgB;AAClB","ignoreList":[]}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
25
|
-
var types_exports = {};
|
|
26
|
-
__export(types_exports, {
|
|
27
|
-
defaultEditorState: () => defaultEditorState
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(types_exports);
|
|
30
|
-
var defaultEditorState = {
|
|
31
|
-
isBold: false,
|
|
32
|
-
isItalic: false,
|
|
33
|
-
isUnderline: false,
|
|
34
|
-
isStrike: false,
|
|
35
|
-
isCode: false,
|
|
36
|
-
isSubscript: false,
|
|
37
|
-
isSuperscript: false,
|
|
38
|
-
isHeading1: false,
|
|
39
|
-
isHeading2: false,
|
|
40
|
-
isHeading3: false,
|
|
41
|
-
isHeading4: false,
|
|
42
|
-
isHeading5: false,
|
|
43
|
-
isHeading6: false,
|
|
44
|
-
isParagraph: true,
|
|
45
|
-
isBulletList: false,
|
|
46
|
-
isOrderedList: false,
|
|
47
|
-
isTaskList: false,
|
|
48
|
-
isBlockquote: false,
|
|
49
|
-
isCodeBlock: false,
|
|
50
|
-
isLink: false,
|
|
51
|
-
canUndo: false,
|
|
52
|
-
canRedo: false,
|
|
53
|
-
textAlign: "left",
|
|
54
|
-
textColor: null,
|
|
55
|
-
highlightColor: null
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=types.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","types_exports","defaultEditorState","module","exports","isBold","isItalic","isUnderline"],"sources":["../../../src/editor/types.ts"],"sourcesContent":[null],"mappings":"AAmHO,YAAM;;AAAkC,IAC7CA,SAAQ,GAAAC,MAAA,CAAAC,cAAA;AAAA,IACRC,gBAAU,GAAAF,MAAA,CAAAG,wBAAA;AAAA,IACVC,iBAAa,GAAAJ,MAAA,CAAAK,mBAAA;AAAA,IACbC,YAAU,GAAAN,MAAA,CAAAO,SAAA,CAAAC,cAAA;AAAA,IACVC,QAAQ,GAAAA,CAAAC,MAAA,EAAAC,GAAA;EACR,SAAAC,IAAa,IAAAD,GAAA,EACbZ,SAAA,CAAAW,MAAe,EAAAE,IAAA;IAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;IAAAE,UAAA;EAAA;AAAA;AACH,IACZC,WAAY,GAAAA,CAAAC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;EACZ,IAAAF,IAAA,IAAY,OAAAA,IAAA,wBAAAA,IAAA;IACZ,SAAAG,GAAY,IAAAhB,iBAAA,CAAAa,IAAA,GACZ,KAAAX,YAAY,CAAAe,IAAA,CAAAL,EAAA,EAAAI,GAAA,KAAAA,GAAA,KAAAF,MAAA,EACZnB,SAAY,CAAAiB,EAAA,EAAAI,GAAA;MAAAP,GAAA,EAAAA,CAAA,KAAAI,IAAA,CAAAG,GAAA;MAAAN,UAAA,IAAAK,IAAA,GAAAjB,gBAAA,CAAAe,IAAA,EAAAG,GAAA,MAAAD,IAAA,CAAAL;IAAA;EACZ;EACA,OAAAE,EAAA;AAAc;AACC,IACfM,YAAY,GAAAC,GAAA,IAAAR,WAAA,CAAAhB,SAAA;EAAAyB,KAAA;AAAA,IAAAD,GAAA;AAAA,IACZE,aAAc;AAAAhB,QACd,CAAAgB,aAAa;EACbC,kBAAQ,EAAAA,CAAA,KAAAA;AAAA,EACR;AAASC,MACT,CAAAC,OAAS,GAAAN,YAAA,CAAAG,aAAA;AAAA,IACTC,kBAAW;EACXG,MAAA,OAAW;EACXC,QAAA;EACFC,WAAA","ignoreList":[]}
|
package/src/editor/index.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Editor internal exports
|
|
3
|
-
*
|
|
4
|
-
* These are implementation details used by the compound component.
|
|
5
|
-
* Public API is exported from src/index.ts.
|
|
6
|
-
*/
|
|
7
|
-
export { TiptapEditor } from "./TiptapEditor";
|
|
8
|
-
export type { TiptapEditorProps } from "./TiptapEditor";
|
|
9
|
-
export { getEditorCSS } from "./editorStyles";
|
|
10
|
-
export { getEditorStateFromTiptap, getEditorStateFromBridge } from "./useEditorState";
|
package/src/editor/types.ts
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared types for the rich text editor
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export type TextAlignment = "left" | "center" | "right" | "justify";
|
|
6
|
-
|
|
7
|
-
export type EditorCommand =
|
|
8
|
-
| "bold"
|
|
9
|
-
| "italic"
|
|
10
|
-
| "underline"
|
|
11
|
-
| "strike"
|
|
12
|
-
| "code"
|
|
13
|
-
| "subscript"
|
|
14
|
-
| "superscript"
|
|
15
|
-
| "heading1"
|
|
16
|
-
| "heading2"
|
|
17
|
-
| "heading3"
|
|
18
|
-
| "heading4"
|
|
19
|
-
| "heading5"
|
|
20
|
-
| "heading6"
|
|
21
|
-
| "paragraph"
|
|
22
|
-
| "bulletList"
|
|
23
|
-
| "orderedList"
|
|
24
|
-
| "taskList"
|
|
25
|
-
| "blockquote"
|
|
26
|
-
| "codeBlock"
|
|
27
|
-
| "link"
|
|
28
|
-
| "image"
|
|
29
|
-
| "undo"
|
|
30
|
-
| "redo"
|
|
31
|
-
| "alignLeft"
|
|
32
|
-
| "alignCenter"
|
|
33
|
-
| "alignRight"
|
|
34
|
-
| "alignJustify"
|
|
35
|
-
| "textColor"
|
|
36
|
-
| "highlight"
|
|
37
|
-
| "horizontalRule"
|
|
38
|
-
| "clearFormatting";
|
|
39
|
-
|
|
40
|
-
export interface EditorState {
|
|
41
|
-
isBold: boolean;
|
|
42
|
-
isItalic: boolean;
|
|
43
|
-
isUnderline: boolean;
|
|
44
|
-
isStrike: boolean;
|
|
45
|
-
isCode: boolean;
|
|
46
|
-
isSubscript: boolean;
|
|
47
|
-
isSuperscript: boolean;
|
|
48
|
-
isHeading1: boolean;
|
|
49
|
-
isHeading2: boolean;
|
|
50
|
-
isHeading3: boolean;
|
|
51
|
-
isHeading4: boolean;
|
|
52
|
-
isHeading5: boolean;
|
|
53
|
-
isHeading6: boolean;
|
|
54
|
-
isParagraph: boolean;
|
|
55
|
-
isBulletList: boolean;
|
|
56
|
-
isOrderedList: boolean;
|
|
57
|
-
isTaskList: boolean;
|
|
58
|
-
isBlockquote: boolean;
|
|
59
|
-
isCodeBlock: boolean;
|
|
60
|
-
isLink: boolean;
|
|
61
|
-
canUndo: boolean;
|
|
62
|
-
canRedo: boolean;
|
|
63
|
-
textAlign: TextAlignment;
|
|
64
|
-
/** Current text color (null means default) */
|
|
65
|
-
textColor: string | null;
|
|
66
|
-
/** Current highlight/background color (null means none) */
|
|
67
|
-
highlightColor: string | null;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface RichEditorRef {
|
|
71
|
-
/** Execute an editor command */
|
|
72
|
-
executeCommand: (command: EditorCommand, payload?: any) => void;
|
|
73
|
-
/** Get the current editor state */
|
|
74
|
-
getState: () => EditorState;
|
|
75
|
-
/** Get the content as HTML */
|
|
76
|
-
getHTML: () => string;
|
|
77
|
-
/** Get the content as JSON (ProseMirror format) */
|
|
78
|
-
getJSON: () => any;
|
|
79
|
-
/** Set content from HTML */
|
|
80
|
-
setHTML: (html: string) => void;
|
|
81
|
-
/** Set content from JSON */
|
|
82
|
-
setJSON: (json: any) => void;
|
|
83
|
-
/** Focus the editor */
|
|
84
|
-
focus: () => void;
|
|
85
|
-
/** Blur the editor */
|
|
86
|
-
blur: () => void;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface RichEditorProps {
|
|
90
|
-
/** Initial content as HTML */
|
|
91
|
-
initialContent?: string;
|
|
92
|
-
/** Initial content as JSON (takes precedence over initialContent) */
|
|
93
|
-
initialJSON?: any;
|
|
94
|
-
/** Placeholder text when editor is empty */
|
|
95
|
-
placeholder?: string;
|
|
96
|
-
/** Whether the editor is editable */
|
|
97
|
-
editable?: boolean;
|
|
98
|
-
/** Auto focus on mount */
|
|
99
|
-
autoFocus?: boolean;
|
|
100
|
-
/** Called when content changes */
|
|
101
|
-
onChange?: (html: string, json: any) => void;
|
|
102
|
-
/** Called when editor state changes (bold, italic, etc.) */
|
|
103
|
-
onStateChange?: (state: EditorState) => void;
|
|
104
|
-
/** Called when editor is focused */
|
|
105
|
-
onFocus?: () => void;
|
|
106
|
-
/** Called when editor is blurred */
|
|
107
|
-
onBlur?: () => void;
|
|
108
|
-
/** Minimum height of the editor */
|
|
109
|
-
minHeight?: number;
|
|
110
|
-
/** Maximum height of the editor */
|
|
111
|
-
maxHeight?: number;
|
|
112
|
-
/** Show error state */
|
|
113
|
-
hasError?: boolean;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export const defaultEditorState: EditorState = {
|
|
117
|
-
isBold: false,
|
|
118
|
-
isItalic: false,
|
|
119
|
-
isUnderline: false,
|
|
120
|
-
isStrike: false,
|
|
121
|
-
isCode: false,
|
|
122
|
-
isSubscript: false,
|
|
123
|
-
isSuperscript: false,
|
|
124
|
-
isHeading1: false,
|
|
125
|
-
isHeading2: false,
|
|
126
|
-
isHeading3: false,
|
|
127
|
-
isHeading4: false,
|
|
128
|
-
isHeading5: false,
|
|
129
|
-
isHeading6: false,
|
|
130
|
-
isParagraph: true,
|
|
131
|
-
isBulletList: false,
|
|
132
|
-
isOrderedList: false,
|
|
133
|
-
isTaskList: false,
|
|
134
|
-
isBlockquote: false,
|
|
135
|
-
isCodeBlock: false,
|
|
136
|
-
isLink: false,
|
|
137
|
-
canUndo: false,
|
|
138
|
-
canRedo: false,
|
|
139
|
-
textAlign: "left",
|
|
140
|
-
textColor: null,
|
|
141
|
-
highlightColor: null,
|
|
142
|
-
};
|
package/types/editor/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Editor internal exports
|
|
3
|
-
*
|
|
4
|
-
* These are implementation details used by the compound component.
|
|
5
|
-
* Public API is exported from src/index.ts.
|
|
6
|
-
*/
|
|
7
|
-
export { TiptapEditor } from "./TiptapEditor";
|
|
8
|
-
export type { TiptapEditorProps } from "./TiptapEditor";
|
|
9
|
-
export { getEditorCSS } from "./editorStyles";
|
|
10
|
-
export { getEditorStateFromTiptap, getEditorStateFromBridge } from "./useEditorState";
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC"}
|