zs_library 0.3.9 → 0.3.11
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.es.js +5 -4
- package/dist/index.umd.js +1 -1
- package/package.json +109 -107
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
var Ar = Object.defineProperty;
|
|
2
2
|
var Br = (d, r, i) => r in d ? Ar(d, r, { enumerable: !0, configurable: !0, writable: !0, value: i }) : d[r] = i;
|
|
3
3
|
var Oe = (d, r, i) => Br(d, typeof r != "symbol" ? r + "" : r, i);
|
|
4
|
+
import "./style.css";
|
|
4
5
|
import nr, { createContext as ar, useMemo as Ee, useContext as ir, useState as oe, useRef as Be, useEffect as ye } from "react";
|
|
5
6
|
import { cx as U, css as u } from "@emotion/css";
|
|
6
7
|
import Lr from "react-slick";
|
|
@@ -2026,7 +2027,7 @@ const mr = ar({
|
|
|
2026
2027
|
}
|
|
2027
2028
|
)
|
|
2028
2029
|
] });
|
|
2029
|
-
},
|
|
2030
|
+
}, ro = (d) => {
|
|
2030
2031
|
const {
|
|
2031
2032
|
list: r,
|
|
2032
2033
|
onChange: i,
|
|
@@ -2187,7 +2188,7 @@ function Ft(d) {
|
|
|
2187
2188
|
r.getMdastNode().name
|
|
2188
2189
|
);
|
|
2189
2190
|
}
|
|
2190
|
-
const
|
|
2191
|
+
const to = (d) => {
|
|
2191
2192
|
const { value: r, onChange: i, translation: a, pluginConfig: g, ...l } = d, {
|
|
2192
2193
|
image: y,
|
|
2193
2194
|
diffSource: b = {
|
|
@@ -2314,6 +2315,6 @@ const ro = (d) => {
|
|
|
2314
2315
|
);
|
|
2315
2316
|
};
|
|
2316
2317
|
export {
|
|
2317
|
-
|
|
2318
|
-
|
|
2318
|
+
ro as Desktop,
|
|
2319
|
+
to as MdEditor
|
|
2319
2320
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Y,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react"),require("@emotion/css"),require("react-slick"),require("react-sortablejs"),require("framer-motion"),require("ahooks"),require("uuid"),require("rc-tooltip"),require("@remixicon/react"),require("rc-dialog"),require("react-json-view"),require("@mdxeditor/editor")):typeof define=="function"&&define.amd?define(["exports","react","@emotion/css","react-slick","react-sortablejs","framer-motion","ahooks","uuid","rc-tooltip","@remixicon/react","rc-dialog","react-json-view","@mdxeditor/editor"],d):(Y=typeof globalThis<"u"?globalThis:Y||self,d(Y.zs_library={},Y.React,Y.css,Y.Slider,Y.reactSortablejs,Y.framerMotion,Y.ahooks,Y.uuid,Y.RcTooltip,Y.react,Y.Dialog,Y.ReactJson,Y.editor))})(this,function(Y,d,a,dt,Ee,B,Ye,We,ft,ye,ze,mt,g){"use strict";var qt=Object.defineProperty;var er=(Y,d,a)=>d in Y?qt(Y,d,{enumerable:!0,configurable:!0,writable:!0,value:a}):Y[d]=a;var Fe=(Y,d,a)=>er(Y,typeof d!="symbol"?d+"":d,a);var _e={exports:{}},xe={};/**
|
|
1
|
+
(function(Y,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react"),require("@emotion/css"),require("react-slick"),require("react-sortablejs"),require("framer-motion"),require("ahooks"),require("uuid"),require("rc-tooltip"),require("@remixicon/react"),require("rc-dialog"),require("react-json-view"),require("@mdxeditor/editor")):typeof define=="function"&&define.amd?define(["exports","react","@emotion/css","react-slick","react-sortablejs","framer-motion","ahooks","uuid","rc-tooltip","@remixicon/react","rc-dialog","react-json-view","@mdxeditor/editor"],d):(Y=typeof globalThis<"u"?globalThis:Y||self,d(Y.zs_library={},Y.React,Y.css,Y.Slider,Y.reactSortablejs,Y.framerMotion,Y.ahooks,Y.uuid,Y.RcTooltip,Y.react,Y.Dialog,Y.ReactJson,Y.editor))})(this,function(Y,d,a,dt,Ee,B,Ye,We,ft,ye,ze,mt,g){"use strict";var qt=Object.defineProperty;var er=(Y,d,a)=>d in Y?qt(Y,d,{enumerable:!0,configurable:!0,writable:!0,value:a}):Y[d]=a;var Fe=(Y,d,a)=>er(Y,typeof d!="symbol"?d+"":d,a);require("./style.css");var _e={exports:{}},xe={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
package/package.json
CHANGED
|
@@ -1,107 +1,109 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "zs_library",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"homepage": "https://zs-library.vercel.app",
|
|
5
|
-
"bugs": {
|
|
6
|
-
"url": "https://github.com/virzs/zs_library/issues"
|
|
7
|
-
},
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/virzs/zs_library.git"
|
|
11
|
-
},
|
|
12
|
-
"license": "MIT",
|
|
13
|
-
"author": "v",
|
|
14
|
-
"type": "module",
|
|
15
|
-
"exports": {
|
|
16
|
-
".": {
|
|
17
|
-
"import": "./dist/index.js"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"docs:
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"@blocknote/
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"react
|
|
60
|
-
"react-
|
|
61
|
-
"react-
|
|
62
|
-
"react-
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
73
|
-
"@
|
|
74
|
-
"@rspress/plugin-
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@types/
|
|
78
|
-
"@types/react
|
|
79
|
-
"@
|
|
80
|
-
"@
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"eslint
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"rollup
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"vite
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "zs_library",
|
|
3
|
+
"version": "0.3.11",
|
|
4
|
+
"homepage": "https://zs-library.vercel.app",
|
|
5
|
+
"bugs": {
|
|
6
|
+
"url": "https://github.com/virzs/zs_library/issues"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/virzs/zs_library.git"
|
|
11
|
+
},
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": "v",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/index.es.js",
|
|
18
|
+
"require": "./dist/index.umd.js"
|
|
19
|
+
},
|
|
20
|
+
"./style.css": "./dist/style.css"
|
|
21
|
+
},
|
|
22
|
+
"main": "dist/index.umd.js",
|
|
23
|
+
"module": "dist/index.es.js",
|
|
24
|
+
"types": "dist/index.d.ts",
|
|
25
|
+
"directories": {
|
|
26
|
+
"doc": "docs"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsc -b && vite build",
|
|
33
|
+
"dev": "vite",
|
|
34
|
+
"docs:build": "vite build && rspress build",
|
|
35
|
+
"docs:dev": "rspress dev --host 0.0.0.0 --port 4372",
|
|
36
|
+
"docs:preview": "rspress preview",
|
|
37
|
+
"lint": "eslint .",
|
|
38
|
+
"prepare": "husky"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@blocknote/core": "^0.15.6",
|
|
42
|
+
"@blocknote/mantine": "^0.15.6",
|
|
43
|
+
"@blocknote/react": "^0.15.6",
|
|
44
|
+
"@codexteam/ajax": "^4.2.0",
|
|
45
|
+
"@editorjs/dom": "^1.0.0",
|
|
46
|
+
"@editorjs/editorjs": "^2.30.5",
|
|
47
|
+
"@emotion/css": "^11.13.0",
|
|
48
|
+
"@mantine/core": "^7.12.2",
|
|
49
|
+
"@mdxeditor/editor": "^3.11.3",
|
|
50
|
+
"@remixicon/react": "^4.2.0",
|
|
51
|
+
"ahooks": "^3.8.1",
|
|
52
|
+
"editorjs-drag-drop": "^1.1.14",
|
|
53
|
+
"editorjs-undo": "^2.0.28",
|
|
54
|
+
"framer-motion": "^11.5.4",
|
|
55
|
+
"github-markdown-css": "^5.6.1",
|
|
56
|
+
"lint-staged": "^15.2.10",
|
|
57
|
+
"rc-dialog": "^9.6.0",
|
|
58
|
+
"rc-tooltip": "^6.2.0",
|
|
59
|
+
"react": "^18.3.1",
|
|
60
|
+
"react-dom": "^18.3.1",
|
|
61
|
+
"react-json-view": "^1.21.3",
|
|
62
|
+
"react-modal-sheet": "^3.1.0",
|
|
63
|
+
"react-slick": "^0.30.2",
|
|
64
|
+
"react-sortablejs": "^6.1.4",
|
|
65
|
+
"remixicon": "^4.3.0",
|
|
66
|
+
"slick-carousel": "^1.8.1",
|
|
67
|
+
"sortablejs": "^1.15.3",
|
|
68
|
+
"uuid": "^10.0.0"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@commitlint/cli": "^19.5.0",
|
|
72
|
+
"@commitlint/config-conventional": "^19.5.0",
|
|
73
|
+
"@eslint/js": "^9.9.0",
|
|
74
|
+
"@rspress/plugin-playground": "^1.29.0",
|
|
75
|
+
"@rspress/plugin-preview": "^1.30.0",
|
|
76
|
+
"@rspress/plugin-typedoc": "^1.29.0",
|
|
77
|
+
"@types/node": "^22.5.4",
|
|
78
|
+
"@types/react": "^18.3.3",
|
|
79
|
+
"@types/react-dom": "^18.3.0",
|
|
80
|
+
"@types/react-slick": "^0.23.13",
|
|
81
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
82
|
+
"@vitejs/plugin-react-swc": "^3.5.0",
|
|
83
|
+
"eslint": "^9.9.0",
|
|
84
|
+
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
|
|
85
|
+
"eslint-plugin-react-refresh": "^0.4.9",
|
|
86
|
+
"globals": "^15.9.0",
|
|
87
|
+
"husky": "^9.1.6",
|
|
88
|
+
"rollup": "^4.21.2",
|
|
89
|
+
"rollup-plugin-auto-external": "^2.0.0",
|
|
90
|
+
"rollup-plugin-visualizer": "^5.12.0",
|
|
91
|
+
"rspress": "^1.29.0",
|
|
92
|
+
"ts-node": "^10.9.2",
|
|
93
|
+
"typescript": "^5.5.4",
|
|
94
|
+
"typescript-eslint": "^8.0.1",
|
|
95
|
+
"vite": "^5.4.1",
|
|
96
|
+
"vite-plugin-dts": "^4.1.0",
|
|
97
|
+
"vite-plugin-libcss": "^1.1.1"
|
|
98
|
+
},
|
|
99
|
+
"publishConfig": {
|
|
100
|
+
"access": "public"
|
|
101
|
+
},
|
|
102
|
+
"authors": [
|
|
103
|
+
"virs2018@outlook.com"
|
|
104
|
+
],
|
|
105
|
+
"peerDependencies": {
|
|
106
|
+
"react": "^17.0.0 || ^18.0.0",
|
|
107
|
+
"react-dom": "^17.0.0 || ^18.0.0"
|
|
108
|
+
}
|
|
109
|
+
}
|