@atlaskit/editor-synced-block-provider 2.7.3 → 2.7.4
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/index.js +0 -7
- package/dist/es2019/index.js +0 -1
- package/dist/esm/index.js +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/common/schema.js +0 -18
- package/dist/es2019/common/schema.js +0 -13
- package/dist/esm/common/schema.js +0 -13
- package/dist/types/common/schema.d.ts +0 -6
- package/dist/types-ts4.5/common/schema.d.ts +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-synced-block-provider
|
|
2
2
|
|
|
3
|
+
## 2.7.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3432c4a4a074c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3432c4a4a074c) -
|
|
8
|
+
[ux] EDITOR-2525 update block menu convert to sync block to support all fishfooding node types
|
|
9
|
+
|
|
3
10
|
## 2.7.3
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -57,12 +57,6 @@ Object.defineProperty(exports, "getConfluencePageAri", {
|
|
|
57
57
|
return _ari.getConfluencePageAri;
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
-
Object.defineProperty(exports, "getDefaultSyncBlockSchema", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function get() {
|
|
63
|
-
return _schema.getDefaultSyncBlockSchema;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
60
|
Object.defineProperty(exports, "getPageIdAndTypeFromAri", {
|
|
67
61
|
enumerable: true,
|
|
68
62
|
get: function get() {
|
|
@@ -112,7 +106,6 @@ Object.defineProperty(exports, "useMemoizedSyncedBlockProvider", {
|
|
|
112
106
|
}
|
|
113
107
|
});
|
|
114
108
|
var _rebaseTransaction = require("./common/rebase-transaction");
|
|
115
|
-
var _schema = require("./common/schema");
|
|
116
109
|
var _types = require("./common/types");
|
|
117
110
|
var _useFetchSyncBlockData = require("./hooks/useFetchSyncBlockData");
|
|
118
111
|
var _useFetchSyncBlockTitle = require("./hooks/useFetchSyncBlockTitle");
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
2
|
|
|
3
3
|
export { rebaseTransaction } from './common/rebase-transaction';
|
|
4
|
-
export { getDefaultSyncBlockSchema } from './common/schema';
|
|
5
4
|
export { SyncBlockError } from './common/types';
|
|
6
5
|
export { useFetchSyncBlockData } from './hooks/useFetchSyncBlockData';
|
|
7
6
|
export { useFetchSyncBlockTitle } from './hooks/useFetchSyncBlockTitle';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
2
|
|
|
3
3
|
export { rebaseTransaction } from './common/rebase-transaction';
|
|
4
|
-
export { getDefaultSyncBlockSchema } from './common/schema';
|
|
5
4
|
export { SyncBlockError } from './common/types';
|
|
6
5
|
export { useFetchSyncBlockData } from './hooks/useFetchSyncBlockData';
|
|
7
6
|
export { useFetchSyncBlockTitle } from './hooks/useFetchSyncBlockTitle';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { rebaseTransaction } from './common/rebase-transaction';
|
|
2
|
-
export { getDefaultSyncBlockSchema } from './common/schema';
|
|
3
2
|
export { SyncBlockError } from './common/types';
|
|
4
3
|
export type { SyncBlockData, SyncBlockNode } from './common/types';
|
|
5
4
|
export { useFetchSyncBlockData, type UseFetchSyncBlockDataResult, } from './hooks/useFetchSyncBlockData';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { rebaseTransaction } from './common/rebase-transaction';
|
|
2
|
-
export { getDefaultSyncBlockSchema } from './common/schema';
|
|
3
2
|
export { SyncBlockError } from './common/types';
|
|
4
3
|
export type { SyncBlockData, SyncBlockNode } from './common/types';
|
|
5
4
|
export { useFetchSyncBlockData, type UseFetchSyncBlockDataResult, } from './hooks/useFetchSyncBlockData';
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
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">;
|
|
@@ -1,6 +0,0 @@
|
|
|
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">;
|