@modusoperandi/licit-vignette 0.0.16 → 0.0.17
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.
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
import { Plugin } from 'prosemirror-state';
|
|
2
|
-
import TableBackgroundColorCommand from './TableBackgroundColorCommand';
|
|
3
|
-
import TableBorderColorCommand from './TableBorderColorCommand';
|
|
4
|
-
export declare const TABLE_BACKGROUND_COLOR: TableBackgroundColorCommand;
|
|
5
|
-
export declare const TABLE_BORDER_COLOR: TableBorderColorCommand;
|
|
6
|
-
export declare const TABLE_DELETE_TABLE: UICommand;
|
|
7
|
-
export declare const VIGNETTE_COMMANDS_GROUP: ({
|
|
8
|
-
'Fill Color...': TableBackgroundColorCommand;
|
|
9
|
-
'Border Color....': TableBorderColorCommand;
|
|
10
|
-
'Delete Vignette'?: undefined;
|
|
11
|
-
} | {
|
|
12
|
-
'Delete Vignette': UICommand;
|
|
13
|
-
'Fill Color...'?: undefined;
|
|
14
|
-
'Border Color....'?: undefined;
|
|
15
|
-
})[];
|
|
16
2
|
declare class VignetteMenuPlugin extends Plugin {
|
|
17
3
|
constructor();
|
|
18
4
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _prosemirrorState = require("prosemirror-state");
|
|
8
8
|
var _TableBackgroundColorCommand = _interopRequireDefault(require("./TableBackgroundColorCommand"));
|
|
9
9
|
var _TableBorderColorCommand = _interopRequireDefault(require("./TableBorderColorCommand"));
|
|
@@ -15,18 +15,14 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
15
15
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
16
16
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
17
17
|
const TABLE_BACKGROUND_COLOR = new _TableBackgroundColorCommand.default();
|
|
18
|
-
exports.TABLE_BACKGROUND_COLOR = TABLE_BACKGROUND_COLOR;
|
|
19
18
|
const TABLE_BORDER_COLOR = new _TableBorderColorCommand.default();
|
|
20
|
-
exports.TABLE_BORDER_COLOR = TABLE_BORDER_COLOR;
|
|
21
19
|
const TABLE_DELETE_TABLE = (0, _CreateCommand.default)(_prosemirrorTables.deleteTable);
|
|
22
|
-
exports.TABLE_DELETE_TABLE = TABLE_DELETE_TABLE;
|
|
23
20
|
const VIGNETTE_COMMANDS_GROUP = [{
|
|
24
21
|
'Fill Color...': TABLE_BACKGROUND_COLOR,
|
|
25
22
|
'Border Color....': TABLE_BORDER_COLOR
|
|
26
23
|
}, {
|
|
27
24
|
'Delete Vignette': TABLE_DELETE_TABLE
|
|
28
25
|
}];
|
|
29
|
-
exports.VIGNETTE_COMMANDS_GROUP = VIGNETTE_COMMANDS_GROUP;
|
|
30
26
|
class VignetteView {
|
|
31
27
|
constructor(editorView) {
|
|
32
28
|
_defineProperty(this, "destroy", () => {
|
|
@@ -1,34 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
attrs: {
|
|
4
|
-
marginLeft: {
|
|
5
|
-
default: any;
|
|
6
|
-
};
|
|
7
|
-
vignette: {
|
|
8
|
-
default: boolean;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
parseDOM: {
|
|
12
|
-
tag: string;
|
|
13
|
-
getAttrs(dom: HTMLElement): unknown | null;
|
|
14
|
-
style: string;
|
|
15
|
-
}[];
|
|
16
|
-
toDOM(node: Node): Array<unknown>;
|
|
17
|
-
};
|
|
18
|
-
export declare const VignetteTableCellNodeSpec: (nodespec: NodeSpec) => NodeSpec & {
|
|
19
|
-
attrs: {
|
|
20
|
-
[name: string]: import("prosemirror-model").AttributeSpec;
|
|
21
|
-
} & {
|
|
22
|
-
vignette: {
|
|
23
|
-
default: boolean;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
parseDOM: {
|
|
27
|
-
tag: string;
|
|
28
|
-
getAttrs: (dom: HTMLElement) => (false | import("prosemirror-model").Attrs) & {
|
|
29
|
-
vignette: string | boolean;
|
|
30
|
-
};
|
|
31
|
-
}[];
|
|
32
|
-
toDOM(node: Node): Array<unknown>;
|
|
33
|
-
};
|
|
1
|
+
export declare const VignetteTableNodeSpec: (nodespec: NodeSpec) => any;
|
|
2
|
+
export declare const VignetteTableCellNodeSpec: (nodespec: NodeSpec) => any;
|
|
34
3
|
export default VignetteTableNodeSpec;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modusoperandi/licit-vignette",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"subversion": "1",
|
|
5
5
|
"description": "Vignette plugin built with ProseMirror",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"write-file-webpack-plugin": "^4.5.1"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@modusoperandi/licit-ui-commands": "^0.1.
|
|
103
|
+
"@modusoperandi/licit-ui-commands": "^0.1.15",
|
|
104
104
|
"@types/node": "^16.10.1",
|
|
105
105
|
"axios": "^1.1.3",
|
|
106
106
|
"orderedmap": "^1.1.8",
|
|
@@ -9,11 +9,11 @@ import createCommand from './CreateCommand';
|
|
|
9
9
|
import {CellSelection, deleteTable, TableView} from 'prosemirror-tables';
|
|
10
10
|
import {TABLE} from './Constants';
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
const TABLE_BACKGROUND_COLOR = new TableBackgroundColorCommand();
|
|
13
|
+
const TABLE_BORDER_COLOR = new TableBorderColorCommand();
|
|
14
|
+
const TABLE_DELETE_TABLE = createCommand(deleteTable);
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
const VIGNETTE_COMMANDS_GROUP = [
|
|
17
17
|
{
|
|
18
18
|
'Fill Color...': TABLE_BACKGROUND_COLOR,
|
|
19
19
|
'Border Color....': TABLE_BORDER_COLOR,
|