@atlaskit/editor-plugin-undo-redo 10.0.15 → 10.0.16

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-plugin-undo-redo
2
2
 
3
+ ## 10.0.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [`967cff1c14097`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/967cff1c14097) -
8
+ Add isolatedDeclarations: true to tsconfig.app.json and tsconfig.dev.json
9
+ - Updated dependencies
10
+
3
11
  ## 10.0.15
4
12
 
5
13
  ### Patch Changes
@@ -4,10 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.InputSource = void 0;
7
- var _analytics = require("@atlaskit/editor-common/analytics");
8
- var InputSource = exports.InputSource = function (InputSource) {
9
- InputSource[InputSource["TOOLBAR"] = _analytics.INPUT_METHOD.TOOLBAR] = "TOOLBAR";
10
- InputSource[InputSource["KEYBOARD"] = _analytics.INPUT_METHOD.KEYBOARD] = "KEYBOARD";
11
- InputSource[InputSource["EXTERNAL"] = _analytics.INPUT_METHOD.EXTERNAL] = "EXTERNAL";
7
+ // NOTE: The string values below intentionally duplicate the values of the
8
+ // matching `INPUT_METHOD` members in `@atlaskit/editor-common/analytics`
9
+ // (`TOOLBAR='toolbar'`, `KEYBOARD='keyboard'`, `EXTERNAL='external'`).
10
+ // Under TypeScript's `--isolatedDeclarations`, enum member initializers cannot
11
+ // reference external symbols (TS9020), so we cannot write
12
+ // `TOOLBAR = INPUT_METHOD.TOOLBAR`. If you change a value here, update the
13
+ // corresponding `INPUT_METHOD` member to match — these strings are written
14
+ // straight into transaction meta in `attach-input-meta.ts` and surface as
15
+ // the `historyTriggerMethod` analytics attribute (asserted in
16
+ // `editor-plugin-undo-redo-tests/.../analytics-input-method.ts`).
17
+ var InputSource = exports.InputSource = /*#__PURE__*/function (InputSource) {
18
+ InputSource["TOOLBAR"] = "toolbar";
19
+ InputSource["KEYBOARD"] = "keyboard";
20
+ InputSource["EXTERNAL"] = "external";
12
21
  return InputSource;
13
22
  }({});
@@ -1,7 +1,17 @@
1
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- export let InputSource = function (InputSource) {
3
- InputSource[InputSource["TOOLBAR"] = INPUT_METHOD.TOOLBAR] = "TOOLBAR";
4
- InputSource[InputSource["KEYBOARD"] = INPUT_METHOD.KEYBOARD] = "KEYBOARD";
5
- InputSource[InputSource["EXTERNAL"] = INPUT_METHOD.EXTERNAL] = "EXTERNAL";
1
+ // NOTE: The string values below intentionally duplicate the values of the
2
+ // matching `INPUT_METHOD` members in `@atlaskit/editor-common/analytics`
3
+ // (`TOOLBAR='toolbar'`, `KEYBOARD='keyboard'`, `EXTERNAL='external'`).
4
+ // Under TypeScript's `--isolatedDeclarations`, enum member initializers cannot
5
+ // reference external symbols (TS9020), so we cannot write
6
+ // `TOOLBAR = INPUT_METHOD.TOOLBAR`. If you change a value here, update the
7
+ // corresponding `INPUT_METHOD` member to match — these strings are written
8
+ // straight into transaction meta in `attach-input-meta.ts` and surface as
9
+ // the `historyTriggerMethod` analytics attribute (asserted in
10
+ // `editor-plugin-undo-redo-tests/.../analytics-input-method.ts`).
11
+
12
+ export let InputSource = /*#__PURE__*/function (InputSource) {
13
+ InputSource["TOOLBAR"] = "toolbar";
14
+ InputSource["KEYBOARD"] = "keyboard";
15
+ InputSource["EXTERNAL"] = "external";
6
16
  return InputSource;
7
17
  }({});
@@ -1,7 +1,17 @@
1
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- export var InputSource = function (InputSource) {
3
- InputSource[InputSource["TOOLBAR"] = INPUT_METHOD.TOOLBAR] = "TOOLBAR";
4
- InputSource[InputSource["KEYBOARD"] = INPUT_METHOD.KEYBOARD] = "KEYBOARD";
5
- InputSource[InputSource["EXTERNAL"] = INPUT_METHOD.EXTERNAL] = "EXTERNAL";
1
+ // NOTE: The string values below intentionally duplicate the values of the
2
+ // matching `INPUT_METHOD` members in `@atlaskit/editor-common/analytics`
3
+ // (`TOOLBAR='toolbar'`, `KEYBOARD='keyboard'`, `EXTERNAL='external'`).
4
+ // Under TypeScript's `--isolatedDeclarations`, enum member initializers cannot
5
+ // reference external symbols (TS9020), so we cannot write
6
+ // `TOOLBAR = INPUT_METHOD.TOOLBAR`. If you change a value here, update the
7
+ // corresponding `INPUT_METHOD` member to match — these strings are written
8
+ // straight into transaction meta in `attach-input-meta.ts` and surface as
9
+ // the `historyTriggerMethod` analytics attribute (asserted in
10
+ // `editor-plugin-undo-redo-tests/.../analytics-input-method.ts`).
11
+
12
+ export var InputSource = /*#__PURE__*/function (InputSource) {
13
+ InputSource["TOOLBAR"] = "toolbar";
14
+ InputSource["KEYBOARD"] = "keyboard";
15
+ InputSource["EXTERNAL"] = "external";
6
16
  return InputSource;
7
17
  }({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-undo-redo",
3
- "version": "10.0.15",
3
+ "version": "10.0.16",
4
4
  "description": "Undo redo plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,12 +39,12 @@
39
39
  "@atlaskit/icon": "^34.4.0",
40
40
  "@atlaskit/platform-feature-flags": "^1.1.0",
41
41
  "@atlaskit/prosemirror-history": "^0.2.0",
42
- "@atlaskit/tmp-editor-statsig": "^77.0.0",
42
+ "@atlaskit/tmp-editor-statsig": "^77.2.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@emotion/react": "^11.7.1"
45
45
  },
46
46
  "peerDependencies": {
47
- "@atlaskit/editor-common": "^114.20.0",
47
+ "@atlaskit/editor-common": "^114.25.0",
48
48
  "react": "^18.2.0",
49
49
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
50
50
  },