@pie-element/ebsr 6.6.3-next.411 → 6.6.3-next.412
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/configure/node_modules/immutable/LICENSE +21 -0
- package/configure/node_modules/immutable/README.md +657 -0
- package/configure/node_modules/immutable/dist/immutable-nonambient.d.ts +5607 -0
- package/configure/node_modules/immutable/dist/immutable.d.ts +5611 -0
- package/configure/node_modules/immutable/dist/immutable.es.js +5893 -0
- package/configure/node_modules/immutable/dist/immutable.js +5948 -0
- package/configure/node_modules/immutable/dist/immutable.js.flow +2340 -0
- package/configure/node_modules/immutable/dist/immutable.min.js +55 -0
- package/configure/node_modules/immutable/package.json +41 -0
- package/configure/node_modules/slate-edit-list/CHANGELOG.md +124 -0
- package/configure/node_modules/slate-edit-list/LICENSE +201 -0
- package/configure/node_modules/slate-edit-list/README.md +159 -0
- package/configure/node_modules/slate-edit-list/dist/changes/decreaseItemDepth.js +73 -0
- package/configure/node_modules/slate-edit-list/dist/changes/decreaseItemDepth.js.flow +88 -0
- package/configure/node_modules/slate-edit-list/dist/changes/increaseItemDepth.js +70 -0
- package/configure/node_modules/slate-edit-list/dist/changes/increaseItemDepth.js.flow +77 -0
- package/configure/node_modules/slate-edit-list/dist/changes/index.js +34 -0
- package/configure/node_modules/slate-edit-list/dist/changes/index.js.flow +13 -0
- package/configure/node_modules/slate-edit-list/dist/changes/splitListItem.js +27 -0
- package/configure/node_modules/slate-edit-list/dist/changes/splitListItem.js.flow +26 -0
- package/configure/node_modules/slate-edit-list/dist/changes/unwrapList.js +52 -0
- package/configure/node_modules/slate-edit-list/dist/changes/unwrapList.js.flow +46 -0
- package/configure/node_modules/slate-edit-list/dist/changes/wrapInList.js +67 -0
- package/configure/node_modules/slate-edit-list/dist/changes/wrapInList.js.flow +67 -0
- package/configure/node_modules/slate-edit-list/dist/core.js +80 -0
- package/configure/node_modules/slate-edit-list/dist/core.js.flow +76 -0
- package/configure/node_modules/slate-edit-list/dist/handlers/index.js +24 -0
- package/configure/node_modules/slate-edit-list/dist/handlers/index.js.flow +5 -0
- package/configure/node_modules/slate-edit-list/dist/handlers/onBackspace.js +45 -0
- package/configure/node_modules/slate-edit-list/dist/handlers/onBackspace.js.flow +44 -0
- package/configure/node_modules/slate-edit-list/dist/handlers/onEnter.js +54 -0
- package/configure/node_modules/slate-edit-list/dist/handlers/onEnter.js.flow +54 -0
- package/configure/node_modules/slate-edit-list/dist/handlers/onTab.js +39 -0
- package/configure/node_modules/slate-edit-list/dist/handlers/onTab.js.flow +34 -0
- package/configure/node_modules/slate-edit-list/dist/index.js +58 -0
- package/configure/node_modules/slate-edit-list/dist/index.js.flow +45 -0
- package/configure/node_modules/slate-edit-list/dist/options.js +34 -0
- package/configure/node_modules/slate-edit-list/dist/options.js.flow +26 -0
- package/configure/node_modules/slate-edit-list/dist/utils/getCurrentItem.js +24 -0
- package/configure/node_modules/slate-edit-list/dist/utils/getCurrentItem.js.flow +20 -0
- package/configure/node_modules/slate-edit-list/dist/utils/getCurrentList.js +31 -0
- package/configure/node_modules/slate-edit-list/dist/utils/getCurrentList.js.flow +21 -0
- package/configure/node_modules/slate-edit-list/dist/utils/getItemDepth.js +34 -0
- package/configure/node_modules/slate-edit-list/dist/utils/getItemDepth.js.flow +24 -0
- package/configure/node_modules/slate-edit-list/dist/utils/getItemsAtRange.js +60 -0
- package/configure/node_modules/slate-edit-list/dist/utils/getItemsAtRange.js.flow +51 -0
- package/configure/node_modules/slate-edit-list/dist/utils/getListForItem.js +25 -0
- package/configure/node_modules/slate-edit-list/dist/utils/getListForItem.js.flow +16 -0
- package/configure/node_modules/slate-edit-list/dist/utils/getPreviousItem.js +39 -0
- package/configure/node_modules/slate-edit-list/dist/utils/getPreviousItem.js.flow +29 -0
- package/configure/node_modules/slate-edit-list/dist/utils/index.js +49 -0
- package/configure/node_modules/slate-edit-list/dist/utils/index.js.flow +19 -0
- package/configure/node_modules/slate-edit-list/dist/utils/isList.js +15 -0
- package/configure/node_modules/slate-edit-list/dist/utils/isList.js.flow +13 -0
- package/configure/node_modules/slate-edit-list/dist/utils/isSelectionInList.js +22 -0
- package/configure/node_modules/slate-edit-list/dist/utils/isSelectionInList.js.flow +14 -0
- package/configure/node_modules/slate-edit-list/dist/validation/index.js +19 -0
- package/configure/node_modules/slate-edit-list/dist/validation/index.js.flow +4 -0
- package/configure/node_modules/slate-edit-list/dist/validation/schema.js +83 -0
- package/configure/node_modules/slate-edit-list/dist/validation/schema.js.flow +81 -0
- package/configure/node_modules/slate-edit-list/dist/validation/validateNode.js +61 -0
- package/configure/node_modules/slate-edit-list/dist/validation/validateNode.js.flow +61 -0
- package/configure/node_modules/slate-edit-list/package.json +67 -0
- package/configure/node_modules/slate-edit-table/CHANGELOG.md +192 -0
- package/configure/node_modules/slate-edit-table/LICENSE +201 -0
- package/configure/node_modules/slate-edit-table/README.md +269 -0
- package/configure/node_modules/slate-edit-table/dist/changes/clearCell.js +29 -0
- package/configure/node_modules/slate-edit-table/dist/changes/clearCell.js.flow +26 -0
- package/configure/node_modules/slate-edit-table/dist/changes/index.js +69 -0
- package/configure/node_modules/slate-edit-table/dist/changes/index.js.flow +27 -0
- package/configure/node_modules/slate-edit-table/dist/changes/insertColumn.js +43 -0
- package/configure/node_modules/slate-edit-table/dist/changes/insertColumn.js.flow +46 -0
- package/configure/node_modules/slate-edit-table/dist/changes/insertRow.js +36 -0
- package/configure/node_modules/slate-edit-table/dist/changes/insertRow.js.flow +35 -0
- package/configure/node_modules/slate-edit-table/dist/changes/insertTable.js +29 -0
- package/configure/node_modules/slate-edit-table/dist/changes/insertTable.js.flow +27 -0
- package/configure/node_modules/slate-edit-table/dist/changes/moveSelection.js +32 -0
- package/configure/node_modules/slate-edit-table/dist/changes/moveSelection.js.flow +31 -0
- package/configure/node_modules/slate-edit-table/dist/changes/moveSelectionBy.js +84 -0
- package/configure/node_modules/slate-edit-table/dist/changes/moveSelectionBy.js.flow +80 -0
- package/configure/node_modules/slate-edit-table/dist/changes/removeColumn.js +36 -0
- package/configure/node_modules/slate-edit-table/dist/changes/removeColumn.js.flow +28 -0
- package/configure/node_modules/slate-edit-table/dist/changes/removeColumnByKey.js +52 -0
- package/configure/node_modules/slate-edit-table/dist/changes/removeColumnByKey.js.flow +40 -0
- package/configure/node_modules/slate-edit-table/dist/changes/removeRow.js +36 -0
- package/configure/node_modules/slate-edit-table/dist/changes/removeRow.js.flow +27 -0
- package/configure/node_modules/slate-edit-table/dist/changes/removeRowByKey.js +41 -0
- package/configure/node_modules/slate-edit-table/dist/changes/removeRowByKey.js.flow +30 -0
- package/configure/node_modules/slate-edit-table/dist/changes/removeTable.js +26 -0
- package/configure/node_modules/slate-edit-table/dist/changes/removeTable.js.flow +17 -0
- package/configure/node_modules/slate-edit-table/dist/changes/removeTableByKey.js +56 -0
- package/configure/node_modules/slate-edit-table/dist/changes/removeTableByKey.js.flow +54 -0
- package/configure/node_modules/slate-edit-table/dist/core.js +88 -0
- package/configure/node_modules/slate-edit-table/dist/core.js.flow +94 -0
- package/configure/node_modules/slate-edit-table/dist/handlers/index.js +39 -0
- package/configure/node_modules/slate-edit-table/dist/handlers/index.js.flow +8 -0
- package/configure/node_modules/slate-edit-table/dist/handlers/onBackspace.js +82 -0
- package/configure/node_modules/slate-edit-table/dist/handlers/onBackspace.js.flow +87 -0
- package/configure/node_modules/slate-edit-table/dist/handlers/onEnter.js +34 -0
- package/configure/node_modules/slate-edit-table/dist/handlers/onEnter.js.flow +37 -0
- package/configure/node_modules/slate-edit-table/dist/handlers/onKeyDown.js +71 -0
- package/configure/node_modules/slate-edit-table/dist/handlers/onKeyDown.js.flow +56 -0
- package/configure/node_modules/slate-edit-table/dist/handlers/onModEnter.js +35 -0
- package/configure/node_modules/slate-edit-table/dist/handlers/onModEnter.js.flow +38 -0
- package/configure/node_modules/slate-edit-table/dist/handlers/onTab.js +56 -0
- package/configure/node_modules/slate-edit-table/dist/handlers/onTab.js.flow +51 -0
- package/configure/node_modules/slate-edit-table/dist/handlers/onUpDown.js +38 -0
- package/configure/node_modules/slate-edit-table/dist/handlers/onUpDown.js.flow +41 -0
- package/configure/node_modules/slate-edit-table/dist/index.js +36 -0
- package/configure/node_modules/slate-edit-table/dist/index.js.flow +27 -0
- package/configure/node_modules/slate-edit-table/dist/options.js +61 -0
- package/configure/node_modules/slate-edit-table/dist/options.js.flow +42 -0
- package/configure/node_modules/slate-edit-table/dist/utils/TablePosition.js +306 -0
- package/configure/node_modules/slate-edit-table/dist/utils/TablePosition.js.flow +211 -0
- package/configure/node_modules/slate-edit-table/dist/utils/createCell.js +30 -0
- package/configure/node_modules/slate-edit-table/dist/utils/createCell.js.flow +26 -0
- package/configure/node_modules/slate-edit-table/dist/utils/createRow.js +30 -0
- package/configure/node_modules/slate-edit-table/dist/utils/createRow.js.flow +28 -0
- package/configure/node_modules/slate-edit-table/dist/utils/createTable.js +30 -0
- package/configure/node_modules/slate-edit-table/dist/utils/createTable.js.flow +33 -0
- package/configure/node_modules/slate-edit-table/dist/utils/forEachCells.js +21 -0
- package/configure/node_modules/slate-edit-table/dist/utils/forEachCells.js.flow +22 -0
- package/configure/node_modules/slate-edit-table/dist/utils/getCellsAtColumn.js +22 -0
- package/configure/node_modules/slate-edit-table/dist/utils/getCellsAtColumn.js.flow +19 -0
- package/configure/node_modules/slate-edit-table/dist/utils/getCellsAtRow.js +20 -0
- package/configure/node_modules/slate-edit-table/dist/utils/getCellsAtRow.js.flow +19 -0
- package/configure/node_modules/slate-edit-table/dist/utils/getPosition.js +24 -0
- package/configure/node_modules/slate-edit-table/dist/utils/getPosition.js.flow +19 -0
- package/configure/node_modules/slate-edit-table/dist/utils/getPositionByKey.js +26 -0
- package/configure/node_modules/slate-edit-table/dist/utils/getPositionByKey.js.flow +21 -0
- package/configure/node_modules/slate-edit-table/dist/utils/getRow.js +24 -0
- package/configure/node_modules/slate-edit-table/dist/utils/getRow.js.flow +19 -0
- package/configure/node_modules/slate-edit-table/dist/utils/index.js +64 -0
- package/configure/node_modules/slate-edit-table/dist/utils/index.js.flow +25 -0
- package/configure/node_modules/slate-edit-table/dist/utils/isSelectionInTable.js +34 -0
- package/configure/node_modules/slate-edit-table/dist/utils/isSelectionInTable.js.flow +27 -0
- package/configure/node_modules/slate-edit-table/dist/utils/isSelectionOutOfTable.js +30 -0
- package/configure/node_modules/slate-edit-table/dist/utils/isSelectionOutOfTable.js.flow +23 -0
- package/configure/node_modules/slate-edit-table/dist/validation/index.js +19 -0
- package/configure/node_modules/slate-edit-table/dist/validation/index.js.flow +4 -0
- package/configure/node_modules/slate-edit-table/dist/validation/schema.js +101 -0
- package/configure/node_modules/slate-edit-table/dist/validation/schema.js.flow +98 -0
- package/configure/node_modules/slate-edit-table/dist/validation/validateNode.js +56 -0
- package/configure/node_modules/slate-edit-table/dist/validation/validateNode.js.flow +49 -0
- package/configure/node_modules/slate-edit-table/package.json +69 -0
- package/package.json +2 -2
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// @flow
|
|
2
|
+
|
|
3
|
+
import { Block, type Change } from 'slate';
|
|
4
|
+
import {
|
|
5
|
+
CHILD_OBJECT_INVALID,
|
|
6
|
+
CHILD_TYPE_INVALID,
|
|
7
|
+
PARENT_TYPE_INVALID
|
|
8
|
+
} from 'slate-schema-violations';
|
|
9
|
+
import { createCell } from '../utils';
|
|
10
|
+
import type Options from '../options';
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
* Returns a schema definition for the plugin
|
|
14
|
+
*/
|
|
15
|
+
function schema(opts: Options): Object {
|
|
16
|
+
return {
|
|
17
|
+
blocks: {
|
|
18
|
+
[opts.typeTable]: {
|
|
19
|
+
nodes: [{ types: [opts.typeRow] }]
|
|
20
|
+
},
|
|
21
|
+
[opts.typeRow]: {
|
|
22
|
+
nodes: [{ types: [opts.typeCell] }],
|
|
23
|
+
parent: { types: [opts.typeTable] },
|
|
24
|
+
normalize(change: Change, violation: string, context: Object) {
|
|
25
|
+
switch (violation) {
|
|
26
|
+
case CHILD_TYPE_INVALID:
|
|
27
|
+
return onlyCellsInRow(opts, change, context);
|
|
28
|
+
case PARENT_TYPE_INVALID:
|
|
29
|
+
return rowOnlyInTable(opts, change, context);
|
|
30
|
+
default:
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
[opts.typeCell]: {
|
|
36
|
+
nodes: [{ objects: ['block'] }],
|
|
37
|
+
parent: { types: [opts.typeRow] },
|
|
38
|
+
normalize(change: Change, violation: string, context: Object) {
|
|
39
|
+
switch (violation) {
|
|
40
|
+
case CHILD_OBJECT_INVALID:
|
|
41
|
+
return onlyBlocksInCell(opts, change, context);
|
|
42
|
+
case PARENT_TYPE_INVALID:
|
|
43
|
+
return cellOnlyInRow(opts, change, context);
|
|
44
|
+
default:
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/*
|
|
54
|
+
* A row's children must be cells.
|
|
55
|
+
* If they're not then we wrap them within a cell.
|
|
56
|
+
*/
|
|
57
|
+
function onlyCellsInRow(opts: Options, change: Change, context: Object) {
|
|
58
|
+
const cell = createCell(opts, []);
|
|
59
|
+
const index = context.node.nodes.findIndex(
|
|
60
|
+
child => child.key === context.child.key
|
|
61
|
+
);
|
|
62
|
+
change.insertNodeByKey(context.node.key, index, cell, { normalize: false });
|
|
63
|
+
change.moveNodeByKey(context.child.key, cell.key, 0, { normalize: false });
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/*
|
|
67
|
+
* Rows can't live outside a table, if one is found then we wrap it within a table.
|
|
68
|
+
*/
|
|
69
|
+
function rowOnlyInTable(opts: Options, change: Change, context: Object) {
|
|
70
|
+
return change.wrapBlockByKey(context.node.key, opts.typeTable);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/*
|
|
74
|
+
* A cell's children must be "block"s.
|
|
75
|
+
* If they're not then we wrap them within a block with a type of opts.typeContent
|
|
76
|
+
*/
|
|
77
|
+
function onlyBlocksInCell(opts: Options, change: Change, context: Object) {
|
|
78
|
+
const block = Block.create({
|
|
79
|
+
type: opts.typeContent
|
|
80
|
+
});
|
|
81
|
+
change.insertNodeByKey(context.node.key, 0, block, { normalize: false });
|
|
82
|
+
|
|
83
|
+
const inlines = context.node.nodes.filter(node => node.object !== 'block');
|
|
84
|
+
inlines.forEach((inline, index) => {
|
|
85
|
+
change.moveNodeByKey(inline.key, block.key, index, {
|
|
86
|
+
normalize: false
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/*
|
|
92
|
+
* Cells can't live outside a row, if one is found then we wrap it within a row.
|
|
93
|
+
*/
|
|
94
|
+
function cellOnlyInRow(opts: Options, change: Change, context: Object) {
|
|
95
|
+
return change.wrapBlockByKey(context.node.key, opts.typeRow);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export default schema;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _utils = require('../utils');
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Ensure each row has the same number of columns.
|
|
11
|
+
*/
|
|
12
|
+
function validateNode(opts) {
|
|
13
|
+
var isRow = function isRow(node) {
|
|
14
|
+
return node.type === opts.typeRow;
|
|
15
|
+
};
|
|
16
|
+
var isCell = function isCell(node) {
|
|
17
|
+
return node.type === opts.typeCell;
|
|
18
|
+
};
|
|
19
|
+
var countCells = function countCells(row) {
|
|
20
|
+
return row.nodes.count(isCell);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
return function (node) {
|
|
24
|
+
if (node.type !== opts.typeTable) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var rows = node.nodes.filter(isRow);
|
|
29
|
+
var maxColumns = Math.max(
|
|
30
|
+
// Minimum 1 column
|
|
31
|
+
1, rows.map(countCells).max());
|
|
32
|
+
var rowsMissingColumns = rows.filter(function (row) {
|
|
33
|
+
return countCells(row) < maxColumns;
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
if (rowsMissingColumns.isEmpty()) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return function (change) {
|
|
41
|
+
rowsMissingColumns.forEach(function (row) {
|
|
42
|
+
var numberOfCellsToAdd = maxColumns - row.nodes.size;
|
|
43
|
+
var cells = Array.from({ length: numberOfCellsToAdd }).map(function () {
|
|
44
|
+
return (0, _utils.createCell)(opts);
|
|
45
|
+
});
|
|
46
|
+
cells.forEach(function (cell) {
|
|
47
|
+
return change.insertNodeByKey(row.key, row.nodes.size, cell, {
|
|
48
|
+
normalize: false
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
exports.default = validateNode;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// @flow
|
|
2
|
+
|
|
3
|
+
import type Options from '../options';
|
|
4
|
+
import { createCell } from '../utils';
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* Ensure each row has the same number of columns.
|
|
8
|
+
*/
|
|
9
|
+
function validateNode(opts: Options) {
|
|
10
|
+
const isRow = node => node.type === opts.typeRow;
|
|
11
|
+
const isCell = node => node.type === opts.typeCell;
|
|
12
|
+
const countCells = row => row.nodes.count(isCell);
|
|
13
|
+
|
|
14
|
+
return node => {
|
|
15
|
+
if (node.type !== opts.typeTable) {
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const rows = node.nodes.filter(isRow);
|
|
20
|
+
const maxColumns = Math.max(
|
|
21
|
+
// Minimum 1 column
|
|
22
|
+
1,
|
|
23
|
+
rows.map(countCells).max()
|
|
24
|
+
);
|
|
25
|
+
const rowsMissingColumns = rows.filter(
|
|
26
|
+
row => countCells(row) < maxColumns
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
if (rowsMissingColumns.isEmpty()) {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return change => {
|
|
34
|
+
rowsMissingColumns.forEach(row => {
|
|
35
|
+
const numberOfCellsToAdd = maxColumns - row.nodes.size;
|
|
36
|
+
const cells = Array.from({ length: numberOfCellsToAdd }).map(
|
|
37
|
+
() => createCell(opts)
|
|
38
|
+
);
|
|
39
|
+
cells.forEach(cell =>
|
|
40
|
+
change.insertNodeByKey(row.key, row.nodes.size, cell, {
|
|
41
|
+
normalize: false
|
|
42
|
+
})
|
|
43
|
+
);
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export default validateNode;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "slate-edit-table",
|
|
3
|
+
"description": "A Slate plugin to handle keyboard events in tables.",
|
|
4
|
+
"version": "0.17.0",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": "git://github.com/GitbookIO/slate-edit-table.git",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"*.md"
|
|
11
|
+
],
|
|
12
|
+
"peerDependencies": {
|
|
13
|
+
"immutable": "^3.8.1",
|
|
14
|
+
"slate": "^0.34.5",
|
|
15
|
+
"slate-schema-violations": "^0.1.18"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"babel-cli": "^6.26.0",
|
|
19
|
+
"babel-core": "^6.26.0",
|
|
20
|
+
"babel-eslint": "^8.0.2",
|
|
21
|
+
"babel-plugin-transform-flow-strip-types": "^6.22.0",
|
|
22
|
+
"babel-plugin-transform-runtime": "^6.23.0",
|
|
23
|
+
"babel-preset-env": "^1.6.1",
|
|
24
|
+
"babel-preset-flow": "^6.23.0",
|
|
25
|
+
"babel-preset-react": "^6.24.1",
|
|
26
|
+
"babel-preset-stage-0": "^6.24.1",
|
|
27
|
+
"babelify": "^8.0.0",
|
|
28
|
+
"browserify": "^13.3.0",
|
|
29
|
+
"eslint": "^4.15.0",
|
|
30
|
+
"eslint-config-gitbook": "^3.0.0",
|
|
31
|
+
"eslint-plugin-flowtype": "^2.41.0",
|
|
32
|
+
"eslint-plugin-import": "^2.8.0",
|
|
33
|
+
"eslint-plugin-jsx-a11y": "^5.1.1",
|
|
34
|
+
"eslint-plugin-prettier": "^2.4.0",
|
|
35
|
+
"eslint-plugin-react": "^7.5.1",
|
|
36
|
+
"expect": "^1.20.2",
|
|
37
|
+
"flow-bin": "^0.57.3",
|
|
38
|
+
"flow-copy-source": "^1.2.1",
|
|
39
|
+
"gh-pages": "^0.11.0",
|
|
40
|
+
"http-server": "^0.9.0",
|
|
41
|
+
"immutable": "^3.8.2",
|
|
42
|
+
"mocha": "^3.0.1",
|
|
43
|
+
"prettier": "^1.9.2",
|
|
44
|
+
"react": "^16.0.0",
|
|
45
|
+
"react-dom": "^16.0.0",
|
|
46
|
+
"slate": "^0.34.5",
|
|
47
|
+
"slate-hyperprint": "^2.2.0",
|
|
48
|
+
"slate-hyperscript": "^0.5.20",
|
|
49
|
+
"slate-react": "^0.13.2",
|
|
50
|
+
"slate-schema-violations": "^0.1.18",
|
|
51
|
+
"watchify": "^3.7.0"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"build:dist": "rm -r ./dist; babel ./lib --out-dir ./dist",
|
|
55
|
+
"build:flow": "flow-copy-source -v ./lib/ ./dist/",
|
|
56
|
+
"prepublish": "npm run build:dist && npm run build:flow",
|
|
57
|
+
"postpublish": "npm run deploy-example",
|
|
58
|
+
"lint": "eslint ./",
|
|
59
|
+
"build-example": "browserify ./example/main.js -o ./example/bundle.js -t [ babelify --presets [ env react stage-0 ] ]",
|
|
60
|
+
"watch-example": "watchify ./example/main.js -o ./example/bundle.js -t [ babelify --presets [ env react stage-0 ] ] -v",
|
|
61
|
+
"serve-example": "http-server ./example/ -p 8080",
|
|
62
|
+
"start": "npm run build-example; npm run serve-example",
|
|
63
|
+
"deploy-example": "npm run build-example; gh-pages -d ./example",
|
|
64
|
+
"test": "./node_modules/.bin/mocha ./tests/all.js --compilers js:babel-register --reporter=list"
|
|
65
|
+
},
|
|
66
|
+
"keywords": [
|
|
67
|
+
"slate"
|
|
68
|
+
]
|
|
69
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/ebsr",
|
|
3
|
-
"version": "6.6.3-next.
|
|
3
|
+
"version": "6.6.3-next.412+4be265f33",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "pie-framework/pie-elements",
|
|
6
6
|
"publishConfig": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"author": "pie framework developers",
|
|
17
17
|
"license": "ISC",
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "4be265f339968a07e0b0828141b9c620cb549752",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|