@atlaskit/adf-schema 36.10.5 → 36.10.7
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/utils/uuid.js +7 -2
- package/dist/es2019/utils/uuid.js +7 -4
- package/dist/esm/utils/uuid.js +7 -2
- package/dist/types/utils/uuid.d.ts +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 36.10.7
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- b05b267: reverted uuid migration due to upstream issues with tesseract
|
8
|
+
|
9
|
+
## 36.10.6
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- d87e824: add clean:build cmd and add in build cmd to clean dist folder first
|
14
|
+
|
3
15
|
## 36.10.5
|
4
16
|
|
5
17
|
### Patch Changes
|
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) {
|
@@ -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) {
|
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.7",
|
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/"
|
@@ -14,6 +14,7 @@
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
15
15
|
"sideEffects": false,
|
16
16
|
"scripts": {
|
17
|
+
"clean:build": "rm -rf dist",
|
17
18
|
"build:json-schema": "mkdir -p dist && cp -r json-schema dist",
|
18
19
|
"generate:json-schema": "mkdir -p json-schema/v1/ && yarn generate:json-schema:full && yarn generate:json-schema:stage-0",
|
19
20
|
"generate:json-schema:stage-0": "json-schema-generator --outDir=./json-schema/v1/ --stage=0 ./src/schema/nodes/doc.ts",
|
@@ -27,7 +28,7 @@
|
|
27
28
|
"build:types": "NODE_ENV=production tsc --project ./build/tsconfig.json --emitDeclarationOnly --outDir ./dist/types --rootDir ./src && yarn build:jsontypes",
|
28
29
|
"build:jsontypes": "mkdir -p dist/types/json-schema && cp src/json-schema/index.ts dist/types/json-schema/index.d.ts",
|
29
30
|
"build:all": "yarn build:cjs && yarn build:esm && yarn build:es2019 && yarn build:types",
|
30
|
-
"build": "yarn workspace @atlaskit/editor-prosemirror build && yarn workspace @atlaskit/adf-schema-generator build && yarn run build:all && yarn run generate:json-schema && yarn run build:json-schema",
|
31
|
+
"build": "yarn clean:build && yarn workspace @atlaskit/editor-prosemirror build && yarn workspace @atlaskit/adf-schema-generator build && yarn run build:all && yarn run generate:json-schema && yarn run build:json-schema",
|
31
32
|
"build:pm:full": "yarn ts-node ./schema-generators/pm-full-schema.ts && prettier --write '../adf-schema-generator/src/generated/**/*.ts'",
|
32
33
|
"build:json:full": "yarn ts-node ./schema-generators/json-full-schema.ts",
|
33
34
|
"clean": "../../scripts/build-clean.sh",
|
@@ -40,8 +41,7 @@
|
|
40
41
|
"@babel/runtime": "^7.0.0",
|
41
42
|
"css-color-names": "0.0.4",
|
42
43
|
"linkify-it": "^2.0.3",
|
43
|
-
"memoize-one": "^6.0.0"
|
44
|
-
"uuid": "^9.0.1"
|
44
|
+
"memoize-one": "^6.0.0"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
47
|
"@atlassian/adf-schema-json": "^1.15.0",
|