@zipify/wysiwyg 1.0.0-dev.64 → 1.0.0-dev.65

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.
@@ -1,16 +1,5 @@
1
1
  import { Extension } from '@tiptap/vue-2';
2
2
  import { createCommand } from '../../utils';
3
- import {
4
- emDash,
5
- registeredTrademark,
6
- trademark,
7
- ellipsis,
8
- openDoubleQuote,
9
- openSingleQuote,
10
- closeDoubleQuote,
11
- closeSingleQuote,
12
- copyright
13
- } from './inputRules';
14
3
 
15
4
  export const TextProcessor = Extension.create({
16
5
  name: 'text_processor',
@@ -51,17 +40,5 @@ export const TextProcessor = Extension.create({
51
40
  });
52
41
  })
53
42
  };
54
- },
55
-
56
- addInputRules: () => [
57
- emDash,
58
- registeredTrademark,
59
- trademark,
60
- ellipsis,
61
- openDoubleQuote,
62
- openSingleQuote,
63
- closeDoubleQuote,
64
- closeSingleQuote,
65
- copyright
66
- ]
43
+ }
67
44
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zipify/wysiwyg",
3
- "version": "1.0.0-dev.64",
3
+ "version": "1.0.0-dev.65",
4
4
  "description": "Zipify modification of TipTap text editor",
5
5
  "main": "dist/wysiwyg.mjs",
6
6
  "repository": {
@@ -1,6 +0,0 @@
1
- import { textInputRule } from '@tiptap/core';
2
-
3
- export const closeDoubleQuote = textInputRule({
4
- find: /"/,
5
- replace: '”'
6
- });
@@ -1,6 +0,0 @@
1
- import { textInputRule } from '@tiptap/core';
2
-
3
- export const closeSingleQuote = textInputRule({
4
- find: /'/,
5
- replace: '’'
6
- });
@@ -1,6 +0,0 @@
1
- import { textInputRule } from '@tiptap/core';
2
-
3
- export const copyright = textInputRule({
4
- find: /\(c\)/i,
5
- replace: '©'
6
- });
@@ -1,6 +0,0 @@
1
- import { textInputRule } from '@tiptap/core';
2
-
3
- export const ellipsis = textInputRule({
4
- find: /\.\.\./,
5
- replace: '…'
6
- });
@@ -1,6 +0,0 @@
1
- import { textInputRule } from '@tiptap/core';
2
-
3
- export const emDash = textInputRule({
4
- find: /--/,
5
- replace: '—'
6
- });
@@ -1,9 +0,0 @@
1
- export { closeDoubleQuote } from './closeDoubleQuote';
2
- export { closeSingleQuote } from './closeSingleQuote';
3
- export { copyright } from './copyright';
4
- export { ellipsis } from './ellipsis';
5
- export { emDash } from './emDash';
6
- export { openDoubleQuote } from './openDoubleQuote';
7
- export { openSingleQuote } from './openSingleQuote';
8
- export { registeredTrademark } from './registeredTrademark';
9
- export { trademark } from './trademark';
@@ -1,6 +0,0 @@
1
- import { textInputRule } from '@tiptap/core';
2
-
3
- export const openDoubleQuote = textInputRule({
4
- find: /(?:^|[\s{[(<'"\u2018\u201C])(")/,
5
- replace: '“'
6
- });
@@ -1,6 +0,0 @@
1
- import { textInputRule } from '@tiptap/core';
2
-
3
- export const openSingleQuote = textInputRule({
4
- find: /(?:^|[\s{[(<'"\u2018\u201C])(')/,
5
- replace: '‘'
6
- });
@@ -1,6 +0,0 @@
1
- import { textInputRule } from '@tiptap/core';
2
-
3
- export const registeredTrademark = textInputRule({
4
- find: /\(r\)/i,
5
- replace: '®'
6
- });
@@ -1,6 +0,0 @@
1
- import { textInputRule } from '@tiptap/core';
2
-
3
- export const trademark = textInputRule({
4
- find: /\(tm\)/i,
5
- replace: '™'
6
- });