@atlaskit/editor-plugin-code-block-advanced 26.0.3 → 26.0.5
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/nodeviews/analytics.js +4 -4
- package/dist/cjs/nodeviews/codeBlockAdvanced.js +3 -3
- package/dist/cjs/nodeviews/codeBlockNodeWithToDOMFixed.js +11 -11
- package/dist/cjs/nodeviews/extensions/foldGutter.js +3 -3
- package/dist/cjs/nodeviews/extensions/keymap/maybeEscape.js +2 -2
- package/dist/es2019/nodeviews/analytics.js +1 -1
- package/dist/es2019/nodeviews/codeBlockAdvanced.js +2 -2
- package/dist/es2019/nodeviews/codeBlockNodeWithToDOMFixed.js +2 -2
- package/dist/es2019/nodeviews/extensions/foldGutter.js +1 -1
- package/dist/es2019/nodeviews/extensions/keymap/maybeEscape.js +1 -1
- package/dist/esm/nodeviews/analytics.js +1 -1
- package/dist/esm/nodeviews/codeBlockAdvanced.js +2 -2
- package/dist/esm/nodeviews/codeBlockNodeWithToDOMFixed.js +2 -2
- package/dist/esm/nodeviews/extensions/foldGutter.js +1 -1
- package/dist/esm/nodeviews/extensions/keymap/maybeEscape.js +1 -1
- package/dist/types/codeBlockAdvancedPluginType.d.ts +8 -8
- package/dist/types/nodeviews/analytics.d.ts +1 -1
- package/dist/types/nodeviews/codeBlockAdvanced.d.ts +2 -1
- package/dist/types/nodeviews/extensions/keymap/backspace.d.ts +1 -1
- package/dist/types/nodeviews/extensions/keymap/index.d.ts +2 -2
- package/dist/types/nodeviews/extensions/keymap/maybeEscape.d.ts +2 -2
- package/dist/types/nodeviews/extensions/manageSelectionMarker.d.ts +1 -1
- package/dist/types/nodeviews/lazyCodeBlockAdvanced.d.ts +2 -2
- package/dist/types/pm-plugins/main.d.ts +1 -1
- package/dist/types/ui/theme.d.ts +1 -1
- package/docs/0-intro.tsx +1 -1
- package/package.json +2 -2
- package/src/codeBlockAdvancedPluginType.ts +11 -8
- package/src/nodeviews/analytics.ts +2 -2
- package/src/nodeviews/codeBlockAdvanced.ts +7 -10
- package/src/nodeviews/codeBlockNodeWithToDOMFixed.ts +2 -2
- package/src/nodeviews/extensions/foldGutter.ts +1 -1
- package/src/nodeviews/extensions/keymap/backspace.ts +1 -1
- package/src/nodeviews/extensions/keymap/index.ts +2 -2
- package/src/nodeviews/extensions/keymap/maybeEscape.ts +2 -2
- package/src/nodeviews/extensions/manageSelectionMarker.ts +1 -1
- package/src/nodeviews/lazyCodeBlockAdvanced.ts +2 -2
- package/src/pm-plugins/main.ts +1 -1
- package/src/ui/theme.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,15 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getCodeFoldingAnalyticsPayload = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _enums = require("@atlaskit/editor-common/analytics/types/enums");
|
|
8
8
|
var getCodeFoldingAnalyticsPayload = exports.getCodeFoldingAnalyticsPayload = function getCodeFoldingAnalyticsPayload(folded, trigger) {
|
|
9
9
|
return {
|
|
10
|
-
action:
|
|
11
|
-
actionSubject:
|
|
10
|
+
action: _enums.ACTION.TOGGLE_CODE_FOLDING,
|
|
11
|
+
actionSubject: _enums.ACTION_SUBJECT.CODE_BLOCK,
|
|
12
12
|
attributes: {
|
|
13
13
|
folded: folded,
|
|
14
14
|
trigger: trigger
|
|
15
15
|
},
|
|
16
|
-
eventType:
|
|
16
|
+
eventType: _enums.EVENT_TYPE.TRACK
|
|
17
17
|
};
|
|
18
18
|
};
|
|
@@ -15,8 +15,8 @@ var _state = require("@codemirror/state");
|
|
|
15
15
|
var _view = require("@codemirror/view");
|
|
16
16
|
var _bindEventListener = require("bind-event-listener");
|
|
17
17
|
var _codeBlock = require("@atlaskit/editor-common/code-block");
|
|
18
|
-
var
|
|
19
|
-
var _whitespace = require("@atlaskit/editor-common/whitespace");
|
|
18
|
+
var _blockType = require("@atlaskit/editor-common/messages/block-type");
|
|
19
|
+
var _whitespace = require("@atlaskit/editor-common/whitespace/whitespace");
|
|
20
20
|
var _state2 = require("@atlaskit/editor-prosemirror/state");
|
|
21
21
|
var _view2 = require("@atlaskit/editor-prosemirror/view");
|
|
22
22
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
@@ -111,7 +111,7 @@ var CodeBlockAdvancedNodeView = /*#__PURE__*/function () {
|
|
|
111
111
|
});
|
|
112
112
|
var _config$getIntl = config.getIntl(),
|
|
113
113
|
formatMessage = _config$getIntl.formatMessage;
|
|
114
|
-
var formattedAriaLabel = formatMessage(
|
|
114
|
+
var formattedAriaLabel = formatMessage(_blockType.messages.codeblock);
|
|
115
115
|
this.cm = new _view.EditorView({
|
|
116
116
|
doc: this.node.textContent,
|
|
117
117
|
extensions: [].concat((0, _toConsumableArray2.default)(config.extensions), [this.lineWrappingCompartment.of((0, _codeBlock.isCodeBlockWordWrapEnabled)(node) ? _view.EditorView.lineWrapping : []), this.languageCompartment.of([]), this.pmDecorationsCompartment.of(this.pmFacet.compute([], function () {
|
|
@@ -9,20 +9,20 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _codeBlock = require("@atlaskit/adf-schema/code-block");
|
|
11
11
|
var _codeBlock2 = require("@atlaskit/editor-common/code-block");
|
|
12
|
-
var
|
|
13
|
-
var
|
|
12
|
+
var _cssHelper = require("@atlaskit/editor-common/css-helper");
|
|
13
|
+
var _codeBlock3 = require("@atlaskit/editor-common/styles/code-block");
|
|
14
14
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
15
15
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
16
16
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
17
17
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
18
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
19
|
var codeBlockClassNames = {
|
|
20
|
-
container:
|
|
21
|
-
start:
|
|
22
|
-
end:
|
|
23
|
-
contentWrapper:
|
|
24
|
-
contentWrapped:
|
|
25
|
-
content:
|
|
20
|
+
container: _codeBlock3.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER,
|
|
21
|
+
start: _codeBlock3.CodeBlockSharedCssClassName.CODEBLOCK_START,
|
|
22
|
+
end: _codeBlock3.CodeBlockSharedCssClassName.CODEBLOCK_END,
|
|
23
|
+
contentWrapper: _codeBlock3.CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER,
|
|
24
|
+
contentWrapped: _codeBlock3.CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPED,
|
|
25
|
+
content: _codeBlock3.CodeBlockSharedCssClassName.CODEBLOCK_CONTENT
|
|
26
26
|
};
|
|
27
27
|
var MATCH_NEWLINES = new RegExp('\n', 'gu');
|
|
28
28
|
var getGutterBaseStyle = function getGutterBaseStyle() {
|
|
@@ -42,7 +42,7 @@ var getGuttersWithLineNumbers = function getGuttersWithLineNumbers(content, conf
|
|
|
42
42
|
return ['div', {
|
|
43
43
|
// Based on packages/editor/editor-common/src/styles/shared/code-block.ts
|
|
44
44
|
// But we can't reuse that class as it adds a ::before that intefers with this approach
|
|
45
|
-
style: (0,
|
|
45
|
+
style: (0, _cssHelper.convertToInlineCss)(_objectSpread(_objectSpread({}, getGutterBaseStyle()), {}, {
|
|
46
46
|
width: 'var(--lineNumberGutterWidth, 2rem)',
|
|
47
47
|
/* top and bottom | left and right */
|
|
48
48
|
padding: getGutterPadding(config.allowCodeFolding)
|
|
@@ -50,7 +50,7 @@ var getGuttersWithLineNumbers = function getGuttersWithLineNumbers(content, conf
|
|
|
50
50
|
contenteditable: 'false'
|
|
51
51
|
}, ['div', {
|
|
52
52
|
class: 'code-block-gutter-pseudo-element',
|
|
53
|
-
style: (0,
|
|
53
|
+
style: (0, _cssHelper.convertToInlineCss)({
|
|
54
54
|
textAlign: 'right',
|
|
55
55
|
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
56
56
|
fontFamily: "var(--ds-font-family-code, \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
|
|
@@ -61,7 +61,7 @@ var getGuttersWithLineNumbers = function getGuttersWithLineNumbers(content, conf
|
|
|
61
61
|
};
|
|
62
62
|
var getFoldOnlyGutter = function getFoldOnlyGutter() {
|
|
63
63
|
return ['div', {
|
|
64
|
-
style: (0,
|
|
64
|
+
style: (0, _cssHelper.convertToInlineCss)(_objectSpread(_objectSpread({}, getGutterBaseStyle()), {}, {
|
|
65
65
|
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)")
|
|
66
66
|
})),
|
|
67
67
|
contenteditable: 'false'
|
|
@@ -7,7 +7,7 @@ exports.foldGutterExtension = foldGutterExtension;
|
|
|
7
7
|
exports.getCodeBlockFoldStateEffects = getCodeBlockFoldStateEffects;
|
|
8
8
|
var _language = require("@codemirror/language");
|
|
9
9
|
var _codeBlock = require("@atlaskit/editor-common/code-block");
|
|
10
|
-
var
|
|
10
|
+
var _cssHelper = require("@atlaskit/editor-common/css-helper");
|
|
11
11
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
12
12
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
13
13
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -78,7 +78,7 @@ function foldGutterExtension(_ref) {
|
|
|
78
78
|
htmlElement.setAttribute('data-marker-dom-element', 'true');
|
|
79
79
|
htmlElement.setAttribute('data-testid', "code-block-fold-button-".concat(open ? 'open' : 'closed'));
|
|
80
80
|
htmlElement.setAttribute('tabindex', '-1');
|
|
81
|
-
htmlElement.setAttribute('style', (0,
|
|
81
|
+
htmlElement.setAttribute('style', (0, _cssHelper.convertToInlineCss)({
|
|
82
82
|
background: 'none',
|
|
83
83
|
color: 'inherit',
|
|
84
84
|
border: 'none',
|
|
@@ -115,7 +115,7 @@ function foldGutterExtension(_ref) {
|
|
|
115
115
|
var htmlElement = document.createElement('button');
|
|
116
116
|
htmlElement.setAttribute('data-marker-dom-element', 'true');
|
|
117
117
|
htmlElement.setAttribute('tabindex', '-1');
|
|
118
|
-
htmlElement.setAttribute('style', (0,
|
|
118
|
+
htmlElement.setAttribute('style', (0, _cssHelper.convertToInlineCss)({
|
|
119
119
|
color: 'inherit',
|
|
120
120
|
font: 'inherit',
|
|
121
121
|
cursor: 'pointer'
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.maybeEscapeKeymap = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _types = require("@atlaskit/editor-common/selection/types");
|
|
10
10
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -41,7 +41,7 @@ var maybeEscapeKeymap = exports.maybeEscapeKeymap = function maybeEscapeKeymap(_
|
|
|
41
41
|
var targetPos = ((_getPos = getPos === null || getPos === void 0 ? void 0 : getPos()) !== null && _getPos !== void 0 ? _getPos : 0) + (dir < 0 ? 0 : node.nodeSize);
|
|
42
42
|
if (unit === 'char') {
|
|
43
43
|
view.focus();
|
|
44
|
-
selectCodeBlockNode(dir === -1 ?
|
|
44
|
+
selectCodeBlockNode(dir === -1 ? _types.RelativeSelectionPos.Start : _types.RelativeSelectionPos.End);
|
|
45
45
|
return true;
|
|
46
46
|
} else {
|
|
47
47
|
createParagraphIfEndOfDoc(view, targetPos);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
export const getCodeFoldingAnalyticsPayload = (folded, trigger) => ({
|
|
3
3
|
action: ACTION.TOGGLE_CODE_FOLDING,
|
|
4
4
|
actionSubject: ACTION_SUBJECT.CODE_BLOCK,
|
|
@@ -5,8 +5,8 @@ import { Compartment, Facet, EditorState as CodeMirrorState } from '@codemirror/
|
|
|
5
5
|
import { EditorView as CodeMirror, lineNumbers, gutters } from '@codemirror/view';
|
|
6
6
|
import { bind } from 'bind-event-listener';
|
|
7
7
|
import { areCodeBlockLineNumbersHidden, isCodeBlockWordWrapEnabled } from '@atlaskit/editor-common/code-block';
|
|
8
|
-
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
9
|
-
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
8
|
+
import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
|
|
9
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace/whitespace';
|
|
10
10
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
11
11
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
12
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { codeBlock, codeBlockWithLocalId } from '@atlaskit/adf-schema/code-block';
|
|
2
2
|
import { areCodeBlockLineNumbersHidden } from '@atlaskit/editor-common/code-block';
|
|
3
|
-
import { convertToInlineCss } from '@atlaskit/editor-common/
|
|
4
|
-
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
3
|
+
import { convertToInlineCss } from '@atlaskit/editor-common/css-helper';
|
|
4
|
+
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles/code-block';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
7
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { foldGutter, codeFolding, foldState, foldEffect } from '@codemirror/language';
|
|
2
2
|
import { setCodeBlockFoldState, getCodeBlockFoldState } from '@atlaskit/editor-common/code-block';
|
|
3
|
-
import { convertToInlineCss } from '@atlaskit/editor-common/
|
|
3
|
+
import { convertToInlineCss } from '@atlaskit/editor-common/css-helper';
|
|
4
4
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
// Based on platform/packages/design-system/icon/svgs/utility/add.svg
|
|
6
6
|
const chevronDown = ['http://www.w3.org/2000/svg svg', {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
export var getCodeFoldingAnalyticsPayload = function getCodeFoldingAnalyticsPayload(folded, trigger) {
|
|
3
3
|
return {
|
|
4
4
|
action: ACTION.TOGGLE_CODE_FOLDING,
|
|
@@ -10,8 +10,8 @@ import { Compartment, Facet, EditorState as CodeMirrorState } from '@codemirror/
|
|
|
10
10
|
import { EditorView as CodeMirror, lineNumbers, gutters } from '@codemirror/view';
|
|
11
11
|
import { bind } from 'bind-event-listener';
|
|
12
12
|
import { areCodeBlockLineNumbersHidden, isCodeBlockWordWrapEnabled } from '@atlaskit/editor-common/code-block';
|
|
13
|
-
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
14
|
-
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
13
|
+
import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
|
|
14
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace/whitespace';
|
|
15
15
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
16
16
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
17
17
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
@@ -4,8 +4,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import { codeBlock, codeBlockWithLocalId } from '@atlaskit/adf-schema/code-block';
|
|
6
6
|
import { areCodeBlockLineNumbersHidden } from '@atlaskit/editor-common/code-block';
|
|
7
|
-
import { convertToInlineCss } from '@atlaskit/editor-common/
|
|
8
|
-
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
7
|
+
import { convertToInlineCss } from '@atlaskit/editor-common/css-helper';
|
|
8
|
+
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles/code-block';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
@@ -3,7 +3,7 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
3
3
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
4
4
|
import { foldGutter, codeFolding, foldState, foldEffect } from '@codemirror/language';
|
|
5
5
|
import { setCodeBlockFoldState, getCodeBlockFoldState } from '@atlaskit/editor-common/code-block';
|
|
6
|
-
import { convertToInlineCss } from '@atlaskit/editor-common/
|
|
6
|
+
import { convertToInlineCss } from '@atlaskit/editor-common/css-helper';
|
|
7
7
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
// Based on platform/packages/design-system/icon/svgs/utility/add.svg
|
|
9
9
|
var chevronDown = ['http://www.w3.org/2000/svg svg', {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
|
|
4
|
+
import { RelativeSelectionPos } from '@atlaskit/editor-common/selection/types';
|
|
5
5
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
export var maybeEscapeKeymap = function maybeEscapeKeymap(_ref) {
|
|
7
7
|
var _getPos;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Extension } from '@codemirror/state';
|
|
2
|
-
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
|
-
import type { CodeBlockPlugin } from '@atlaskit/editor-plugin-code-block';
|
|
5
|
-
import type { ContentFormatPlugin } from '@atlaskit/editor-plugin-content-format';
|
|
6
|
-
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
7
|
-
import type { FindReplacePlugin } from '@atlaskit/editor-plugin-find-replace';
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
2
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics/analyticsPluginType';
|
|
4
|
+
import type { CodeBlockPlugin } from '@atlaskit/editor-plugin-code-block/codeBlockPluginType';
|
|
5
|
+
import type { ContentFormatPlugin } from '@atlaskit/editor-plugin-content-format/contentFormatPluginType';
|
|
6
|
+
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled/editorDisabledPluginType';
|
|
7
|
+
import type { FindReplacePlugin } from '@atlaskit/editor-plugin-find-replace/findReplacePluginType';
|
|
8
|
+
import type { SelectionMarkerPlugin } from '@atlaskit/editor-plugin-selection-marker/selection-marker-plugin-type';
|
|
9
|
+
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection/selection-plugin-type';
|
|
10
10
|
export type CodeBlockAdvancedPlugin = NextEditorPlugin<'codeBlockAdvanced', {
|
|
11
11
|
dependencies: [
|
|
12
12
|
OptionalPlugin<CodeBlockPlugin>,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics/types/events';
|
|
2
2
|
export type CodeFoldingTrigger = 'gutter' | 'placeholder';
|
|
3
3
|
export declare const getCodeFoldingAnalyticsPayload: (folded: boolean, trigger: CodeFoldingTrigger) => AnalyticsEventPayload;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Extension } from '@codemirror/state';
|
|
2
2
|
import type { ViewUpdate } from '@codemirror/view';
|
|
3
3
|
import type { IntlShape } from 'react-intl';
|
|
4
|
-
import type { getPosHandler, getPosHandlerNode
|
|
4
|
+
import type { getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types/editor-plugin';
|
|
5
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
5
6
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
7
|
import type { Decoration, DecorationSource, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
7
8
|
import type { CodeBlockAdvancedPlugin } from '../codeBlockAdvancedPluginType';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EditorView as CodeMirror } from '@codemirror/view';
|
|
2
|
-
import type { getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { getPosHandlerNode } from '@atlaskit/editor-common/types/editor-plugin';
|
|
3
3
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
interface BackspaceProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Extension } from '@codemirror/state';
|
|
2
|
-
import type { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
|
|
3
|
-
import type { getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RelativeSelectionPos } from '@atlaskit/editor-common/selection/types';
|
|
3
|
+
import type { getPosHandlerNode } from '@atlaskit/editor-common/types/editor-plugin';
|
|
4
4
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
interface KeymapProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EditorView as CodeMirror } from '@codemirror/view';
|
|
2
|
-
import { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
|
|
3
|
-
import type { getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
2
|
+
import { RelativeSelectionPos } from '@atlaskit/editor-common/selection/types';
|
|
3
|
+
import type { getPosHandlerNode } from '@atlaskit/editor-common/types/editor-plugin';
|
|
4
4
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
interface MaybeEscapeProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Extension } from '@codemirror/state';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { CodeBlockAdvancedPlugin } from '../../codeBlockAdvancedPluginType';
|
|
4
4
|
/**
|
|
5
5
|
* Hides selection marker decoration when focused on codemirror editor and re-enables on blur
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Extension } from '@codemirror/state';
|
|
2
2
|
import type { IntlShape } from 'react-intl';
|
|
3
|
-
import type { NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
4
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view/types';
|
|
4
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
5
5
|
import type { CodeBlockAdvancedPlugin } from '../codeBlockAdvancedPluginType';
|
|
6
6
|
interface Props {
|
|
7
7
|
allowCodeFolding: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Extension } from '@codemirror/state';
|
|
2
2
|
import type { IntlShape } from 'react-intl';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
5
5
|
import type { CodeBlockAdvancedPlugin } from '../codeBlockAdvancedPluginType';
|
|
6
6
|
interface Props {
|
|
7
7
|
allowCodeFolding: boolean;
|
package/dist/types/ui/theme.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Extension } from '@codemirror/state';
|
|
2
|
-
import type { EditorContentMode } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { EditorContentMode } from '@atlaskit/editor-common/types/editor-appearance';
|
|
3
3
|
type ThemeOptions = {
|
|
4
4
|
contentMode?: EditorContentMode;
|
|
5
5
|
};
|
package/docs/0-intro.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import { AtlassianInternalWarning, code, md } from '@atlaskit/docs';
|
|
4
|
-
import { createEditorUseOnlyNotice } from '@atlaskit/editor-common/doc-utils';
|
|
4
|
+
import { createEditorUseOnlyNotice } from '@atlaskit/editor-common/doc-utils/editor-use-only';
|
|
5
5
|
import { token } from '@atlaskit/tokens';
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- md template from @atlaskit/docs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block-advanced",
|
|
3
|
-
"version": "26.0.
|
|
3
|
+
"version": "26.0.5",
|
|
4
4
|
"description": "CodeBlockAdvanced plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
33
33
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
34
34
|
"@atlaskit/prosemirror-history": "^1.3.0",
|
|
35
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
35
|
+
"@atlaskit/tmp-editor-statsig": "^232.0.0",
|
|
36
36
|
"@atlaskit/tokens": "^20.4.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0",
|
|
38
38
|
"@codemirror/autocomplete": "6.18.4",
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import type { Extension } from '@codemirror/state';
|
|
2
2
|
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
3
|
+
import type {
|
|
4
|
+
NextEditorPlugin,
|
|
5
|
+
OptionalPlugin,
|
|
6
|
+
} from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
7
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics/analyticsPluginType';
|
|
8
|
+
import type { CodeBlockPlugin } from '@atlaskit/editor-plugin-code-block/codeBlockPluginType';
|
|
9
|
+
import type { ContentFormatPlugin } from '@atlaskit/editor-plugin-content-format/contentFormatPluginType';
|
|
10
|
+
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled/editorDisabledPluginType';
|
|
11
|
+
import type { FindReplacePlugin } from '@atlaskit/editor-plugin-find-replace/findReplacePluginType';
|
|
12
|
+
import type { SelectionMarkerPlugin } from '@atlaskit/editor-plugin-selection-marker/selection-marker-plugin-type';
|
|
13
|
+
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection/selection-plugin-type';
|
|
11
14
|
|
|
12
15
|
export type CodeBlockAdvancedPlugin = NextEditorPlugin<
|
|
13
16
|
'codeBlockAdvanced',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics/types/events';
|
|
3
3
|
|
|
4
4
|
export type CodeFoldingTrigger = 'gutter' | 'placeholder';
|
|
5
5
|
|
|
@@ -11,16 +11,13 @@ import {
|
|
|
11
11
|
areCodeBlockLineNumbersHidden,
|
|
12
12
|
isCodeBlockWordWrapEnabled,
|
|
13
13
|
} from '@atlaskit/editor-common/code-block';
|
|
14
|
-
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
15
|
-
import type { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
|
|
16
|
-
import type {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from '@atlaskit/editor-common/types';
|
|
22
|
-
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
23
|
-
import type { EditorSelectionAPI } from '@atlaskit/editor-plugin-selection';
|
|
14
|
+
import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
|
|
15
|
+
import type { RelativeSelectionPos } from '@atlaskit/editor-common/selection/types';
|
|
16
|
+
import type { EditorContentMode } from '@atlaskit/editor-common/types/editor-appearance';
|
|
17
|
+
import type { getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types/editor-plugin';
|
|
18
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
19
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace/whitespace';
|
|
20
|
+
import type { EditorSelectionAPI } from '@atlaskit/editor-plugin-selection/types';
|
|
24
21
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
25
22
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
26
23
|
import type {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { codeBlock, codeBlockWithLocalId } from '@atlaskit/adf-schema/code-block';
|
|
2
2
|
import { areCodeBlockLineNumbersHidden } from '@atlaskit/editor-common/code-block';
|
|
3
|
-
import { convertToInlineCss } from '@atlaskit/editor-common/
|
|
4
|
-
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
3
|
+
import { convertToInlineCss } from '@atlaskit/editor-common/css-helper';
|
|
4
|
+
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles/code-block';
|
|
5
5
|
import type { NodeSpec, DOMOutputSpec, Node } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -4,7 +4,7 @@ import type { EditorView as CodeMirror } from '@codemirror/view';
|
|
|
4
4
|
|
|
5
5
|
import { setCodeBlockFoldState, getCodeBlockFoldState } from '@atlaskit/editor-common/code-block';
|
|
6
6
|
import type { FoldRange } from '@atlaskit/editor-common/code-block';
|
|
7
|
-
import { convertToInlineCss } from '@atlaskit/editor-common/
|
|
7
|
+
import { convertToInlineCss } from '@atlaskit/editor-common/css-helper';
|
|
8
8
|
import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
9
9
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
10
10
|
import { token } from '@atlaskit/tokens';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EditorView as CodeMirror } from '@codemirror/view';
|
|
2
2
|
|
|
3
|
-
import type { getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { getPosHandlerNode } from '@atlaskit/editor-common/types/editor-plugin';
|
|
4
4
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -4,8 +4,8 @@ import { keymap as cmKeymap } from '@codemirror/view';
|
|
|
4
4
|
import type { KeyBinding } from '@codemirror/view';
|
|
5
5
|
|
|
6
6
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
7
|
-
import type { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
|
|
8
|
-
import type { getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
7
|
+
import type { RelativeSelectionPos } from '@atlaskit/editor-common/selection/types';
|
|
8
|
+
import type { getPosHandlerNode } from '@atlaskit/editor-common/types/editor-plugin';
|
|
9
9
|
import { exitCode, selectAll } from '@atlaskit/editor-prosemirror/commands';
|
|
10
10
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
11
11
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EditorView as CodeMirror } from '@codemirror/view';
|
|
2
2
|
|
|
3
|
-
import { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
|
|
4
|
-
import type { getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
3
|
+
import { RelativeSelectionPos } from '@atlaskit/editor-common/selection/types';
|
|
4
|
+
import type { getPosHandlerNode } from '@atlaskit/editor-common/types/editor-plugin';
|
|
5
5
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Extension } from '@codemirror/state';
|
|
2
2
|
import { EditorView as CodeMirror } from '@codemirror/view';
|
|
3
3
|
|
|
4
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
5
5
|
|
|
6
6
|
import type { CodeBlockAdvancedPlugin } from '../../codeBlockAdvancedPluginType';
|
|
7
7
|
|
|
@@ -2,8 +2,8 @@ import type { Extension } from '@codemirror/state';
|
|
|
2
2
|
import type { IntlShape } from 'react-intl';
|
|
3
3
|
|
|
4
4
|
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
5
|
-
import type { NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
6
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view/types';
|
|
6
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
7
7
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
import type { EditorView, DecorationSource, Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
|
package/src/pm-plugins/main.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { Extension } from '@codemirror/state';
|
|
|
2
2
|
import type { IntlShape } from 'react-intl';
|
|
3
3
|
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
6
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
7
|
|
|
8
8
|
import type { CodeBlockAdvancedPlugin } from '../codeBlockAdvancedPluginType';
|
package/src/ui/theme.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Extension } from '@codemirror/state';
|
|
2
2
|
import { EditorView as CodeMirror } from '@codemirror/view';
|
|
3
3
|
|
|
4
|
-
import type { EditorContentMode } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { EditorContentMode } from '@atlaskit/editor-common/types/editor-appearance';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
7
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|