@deskhero/dh_ui 2.49.1 → 2.49.8
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 +100 -100
- package/dist/adapters/editorjs/EditorjsTransformer.d.ts +3 -0
- package/dist/adapters/editorjs/EditorjsView.vue.d.ts +72 -0
- package/dist/adapters/tiptap/SimpleTemplate.vue.d.ts +29 -0
- package/dist/adapters/tiptap/TiptapAdapter.d.ts +26 -0
- package/dist/adapters/tiptap/TiptapTransformer.d.ts +3 -0
- package/dist/adapters/tiptap/TiptapView.vue.d.ts +73 -0
- package/dist/adapters/tiptap/components/TextAlignButton.vue.d.ts +12 -0
- package/dist/adapters/tiptap/components/ToolbarGroup.vue.d.ts +17 -0
- package/dist/adapters/tiptap/components/button/ButtonGroup.vue.d.ts +29 -0
- package/dist/adapters/tiptap/components/tiptap-icons/HeadingFiveIcon.vue.d.ts +2 -0
- package/dist/adapters/tiptap/components/tiptap-icons/HeadingSixIcon.vue.d.ts +2 -0
- package/dist/adapters/tiptap/composables/useMenuNavigation.d.ts +18 -0
- package/dist/adapters/tiptap/composables/useScrollDetector.d.ts +8 -0
- package/dist/assets/fonts/Rubik-Bold.ttf +0 -0
- package/dist/assets/fonts/Rubik-Bold.woff2 +0 -0
- package/dist/assets/fonts/Rubik-Medium.ttf +0 -0
- package/dist/assets/fonts/Rubik-Medium.woff2 +0 -0
- package/dist/assets/fonts/Rubik-Regular.ttf +0 -0
- package/dist/assets/fonts/Rubik-Regular.woff2 +0 -0
- package/dist/components/ColorPicker.vue.d.ts +17 -0
- package/dist/components/IconWithText.vue.d.ts +149 -0
- package/dist/components/ImageCropper.vue.d.ts +73 -0
- package/dist/components/InputWithList/DropdownList.vue.d.ts +90 -0
- package/dist/components/InputWithList/MultipleInput.vue.d.ts +87 -0
- package/dist/components/InputWithList/SingleInput.vue.d.ts +48 -0
- package/dist/components/InputWithList/TagItem.vue.d.ts +33 -0
- package/dist/components/InputWithList/configs/input-with-list.config.d.ts +8 -0
- package/dist/components/InputWithList.vue.d.ts +165 -0
- package/dist/components/LineChart.vue.d.ts +9 -0
- package/dist/components/Tags.vue.d.ts +91 -0
- package/dist/components/TextEditor.vue.d.ts +81 -0
- package/dist/components/TextEditorLegacy.vue.d.ts +40 -0
- package/dist/components/VerificationCode.vue.d.ts +45 -0
- package/dist/components/configs/input-with-list.config.d.ts +8 -0
- package/dist/dh_ui.es.js +68747 -0
- package/dist/dh_ui.umd.js +739 -0
- package/dist/factories/EditorFactory.d.ts +19 -0
- package/dist/favicon.ico +0 -0
- package/dist/helpers/inputWithListUtils.d.ts +4 -0
- package/dist/index.d.ts +39 -0
- package/dist/main.d.ts +1 -0
- package/dist/models/EditorJSi18n.model.d.ts +109 -0
- package/dist/models/EditorTransformer.d.ts +5 -0
- package/dist/models/InputList.model.d.ts +4 -0
- package/dist/models/InputWithList.model.d.ts +1 -0
- package/dist/style.css +9 -0
- package/dist/tools/editorCode.d.ts +21 -0
- package/package.json +185 -184
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default class CodeHighlightTool {
|
|
2
|
+
static get toolbox(): {
|
|
3
|
+
title: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
};
|
|
6
|
+
static get enableLineBreaks(): boolean;
|
|
7
|
+
static get isReadOnlySupported(): boolean;
|
|
8
|
+
constructor({ api }: {
|
|
9
|
+
api: any;
|
|
10
|
+
});
|
|
11
|
+
api: any;
|
|
12
|
+
render(): HTMLDivElement;
|
|
13
|
+
codeInput: HTMLTextAreaElement | undefined;
|
|
14
|
+
wrapper: HTMLDivElement | undefined;
|
|
15
|
+
save(): {
|
|
16
|
+
code: string;
|
|
17
|
+
};
|
|
18
|
+
validate(savedData: any): boolean;
|
|
19
|
+
onPaste(event: any): void;
|
|
20
|
+
onKeyUp(): void;
|
|
21
|
+
}
|
package/package.json
CHANGED
|
@@ -1,185 +1,186 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@deskhero/dh_ui",
|
|
3
|
-
"publishConfig": {
|
|
4
|
-
"access": "public",
|
|
5
|
-
"registry": "https://registry.npmjs.org/"
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"@editorjs/
|
|
43
|
-
"@editorjs/
|
|
44
|
-
"@editorjs/
|
|
45
|
-
"@editorjs/
|
|
46
|
-
"@editorjs/
|
|
47
|
-
"@
|
|
48
|
-
"@tiptap/extension-
|
|
49
|
-
"@tiptap/extension-
|
|
50
|
-
"@tiptap/extension-
|
|
51
|
-
"@tiptap/extension-
|
|
52
|
-
"@tiptap/extension-
|
|
53
|
-
"@tiptap/extension-
|
|
54
|
-
"@tiptap/extension-
|
|
55
|
-
"@tiptap/extension-
|
|
56
|
-
"@tiptap/
|
|
57
|
-
"@tiptap/
|
|
58
|
-
"@tiptap/
|
|
59
|
-
"@
|
|
60
|
-
"@
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"vue
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"@
|
|
72
|
-
"@commitlint/
|
|
73
|
-
"@
|
|
74
|
-
"@editorjs/
|
|
75
|
-
"@editorjs/
|
|
76
|
-
"@editorjs/
|
|
77
|
-
"@editorjs/
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
80
|
-
"@semantic-release/
|
|
81
|
-
"@
|
|
82
|
-
"@storybook/addon-
|
|
83
|
-
"@storybook/addon-
|
|
84
|
-
"@storybook/addon-
|
|
85
|
-
"@storybook/addon-
|
|
86
|
-
"@storybook/
|
|
87
|
-
"@storybook/
|
|
88
|
-
"@storybook/
|
|
89
|
-
"@storybook/
|
|
90
|
-
"@storybook/
|
|
91
|
-
"@storybook/vue3
|
|
92
|
-
"@
|
|
93
|
-
"@
|
|
94
|
-
"@
|
|
95
|
-
"@vue/
|
|
96
|
-
"@vue/eslint-config-
|
|
97
|
-
"@vue/
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"editorjs-
|
|
104
|
-
"editorjs-
|
|
105
|
-
"
|
|
106
|
-
"eslint
|
|
107
|
-
"eslint-
|
|
108
|
-
"eslint-plugin-
|
|
109
|
-
"eslint-plugin-
|
|
110
|
-
"eslint-plugin-
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"react
|
|
117
|
-
"
|
|
118
|
-
"sass
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"vue-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
"
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
"
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
"@semantic-release/
|
|
173
|
-
"@semantic-release/
|
|
174
|
-
"@semantic-release/
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@deskhero/dh_ui",
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public",
|
|
5
|
+
"registry": "https://registry.npmjs.org/",
|
|
6
|
+
"provenance": false
|
|
7
|
+
},
|
|
8
|
+
"version": "2.49.8",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"main": "dist/dh_ui.umd.js",
|
|
13
|
+
"module": "dist/dh_ui.es.js",
|
|
14
|
+
"types": "dist/src/index.d.ts",
|
|
15
|
+
"declaration": true,
|
|
16
|
+
"declarationDir": "./models",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"import": "./dist/dh_ui.es.js",
|
|
20
|
+
"require": "./dist/dh_ui.umd.js"
|
|
21
|
+
},
|
|
22
|
+
"./dist/style.css": "./dist/style.css"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/deskhero/dh-ui.git"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"dev": "vite",
|
|
30
|
+
"commit": "cz",
|
|
31
|
+
"build": "run-p type-check build-only",
|
|
32
|
+
"preview": "vite preview --port 4173",
|
|
33
|
+
"build-only": "vite build",
|
|
34
|
+
"type-check": "vue-tsc",
|
|
35
|
+
"storybook": "storybook dev -p 6006",
|
|
36
|
+
"build-storybook": "storybook build",
|
|
37
|
+
"chromatic": "npx chromatic --project-token=9b1dd74e6816",
|
|
38
|
+
"lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src --max-warnings=0",
|
|
39
|
+
"format": "prettier . --write"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@editorjs/editorjs": "^2.28.2",
|
|
43
|
+
"@editorjs/header": "^2.7.0",
|
|
44
|
+
"@editorjs/nested-list": "^1.3.0",
|
|
45
|
+
"@editorjs/paragraph": "^2.11.3",
|
|
46
|
+
"@editorjs/table": "^2.3.0",
|
|
47
|
+
"@editorjs/underline": "^1.1.0",
|
|
48
|
+
"@tiptap/extension-file-handler": "^3.6.7",
|
|
49
|
+
"@tiptap/extension-highlight": "^3.6.2",
|
|
50
|
+
"@tiptap/extension-image": "^3.6.5",
|
|
51
|
+
"@tiptap/extension-list": "^3.5.0",
|
|
52
|
+
"@tiptap/extension-placeholder": "^3.7.2",
|
|
53
|
+
"@tiptap/extension-subscript": "^3.5.1",
|
|
54
|
+
"@tiptap/extension-superscript": "^3.5.1",
|
|
55
|
+
"@tiptap/extension-table": "^3.6.5",
|
|
56
|
+
"@tiptap/extension-text-align": "^3.6.3",
|
|
57
|
+
"@tiptap/pm": "^3.3.1",
|
|
58
|
+
"@tiptap/starter-kit": "^3.3.1",
|
|
59
|
+
"@tiptap/vue-3": "^3.3.1",
|
|
60
|
+
"@vueform/multiselect": "^2.6.2",
|
|
61
|
+
"@vuepic/vue-datepicker": "^3.5.2",
|
|
62
|
+
"cropperjs": "^1.6.1",
|
|
63
|
+
"editorjs-color-picker": "^1.0.7",
|
|
64
|
+
"multi-range-slider-vue": "^1.1.4",
|
|
65
|
+
"tiptap-extension-resize-image": "^1.3.2",
|
|
66
|
+
"vue": "^3.3.4",
|
|
67
|
+
"vue-chartjs": "^5.3.1",
|
|
68
|
+
"vue3-colorpicker": "^2.3.0"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@babel/core": "^7.21.4",
|
|
72
|
+
"@commitlint/cli": "^17.1.2",
|
|
73
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
74
|
+
"@editorjs/checklist": "^1.4.0",
|
|
75
|
+
"@editorjs/code": "^2.8.0",
|
|
76
|
+
"@editorjs/delimiter": "^1.3.0",
|
|
77
|
+
"@editorjs/inline-code": "^1.4.0",
|
|
78
|
+
"@editorjs/marker": "^1.3.0",
|
|
79
|
+
"@rushstack/eslint-patch": "^1.1.0",
|
|
80
|
+
"@semantic-release/changelog": "^6.0.1",
|
|
81
|
+
"@semantic-release/git": "^10.0.1",
|
|
82
|
+
"@storybook/addon-actions": "^7.5.1",
|
|
83
|
+
"@storybook/addon-essentials": "^7.5.1",
|
|
84
|
+
"@storybook/addon-interactions": "^7.5.1",
|
|
85
|
+
"@storybook/addon-links": "^7.5.1",
|
|
86
|
+
"@storybook/addon-mdx-gfm": "^7.5.1",
|
|
87
|
+
"@storybook/addons": "^7.5.1",
|
|
88
|
+
"@storybook/preset-scss": "^1.0.3",
|
|
89
|
+
"@storybook/testing-library": "^0.2.2",
|
|
90
|
+
"@storybook/theming": "^7.5.1",
|
|
91
|
+
"@storybook/vue3": "^7.5.1",
|
|
92
|
+
"@storybook/vue3-vite": "^7.5.1",
|
|
93
|
+
"@types/node": "^16.11.36",
|
|
94
|
+
"@vitejs/plugin-vue": "^4.1.0",
|
|
95
|
+
"@vue/compiler-sfc": "^3.2.45",
|
|
96
|
+
"@vue/eslint-config-prettier": "^7.0.0",
|
|
97
|
+
"@vue/eslint-config-typescript": "^10.0.0",
|
|
98
|
+
"@vue/tsconfig": "^0.1.3",
|
|
99
|
+
"babel-loader": "^8.2.5",
|
|
100
|
+
"chromatic": "^6.24.1",
|
|
101
|
+
"css-loader": "^6.7.1",
|
|
102
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
103
|
+
"editorjs-drag-drop": "^1.1.16",
|
|
104
|
+
"editorjs-strikethrough": "^1.0.0",
|
|
105
|
+
"editorjs-undo": "^2.0.27",
|
|
106
|
+
"eslint": "^8.17.0",
|
|
107
|
+
"eslint-config-prettier": "^8.5.0",
|
|
108
|
+
"eslint-plugin-cypress": "^2.12.1",
|
|
109
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
110
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
111
|
+
"eslint-plugin-vue": "^8.7.1",
|
|
112
|
+
"html-webpack-plugin": "^5.5.0",
|
|
113
|
+
"husky": "^8.0.1",
|
|
114
|
+
"npm-run-all": "^4.1.5",
|
|
115
|
+
"prettier": "^2.5.1",
|
|
116
|
+
"react": "^18.2.0",
|
|
117
|
+
"react-dom": "^18.2.0",
|
|
118
|
+
"sass": "^1.53.0",
|
|
119
|
+
"sass-loader": "^13.0.2",
|
|
120
|
+
"semantic-release": "^23.0.8",
|
|
121
|
+
"storybook": "^7.5.1",
|
|
122
|
+
"style-loader": "^3.3.1",
|
|
123
|
+
"typescript": "^5.0.4",
|
|
124
|
+
"vite": "^4.4.2",
|
|
125
|
+
"vue-loader": "^16.8.3",
|
|
126
|
+
"vue-tsc": "^1.2.0"
|
|
127
|
+
},
|
|
128
|
+
"engines": {
|
|
129
|
+
"node": ">=20.11.1",
|
|
130
|
+
"npm": ">=10.2.4"
|
|
131
|
+
},
|
|
132
|
+
"config": {
|
|
133
|
+
"commitizen": {
|
|
134
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"resolutions": {
|
|
138
|
+
"webpack": "5.66.0"
|
|
139
|
+
},
|
|
140
|
+
"release": {
|
|
141
|
+
"plugins": [
|
|
142
|
+
[
|
|
143
|
+
"@semantic-release/commit-analyzer",
|
|
144
|
+
{
|
|
145
|
+
"preset": "angular",
|
|
146
|
+
"releaseRules": [
|
|
147
|
+
{
|
|
148
|
+
"type": "docs",
|
|
149
|
+
"scope": "README",
|
|
150
|
+
"release": "patch"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"type": "refactor",
|
|
154
|
+
"scope": "core-*",
|
|
155
|
+
"release": "minor"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"type": "feat",
|
|
159
|
+
"release": "minor"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"type": "fix",
|
|
163
|
+
"release": "patch"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"type": "perf",
|
|
167
|
+
"release": "patch"
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"@semantic-release/release-notes-generator",
|
|
173
|
+
"@semantic-release/npm",
|
|
174
|
+
"@semantic-release/changelog",
|
|
175
|
+
"@semantic-release/git"
|
|
176
|
+
],
|
|
177
|
+
"branches": [
|
|
178
|
+
"master"
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
"lint-staged": {
|
|
182
|
+
"src/**/*.{vue,ts}": [
|
|
183
|
+
"prettier --write"
|
|
184
|
+
]
|
|
185
|
+
}
|
|
185
186
|
}
|