UNPKG

@atlaskit/editor-plugin-undo-redo

Version:

Undo redo plugin for @atlaskit/editor-core

22 lines (21 loc) 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InputSource = void 0; // NOTE: The string values below intentionally duplicate the values of the // matching `INPUT_METHOD` members in `@atlaskit/editor-common/analytics` // (`TOOLBAR='toolbar'`, `KEYBOARD='keyboard'`, `EXTERNAL='external'`). // Under TypeScript's `--isolatedDeclarations`, enum member initializers cannot // reference external symbols (TS9020), so we cannot write // `TOOLBAR = INPUT_METHOD.TOOLBAR`. If you change a value here, update the // corresponding `INPUT_METHOD` member to match — these strings are written // straight into transaction meta in `attach-input-meta.ts` and surface as // the `historyTriggerMethod` analytics attribute (asserted in // `editor-plugin-undo-redo-tests/.../analytics-input-method.ts`). var InputSource = exports.InputSource = /*#__PURE__*/function (InputSource) { InputSource["TOOLBAR"] = "toolbar"; InputSource["KEYBOARD"] = "keyboard"; InputSource["EXTERNAL"] = "external"; return InputSource; }({});