@teamias/rex-design 0.0.8 → 0.0.9
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/README.md +65 -65
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -1
- package/dist/components/tiptap-editor/demo/index.d.ts +2 -0
- package/dist/components/tiptap-editor/demo/index.js +22 -0
- package/dist/components/tiptap-editor/index.d.ts +2 -0
- package/dist/components/tiptap-editor/index.js +2 -0
- package/dist/components/tiptap-editor/modules/plugin-image-node/index.d.ts +1 -0
- package/dist/components/tiptap-editor/modules/plugin-image-node/index.js +25 -0
- package/dist/components/tiptap-editor/modules/plugin-link-node/index.d.ts +1 -0
- package/dist/components/tiptap-editor/modules/plugin-link-node/index.js +85 -0
- package/dist/components/tiptap-editor/modules/plugin-variable-node/component.d.ts +3 -0
- package/dist/components/tiptap-editor/modules/plugin-variable-node/component.js +133 -0
- package/dist/components/tiptap-editor/modules/plugin-variable-node/index.d.ts +14 -0
- package/dist/components/tiptap-editor/modules/plugin-variable-node/index.js +84 -0
- package/dist/components/tiptap-editor/styles.d.ts +4 -0
- package/dist/components/tiptap-editor/styles.js +11 -0
- package/dist/components/tiptap-editor/tiptap-editor.d.ts +40 -0
- package/dist/components/tiptap-editor/tiptap-editor.js +529 -0
- package/dist/context/request-fields-container/request-fields-container-context-provider.js +3 -3
- package/dist/index.d.ts +42 -0
- package/dist/locales/en-US.json +60 -39
- package/dist/locales/zh-CN.json +60 -39
- package/package.json +17 -1
package/dist/locales/en-US.json
CHANGED
|
@@ -1,39 +1,60 @@
|
|
|
1
|
-
{
|
|
2
|
-
"rex": {
|
|
3
|
-
"components": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"rex": {
|
|
3
|
+
"components": {
|
|
4
|
+
"tiptap-editor": {
|
|
5
|
+
"undo": "Undo",
|
|
6
|
+
"redo": "Redo",
|
|
7
|
+
"divider": "Divider",
|
|
8
|
+
"font-color": "Font Color",
|
|
9
|
+
"background-color": "Background Color",
|
|
10
|
+
"bold": "Bold",
|
|
11
|
+
"italic": "Italic",
|
|
12
|
+
"strike": "Strike",
|
|
13
|
+
"superscript": "Superscript",
|
|
14
|
+
"subscript": "Subscript",
|
|
15
|
+
"align-left": "Align Left",
|
|
16
|
+
"align-center": "Align Center",
|
|
17
|
+
"align-right": "Align Right",
|
|
18
|
+
"set-link": "Set Link",
|
|
19
|
+
"unset-link": "Unset Link",
|
|
20
|
+
"upload-image": "Upload Image",
|
|
21
|
+
"enter-link-url": "Please enter link URL:",
|
|
22
|
+
"bullet-list": "Ordered list",
|
|
23
|
+
"ordered-list": "Unordered list"
|
|
24
|
+
},
|
|
25
|
+
"base-list-table": {
|
|
26
|
+
"expand-more-data": "There are still {count} pieces of data not displayed",
|
|
27
|
+
"expand-more-data-hide": "Close"
|
|
28
|
+
},
|
|
29
|
+
"base-table": {
|
|
30
|
+
"column-serial-number-title": "Serial number"
|
|
31
|
+
},
|
|
32
|
+
"base-form": {
|
|
33
|
+
"placeholder": {
|
|
34
|
+
"input": "Please enter",
|
|
35
|
+
"select": "Please select",
|
|
36
|
+
"date-range": {
|
|
37
|
+
"start": "Start time",
|
|
38
|
+
"end": "End time"
|
|
39
|
+
},
|
|
40
|
+
"input-number-range": {
|
|
41
|
+
"min": "Minimum value",
|
|
42
|
+
"max": "Maximum value"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"value-type-match-error": "Not matched"
|
|
46
|
+
},
|
|
47
|
+
"action-buttons": {
|
|
48
|
+
"item-label-fallback": "Unconfigured button label",
|
|
49
|
+
"group-label-fallback": "Unconfigured group label"
|
|
50
|
+
},
|
|
51
|
+
"icons": {
|
|
52
|
+
"loader-error": "Icon loading failed",
|
|
53
|
+
"not-found": "Icon not found",
|
|
54
|
+
"type-not-matched": "Icon type not supported"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"context": {},
|
|
58
|
+
"hooks": {}
|
|
59
|
+
}
|
|
60
|
+
}
|
package/dist/locales/zh-CN.json
CHANGED
|
@@ -1,39 +1,60 @@
|
|
|
1
|
-
{
|
|
2
|
-
"rex": {
|
|
3
|
-
"components": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"rex": {
|
|
3
|
+
"components": {
|
|
4
|
+
"tiptap-editor": {
|
|
5
|
+
"undo": "撤回",
|
|
6
|
+
"redo": "恢复",
|
|
7
|
+
"divider": "分割",
|
|
8
|
+
"font-color": "字体颜色",
|
|
9
|
+
"background-color": "背景颜色",
|
|
10
|
+
"bold": "加粗",
|
|
11
|
+
"italic": "斜体",
|
|
12
|
+
"strike": "划线",
|
|
13
|
+
"superscript": "上标",
|
|
14
|
+
"subscript": "下标",
|
|
15
|
+
"align-left": "左对齐",
|
|
16
|
+
"align-center": "居中",
|
|
17
|
+
"align-right": "右对齐",
|
|
18
|
+
"set-link": "设置链接",
|
|
19
|
+
"unset-link": "取消链接",
|
|
20
|
+
"upload-image": "上传图片",
|
|
21
|
+
"enter-link-url": "请输入链接地址:",
|
|
22
|
+
"bullet-list": "有序列表",
|
|
23
|
+
"ordered-list": "无序列表"
|
|
24
|
+
},
|
|
25
|
+
"base-list-table": {
|
|
26
|
+
"expand-more-data-hide": "收起",
|
|
27
|
+
"expand-more-data": "还有{count}条数据未展示"
|
|
28
|
+
},
|
|
29
|
+
"base-table": {
|
|
30
|
+
"column-serial-number-title": "序号"
|
|
31
|
+
},
|
|
32
|
+
"base-form": {
|
|
33
|
+
"placeholder": {
|
|
34
|
+
"input": "请输入",
|
|
35
|
+
"select": "请选择",
|
|
36
|
+
"date-range": {
|
|
37
|
+
"start": "开始时间",
|
|
38
|
+
"end": "结束时间"
|
|
39
|
+
},
|
|
40
|
+
"input-number-range": {
|
|
41
|
+
"min": "最小值",
|
|
42
|
+
"max": "最大值"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"value-type-match-error": "匹配不到"
|
|
46
|
+
},
|
|
47
|
+
"action-buttons": {
|
|
48
|
+
"item-label-fallback": "未配置按钮标签",
|
|
49
|
+
"group-label-fallback": "未配置分组标签"
|
|
50
|
+
},
|
|
51
|
+
"icons": {
|
|
52
|
+
"loader-error": "图标加载失败",
|
|
53
|
+
"not-found": "图标未找到",
|
|
54
|
+
"type-not-matched": "图标类型不支持"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"context": {},
|
|
58
|
+
"hooks": {}
|
|
59
|
+
}
|
|
60
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamias/rex-design",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "A react library developed with dumi",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -51,11 +51,27 @@
|
|
|
51
51
|
"@ant-design/icons": "^6.0.0",
|
|
52
52
|
"@ant-design/pro-components": "^2.8.10",
|
|
53
53
|
"@iconify/react": "^6.0.0",
|
|
54
|
+
"@tiptap/core": "^2.12.0",
|
|
55
|
+
"@tiptap/extension-bullet-list": "2.12.0",
|
|
56
|
+
"@tiptap/extension-color": "^2.12.0",
|
|
57
|
+
"@tiptap/extension-file-handler": "^3.0.7",
|
|
58
|
+
"@tiptap/extension-highlight": "^2.12.0",
|
|
59
|
+
"@tiptap/extension-image": "2.12.0",
|
|
60
|
+
"@tiptap/extension-link": "2.12.0",
|
|
61
|
+
"@tiptap/extension-ordered-list": "2.12.0",
|
|
62
|
+
"@tiptap/extension-subscript": "^2.12.0",
|
|
63
|
+
"@tiptap/extension-superscript": "^2.12.0",
|
|
64
|
+
"@tiptap/extension-text-align": "^2.12.0",
|
|
65
|
+
"@tiptap/extension-text-style": "^2.12.0",
|
|
66
|
+
"@tiptap/pm": "^2.12.0",
|
|
67
|
+
"@tiptap/react": "^2.12.0",
|
|
68
|
+
"@tiptap/starter-kit": "^2.12.0",
|
|
54
69
|
"ahooks": "^3.9.0",
|
|
55
70
|
"antd": "^5.26.7",
|
|
56
71
|
"classnames": "^2.5.1",
|
|
57
72
|
"dayjs": "^1.11.13",
|
|
58
73
|
"lodash": "^4.17.21",
|
|
74
|
+
"prosemirror-state": "^1.4.3",
|
|
59
75
|
"radash": "^12.1.1",
|
|
60
76
|
"rc-virtual-list": "^3.19.1",
|
|
61
77
|
"react-intl": "^7.1.11",
|