@lexical/overflow 0.14.5 → 0.16.0

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,7 +3,9 @@
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
+ *
6
7
  */
8
+
7
9
  'use strict';
8
10
 
9
11
  var lexical = require('lexical');
@@ -15,6 +17,7 @@ var lexical = require('lexical');
15
17
  * LICENSE file in the root directory of this source tree.
16
18
  *
17
19
  */
20
+
18
21
  /** @noInheritDoc */
19
22
  class OverflowNode extends lexical.ElementNode {
20
23
  static getType() {
@@ -3,7 +3,9 @@
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
+ *
6
7
  */
8
+
7
9
  import { ElementNode, $applyNodeReplacement } from 'lexical';
8
10
 
9
11
  /**
@@ -13,6 +15,7 @@ import { ElementNode, $applyNodeReplacement } from 'lexical';
13
15
  * LICENSE file in the root directory of this source tree.
14
16
  *
15
17
  */
18
+
16
19
  /** @noInheritDoc */
17
20
  class OverflowNode extends ElementNode {
18
21
  static getType() {
@@ -3,7 +3,9 @@
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
+ *
6
7
  */
8
+
7
9
  'use strict'
8
10
  const LexicalOverflow = process.env.NODE_ENV === 'development' ? require('./LexicalOverflow.dev.js') : require('./LexicalOverflow.prod.js');
9
11
  module.exports = LexicalOverflow;
@@ -3,7 +3,9 @@
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
+ *
6
7
  */
8
+
7
9
  import * as modDev from './LexicalOverflow.dev.mjs';
8
10
  import * as modProd from './LexicalOverflow.prod.mjs';
9
11
  const mod = process.env.NODE_ENV === 'development' ? modDev : modProd;
@@ -3,7 +3,9 @@
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
+ *
6
7
  */
8
+
7
9
  const mod = await (process.env.NODE_ENV === 'development' ? import('./LexicalOverflow.dev.mjs') : import('./LexicalOverflow.prod.mjs'));
8
10
  export const $createOverflowNode = mod.$createOverflowNode;
9
11
  export const $isOverflowNode = mod.$isOverflowNode;
@@ -3,7 +3,9 @@
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
+ *
6
7
  */
8
+
7
9
  'use strict';var b=require("lexical");
8
10
  class d extends b.ElementNode{static getType(){return"overflow"}static clone(a){return new d(a.__key)}static importJSON(){return e()}static importDOM(){return null}constructor(a){super(a);this.__type="overflow"}exportJSON(){return{...super.exportJSON(),type:"overflow"}}createDOM(a){let c=document.createElement("span");a=a.theme.characterLimit;"string"===typeof a&&(c.className=a);return c}updateDOM(){return!1}insertNewAfter(a,c=!0){return this.getParentOrThrow().insertNewAfter(a,c)}excludeFromCopy(){return!0}}
9
11
  function e(){return b.$applyNodeReplacement(new d)}exports.$createOverflowNode=e;exports.$isOverflowNode=function(a){return a instanceof d};exports.OverflowNode=d
@@ -3,5 +3,7 @@
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
+ *
6
7
  */
8
+
7
9
  import{ElementNode as e,$applyNodeReplacement as t}from"lexical";class r extends e{static getType(){return"overflow"}static clone(e){return new r(e.__key)}static importJSON(e){return n()}static importDOM(){return null}constructor(e){super(e),this.__type="overflow"}exportJSON(){return{...super.exportJSON(),type:"overflow"}}createDOM(e){const t=document.createElement("span"),r=e.theme.characterLimit;return"string"==typeof r&&(t.className=r),t}updateDOM(e,t){return!1}insertNewAfter(e,t=!0){return this.getParentOrThrow().insertNewAfter(e,t)}excludeFromCopy(){return!0}}function n(){return t(new r)}function o(e){return e instanceof r}export{n as $createOverflowNode,o as $isOverflowNode,r as OverflowNode};
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "overflow"
9
9
  ],
10
10
  "license": "MIT",
11
- "version": "0.14.5",
11
+ "version": "0.16.0",
12
12
  "main": "LexicalOverflow.js",
13
13
  "types": "index.d.ts",
14
14
  "repository": {
@@ -36,6 +36,6 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "lexical": "0.14.5"
39
+ "lexical": "0.16.0"
40
40
  }
41
41
  }