@atlaskit/adf-schema 36.10.6 → 36.10.8
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 +12 -0
- package/dist/cjs/next-schema/nodes/blockCard.js +2 -1
- package/dist/cjs/next-schema/nodes/bodiedExtension.js +0 -1
- package/dist/cjs/next-schema/nodes/extension.js +0 -1
- package/dist/cjs/next-schema/nodes/hardBreak.js +1 -0
- package/dist/cjs/next-schema/nodes/inlineCard.js +0 -1
- package/dist/cjs/next-schema/nodes/inlineExtension.js +0 -1
- package/dist/cjs/next-schema/nodes/mediaInline.js +0 -1
- package/dist/cjs/next-schema/nodes/mention.js +2 -1
- package/dist/cjs/next-schema/nodes/multiBodiedExtension.js +0 -1
- package/dist/cjs/utils/uuid.js +7 -2
- package/dist/es2019/next-schema/nodes/blockCard.js +2 -1
- package/dist/es2019/next-schema/nodes/bodiedExtension.js +0 -1
- package/dist/es2019/next-schema/nodes/extension.js +0 -1
- package/dist/es2019/next-schema/nodes/hardBreak.js +1 -0
- package/dist/es2019/next-schema/nodes/inlineCard.js +0 -1
- package/dist/es2019/next-schema/nodes/inlineExtension.js +0 -1
- package/dist/es2019/next-schema/nodes/mediaInline.js +0 -1
- package/dist/es2019/next-schema/nodes/mention.js +2 -1
- package/dist/es2019/next-schema/nodes/multiBodiedExtension.js +0 -1
- package/dist/es2019/utils/uuid.js +7 -4
- package/dist/esm/next-schema/nodes/blockCard.js +2 -1
- package/dist/esm/next-schema/nodes/bodiedExtension.js +0 -1
- package/dist/esm/next-schema/nodes/extension.js +0 -1
- package/dist/esm/next-schema/nodes/hardBreak.js +1 -0
- package/dist/esm/next-schema/nodes/inlineCard.js +0 -1
- package/dist/esm/next-schema/nodes/inlineExtension.js +0 -1
- package/dist/esm/next-schema/nodes/mediaInline.js +0 -1
- package/dist/esm/next-schema/nodes/mention.js +2 -1
- package/dist/esm/next-schema/nodes/multiBodiedExtension.js +0 -1
- package/dist/esm/utils/uuid.js +7 -2
- package/dist/types/utils/uuid.d.ts +2 -2
- package/package.json +3 -4
- package/schema-generators/pm-full-schema.ts +1 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 36.10.8
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 78e9cf4: Change types to account for parameter and data attributes
|
8
|
+
|
9
|
+
## 36.10.7
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- b05b267: reverted uuid migration due to upstream issues with tesseract
|
14
|
+
|
3
15
|
## 36.10.6
|
4
16
|
|
5
17
|
### Patch Changes
|
@@ -21,10 +21,12 @@ var blockCard = exports.blockCard = (0, _adfSchemaGenerator.adfNode)('blockCard'
|
|
21
21
|
id: {
|
22
22
|
type: 'string'
|
23
23
|
},
|
24
|
+
// Empty parameters object carried over from original JSON Schema.
|
24
25
|
parameters: {},
|
25
26
|
views: {
|
26
27
|
items: {
|
27
28
|
properties: {
|
29
|
+
// Empty properties object carried over from original JSON Schema
|
28
30
|
properties: {},
|
29
31
|
type: {
|
30
32
|
type: 'string'
|
@@ -52,7 +54,6 @@ var blockCard = exports.blockCard = (0, _adfSchemaGenerator.adfNode)('blockCard'
|
|
52
54
|
}
|
53
55
|
}, {
|
54
56
|
data: {
|
55
|
-
type: 'object',
|
56
57
|
optional: true
|
57
58
|
}
|
58
59
|
}]
|
package/dist/cjs/utils/uuid.js
CHANGED
@@ -4,10 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.uuid = exports.generateUuid = void 0;
|
7
|
-
|
7
|
+
/* eslint-disable no-bitwise */
|
8
8
|
var generateUuid = exports.generateUuid = function generateUuid() {
|
9
|
-
return (
|
9
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
10
|
+
var r = Math.random() * 16 | 0;
|
11
|
+
return (c === 'x' ? r : r & 0x3 | 0x8).toString(16);
|
12
|
+
});
|
10
13
|
};
|
14
|
+
|
15
|
+
/* eslint-enable no-bitwise */
|
11
16
|
var staticValue = false;
|
12
17
|
var uuid = exports.uuid = {
|
13
18
|
setStatic: function setStatic(value) {
|
@@ -15,10 +15,12 @@ export const blockCard = adfNode('blockCard').define({
|
|
15
15
|
id: {
|
16
16
|
type: 'string'
|
17
17
|
},
|
18
|
+
// Empty parameters object carried over from original JSON Schema.
|
18
19
|
parameters: {},
|
19
20
|
views: {
|
20
21
|
items: {
|
21
22
|
properties: {
|
23
|
+
// Empty properties object carried over from original JSON Schema
|
22
24
|
properties: {},
|
23
25
|
type: {
|
24
26
|
type: 'string'
|
@@ -46,7 +48,6 @@ export const blockCard = adfNode('blockCard').define({
|
|
46
48
|
}
|
47
49
|
}, {
|
48
50
|
data: {
|
49
|
-
type: 'object',
|
50
51
|
optional: true
|
51
52
|
}
|
52
53
|
}]
|
@@ -1,7 +1,10 @@
|
|
1
|
-
|
2
|
-
export const generateUuid = () => {
|
3
|
-
|
4
|
-
|
1
|
+
/* eslint-disable no-bitwise */
|
2
|
+
export const generateUuid = () => 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {
|
3
|
+
const r = Math.random() * 16 | 0;
|
4
|
+
return (c === 'x' ? r : r & 0x3 | 0x8).toString(16);
|
5
|
+
});
|
6
|
+
|
7
|
+
/* eslint-enable no-bitwise */
|
5
8
|
let staticValue = false;
|
6
9
|
export const uuid = {
|
7
10
|
setStatic(value) {
|
@@ -15,10 +15,12 @@ export var blockCard = adfNode('blockCard').define({
|
|
15
15
|
id: {
|
16
16
|
type: 'string'
|
17
17
|
},
|
18
|
+
// Empty parameters object carried over from original JSON Schema.
|
18
19
|
parameters: {},
|
19
20
|
views: {
|
20
21
|
items: {
|
21
22
|
properties: {
|
23
|
+
// Empty properties object carried over from original JSON Schema
|
22
24
|
properties: {},
|
23
25
|
type: {
|
24
26
|
type: 'string'
|
@@ -46,7 +48,6 @@ export var blockCard = adfNode('blockCard').define({
|
|
46
48
|
}
|
47
49
|
}, {
|
48
50
|
data: {
|
49
|
-
type: 'object',
|
50
51
|
optional: true
|
51
52
|
}
|
52
53
|
}]
|
package/dist/esm/utils/uuid.js
CHANGED
@@ -1,7 +1,12 @@
|
|
1
|
-
|
1
|
+
/* eslint-disable no-bitwise */
|
2
2
|
export var generateUuid = function generateUuid() {
|
3
|
-
return
|
3
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
4
|
+
var r = Math.random() * 16 | 0;
|
5
|
+
return (c === 'x' ? r : r & 0x3 | 0x8).toString(16);
|
6
|
+
});
|
4
7
|
};
|
8
|
+
|
9
|
+
/* eslint-enable no-bitwise */
|
5
10
|
var staticValue = false;
|
6
11
|
export var uuid = {
|
7
12
|
setStatic: function setStatic(value) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "36.10.
|
3
|
+
"version": "36.10.8",
|
4
4
|
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
|
5
5
|
"publishConfig": {
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
@@ -41,12 +41,11 @@
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
42
42
|
"css-color-names": "0.0.4",
|
43
43
|
"linkify-it": "^2.0.3",
|
44
|
-
"memoize-one": "^6.0.0"
|
45
|
-
"uuid": "^9.0.1"
|
44
|
+
"memoize-one": "^6.0.0"
|
46
45
|
},
|
47
46
|
"devDependencies": {
|
48
47
|
"@atlassian/adf-schema-json": "^1.15.0",
|
49
|
-
"@atlaskit/adf-schema-generator": "^1.
|
48
|
+
"@atlaskit/adf-schema-generator": "^1.8.1",
|
50
49
|
"@babel/cli": "^7.22.9",
|
51
50
|
"@babel/core": "^7.22.9",
|
52
51
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import { adfToPm } from '@atlaskit/adf-schema-generator';
|
1
|
+
import { adfToPm, writeToFile } from '@atlaskit/adf-schema-generator';
|
2
2
|
import adfNode from 'src/next-schema/full-schema.adf';
|
3
|
-
import { writeToFile } from '../../adf-schema-generator/src/transforms/codeGenHelpers';
|
4
3
|
|
5
4
|
function main() {
|
6
5
|
const output = adfToPm(adfNode);
|