@tiptap/extension-text 2.0.0-beta.212 → 2.0.0-beta.214

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/dist/index.cjs CHANGED
@@ -1,13 +1,14 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/text.ts
2
- var _core = require('@tiptap/core');
3
- var Text = _core.Node.create({
4
- name: "text",
5
- group: "inline"
6
- });
1
+ 'use strict';
7
2
 
8
- // src/index.ts
9
- var src_default = Text;
3
+ Object.defineProperty(exports, '__esModule', { value: true });
10
4
 
5
+ var core = require('@tiptap/core');
11
6
 
7
+ const Text = core.Node.create({
8
+ name: 'text',
9
+ group: 'inline',
10
+ });
12
11
 
13
- exports.Text = Text; exports.default = src_default;
12
+ exports.Text = Text;
13
+ exports["default"] = Text;
14
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../src/text.ts"],"sourcesContent":["import { Node } from '@tiptap/core'\n\nexport const Text = Node.create({\n name: 'text',\n group: 'inline',\n})\n"],"names":["Node"],"mappings":";;;;;;AAEa,MAAA,IAAI,GAAGA,SAAI,CAAC,MAAM,CAAC;AAC9B,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,KAAK,EAAE,QAAQ;AAChB,CAAA;;;;;"}
package/dist/index.js CHANGED
@@ -1,13 +1,9 @@
1
- // src/text.ts
2
- import { Node } from "@tiptap/core";
3
- var Text = Node.create({
4
- name: "text",
5
- group: "inline"
1
+ import { Node } from '@tiptap/core';
2
+
3
+ const Text = Node.create({
4
+ name: 'text',
5
+ group: 'inline',
6
6
  });
7
7
 
8
- // src/index.ts
9
- var src_default = Text;
10
- export {
11
- Text,
12
- src_default as default
13
- };
8
+ export { Text, Text as default };
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/text.ts"],"sourcesContent":["import { Node } from '@tiptap/core'\n\nexport const Text = Node.create({\n name: 'text',\n group: 'inline',\n})\n"],"names":[],"mappings":";;AAEa,MAAA,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;AAC9B,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,KAAK,EAAE,QAAQ;AAChB,CAAA;;;;"}
@@ -0,0 +1,18 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tiptap/core')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@tiptap/core'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@tiptap/extension-text"] = {}, global.core));
5
+ })(this, (function (exports, core) { 'use strict';
6
+
7
+ const Text = core.Node.create({
8
+ name: 'text',
9
+ group: 'inline',
10
+ });
11
+
12
+ exports.Text = Text;
13
+ exports["default"] = Text;
14
+
15
+ Object.defineProperty(exports, '__esModule', { value: true });
16
+
17
+ }));
18
+ //# sourceMappingURL=index.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.umd.js","sources":["../src/text.ts"],"sourcesContent":["import { Node } from '@tiptap/core'\n\nexport const Text = Node.create({\n name: 'text',\n group: 'inline',\n})\n"],"names":["Node"],"mappings":";;;;;;AAEa,QAAA,IAAI,GAAGA,SAAI,CAAC,MAAM,CAAC;EAC9B,IAAA,IAAI,EAAE,MAAM;EACZ,IAAA,KAAK,EAAE,QAAQ;EAChB,CAAA;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ import { Text } from './text';
2
+ export * from './text';
3
+ export default Text;
@@ -0,0 +1,2 @@
1
+ import { Node } from '@tiptap/core';
2
+ export declare const Text: Node<any, any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/extension-text",
3
3
  "description": "text extension for tiptap",
4
- "version": "2.0.0-beta.212",
4
+ "version": "2.0.0-beta.214",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -15,14 +15,15 @@
15
15
  "type": "module",
16
16
  "exports": {
17
17
  ".": {
18
- "types": "./dist/index.d.ts",
18
+ "types": "./dist/packages/extension-text/src/index.d.ts",
19
19
  "import": "./dist/index.js",
20
20
  "require": "./dist/index.cjs"
21
21
  }
22
22
  },
23
23
  "main": "dist/index.cjs",
24
24
  "module": "dist/index.js",
25
- "types": "dist/index.d.ts",
25
+ "umd": "dist/index.umd.js",
26
+ "types": "dist/packages/extension-text/src/index.d.ts",
26
27
  "files": [
27
28
  "src",
28
29
  "dist"
@@ -31,7 +32,7 @@
31
32
  "@tiptap/core": "^2.0.0-beta.209"
32
33
  },
33
34
  "devDependencies": {
34
- "@tiptap/core": "^2.0.0-beta.212"
35
+ "@tiptap/core": "^2.0.0-beta.214"
35
36
  },
36
37
  "repository": {
37
38
  "type": "git",
@@ -39,17 +40,7 @@
39
40
  "directory": "packages/extension-text"
40
41
  },
41
42
  "scripts": {
42
- "build": "tsup"
43
- },
44
- "tsup": {
45
- "entry": [
46
- "src/index.ts"
47
- ],
48
- "dts": true,
49
- "splitting": true,
50
- "format": [
51
- "esm",
52
- "cjs"
53
- ]
43
+ "clean": "rm -rf dist",
44
+ "build": "npm run clean && rollup -c"
54
45
  }
55
46
  }
package/dist/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
-
3
- declare const Text: Node<any, any>;
4
-
5
- export { Text, Text as default };