@tiptap/extension-focus 2.0.0-beta.20 → 2.0.0-beta.200

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.
@@ -3,4 +3,4 @@ export interface FocusOptions {
3
3
  className: string;
4
4
  mode: 'all' | 'deepest' | 'shallowest';
5
5
  }
6
- export declare const FocusClasses: Extension<FocusOptions>;
6
+ export declare const FocusClasses: Extension<FocusOptions, any>;
@@ -8,9 +8,11 @@ var prosemirrorView = require('prosemirror-view');
8
8
 
9
9
  const FocusClasses = core.Extension.create({
10
10
  name: 'focus',
11
- defaultOptions: {
12
- className: 'has-focus',
13
- mode: 'all',
11
+ addOptions() {
12
+ return {
13
+ className: 'has-focus',
14
+ mode: 'all',
15
+ };
14
16
  },
15
17
  addProseMirrorPlugins() {
16
18
  return [
@@ -67,5 +69,5 @@ const FocusClasses = core.Extension.create({
67
69
  });
68
70
 
69
71
  exports.FocusClasses = FocusClasses;
70
- exports.default = FocusClasses;
72
+ exports["default"] = FocusClasses;
71
73
  //# sourceMappingURL=tiptap-extension-focus.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tiptap-extension-focus.cjs.js","sources":["../src/focus.ts"],"sourcesContent":["import { Extension } from '@tiptap/core'\nimport { Plugin, PluginKey } from 'prosemirror-state'\nimport { DecorationSet, Decoration } from 'prosemirror-view'\n\nexport interface FocusOptions {\n className: string,\n mode: 'all' | 'deepest' | 'shallowest',\n}\n\nexport const FocusClasses = Extension.create<FocusOptions>({\n name: 'focus',\n\n defaultOptions: {\n className: 'has-focus',\n mode: 'all',\n },\n\n addProseMirrorPlugins() {\n return [\n new Plugin({\n key: new PluginKey('focus'),\n props: {\n decorations: ({ doc, selection }) => {\n const { isEditable, isFocused } = this.editor\n const { anchor } = selection\n const decorations: Decoration[] = []\n\n if (!isEditable || !isFocused) {\n return DecorationSet.create(doc, [])\n }\n\n // Maximum Levels\n let maxLevels = 0\n\n if (this.options.mode === 'deepest') {\n doc.descendants((node, pos) => {\n if (node.isText) {\n return\n }\n\n const isCurrent = anchor >= pos && anchor <= (pos + node.nodeSize - 1)\n\n if (!isCurrent) {\n return false\n }\n\n maxLevels += 1\n })\n }\n\n // Loop through current\n let currentLevel = 0\n\n doc.descendants((node, pos) => {\n if (node.isText) {\n return false\n }\n\n const isCurrent = anchor >= pos && anchor <= (pos + node.nodeSize - 1)\n\n if (!isCurrent) {\n return false\n }\n\n currentLevel += 1\n\n const outOfScope = (this.options.mode === 'deepest' && maxLevels - currentLevel > 0)\n || (this.options.mode === 'shallowest' && currentLevel > 1)\n\n if (outOfScope) {\n return this.options.mode === 'deepest'\n }\n\n decorations.push(Decoration.node(pos, pos + node.nodeSize, {\n class: this.options.className,\n }))\n })\n\n return DecorationSet.create(doc, decorations)\n },\n },\n }),\n ]\n },\n})\n"],"names":["Extension","Plugin","PluginKey","DecorationSet","Decoration"],"mappings":";;;;;;;;MASa,YAAY,GAAGA,cAAS,CAAC,MAAM,CAAe;IACzD,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,SAAS,EAAE,WAAW;QACtB,IAAI,EAAE,KAAK;KACZ;IAED,qBAAqB;QACnB,OAAO;YACL,IAAIC,uBAAM,CAAC;gBACT,GAAG,EAAE,IAAIC,0BAAS,CAAC,OAAO,CAAC;gBAC3B,KAAK,EAAE;oBACL,WAAW,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE;wBAC9B,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,MAAM,CAAA;wBAC7C,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;wBAC5B,MAAM,WAAW,GAAiB,EAAE,CAAA;wBAEpC,IAAI,CAAC,UAAU,IAAI,CAAC,SAAS,EAAE;4BAC7B,OAAOC,6BAAa,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,CAAC,CAAA;yBACrC;;wBAGD,IAAI,SAAS,GAAG,CAAC,CAAA;wBAEjB,IAAI,IA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BACJ,CAAC,CAAA;wBAEF,OAAOD,6BAAa,CAAC,MAAM,CAAC,GAAG,EAAE,WAAW,CAAC,CAAA;qBAC9C;iBACF;aACF,CAAC;SACH,CAAA;KACF;CACF;;;;;"}
1
+ {"version":3,"file":"tiptap-extension-focus.cjs.js","sources":["../src/focus.ts"],"sourcesContent":["import { Extension } from '@tiptap/core'\nimport { Plugin, PluginKey } from 'prosemirror-state'\nimport { Decoration, DecorationSet } from 'prosemirror-view'\n\nexport interface FocusOptions {\n className: string,\n mode: 'all' | 'deepest' | 'shallowest',\n}\n\nexport const FocusClasses = Extension.create<FocusOptions>({\n name: 'focus',\n\n addOptions() {\n return {\n className: 'has-focus',\n mode: 'all',\n }\n },\n\n addProseMirrorPlugins() {\n return [\n new Plugin({\n key: new PluginKey('focus'),\n props: {\n decorations: ({ doc, selection }) => {\n const { isEditable, isFocused } = this.editor\n const { anchor } = selection\n const decorations: Decoration[] = []\n\n if (!isEditable || !isFocused) {\n return DecorationSet.create(doc, [])\n }\n\n // Maximum Levels\n let maxLevels = 0\n\n if (this.options.mode === 'deepest') {\n doc.descendants((node, pos) => {\n if (node.isText) {\n return\n }\n\n const isCurrent = anchor >= pos && anchor <= (pos + node.nodeSize - 1)\n\n if (!isCurrent) {\n return false\n }\n\n maxLevels += 1\n })\n }\n\n // Loop through current\n let currentLevel = 0\n\n doc.descendants((node, pos) => {\n if (node.isText) {\n return false\n }\n\n const isCurrent = anchor >= pos && anchor <= (pos + node.nodeSize - 1)\n\n if (!isCurrent) {\n return false\n }\n\n currentLevel += 1\n\n const outOfScope = (this.options.mode === 'deepest' && maxLevels - currentLevel > 0)\n || (this.options.mode === 'shallowest' && currentLevel > 1)\n\n if (outOfScope) {\n return this.options.mode === 'deepest'\n }\n\n decorations.push(Decoration.node(pos, pos + node.nodeSize, {\n class: this.options.className,\n }))\n })\n\n return DecorationSet.create(doc, decorations)\n },\n },\n }),\n ]\n },\n})\n"],"names":["Extension","Plugin","PluginKey","DecorationSet","Deco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,GAAG,CAAC,CAAA;wBAEpB,GAAG,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,GAAG,KAAI;4BAC5B,IAAI,IAAI,CAAC,MAAM,EAAE;AACf,gCAAA,OAAO,KAAK,CAAA;AACb,6BAAA;AAED,4BAAA,MAAM,SAAS,GAAG,MAAM,IAAI,GAAG,IAAI,MAAM,KAAK,GAAG,GAAG,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAA;4BAEtE,IAAI,CAAC,SAAS,EAAE;AACd,gCAAA,OAAO,KAAK,CAAA;AACb,6BAAA;4BAED,YAAY,IAAI,CAAC,CAAA;AAEjB,4BAAA,MAAM,UAAU,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,SAAS,GAAG,YAAY,GAAG,CAAC;AAC9E,oCAAC,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,YAAY,IAAI,YAAY,GAAG,CAAC,CAAC,CAAA;AAE7D,4BAAA,IAAI,UAAU,EAAE;AACd,gCAAA,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,CAAA;AACvC,6BAAA;AAED,4BAAA,WAAW,CAAC,IAAI,CAACC,0BAAU,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE;AACzD,gCAAA,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;AAC9B,6BAAA,CAAC,CAAC,CAAA;AACL,yBAAC,CAAC,CAAA;wBAEF,OAAOD,6BAAa,CAAC,MAAM,CAAC,GAAG,EAAE,WAAW,CAAC,CAAA;qBAC9C;AACF,iBAAA;aACF,CAAC;SACH,CAAA;KACF;AACF,CAAA;;;;;"}
@@ -4,9 +4,11 @@ import { DecorationSet, Decoration } from 'prosemirror-view';
4
4
 
5
5
  const FocusClasses = Extension.create({
6
6
  name: 'focus',
7
- defaultOptions: {
8
- className: 'has-focus',
9
- mode: 'all',
7
+ addOptions() {
8
+ return {
9
+ className: 'has-focus',
10
+ mode: 'all',
11
+ };
10
12
  },
11
13
  addProseMirrorPlugins() {
12
14
  return [
@@ -62,6 +64,5 @@ const FocusClasses = Extension.create({
62
64
  },
63
65
  });
64
66
 
65
- export default FocusClasses;
66
- export { FocusClasses };
67
+ export { FocusClasses, FocusClasses as default };
67
68
  //# sourceMappingURL=tiptap-extension-focus.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tiptap-extension-focus.esm.js","sources":["../src/focus.ts"],"sourcesContent":["import { Extension } from '@tiptap/core'\nimport { Plugin, PluginKey } from 'prosemirror-state'\nimport { DecorationSet, Decoration } from 'prosemirror-view'\n\nexport interface FocusOptions {\n className: string,\n mode: 'all' | 'deepest' | 'shallowest',\n}\n\nexport const FocusClasses = Extension.create<FocusOptions>({\n name: 'focus',\n\n defaultOptions: {\n className: 'has-focus',\n mode: 'all',\n },\n\n addProseMirrorPlugins() {\n return [\n new Plugin({\n key: new PluginKey('focus'),\n props: {\n decorations: ({ doc, selection }) => {\n const { isEditable, isFocused } = this.editor\n const { anchor } = selection\n const decorations: Decoration[] = []\n\n if (!isEditable || !isFocused) {\n return DecorationSet.create(doc, [])\n }\n\n // Maximum Levels\n let maxLevels = 0\n\n if (this.options.mode === 'deepest') {\n doc.descendants((node, pos) => {\n if (node.isText) {\n return\n }\n\n const isCurrent = anchor >= pos && anchor <= (pos + node.nodeSize - 1)\n\n if (!isCurrent) {\n return false\n }\n\n maxLevels += 1\n })\n }\n\n // Loop through current\n let currentLevel = 0\n\n doc.descendants((node, pos) => {\n if (node.isText) {\n return false\n }\n\n const isCurrent = anchor >= pos && anchor <= (pos + node.nodeSize - 1)\n\n if (!isCurrent) {\n return false\n }\n\n currentLevel += 1\n\n const outOfScope = (this.options.mode === 'deepest' && maxLevels - currentLevel > 0)\n || (this.options.mode === 'shallowest' && currentLevel > 1)\n\n if (outOfScope) {\n return this.options.mode === 'deepest'\n }\n\n decorations.push(Decoration.node(pos, pos + node.nodeSize, {\n class: this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AI,IAAI,CAAC,MAAM,EAAE;gCACf,OAAO,KAAK,CAAA;6BACb;4BAED,MAAM,SAAS,GAAG,MAAM,IAAI,GAAG,IAAI,MAAM,KAAK,GAAG,GAAG,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAA;4BAEtE,IAAI,CAAC,SAAS,EAAE;gCACd,OAAO,KAAK,CAAA;6BACb;4BAED,YAAY,IAAI,CAAC,CAAA;4BAEjB,MAAM,UAAU,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,SAAS,GAAG,YAAY,GAAG,CAAC;oCAC7E,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,YAAY,IAAI,YAAY,GAAG,CAAC,CAAC,CAAA;4BAE7D,IAAI,UAAU,EAAE;gCACd,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,CAAA;6BACvC;4BAED,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE;gCACzD,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;6BAC9B,CAAC,CAAC,CAAA;yBACJ,CAAC,CAAA;wBAEF,OAAO,aAAa,CAAC,MAAM,CAAC,GAAG,EAAE,WAAW,CAAC,CAAA;qBAC9C;iBACF;aACF,CAAC;SACH,CAAA;KACF;CACF;;;;;"}
1
+ {"version":3,"file":"tiptap-extension-focus.esm.js","sources":["../src/focus.ts"],"sourcesContent":["import { Extension } from '@tiptap/core'\nimport { Plugin, PluginKey } from 'prosemirror-state'\nimport { Decoration, DecorationSet } from 'prosemirror-view'\n\nexport interface FocusOptions {\n className: string,\n mode: 'all' | 'deepest' | 'shallowest',\n}\n\nexport const FocusClasses = Extension.create<FocusOptions>({\n name: 'focus',\n\n addOptions() {\n return {\n className: 'has-focus',\n mode: 'all',\n }\n },\n\n addProseMirrorPlugins() {\n return [\n new Plugin({\n key: new PluginKey('focus'),\n props: {\n decorations: ({ doc, selection }) => {\n const { isEditable, isFocused } = this.editor\n const { anchor } = selection\n const decorations: Decoration[] = []\n\n if (!isEditable || !isFocused) {\n return DecorationSet.create(doc, [])\n }\n\n // Maximum Levels\n let maxLevels = 0\n\n if (this.options.mode === 'deepest') {\n doc.descendants((node, pos) => {\n if (node.isText) {\n return\n }\n\n const isCurrent = anchor >= pos && anchor <= (pos + node.nodeSize - 1)\n\n if (!isCurrent) {\n return false\n }\n\n maxLevels += 1\n })\n }\n\n // Loop through current\n let currentLevel = 0\n\n doc.descendants((node, pos) => {\n if (node.isText) {\n return false\n }\n\n const isCurrent = anchor >= pos && anchor <= (pos + node.nodeSize - 1)\n\n if (!isCurrent) {\n return false\n }\n\n currentLevel += 1\n\n const outOfScope = (this.options.mode === 'deepest' && maxLevels - currentLevel > 0)\n || (this.options.mode === 'shallowest' && currentLevel > 1)\n\n if (outOfScope) {\n return this.options.mode === 'deepest'\n }\n\n decorations.push(Decoration.node(pos, pos + node.nodeSize, {\n class: this.options.className,\n }))\n })\n\n return DecorationSet.create(doc, decorations)\n },\n },\n }),\n ]\n },\n})\n"],"names":[],"mappings":";;;;AASa,MAAA,YAAY,GAAG,SAAS,CAAC,MAAM,CAAe;AACzD,IAAA,IAAI,EAAE,OAAO;IAEb,UAAU,GAAA;QACR,OAAO;AACL,YAAA,SAAS,EAAE,WAAW;AACtB,YAAA,IAAI,EAAE,KAAK;SACZ,CAAA;KACF;IAED,qBAAqB,GAAA;QACnB,OAAO;AACL,YAAA,IAAI,MAAM,CAAC;AACT,gBAAA,GAAG,EAAE,IAAI,SAAS,CAAC,OAAO,CAAC;AAC3B,gBAAA,KAAK,EAAE;oBACL,WAAW,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,KAAI;wBAClC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,MAAM,CAAA;AAC7C,wBAAA,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;wBA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IAAI,KAAK,YAAY,IAAI,YAAY,GAAG,CAAC,CAAC,CAAA;AAE7D,4BAAA,IAAI,UAAU,EAAE;AACd,gCAAA,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,CAAA;AACvC,6BAAA;AAED,4BAAA,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE;AACzD,gCAAA,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;AAC9B,6BAAA,CAAC,CAAC,CAAA;AACL,yBAAC,CAAC,CAAA;wBAEF,OAAO,aAAa,CAAC,MAAM,CAAC,GAAG,EAAE,WAAW,CAAC,CAAA;qBAC9C;AACF,iBAAA;aACF,CAAC;SACH,CAAA;KACF;AACF,CAAA;;;;"}
@@ -1,14 +1,16 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tiptap/core'), require('prosemirror-state'), require('prosemirror-view')) :
3
3
  typeof define === 'function' && define.amd ? define(['exports', '@tiptap/core', 'prosemirror-state', 'prosemirror-view'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['@tiptap/extension-focus'] = {}, global.core, global.prosemirrorState, global.prosemirrorView));
5
- }(this, (function (exports, core, prosemirrorState, prosemirrorView) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@tiptap/extension-focus"] = {}, global.core, global.prosemirrorState, global.prosemirrorView));
5
+ })(this, (function (exports, core, prosemirrorState, prosemirrorView) { 'use strict';
6
6
 
7
7
  const FocusClasses = core.Extension.create({
8
8
  name: 'focus',
9
- defaultOptions: {
10
- className: 'has-focus',
11
- mode: 'all',
9
+ addOptions() {
10
+ return {
11
+ className: 'has-focus',
12
+ mode: 'all',
13
+ };
12
14
  },
13
15
  addProseMirrorPlugins() {
14
16
  return [
@@ -65,9 +67,9 @@
65
67
  });
66
68
 
67
69
  exports.FocusClasses = FocusClasses;
68
- exports.default = FocusClasses;
70
+ exports["default"] = FocusClasses;
69
71
 
70
72
  Object.defineProperty(exports, '__esModule', { value: true });
71
73
 
72
- })));
74
+ }));
73
75
  //# sourceMappingURL=tiptap-extension-focus.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tiptap-extension-focus.umd.js","sources":["../src/focus.ts"],"sourcesContent":["import { Extension } from '@tiptap/core'\nimport { Plugin, PluginKey } from 'prosemirror-state'\nimport { DecorationSet, Decoration } from 'prosemirror-view'\n\nexport interface FocusOptions {\n className: string,\n mode: 'all' | 'deepest' | 'shallowest',\n}\n\nexport const FocusClasses = Extension.create<FocusOptions>({\n name: 'focus',\n\n defaultOptions: {\n className: 'has-focus',\n mode: 'all',\n },\n\n addProseMirrorPlugins() {\n return [\n new Plugin({\n key: new PluginKey('focus'),\n props: {\n decorations: ({ doc, selection }) => {\n const { isEditable, isFocused } = this.editor\n const { anchor } = selection\n const decorations: Decoration[] = []\n\n if (!isEditable || !isFocused) {\n return DecorationSet.create(doc, [])\n }\n\n // Maximum Levels\n let maxLevels = 0\n\n if (this.options.mode === 'deepest') {\n doc.descendants((node, pos) => {\n if (node.isText) {\n return\n }\n\n const isCurrent = anchor >= pos && anchor <= (pos + node.nodeSize - 1)\n\n if (!isCurrent) {\n return false\n }\n\n maxLevels += 1\n })\n }\n\n // Loop through current\n let currentLevel = 0\n\n doc.descendants((node, pos) => {\n if (node.isText) {\n return false\n }\n\n const isCurrent = anchor >= pos && anchor <= (pos + node.nodeSize - 1)\n\n if (!isCurrent) {\n return false\n }\n\n currentLevel += 1\n\n const outOfScope = (this.options.mode === 'deepest' && maxLevels - currentLevel > 0)\n || (this.options.mode === 'shallowest' && currentLevel > 1)\n\n if (outOfScope) {\n return this.options.mode === 'deepest'\n }\n\n decorations.push(Decoration.node(pos, pos + node.nodeSize, {\n class: this.options.className,\n }))\n })\n\n return DecorationSet.create(doc, decorations)\n },\n },\n }),\n ]\n },\n})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,EAAE;kCACf,OAAO,KAAK,CAAA;+BACb;8BAED,MAAM,SAAS,GAAG,MAAM,IAAI,GAAG,IAAI,MAAM,KAAK,GAAG,GAAG,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAA;8BAEtE,IAAI,CAAC,SAAS,EAAE;kCACd,OAAO,KAAK,CAAA;+BACb;8BAED,YAAY,IAAI,CAAC,CAAA;8BAEjB,MAAM,UAAU,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,SAAS,GAAG,YAAY,GAAG,CAAC;sCAC7E,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,YAAY,IAAI,YAAY,GAAG,CAAC,CAAC,CAAA;8BAE7D,IAAI,UAAU,EAAE;kCACd,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,CAAA;+BACvC;8BAED,WAAW,CAAC,IAAI,CAACC,0BAAU,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE;kCACzD,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;+BAC9B,CAAC,CAAC,CAAA;2BACJ,CAAC,CAAA;0BAEF,OAAOD,6BAAa,CAAC,MAAM,CAAC,GAAG,EAAE,WAAW,CAAC,CAAA;uBAC9C;mBACF;eACF,CAAC;WACH,CAAA;OACF;GACF;;;;;;;;;;;"}
1
+ {"version":3,"file":"tiptap-extension-focus.umd.js","sources":["../src/focus.ts"],"sourcesContent":["import { Extension } from '@tiptap/core'\nimport { Plugin, PluginKey } from 'prosemirror-state'\nimport { Decoration, DecorationSet } from 'prosemirror-view'\n\nexport interface FocusOptions {\n className: string,\n mode: 'all' | 'deepest' | 'shallowest',\n}\n\nexport const FocusClasses = Extension.create<FocusOptions>({\n name: 'focus',\n\n addOptions() {\n return {\n className: 'has-focus',\n mode: 'all',\n }\n },\n\n addProseMirrorPlugins() {\n return [\n new Plugin({\n key: new PluginKey('focus'),\n props: {\n decorations: ({ doc, selection }) => {\n const { isEditable, isFocused } = this.editor\n const { anchor } = selection\n const decorations: Decoration[] = []\n\n if (!isEditable || !isFocused) {\n return DecorationSet.create(doc, [])\n }\n\n // Maximum Levels\n let maxLevels = 0\n\n if (this.options.mode === 'deepest') {\n doc.descendants((node, pos) => {\n if (node.isText) {\n return\n }\n\n const isCurrent = anchor >= pos && anchor <= (pos + node.nodeSize - 1)\n\n if (!isCurrent) {\n return false\n }\n\n maxLevels += 1\n })\n }\n\n // Loop through current\n let currentLevel = 0\n\n doc.descendants((node, pos) => {\n if (node.isText) {\n return false\n }\n\n const isCurrent = anchor >= pos && anchor <= (pos + node.nodeSize - 1)\n\n if (!isCurrent) {\n return false\n }\n\n currentLevel += 1\n\n const outOfScope = (this.options.mode === 'deepest' && maxLevels - currentLevel > 0)\n || (this.options.mode === 'shallowest' && currentLevel > 1)\n\n if (outOfScope) {\n return this.options.mode === 'deepest'\n }\n\n decorations.push(Decoration.node(pos, pos + node.nodeSize, {\n class: this.options.className,\n }))\n })\n\n return DecorationSet.create(doc, decorations)\n },\n },\n }),\n ]\n },\n})\n"],"names":["Extension","Plugin","PluginKey","DecorationSet","Decoration"],"mappings":";;;;;;AASa,QAAA,YAAY,GAAGA,cAAS,CAAC,MAAM,CAAe;EACzD,IAAA,IAAI,EAAE,OAAO;MAEb,UAAU,GAAA;UACR,OAAO;EACL,YAAA,SAAS,EAAE,WAAW;EACtB,YAAA,IAAI,EAAE,KAAK;WACZ,CAAA;OACF;MAED,qBAAqB,GAAA;UACnB,OAAO;EACL,YAAA,IAAIC,uBAAM,CAAC;EACT,gBAAA,GAAG,EAAE,IAAIC,0BAAS,CAAC,OAAO,CAAC;EAC3B,gBAAA,KAAK,EAAE;sBACL,WAAW,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,KAAI;0BAClC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,MAAM,CAAA;EAC7C,wBAAA,MAAM,EAAE,MA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E,oCAAC,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,YAAY,IAAI,YAAY,GAAG,CAAC,CAAC,CAAA;EAE7D,4BAAA,IAAI,UAAU,EAAE;EACd,gCAAA,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,CAAA;EACvC,6BAAA;EAED,4BAAA,WAAW,CAAC,IAAI,CAACC,0BAAU,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE;EACzD,gCAAA,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;EAC9B,6BAAA,CAAC,CAAC,CAAA;EACL,yBAAC,CAAC,CAAA;0BAEF,OAAOD,6BAAa,CAAC,MAAM,CAAC,GAAG,EAAE,WAAW,CAAC,CAAA;uBAC9C;EACF,iBAAA;eACF,CAAC;WACH,CAAA;OACF;EACF,CAAA;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/extension-focus",
3
3
  "description": "focus extension for tiptap",
4
- "version": "2.0.0-beta.20",
4
+ "version": "2.0.0-beta.200",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -21,11 +21,15 @@
21
21
  "dist"
22
22
  ],
23
23
  "peerDependencies": {
24
- "@tiptap/core": "^2.0.0-beta.1"
24
+ "@tiptap/core": "^2.0.0-beta.193"
25
25
  },
26
26
  "dependencies": {
27
- "prosemirror-state": "^1.3.4",
28
- "prosemirror-view": "^1.18.7"
27
+ "prosemirror-state": "^1.4.1",
28
+ "prosemirror-view": "^1.28.2"
29
29
  },
30
- "gitHead": "5b9395ee742838b542dad5182e014a8146b40116"
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/ueberdosis/tiptap",
33
+ "directory": "packages/extension-focus"
34
+ }
31
35
  }
package/src/focus.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Extension } from '@tiptap/core'
2
2
  import { Plugin, PluginKey } from 'prosemirror-state'
3
- import { DecorationSet, Decoration } from 'prosemirror-view'
3
+ import { Decoration, DecorationSet } from 'prosemirror-view'
4
4
 
5
5
  export interface FocusOptions {
6
6
  className: string,
@@ -10,9 +10,11 @@ export interface FocusOptions {
10
10
  export const FocusClasses = Extension.create<FocusOptions>({
11
11
  name: 'focus',
12
12
 
13
- defaultOptions: {
14
- className: 'has-focus',
15
- mode: 'all',
13
+ addOptions() {
14
+ return {
15
+ className: 'has-focus',
16
+ mode: 'all',
17
+ }
16
18
  },
17
19
 
18
20
  addProseMirrorPlugins() {
package/CHANGELOG.md DELETED
@@ -1,284 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [2.0.0-beta.20](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.19...@tiptap/extension-focus@2.0.0-beta.20) (2021-05-27)
7
-
8
- **Note:** Version bump only for package @tiptap/extension-focus
9
-
10
-
11
-
12
-
13
-
14
- # [2.0.0-beta.19](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.18...@tiptap/extension-focus@2.0.0-beta.19) (2021-05-18)
15
-
16
- **Note:** Version bump only for package @tiptap/extension-focus
17
-
18
-
19
-
20
-
21
-
22
- # [2.0.0-beta.18](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.17...@tiptap/extension-focus@2.0.0-beta.18) (2021-05-17)
23
-
24
- **Note:** Version bump only for package @tiptap/extension-focus
25
-
26
-
27
-
28
-
29
-
30
- # [2.0.0-beta.17](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.16...@tiptap/extension-focus@2.0.0-beta.17) (2021-05-13)
31
-
32
- **Note:** Version bump only for package @tiptap/extension-focus
33
-
34
-
35
-
36
-
37
-
38
- # [2.0.0-beta.16](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.15...@tiptap/extension-focus@2.0.0-beta.16) (2021-05-07)
39
-
40
-
41
- ### Bug Fixes
42
-
43
- * revert adding exports ([bc320d0](https://github.com/ueberdosis/tiptap/commit/bc320d0b4b80b0e37a7e47a56e0f6daec6e65d98))
44
-
45
-
46
-
47
-
48
-
49
- # [2.0.0-beta.15](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.14...@tiptap/extension-focus@2.0.0-beta.15) (2021-05-06)
50
-
51
-
52
- ### Bug Fixes
53
-
54
- * revert adding type: module ([f8d6475](https://github.com/ueberdosis/tiptap/commit/f8d6475e2151faea6f96baecdd6bd75880d50d2c))
55
-
56
-
57
-
58
-
59
-
60
- # [2.0.0-beta.14](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.13...@tiptap/extension-focus@2.0.0-beta.14) (2021-05-06)
61
-
62
-
63
- ### Bug Fixes
64
-
65
- * add exports to package.json ([1277fa4](https://github.com/ueberdosis/tiptap/commit/1277fa47151e9c039508cdb219bdd0ffe647f4ee))
66
-
67
-
68
-
69
-
70
-
71
- # [2.0.0-beta.13](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.12...@tiptap/extension-focus@2.0.0-beta.13) (2021-05-06)
72
-
73
- **Note:** Version bump only for package @tiptap/extension-focus
74
-
75
-
76
-
77
-
78
-
79
- # [2.0.0-beta.12](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.11...@tiptap/extension-focus@2.0.0-beta.12) (2021-05-05)
80
-
81
- **Note:** Version bump only for package @tiptap/extension-focus
82
-
83
-
84
-
85
-
86
-
87
- # [2.0.0-beta.11](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.10...@tiptap/extension-focus@2.0.0-beta.11) (2021-05-04)
88
-
89
- **Note:** Version bump only for package @tiptap/extension-focus
90
-
91
-
92
-
93
-
94
-
95
- # [2.0.0-beta.10](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.9...@tiptap/extension-focus@2.0.0-beta.10) (2021-04-23)
96
-
97
- **Note:** Version bump only for package @tiptap/extension-focus
98
-
99
-
100
-
101
-
102
-
103
- # [2.0.0-beta.9](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.8...@tiptap/extension-focus@2.0.0-beta.9) (2021-04-22)
104
-
105
- **Note:** Version bump only for package @tiptap/extension-focus
106
-
107
-
108
-
109
-
110
-
111
- # [2.0.0-beta.8](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.7...@tiptap/extension-focus@2.0.0-beta.8) (2021-04-16)
112
-
113
- **Note:** Version bump only for package @tiptap/extension-focus
114
-
115
-
116
-
117
-
118
-
119
- # [2.0.0-beta.7](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.6...@tiptap/extension-focus@2.0.0-beta.7) (2021-04-15)
120
-
121
- **Note:** Version bump only for package @tiptap/extension-focus
122
-
123
-
124
-
125
-
126
-
127
- # [2.0.0-beta.6](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.5...@tiptap/extension-focus@2.0.0-beta.6) (2021-03-31)
128
-
129
- **Note:** Version bump only for package @tiptap/extension-focus
130
-
131
-
132
-
133
-
134
-
135
- # [2.0.0-beta.5](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.4...@tiptap/extension-focus@2.0.0-beta.5) (2021-03-28)
136
-
137
- **Note:** Version bump only for package @tiptap/extension-focus
138
-
139
-
140
-
141
-
142
-
143
- # [2.0.0-beta.4](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.3...@tiptap/extension-focus@2.0.0-beta.4) (2021-03-25)
144
-
145
- **Note:** Version bump only for package @tiptap/extension-focus
146
-
147
-
148
-
149
-
150
-
151
- # [2.0.0-beta.3](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.2...@tiptap/extension-focus@2.0.0-beta.3) (2021-03-24)
152
-
153
- **Note:** Version bump only for package @tiptap/extension-focus
154
-
155
-
156
-
157
-
158
-
159
- # [2.0.0-beta.2](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-beta.1...@tiptap/extension-focus@2.0.0-beta.2) (2021-03-18)
160
-
161
- **Note:** Version bump only for package @tiptap/extension-focus
162
-
163
-
164
-
165
-
166
-
167
- # [2.0.0-beta.1](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-alpha.12...@tiptap/extension-focus@2.0.0-beta.1) (2021-03-05)
168
-
169
- **Note:** Version bump only for package @tiptap/extension-focus
170
-
171
-
172
-
173
-
174
-
175
- # [2.0.0-alpha.12](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-alpha.11...@tiptap/extension-focus@2.0.0-alpha.12) (2021-02-26)
176
-
177
- **Note:** Version bump only for package @tiptap/extension-focus
178
-
179
-
180
-
181
-
182
-
183
- # [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-alpha.10...@tiptap/extension-focus@2.0.0-alpha.11) (2021-02-16)
184
-
185
- **Note:** Version bump only for package @tiptap/extension-focus
186
-
187
-
188
-
189
-
190
-
191
- # [2.0.0-alpha.10](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-alpha.9...@tiptap/extension-focus@2.0.0-alpha.10) (2021-02-07)
192
-
193
- **Note:** Version bump only for package @tiptap/extension-focus
194
-
195
-
196
-
197
-
198
-
199
- # [2.0.0-alpha.9](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-alpha.8...@tiptap/extension-focus@2.0.0-alpha.9) (2021-02-05)
200
-
201
- **Note:** Version bump only for package @tiptap/extension-focus
202
-
203
-
204
-
205
-
206
-
207
- # [2.0.0-alpha.8](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-alpha.7...@tiptap/extension-focus@2.0.0-alpha.8) (2021-01-29)
208
-
209
- **Note:** Version bump only for package @tiptap/extension-focus
210
-
211
-
212
-
213
-
214
-
215
- # [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-alpha.6...@tiptap/extension-focus@2.0.0-alpha.7) (2021-01-29)
216
-
217
- **Note:** Version bump only for package @tiptap/extension-focus
218
-
219
-
220
-
221
-
222
-
223
- # [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-alpha.5...@tiptap/extension-focus@2.0.0-alpha.6) (2021-01-28)
224
-
225
- **Note:** Version bump only for package @tiptap/extension-focus
226
-
227
-
228
-
229
-
230
-
231
- # [2.0.0-alpha.5](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-alpha.4...@tiptap/extension-focus@2.0.0-alpha.5) (2020-12-18)
232
-
233
- **Note:** Version bump only for package @tiptap/extension-focus
234
-
235
-
236
-
237
-
238
-
239
- # [2.0.0-alpha.4](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-alpha.3...@tiptap/extension-focus@2.0.0-alpha.4) (2020-12-02)
240
-
241
- **Note:** Version bump only for package @tiptap/extension-focus
242
-
243
-
244
-
245
-
246
-
247
- # [2.0.0-alpha.3](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-alpha.2...@tiptap/extension-focus@2.0.0-alpha.3) (2020-11-19)
248
-
249
- **Note:** Version bump only for package @tiptap/extension-focus
250
-
251
-
252
-
253
-
254
-
255
- # [2.0.0-alpha.2](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@2.0.0-alpha.1...@tiptap/extension-focus@2.0.0-alpha.2) (2020-11-19)
256
-
257
- **Note:** Version bump only for package @tiptap/extension-focus
258
-
259
-
260
-
261
-
262
-
263
- # [2.0.0-alpha.1](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@1.0.0-alpha.2...@tiptap/extension-focus@2.0.0-alpha.1) (2020-11-18)
264
-
265
- **Note:** Version bump only for package @tiptap/extension-focus
266
-
267
-
268
-
269
-
270
-
271
- # [1.0.0-alpha.2](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-focus@1.0.0-alpha.1...@tiptap/extension-focus@1.0.0-alpha.2) (2020-11-16)
272
-
273
- **Note:** Version bump only for package @tiptap/extension-focus
274
-
275
-
276
-
277
-
278
-
279
- # 1.0.0-alpha.1 (2020-11-16)
280
-
281
-
282
- ### Reverts
283
-
284
- * Revert "use global namespace" ([0c9ce26](https://github.com/ueberdosis/tiptap/commit/0c9ce26c02c07d88a757c01b0a9d7f9e2b0b7502))
package/LICENSE.md DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2021, überdosis GbR
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.