@remirror/extension-positioner
Advanced tools
Comparing version
@@ -201,3 +201,3 @@ import { Unsubscribe } from 'nanoevents'; | ||
*/ | ||
readonly addListener: <Key extends "done" | "update">(event: Key, cb: PositionerEvents[Key]) => Unsubscribe; | ||
readonly addListener: <Key extends keyof PositionerEvents>(event: Key, cb: PositionerEvents[Key]) => Unsubscribe; | ||
private addProps; | ||
@@ -204,0 +204,0 @@ /** |
@@ -17,19 +17,19 @@ 'use strict'; | ||
var _handler = /*#__PURE__*/new WeakMap(); | ||
var _handler = new WeakMap(); | ||
var _active = /*#__PURE__*/new WeakMap(); | ||
var _active = new WeakMap(); | ||
var _props = /*#__PURE__*/new WeakMap(); | ||
var _props = new WeakMap(); | ||
var _ids = /*#__PURE__*/new WeakMap(); | ||
var _ids = new WeakMap(); | ||
var _updated = /*#__PURE__*/new WeakMap(); | ||
var _updated = new WeakMap(); | ||
var _constructorProps = /*#__PURE__*/new WeakMap(); | ||
var _constructorProps = new WeakMap(); | ||
var _getActive = /*#__PURE__*/new WeakMap(); | ||
var _getActive = new WeakMap(); | ||
var _getID = /*#__PURE__*/new WeakMap(); | ||
var _getID = new WeakMap(); | ||
var _getPosition = /*#__PURE__*/new WeakMap(); | ||
var _getPosition = new WeakMap(); | ||
@@ -376,3 +376,3 @@ /** | ||
var baseRect = /*#__PURE__*/_objectSpread( /*#__PURE__*/_objectSpread({}, basePosition), {}, { | ||
var baseRect = _objectSpread(_objectSpread({}, basePosition), {}, { | ||
left: -999999, | ||
@@ -384,4 +384,4 @@ top: -999999, | ||
var defaultAbsolutePosition = /*#__PURE__*/_objectSpread( /*#__PURE__*/_objectSpread({}, basePosition), {}, { | ||
rect: /*#__PURE__*/_objectSpread( /*#__PURE__*/_objectSpread({}, baseRect), {}, { | ||
var defaultAbsolutePosition = _objectSpread(_objectSpread({}, basePosition), {}, { | ||
rect: _objectSpread(_objectSpread({}, baseRect), {}, { | ||
toJSON: () => baseRect | ||
@@ -398,3 +398,3 @@ }), | ||
var blockNodePositioner = /*#__PURE__*/Positioner.create({ | ||
var blockNodePositioner = Positioner.create({ | ||
hasChanged: hasStateChanged, | ||
@@ -455,3 +455,3 @@ | ||
var emptyBlockNodePositioner = /*#__PURE__*/blockNodePositioner.clone((_ref) => { | ||
var emptyBlockNodePositioner = blockNodePositioner.clone((_ref) => { | ||
var _getActive = _ref.getActive; | ||
@@ -473,3 +473,3 @@ return { | ||
var emptyBlockNodeStartPositioner = /*#__PURE__*/emptyBlockNodePositioner.clone((_ref2) => { | ||
var emptyBlockNodeStartPositioner = emptyBlockNodePositioner.clone((_ref2) => { | ||
var _getPosition = _ref2.getPosition; | ||
@@ -487,3 +487,3 @@ return { | ||
var emptyBlockNodeEndPositioner = /*#__PURE__*/emptyBlockNodePositioner.clone((_ref3) => { | ||
var emptyBlockNodeEndPositioner = emptyBlockNodePositioner.clone((_ref3) => { | ||
var _getPosition2 = _ref3.getPosition; | ||
@@ -512,3 +512,3 @@ return { | ||
var selectionPositioner = /*#__PURE__*/Positioner.create({ | ||
var selectionPositioner = Positioner.create({ | ||
hasChanged: hasStateChanged, | ||
@@ -582,3 +582,3 @@ getActive: props => { | ||
var cursorPositioner = /*#__PURE__*/Positioner.create({ | ||
var cursorPositioner = Positioner.create({ | ||
hasChanged: hasStateChanged, | ||
@@ -637,3 +637,3 @@ | ||
var nearestWordPositioner = /*#__PURE__*/selectionPositioner.clone(() => ({ | ||
var nearestWordPositioner = selectionPositioner.clone(() => ({ | ||
getActive: props => { | ||
@@ -730,3 +730,3 @@ var state = props.state, | ||
var _dec, _dec2, _class, _class2, _temp; | ||
var PositionerExtension = (_dec = /*#__PURE__*/core.extension({ | ||
var PositionerExtension = (_dec = core.extension({ | ||
defaultOptions: { | ||
@@ -737,3 +737,3 @@ scrollDebounce: 100 | ||
staticKeys: ['scrollDebounce'] | ||
}), _dec2 = /*#__PURE__*/core.helper(), /*#__PURE__*/_dec(_class = (_class2 = (_temp = class PositionerExtension extends core.PlainExtension { | ||
}), _dec2 = core.helper(), _dec(_class = (_class2 = (_temp = class PositionerExtension extends core.PlainExtension { | ||
constructor() { | ||
@@ -903,3 +903,3 @@ super(...arguments); | ||
}, _temp), ( /*#__PURE__*/_applyDecoratedDescriptor(_class2.prototype, "getPositionerWidget", [_dec2], /*#__PURE__*/Object.getOwnPropertyDescriptor(_class2.prototype, "getPositionerWidget"), _class2.prototype)), _class2)) || _class); | ||
}, _temp), (_applyDecoratedDescriptor(_class2.prototype, "getPositionerWidget", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, "getPositionerWidget"), _class2.prototype)), _class2)) || _class); | ||
var positioners = { | ||
@@ -906,0 +906,0 @@ /** |
@@ -14,19 +14,19 @@ import _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray'; | ||
var _handler = /*#__PURE__*/new WeakMap(); | ||
var _handler = new WeakMap(); | ||
var _active = /*#__PURE__*/new WeakMap(); | ||
var _active = new WeakMap(); | ||
var _props = /*#__PURE__*/new WeakMap(); | ||
var _props = new WeakMap(); | ||
var _ids = /*#__PURE__*/new WeakMap(); | ||
var _ids = new WeakMap(); | ||
var _updated = /*#__PURE__*/new WeakMap(); | ||
var _updated = new WeakMap(); | ||
var _constructorProps = /*#__PURE__*/new WeakMap(); | ||
var _constructorProps = new WeakMap(); | ||
var _getActive = /*#__PURE__*/new WeakMap(); | ||
var _getActive = new WeakMap(); | ||
var _getID = /*#__PURE__*/new WeakMap(); | ||
var _getID = new WeakMap(); | ||
var _getPosition = /*#__PURE__*/new WeakMap(); | ||
var _getPosition = new WeakMap(); | ||
@@ -373,3 +373,3 @@ /** | ||
var baseRect = /*#__PURE__*/_objectSpread( /*#__PURE__*/_objectSpread({}, basePosition), {}, { | ||
var baseRect = _objectSpread(_objectSpread({}, basePosition), {}, { | ||
left: -999999, | ||
@@ -381,4 +381,4 @@ top: -999999, | ||
var defaultAbsolutePosition = /*#__PURE__*/_objectSpread( /*#__PURE__*/_objectSpread({}, basePosition), {}, { | ||
rect: /*#__PURE__*/_objectSpread( /*#__PURE__*/_objectSpread({}, baseRect), {}, { | ||
var defaultAbsolutePosition = _objectSpread(_objectSpread({}, basePosition), {}, { | ||
rect: _objectSpread(_objectSpread({}, baseRect), {}, { | ||
toJSON: () => baseRect | ||
@@ -395,3 +395,3 @@ }), | ||
var blockNodePositioner = /*#__PURE__*/Positioner.create({ | ||
var blockNodePositioner = Positioner.create({ | ||
hasChanged: hasStateChanged, | ||
@@ -452,3 +452,3 @@ | ||
var emptyBlockNodePositioner = /*#__PURE__*/blockNodePositioner.clone((_ref) => { | ||
var emptyBlockNodePositioner = blockNodePositioner.clone((_ref) => { | ||
var _getActive = _ref.getActive; | ||
@@ -470,3 +470,3 @@ return { | ||
var emptyBlockNodeStartPositioner = /*#__PURE__*/emptyBlockNodePositioner.clone((_ref2) => { | ||
var emptyBlockNodeStartPositioner = emptyBlockNodePositioner.clone((_ref2) => { | ||
var _getPosition = _ref2.getPosition; | ||
@@ -484,3 +484,3 @@ return { | ||
var emptyBlockNodeEndPositioner = /*#__PURE__*/emptyBlockNodePositioner.clone((_ref3) => { | ||
var emptyBlockNodeEndPositioner = emptyBlockNodePositioner.clone((_ref3) => { | ||
var _getPosition2 = _ref3.getPosition; | ||
@@ -509,3 +509,3 @@ return { | ||
var selectionPositioner = /*#__PURE__*/Positioner.create({ | ||
var selectionPositioner = Positioner.create({ | ||
hasChanged: hasStateChanged, | ||
@@ -579,3 +579,3 @@ getActive: props => { | ||
var cursorPositioner = /*#__PURE__*/Positioner.create({ | ||
var cursorPositioner = Positioner.create({ | ||
hasChanged: hasStateChanged, | ||
@@ -634,3 +634,3 @@ | ||
var nearestWordPositioner = /*#__PURE__*/selectionPositioner.clone(() => ({ | ||
var nearestWordPositioner = selectionPositioner.clone(() => ({ | ||
getActive: props => { | ||
@@ -727,3 +727,3 @@ var state = props.state, | ||
var _dec, _dec2, _class, _class2, _temp; | ||
var PositionerExtension = (_dec = /*#__PURE__*/extension({ | ||
var PositionerExtension = (_dec = extension({ | ||
defaultOptions: { | ||
@@ -734,3 +734,3 @@ scrollDebounce: 100 | ||
staticKeys: ['scrollDebounce'] | ||
}), _dec2 = /*#__PURE__*/helper(), /*#__PURE__*/_dec(_class = (_class2 = (_temp = class PositionerExtension extends PlainExtension { | ||
}), _dec2 = helper(), _dec(_class = (_class2 = (_temp = class PositionerExtension extends PlainExtension { | ||
constructor() { | ||
@@ -900,3 +900,3 @@ super(...arguments); | ||
}, _temp), ( /*#__PURE__*/_applyDecoratedDescriptor(_class2.prototype, "getPositionerWidget", [_dec2], /*#__PURE__*/Object.getOwnPropertyDescriptor(_class2.prototype, "getPositionerWidget"), _class2.prototype)), _class2)) || _class); | ||
}, _temp), (_applyDecoratedDescriptor(_class2.prototype, "getPositionerWidget", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, "getPositionerWidget"), _class2.prototype)), _class2)) || _class); | ||
var positioners = { | ||
@@ -903,0 +903,0 @@ /** |
@@ -17,19 +17,19 @@ 'use strict'; | ||
var _handler = /*#__PURE__*/new WeakMap(); | ||
var _handler = new WeakMap(); | ||
var _active = /*#__PURE__*/new WeakMap(); | ||
var _active = new WeakMap(); | ||
var _props = /*#__PURE__*/new WeakMap(); | ||
var _props = new WeakMap(); | ||
var _ids = /*#__PURE__*/new WeakMap(); | ||
var _ids = new WeakMap(); | ||
var _updated = /*#__PURE__*/new WeakMap(); | ||
var _updated = new WeakMap(); | ||
var _constructorProps = /*#__PURE__*/new WeakMap(); | ||
var _constructorProps = new WeakMap(); | ||
var _getActive = /*#__PURE__*/new WeakMap(); | ||
var _getActive = new WeakMap(); | ||
var _getID = /*#__PURE__*/new WeakMap(); | ||
var _getID = new WeakMap(); | ||
var _getPosition = /*#__PURE__*/new WeakMap(); | ||
var _getPosition = new WeakMap(); | ||
@@ -376,3 +376,3 @@ /** | ||
var baseRect = /*#__PURE__*/_objectSpread( /*#__PURE__*/_objectSpread({}, basePosition), {}, { | ||
var baseRect = _objectSpread(_objectSpread({}, basePosition), {}, { | ||
left: -999999, | ||
@@ -384,4 +384,4 @@ top: -999999, | ||
var defaultAbsolutePosition = /*#__PURE__*/_objectSpread( /*#__PURE__*/_objectSpread({}, basePosition), {}, { | ||
rect: /*#__PURE__*/_objectSpread( /*#__PURE__*/_objectSpread({}, baseRect), {}, { | ||
var defaultAbsolutePosition = _objectSpread(_objectSpread({}, basePosition), {}, { | ||
rect: _objectSpread(_objectSpread({}, baseRect), {}, { | ||
toJSON: () => baseRect | ||
@@ -398,3 +398,3 @@ }), | ||
var blockNodePositioner = /*#__PURE__*/Positioner.create({ | ||
var blockNodePositioner = Positioner.create({ | ||
hasChanged: hasStateChanged, | ||
@@ -455,3 +455,3 @@ | ||
var emptyBlockNodePositioner = /*#__PURE__*/blockNodePositioner.clone((_ref) => { | ||
var emptyBlockNodePositioner = blockNodePositioner.clone((_ref) => { | ||
var _getActive = _ref.getActive; | ||
@@ -473,3 +473,3 @@ return { | ||
var emptyBlockNodeStartPositioner = /*#__PURE__*/emptyBlockNodePositioner.clone((_ref2) => { | ||
var emptyBlockNodeStartPositioner = emptyBlockNodePositioner.clone((_ref2) => { | ||
var _getPosition = _ref2.getPosition; | ||
@@ -487,3 +487,3 @@ return { | ||
var emptyBlockNodeEndPositioner = /*#__PURE__*/emptyBlockNodePositioner.clone((_ref3) => { | ||
var emptyBlockNodeEndPositioner = emptyBlockNodePositioner.clone((_ref3) => { | ||
var _getPosition2 = _ref3.getPosition; | ||
@@ -512,3 +512,3 @@ return { | ||
var selectionPositioner = /*#__PURE__*/Positioner.create({ | ||
var selectionPositioner = Positioner.create({ | ||
hasChanged: hasStateChanged, | ||
@@ -582,3 +582,3 @@ getActive: props => { | ||
var cursorPositioner = /*#__PURE__*/Positioner.create({ | ||
var cursorPositioner = Positioner.create({ | ||
hasChanged: hasStateChanged, | ||
@@ -637,3 +637,3 @@ | ||
var nearestWordPositioner = /*#__PURE__*/selectionPositioner.clone(() => ({ | ||
var nearestWordPositioner = selectionPositioner.clone(() => ({ | ||
getActive: props => { | ||
@@ -730,3 +730,3 @@ var state = props.state, | ||
var _dec, _dec2, _class, _class2, _temp; | ||
var PositionerExtension = (_dec = /*#__PURE__*/core.extension({ | ||
var PositionerExtension = (_dec = core.extension({ | ||
defaultOptions: { | ||
@@ -737,3 +737,3 @@ scrollDebounce: 100 | ||
staticKeys: ['scrollDebounce'] | ||
}), _dec2 = /*#__PURE__*/core.helper(), /*#__PURE__*/_dec(_class = (_class2 = (_temp = class PositionerExtension extends core.PlainExtension { | ||
}), _dec2 = core.helper(), _dec(_class = (_class2 = (_temp = class PositionerExtension extends core.PlainExtension { | ||
constructor() { | ||
@@ -903,3 +903,3 @@ super(...arguments); | ||
}, _temp), ( /*#__PURE__*/_applyDecoratedDescriptor(_class2.prototype, "getPositionerWidget", [_dec2], /*#__PURE__*/Object.getOwnPropertyDescriptor(_class2.prototype, "getPositionerWidget"), _class2.prototype)), _class2)) || _class); | ||
}, _temp), (_applyDecoratedDescriptor(_class2.prototype, "getPositionerWidget", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, "getPositionerWidget"), _class2.prototype)), _class2)) || _class); | ||
var positioners = { | ||
@@ -906,0 +906,0 @@ /** |
@@ -17,19 +17,19 @@ 'use strict'; | ||
var _handler = /*#__PURE__*/new WeakMap(); | ||
var _handler = new WeakMap(); | ||
var _active = /*#__PURE__*/new WeakMap(); | ||
var _active = new WeakMap(); | ||
var _props = /*#__PURE__*/new WeakMap(); | ||
var _props = new WeakMap(); | ||
var _ids = /*#__PURE__*/new WeakMap(); | ||
var _ids = new WeakMap(); | ||
var _updated = /*#__PURE__*/new WeakMap(); | ||
var _updated = new WeakMap(); | ||
var _constructorProps = /*#__PURE__*/new WeakMap(); | ||
var _constructorProps = new WeakMap(); | ||
var _getActive = /*#__PURE__*/new WeakMap(); | ||
var _getActive = new WeakMap(); | ||
var _getID = /*#__PURE__*/new WeakMap(); | ||
var _getID = new WeakMap(); | ||
var _getPosition = /*#__PURE__*/new WeakMap(); | ||
var _getPosition = new WeakMap(); | ||
@@ -376,3 +376,3 @@ /** | ||
var baseRect = /*#__PURE__*/_objectSpread( /*#__PURE__*/_objectSpread({}, basePosition), {}, { | ||
var baseRect = _objectSpread(_objectSpread({}, basePosition), {}, { | ||
left: -999999, | ||
@@ -384,4 +384,4 @@ top: -999999, | ||
var defaultAbsolutePosition = /*#__PURE__*/_objectSpread( /*#__PURE__*/_objectSpread({}, basePosition), {}, { | ||
rect: /*#__PURE__*/_objectSpread( /*#__PURE__*/_objectSpread({}, baseRect), {}, { | ||
var defaultAbsolutePosition = _objectSpread(_objectSpread({}, basePosition), {}, { | ||
rect: _objectSpread(_objectSpread({}, baseRect), {}, { | ||
toJSON: () => baseRect | ||
@@ -398,3 +398,3 @@ }), | ||
var blockNodePositioner = /*#__PURE__*/Positioner.create({ | ||
var blockNodePositioner = Positioner.create({ | ||
hasChanged: hasStateChanged, | ||
@@ -455,3 +455,3 @@ | ||
var emptyBlockNodePositioner = /*#__PURE__*/blockNodePositioner.clone((_ref) => { | ||
var emptyBlockNodePositioner = blockNodePositioner.clone((_ref) => { | ||
var _getActive = _ref.getActive; | ||
@@ -473,3 +473,3 @@ return { | ||
var emptyBlockNodeStartPositioner = /*#__PURE__*/emptyBlockNodePositioner.clone((_ref2) => { | ||
var emptyBlockNodeStartPositioner = emptyBlockNodePositioner.clone((_ref2) => { | ||
var _getPosition = _ref2.getPosition; | ||
@@ -487,3 +487,3 @@ return { | ||
var emptyBlockNodeEndPositioner = /*#__PURE__*/emptyBlockNodePositioner.clone((_ref3) => { | ||
var emptyBlockNodeEndPositioner = emptyBlockNodePositioner.clone((_ref3) => { | ||
var _getPosition2 = _ref3.getPosition; | ||
@@ -512,3 +512,3 @@ return { | ||
var selectionPositioner = /*#__PURE__*/Positioner.create({ | ||
var selectionPositioner = Positioner.create({ | ||
hasChanged: hasStateChanged, | ||
@@ -582,3 +582,3 @@ getActive: props => { | ||
var cursorPositioner = /*#__PURE__*/Positioner.create({ | ||
var cursorPositioner = Positioner.create({ | ||
hasChanged: hasStateChanged, | ||
@@ -637,3 +637,3 @@ | ||
var nearestWordPositioner = /*#__PURE__*/selectionPositioner.clone(() => ({ | ||
var nearestWordPositioner = selectionPositioner.clone(() => ({ | ||
getActive: props => { | ||
@@ -730,3 +730,3 @@ var state = props.state, | ||
var _dec, _dec2, _class, _class2, _temp; | ||
var PositionerExtension = (_dec = /*#__PURE__*/core.extension({ | ||
var PositionerExtension = (_dec = core.extension({ | ||
defaultOptions: { | ||
@@ -737,3 +737,3 @@ scrollDebounce: 100 | ||
staticKeys: ['scrollDebounce'] | ||
}), _dec2 = /*#__PURE__*/core.helper(), /*#__PURE__*/_dec(_class = (_class2 = (_temp = class PositionerExtension extends core.PlainExtension { | ||
}), _dec2 = core.helper(), _dec(_class = (_class2 = (_temp = class PositionerExtension extends core.PlainExtension { | ||
constructor() { | ||
@@ -903,3 +903,3 @@ super(...arguments); | ||
}, _temp), ( /*#__PURE__*/_applyDecoratedDescriptor(_class2.prototype, "getPositionerWidget", [_dec2], /*#__PURE__*/Object.getOwnPropertyDescriptor(_class2.prototype, "getPositionerWidget"), _class2.prototype)), _class2)) || _class); | ||
}, _temp), (_applyDecoratedDescriptor(_class2.prototype, "getPositionerWidget", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, "getPositionerWidget"), _class2.prototype)), _class2)) || _class); | ||
var positioners = { | ||
@@ -906,0 +906,0 @@ /** |
@@ -14,19 +14,19 @@ import _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray'; | ||
var _handler = /*#__PURE__*/new WeakMap(); | ||
var _handler = new WeakMap(); | ||
var _active = /*#__PURE__*/new WeakMap(); | ||
var _active = new WeakMap(); | ||
var _props = /*#__PURE__*/new WeakMap(); | ||
var _props = new WeakMap(); | ||
var _ids = /*#__PURE__*/new WeakMap(); | ||
var _ids = new WeakMap(); | ||
var _updated = /*#__PURE__*/new WeakMap(); | ||
var _updated = new WeakMap(); | ||
var _constructorProps = /*#__PURE__*/new WeakMap(); | ||
var _constructorProps = new WeakMap(); | ||
var _getActive = /*#__PURE__*/new WeakMap(); | ||
var _getActive = new WeakMap(); | ||
var _getID = /*#__PURE__*/new WeakMap(); | ||
var _getID = new WeakMap(); | ||
var _getPosition = /*#__PURE__*/new WeakMap(); | ||
var _getPosition = new WeakMap(); | ||
@@ -373,3 +373,3 @@ /** | ||
var baseRect = /*#__PURE__*/_objectSpread( /*#__PURE__*/_objectSpread({}, basePosition), {}, { | ||
var baseRect = _objectSpread(_objectSpread({}, basePosition), {}, { | ||
left: -999999, | ||
@@ -381,4 +381,4 @@ top: -999999, | ||
var defaultAbsolutePosition = /*#__PURE__*/_objectSpread( /*#__PURE__*/_objectSpread({}, basePosition), {}, { | ||
rect: /*#__PURE__*/_objectSpread( /*#__PURE__*/_objectSpread({}, baseRect), {}, { | ||
var defaultAbsolutePosition = _objectSpread(_objectSpread({}, basePosition), {}, { | ||
rect: _objectSpread(_objectSpread({}, baseRect), {}, { | ||
toJSON: () => baseRect | ||
@@ -395,3 +395,3 @@ }), | ||
var blockNodePositioner = /*#__PURE__*/Positioner.create({ | ||
var blockNodePositioner = Positioner.create({ | ||
hasChanged: hasStateChanged, | ||
@@ -452,3 +452,3 @@ | ||
var emptyBlockNodePositioner = /*#__PURE__*/blockNodePositioner.clone((_ref) => { | ||
var emptyBlockNodePositioner = blockNodePositioner.clone((_ref) => { | ||
var _getActive = _ref.getActive; | ||
@@ -470,3 +470,3 @@ return { | ||
var emptyBlockNodeStartPositioner = /*#__PURE__*/emptyBlockNodePositioner.clone((_ref2) => { | ||
var emptyBlockNodeStartPositioner = emptyBlockNodePositioner.clone((_ref2) => { | ||
var _getPosition = _ref2.getPosition; | ||
@@ -484,3 +484,3 @@ return { | ||
var emptyBlockNodeEndPositioner = /*#__PURE__*/emptyBlockNodePositioner.clone((_ref3) => { | ||
var emptyBlockNodeEndPositioner = emptyBlockNodePositioner.clone((_ref3) => { | ||
var _getPosition2 = _ref3.getPosition; | ||
@@ -509,3 +509,3 @@ return { | ||
var selectionPositioner = /*#__PURE__*/Positioner.create({ | ||
var selectionPositioner = Positioner.create({ | ||
hasChanged: hasStateChanged, | ||
@@ -579,3 +579,3 @@ getActive: props => { | ||
var cursorPositioner = /*#__PURE__*/Positioner.create({ | ||
var cursorPositioner = Positioner.create({ | ||
hasChanged: hasStateChanged, | ||
@@ -634,3 +634,3 @@ | ||
var nearestWordPositioner = /*#__PURE__*/selectionPositioner.clone(() => ({ | ||
var nearestWordPositioner = selectionPositioner.clone(() => ({ | ||
getActive: props => { | ||
@@ -727,3 +727,3 @@ var state = props.state, | ||
var _dec, _dec2, _class, _class2, _temp; | ||
var PositionerExtension = (_dec = /*#__PURE__*/extension({ | ||
var PositionerExtension = (_dec = extension({ | ||
defaultOptions: { | ||
@@ -734,3 +734,3 @@ scrollDebounce: 100 | ||
staticKeys: ['scrollDebounce'] | ||
}), _dec2 = /*#__PURE__*/helper(), /*#__PURE__*/_dec(_class = (_class2 = (_temp = class PositionerExtension extends PlainExtension { | ||
}), _dec2 = helper(), _dec(_class = (_class2 = (_temp = class PositionerExtension extends PlainExtension { | ||
constructor() { | ||
@@ -900,3 +900,3 @@ super(...arguments); | ||
}, _temp), ( /*#__PURE__*/_applyDecoratedDescriptor(_class2.prototype, "getPositionerWidget", [_dec2], /*#__PURE__*/Object.getOwnPropertyDescriptor(_class2.prototype, "getPositionerWidget"), _class2.prototype)), _class2)) || _class); | ||
}, _temp), (_applyDecoratedDescriptor(_class2.prototype, "getPositionerWidget", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, "getPositionerWidget"), _class2.prototype)), _class2)) || _class); | ||
var positioners = { | ||
@@ -903,0 +903,0 @@ /** |
{ | ||
"name": "@remirror/extension-positioner", | ||
"version": "0.0.0-pr862.2", | ||
"version": "0.0.0-pr877.1", | ||
"description": "Reposition your elements with every state update.", | ||
@@ -40,15 +40,15 @@ "keywords": [ | ||
"dependencies": { | ||
"@babel/runtime": "^7.12.13", | ||
"@remirror/core": "0.0.0-pr862.2", | ||
"@remirror/extension-events": "0.0.0-pr862.2", | ||
"@remirror/messages": "0.0.0-pr862.2", | ||
"@remirror/theme": "0.0.0-pr862.2", | ||
"@babel/runtime": "^7.13.7", | ||
"@remirror/core": "0.0.0-pr877.1", | ||
"@remirror/extension-events": "0.0.0-pr877.1", | ||
"@remirror/messages": "0.0.0-pr877.1", | ||
"@remirror/theme": "0.0.0-pr877.1", | ||
"nanoevents": "^5.1.10", | ||
"type-fest": "^0.20.2" | ||
"type-fest": "^0.21.2" | ||
}, | ||
"devDependencies": { | ||
"@remirror/pm": "0.0.0-pr862.2" | ||
"@remirror/pm": "0.0.0-pr877.1" | ||
}, | ||
"peerDependencies": { | ||
"@remirror/pm": "1.0.0-next.60" | ||
"@remirror/pm": "0.0.0-pr877.1" | ||
}, | ||
@@ -55,0 +55,0 @@ "publishConfig": { |
178604
-0.98%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated