@atlaskit/editor-synced-block-provider 25.0.0 → 25.0.2
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/store-manager/referenceSyncBlockStoreManager.js +0 -2
- package/dist/cjs/utils/fieldAwareLocations.js +0 -7
- package/dist/es2019/store-manager/referenceSyncBlockStoreManager.js +0 -2
- package/dist/es2019/utils/fieldAwareLocations.js +0 -7
- package/dist/esm/store-manager/referenceSyncBlockStoreManager.js +0 -2
- package/dist/esm/utils/fieldAwareLocations.js +0 -7
- package/dist/types/utils/fieldAwareLocations.d.ts +0 -3
- package/package.json +3 -8
package/CHANGELOG.md
CHANGED
|
@@ -441,8 +441,6 @@ var ReferenceSyncBlockStoreManager = exports.ReferenceSyncBlockStoreManager = /*
|
|
|
441
441
|
return Promise.resolve(undefined);
|
|
442
442
|
}
|
|
443
443
|
var sourceLocation = (0, _fieldAwareLocations.getSourceLocation)(sourceAri);
|
|
444
|
-
// Undefined with `platform_editor_blocks_patch_13` off, so experience calls below keep
|
|
445
|
-
// exactly their previous arguments (no `metadata` key, `success()` without arguments).
|
|
446
444
|
var experienceMetadata = sourceLocation && {
|
|
447
445
|
sourceLocation: sourceLocation
|
|
448
446
|
};
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.isFieldAwareJiraLocation = exports.getSourceLocation = exports.getFieldAwareLocationScope = void 0;
|
|
7
7
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
8
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
9
8
|
var _ari = require("../clients/block-service/ari");
|
|
10
9
|
var _ari2 = require("../clients/jira/ari");
|
|
11
10
|
/**
|
|
@@ -34,14 +33,8 @@ var getFieldAwareLocationScope = exports.getFieldAwareLocationScope = function g
|
|
|
34
33
|
/**
|
|
35
34
|
* Analytics `sourceLocation` for a source ARI: `undefined` for non-Jira sources and for the
|
|
36
35
|
* control cohort, so events outside the experiment keep their current shape.
|
|
37
|
-
*
|
|
38
|
-
* The `platform_editor_blocks_patch_13` gate runs first: with it off this returns `undefined`
|
|
39
|
-
* without the product check or the experiment read, so no new exposure is logged.
|
|
40
36
|
*/
|
|
41
37
|
var getSourceLocation = exports.getSourceLocation = function getSourceLocation(sourceAri) {
|
|
42
|
-
if (!(0, _fg.fg)('platform_editor_blocks_patch_13')) {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
38
|
if (!sourceAri || !isFieldAwareJiraLocation((0, _ari.getProductFromSourceAri)(sourceAri))) {
|
|
46
39
|
return undefined;
|
|
47
40
|
}
|
|
@@ -349,8 +349,6 @@ export class ReferenceSyncBlockStoreManager {
|
|
|
349
349
|
return Promise.resolve(undefined);
|
|
350
350
|
}
|
|
351
351
|
const sourceLocation = getSourceLocation(sourceAri);
|
|
352
|
-
// Undefined with `platform_editor_blocks_patch_13` off, so experience calls below keep
|
|
353
|
-
// exactly their previous arguments (no `metadata` key, `success()` without arguments).
|
|
354
352
|
const experienceMetadata = sourceLocation && {
|
|
355
353
|
sourceLocation
|
|
356
354
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
2
|
import { getLocationScope, getProductFromSourceAri } from '../clients/block-service/ari';
|
|
4
3
|
import { JIRA_DESCRIPTION_FIELD_ID, parseJiraFieldLocation } from '../clients/jira/ari';
|
|
5
4
|
/**
|
|
@@ -25,14 +24,8 @@ export const getFieldAwareLocationScope = ({
|
|
|
25
24
|
/**
|
|
26
25
|
* Analytics `sourceLocation` for a source ARI: `undefined` for non-Jira sources and for the
|
|
27
26
|
* control cohort, so events outside the experiment keep their current shape.
|
|
28
|
-
*
|
|
29
|
-
* The `platform_editor_blocks_patch_13` gate runs first: with it off this returns `undefined`
|
|
30
|
-
* without the product check or the experiment read, so no new exposure is logged.
|
|
31
27
|
*/
|
|
32
28
|
export const getSourceLocation = sourceAri => {
|
|
33
|
-
if (!fg('platform_editor_blocks_patch_13')) {
|
|
34
|
-
return undefined;
|
|
35
|
-
}
|
|
36
29
|
if (!sourceAri || !isFieldAwareJiraLocation(getProductFromSourceAri(sourceAri))) {
|
|
37
30
|
return undefined;
|
|
38
31
|
}
|
|
@@ -434,8 +434,6 @@ export var ReferenceSyncBlockStoreManager = /*#__PURE__*/function () {
|
|
|
434
434
|
return Promise.resolve(undefined);
|
|
435
435
|
}
|
|
436
436
|
var sourceLocation = getSourceLocation(sourceAri);
|
|
437
|
-
// Undefined with `platform_editor_blocks_patch_13` off, so experience calls below keep
|
|
438
|
-
// exactly their previous arguments (no `metadata` key, `success()` without arguments).
|
|
439
437
|
var experienceMetadata = sourceLocation && {
|
|
440
438
|
sourceLocation: sourceLocation
|
|
441
439
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
2
|
import { getLocationScope, getProductFromSourceAri } from '../clients/block-service/ari';
|
|
4
3
|
import { JIRA_DESCRIPTION_FIELD_ID, parseJiraFieldLocation } from '../clients/jira/ari';
|
|
5
4
|
/**
|
|
@@ -28,14 +27,8 @@ export var getFieldAwareLocationScope = function getFieldAwareLocationScope(_ref
|
|
|
28
27
|
/**
|
|
29
28
|
* Analytics `sourceLocation` for a source ARI: `undefined` for non-Jira sources and for the
|
|
30
29
|
* control cohort, so events outside the experiment keep their current shape.
|
|
31
|
-
*
|
|
32
|
-
* The `platform_editor_blocks_patch_13` gate runs first: with it off this returns `undefined`
|
|
33
|
-
* without the product check or the experiment read, so no new exposure is logged.
|
|
34
30
|
*/
|
|
35
31
|
export var getSourceLocation = function getSourceLocation(sourceAri) {
|
|
36
|
-
if (!fg('platform_editor_blocks_patch_13')) {
|
|
37
|
-
return undefined;
|
|
38
|
-
}
|
|
39
32
|
if (!sourceAri || !isFieldAwareJiraLocation(getProductFromSourceAri(sourceAri))) {
|
|
40
33
|
return undefined;
|
|
41
34
|
}
|
|
@@ -17,8 +17,5 @@ export declare const getFieldAwareLocationScope: ({ documentAri, hostAri, produc
|
|
|
17
17
|
/**
|
|
18
18
|
* Analytics `sourceLocation` for a source ARI: `undefined` for non-Jira sources and for the
|
|
19
19
|
* control cohort, so events outside the experiment keep their current shape.
|
|
20
|
-
*
|
|
21
|
-
* The `platform_editor_blocks_patch_13` gate runs first: with it off this returns `undefined`
|
|
22
|
-
* without the product check or the experiment read, so no new exposure is logged.
|
|
23
20
|
*/
|
|
24
21
|
export declare const getSourceLocation: (sourceAri: string | undefined) => SyncBlockSourceLocation | undefined;
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
27
27
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
28
28
|
"@atlaskit/task-decision": "^21.12.0",
|
|
29
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
29
|
+
"@atlaskit/tmp-editor-statsig": "^244.0.0",
|
|
30
30
|
"@babel/runtime": "^7.0.0",
|
|
31
31
|
"@compiled/react": "^1.0.2",
|
|
32
32
|
"bind-event-listener": "^3.0.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"uuid": "^11.1.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@atlaskit/editor-common": "^133.
|
|
39
|
+
"@atlaskit/editor-common": "^133.1.0",
|
|
40
40
|
"react": "^18.2.0 || ^19.2.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
@@ -45,16 +45,11 @@
|
|
|
45
45
|
"react-dom": "^19.2.0"
|
|
46
46
|
},
|
|
47
47
|
"name": "@atlaskit/editor-synced-block-provider",
|
|
48
|
-
"version": "25.0.
|
|
48
|
+
"version": "25.0.2",
|
|
49
49
|
"description": "Synced Block Provider for @atlaskit/editor-plugin-synced-block",
|
|
50
50
|
"author": "Atlassian Pty Ltd",
|
|
51
51
|
"license": "Apache-2.0",
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"registry": "https://registry.npmjs.org/"
|
|
54
|
-
},
|
|
55
|
-
"platform-feature-flags": {
|
|
56
|
-
"platform_editor_blocks_patch_13": {
|
|
57
|
-
"type": "boolean"
|
|
58
|
-
}
|
|
59
54
|
}
|
|
60
55
|
}
|