@atlaskit/editor-synced-block-provider 0.1.3 → 0.2.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/CHANGELOG.md +7 -0
- package/dist/cjs/common/schema.js +18 -0
- package/dist/cjs/index.js +8 -1
- package/dist/es2019/common/schema.js +13 -0
- package/dist/es2019/index.js +2 -1
- package/dist/esm/common/schema.js +13 -0
- package/dist/esm/index.js +2 -1
- package/dist/types/common/schema.d.ts +6 -0
- package/dist/types/common/types.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types-ts4.5/common/schema.d.ts +6 -0
- package/dist/types-ts4.5/common/types.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-synced-block-provider
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`6fabf6d555515`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6fabf6d555515) -
|
|
8
|
+
EDITOR-1566 add renderer sync-block node support
|
|
9
|
+
|
|
3
10
|
## 0.1.3
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getDefaultSyncBlockSchema = void 0;
|
|
7
|
+
var _adfSchema = require("@atlaskit/adf-schema");
|
|
8
|
+
/**
|
|
9
|
+
* We currently do not need any of the new features, like nested tables
|
|
10
|
+
* Otherwise we could import defaultSchemaConfig from '@atlaskit/adf-schema/schema-default';
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
var getDefaultSyncBlockSchema = exports.getDefaultSyncBlockSchema = function getDefaultSyncBlockSchema() {
|
|
14
|
+
return (0, _adfSchema.createSchema)({
|
|
15
|
+
nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'expand', 'nestedExpand', 'table', 'tableCell', 'tableHeader', 'tableRow', 'date', 'status', 'layoutSection', 'layoutColumn', 'unsupportedBlock', 'unsupportedInline'],
|
|
16
|
+
marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'backgroundColor', 'alignment', 'indentation', 'border', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery']
|
|
17
|
+
});
|
|
18
|
+
};
|
package/dist/cjs/index.js
CHANGED
|
@@ -27,6 +27,12 @@ Object.defineProperty(exports, "generateSyncBlockSourceUrl", {
|
|
|
27
27
|
return _utils.generateSyncBlockSourceUrl;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
+
Object.defineProperty(exports, "getDefaultSyncBlockSchema", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _schema.getDefaultSyncBlockSchema;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
30
36
|
Object.defineProperty(exports, "inMemoryFetchProvider", {
|
|
31
37
|
enumerable: true,
|
|
32
38
|
get: function get() {
|
|
@@ -48,4 +54,5 @@ Object.defineProperty(exports, "useFetchDocNode", {
|
|
|
48
54
|
var _syncBlockProvider = require("./common/syncBlockProvider");
|
|
49
55
|
var _syncBlockStoreManager = require("./common/syncBlockStoreManager");
|
|
50
56
|
var _inMemory = require("./providers/inMemory");
|
|
51
|
-
var _utils = require("./utils/utils");
|
|
57
|
+
var _utils = require("./utils/utils");
|
|
58
|
+
var _schema = require("./common/schema");
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createSchema } from '@atlaskit/adf-schema';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* We currently do not need any of the new features, like nested tables
|
|
5
|
+
* Otherwise we could import defaultSchemaConfig from '@atlaskit/adf-schema/schema-default';
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export const getDefaultSyncBlockSchema = () => {
|
|
9
|
+
return createSchema({
|
|
10
|
+
nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'expand', 'nestedExpand', 'table', 'tableCell', 'tableHeader', 'tableRow', 'date', 'status', 'layoutSection', 'layoutColumn', 'unsupportedBlock', 'unsupportedInline'],
|
|
11
|
+
marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'backgroundColor', 'alignment', 'indentation', 'border', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery']
|
|
12
|
+
});
|
|
13
|
+
};
|
package/dist/es2019/index.js
CHANGED
|
@@ -3,4 +3,5 @@
|
|
|
3
3
|
export { SyncBlockProvider as SyncedBlockProvider, useFetchDocNode } from './common/syncBlockProvider';
|
|
4
4
|
export { SyncBlockStoreManager } from './common/syncBlockStoreManager';
|
|
5
5
|
export { inMemoryFetchProvider, inMemoryWriteProvider } from './providers/inMemory';
|
|
6
|
-
export { convertSyncBlockPMNodeToSyncBlockData, generateSyncBlockSourceUrl } from './utils/utils';
|
|
6
|
+
export { convertSyncBlockPMNodeToSyncBlockData, generateSyncBlockSourceUrl } from './utils/utils';
|
|
7
|
+
export { getDefaultSyncBlockSchema } from './common/schema';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createSchema } from '@atlaskit/adf-schema';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* We currently do not need any of the new features, like nested tables
|
|
5
|
+
* Otherwise we could import defaultSchemaConfig from '@atlaskit/adf-schema/schema-default';
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export var getDefaultSyncBlockSchema = function getDefaultSyncBlockSchema() {
|
|
9
|
+
return createSchema({
|
|
10
|
+
nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'expand', 'nestedExpand', 'table', 'tableCell', 'tableHeader', 'tableRow', 'date', 'status', 'layoutSection', 'layoutColumn', 'unsupportedBlock', 'unsupportedInline'],
|
|
11
|
+
marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'backgroundColor', 'alignment', 'indentation', 'border', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery']
|
|
12
|
+
});
|
|
13
|
+
};
|
package/dist/esm/index.js
CHANGED
|
@@ -3,4 +3,5 @@
|
|
|
3
3
|
export { SyncBlockProvider as SyncedBlockProvider, useFetchDocNode } from './common/syncBlockProvider';
|
|
4
4
|
export { SyncBlockStoreManager } from './common/syncBlockStoreManager';
|
|
5
5
|
export { inMemoryFetchProvider, inMemoryWriteProvider } from './providers/inMemory';
|
|
6
|
-
export { convertSyncBlockPMNodeToSyncBlockData, generateSyncBlockSourceUrl } from './utils/utils';
|
|
6
|
+
export { convertSyncBlockPMNodeToSyncBlockData, generateSyncBlockSourceUrl } from './utils/utils';
|
|
7
|
+
export { getDefaultSyncBlockSchema } from './common/schema';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* We currently do not need any of the new features, like nested tables
|
|
3
|
+
* Otherwise we could import defaultSchemaConfig from '@atlaskit/adf-schema/schema-default';
|
|
4
|
+
* @returns
|
|
5
|
+
*/
|
|
6
|
+
export declare const getDefaultSyncBlockSchema: () => import("prosemirror-model").Schema<"doc" | "paragraph" | "text" | "bulletList" | "orderedList" | "listItem" | "heading" | "blockquote" | "codeBlock" | "panel" | "rule" | "expand" | "nestedExpand" | "table" | "tableCell" | "tableHeader" | "tableRow" | "date" | "status" | "layoutSection" | "layoutColumn" | "unsupportedBlock" | "unsupportedInline", "link" | "em" | "strong" | "strike" | "subsup" | "underline" | "code" | "textColor" | "backgroundColor" | "alignment" | "indentation" | "border" | "unsupportedMark" | "unsupportedNodeAttribute" | "typeAheadQuery">;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export { SyncBlockStoreManager } from './common/syncBlockStoreManager';
|
|
|
3
3
|
export type { SyncBlockDataProvider, ADFFetchProvider, ADFWriteProvider, SyncBlockData, SyncBlockNode, } from './common/types';
|
|
4
4
|
export { inMemoryFetchProvider, inMemoryWriteProvider } from './providers/inMemory';
|
|
5
5
|
export { convertSyncBlockPMNodeToSyncBlockData, generateSyncBlockSourceUrl } from './utils/utils';
|
|
6
|
+
export { getDefaultSyncBlockSchema } from './common/schema';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* We currently do not need any of the new features, like nested tables
|
|
3
|
+
* Otherwise we could import defaultSchemaConfig from '@atlaskit/adf-schema/schema-default';
|
|
4
|
+
* @returns
|
|
5
|
+
*/
|
|
6
|
+
export declare const getDefaultSyncBlockSchema: () => import("prosemirror-model").Schema<"doc" | "paragraph" | "text" | "bulletList" | "orderedList" | "listItem" | "heading" | "blockquote" | "codeBlock" | "panel" | "rule" | "expand" | "nestedExpand" | "table" | "tableCell" | "tableHeader" | "tableRow" | "date" | "status" | "layoutSection" | "layoutColumn" | "unsupportedBlock" | "unsupportedInline", "link" | "em" | "strong" | "strike" | "subsup" | "underline" | "code" | "textColor" | "backgroundColor" | "alignment" | "indentation" | "border" | "unsupportedMark" | "unsupportedNodeAttribute" | "typeAheadQuery">;
|
|
@@ -3,3 +3,4 @@ export { SyncBlockStoreManager } from './common/syncBlockStoreManager';
|
|
|
3
3
|
export type { SyncBlockDataProvider, ADFFetchProvider, ADFWriteProvider, SyncBlockData, SyncBlockNode, } from './common/types';
|
|
4
4
|
export { inMemoryFetchProvider, inMemoryWriteProvider } from './providers/inMemory';
|
|
5
5
|
export { convertSyncBlockPMNodeToSyncBlockData, generateSyncBlockSourceUrl } from './utils/utils';
|
|
6
|
+
export { getDefaultSyncBlockSchema } from './common/schema';
|
package/package.json
CHANGED