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 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
- }, eo = (d) => {
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 ro = (d) => {
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
- eo as Desktop,
2318
- ro as MdEditor
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.9",
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
- "main": "dist/index.umd.js",
21
- "module": "dist/index.es.js",
22
- "types": "dist/index.d.ts",
23
- "directories": {
24
- "doc": "docs"
25
- },
26
- "files": [
27
- "dist"
28
- ],
29
- "scripts": {
30
- "build": "tsc -b && vite build",
31
- "dev": "vite",
32
- "docs:build": "vite build && rspress build",
33
- "docs:dev": "rspress dev --host 0.0.0.0 --port 4372",
34
- "docs:preview": "rspress preview",
35
- "lint": "eslint .",
36
- "prepare": "husky"
37
- },
38
- "dependencies": {
39
- "@blocknote/core": "^0.15.6",
40
- "@blocknote/mantine": "^0.15.6",
41
- "@blocknote/react": "^0.15.6",
42
- "@codexteam/ajax": "^4.2.0",
43
- "@editorjs/dom": "^1.0.0",
44
- "@editorjs/editorjs": "^2.30.5",
45
- "@emotion/css": "^11.13.0",
46
- "@mantine/core": "^7.12.2",
47
- "@mdxeditor/editor": "^3.11.3",
48
- "@remixicon/react": "^4.2.0",
49
- "ahooks": "^3.8.1",
50
- "editorjs-drag-drop": "^1.1.14",
51
- "editorjs-undo": "^2.0.28",
52
- "framer-motion": "^11.5.4",
53
- "github-markdown-css": "^5.6.1",
54
- "lint-staged": "^15.2.10",
55
- "rc-dialog": "^9.6.0",
56
- "rc-tooltip": "^6.2.0",
57
- "react": "^18.3.1",
58
- "react-dom": "^18.3.1",
59
- "react-json-view": "^1.21.3",
60
- "react-modal-sheet": "^3.1.0",
61
- "react-slick": "^0.30.2",
62
- "react-sortablejs": "^6.1.4",
63
- "remixicon": "^4.3.0",
64
- "slick-carousel": "^1.8.1",
65
- "sortablejs": "^1.15.3",
66
- "uuid": "^10.0.0"
67
- },
68
- "devDependencies": {
69
- "@commitlint/cli": "^19.5.0",
70
- "@commitlint/config-conventional": "^19.5.0",
71
- "@eslint/js": "^9.9.0",
72
- "@rspress/plugin-playground": "^1.29.0",
73
- "@rspress/plugin-preview": "^1.30.0",
74
- "@rspress/plugin-typedoc": "^1.29.0",
75
- "@types/node": "^22.5.4",
76
- "@types/react": "^18.3.3",
77
- "@types/react-dom": "^18.3.0",
78
- "@types/react-slick": "^0.23.13",
79
- "@vitejs/plugin-react": "^4.3.1",
80
- "@vitejs/plugin-react-swc": "^3.5.0",
81
- "eslint": "^9.9.0",
82
- "eslint-plugin-react-hooks": "^5.1.0-rc.0",
83
- "eslint-plugin-react-refresh": "^0.4.9",
84
- "globals": "^15.9.0",
85
- "husky": "^9.1.6",
86
- "rollup": "^4.21.2",
87
- "rollup-plugin-auto-external": "^2.0.0",
88
- "rollup-plugin-visualizer": "^5.12.0",
89
- "rspress": "^1.29.0",
90
- "ts-node": "^10.9.2",
91
- "typescript": "^5.5.4",
92
- "typescript-eslint": "^8.0.1",
93
- "vite": "^5.4.1",
94
- "vite-plugin-dts": "^4.1.0",
95
- "vite-plugin-libcss": "^1.1.1"
96
- },
97
- "publishConfig": {
98
- "access": "public"
99
- },
100
- "authors": [
101
- "virs2018@outlook.com"
102
- ],
103
- "peerDependencies": {
104
- "react": "^17.0.0 || ^18.0.0",
105
- "react-dom": "^17.0.0 || ^18.0.0"
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
+ }