@mce/gaoding 0.1.4 → 0.2.1

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.js CHANGED
@@ -1,7 +1,9 @@
1
- import { definePlugin as r } from "mce";
2
- const n = r((e) => ({
3
- name: "gaoding"
4
- }));
1
+ import { definePlugin as a } from "mce";
2
+ function o() {
3
+ return a((e) => ({
4
+ name: "gaoding"
5
+ }));
6
+ }
5
7
  function d(e) {
6
8
  const t = e.querySelector('span[data-app="editor-next"]');
7
9
  if (t)
@@ -10,13 +12,13 @@ function d(e) {
10
12
  new Uint8Array(
11
13
  atob(
12
14
  t.getAttribute("data-clipboard")?.replace(/\s+/g, "") ?? ""
13
- ).split("").map((a) => a.charCodeAt(0))
15
+ ).split("").map((r) => r.charCodeAt(0))
14
16
  )
15
17
  )
16
18
  );
17
19
  }
18
20
  export {
19
- n as default,
21
+ o as default,
20
22
  d as parseClipboard,
21
- n as plugin
23
+ o as plugin
22
24
  };
package/dist/plugin.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const plugin: import("mce").Plugin;
1
+ export declare function plugin(): import("mce").Plugin;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mce/gaoding",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "0.2.1",
5
5
  "description": "Plugin for mce",
6
6
  "author": "wxm",
7
7
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  "dist"
46
46
  ],
47
47
  "devDependencies": {
48
- "mce": "0.1.4"
48
+ "mce": "0.2.1"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "mce": "^0"