@entur-partner/rich-text-editor 6.3.5 → 7.0.0
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 +29 -8
- package/dist/index.d.ts +41 -5
- package/dist/index.js +697 -8
- package/dist/styles.css +6179 -93
- package/package.json +108 -133
- package/dist/ExpandableMultiLanguageRichTextEditor.d.ts +0 -21
- package/dist/ExpandableMultiLanguageRichTextEditor.test.d.ts +0 -1
- package/dist/rich-text-editor.cjs.development.js +0 -884
- package/dist/rich-text-editor.cjs.development.js.map +0 -1
- package/dist/rich-text-editor.cjs.production.min.js +0 -2
- package/dist/rich-text-editor.cjs.production.min.js.map +0 -1
- package/dist/rich-text-editor.esm.js +0 -872
- package/dist/rich-text-editor.esm.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,135 +1,110 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
"moduleNameMapper": {
|
|
111
|
-
"\\.(css|less|sass|scss)$": "identity-obj-proxy"
|
|
112
|
-
},
|
|
113
|
-
"collectCoverageFrom": [
|
|
114
|
-
"<rootDir>/src/**/*.{js,jsx,ts,tsx}"
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
"lint-staged": {
|
|
118
|
-
"*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}": [
|
|
119
|
-
"biome check --files-ignore-unknown=true --no-errors-on-unmatched"
|
|
120
|
-
]
|
|
121
|
-
},
|
|
122
|
-
"resolutions": {
|
|
123
|
-
"ua-parser-js": "^1.0.36",
|
|
124
|
-
"intl-messageformat-parser": "5.5.1",
|
|
125
|
-
"form-data": "^4.0.4"
|
|
126
|
-
},
|
|
127
|
-
"volta": {
|
|
128
|
-
"node": "24.6.0",
|
|
129
|
-
"yarn": "4.9.4"
|
|
130
|
-
},
|
|
131
|
-
"engines": {
|
|
132
|
-
"yarn": "4.9.4"
|
|
133
|
-
},
|
|
134
|
-
"packageManager": "yarn@4.9.4"
|
|
2
|
+
"name": "@entur-partner/rich-text-editor",
|
|
3
|
+
"version": "7.0.0",
|
|
4
|
+
"license": "EUPL-1.2",
|
|
5
|
+
"author": "Entur AS",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/entur/rich-text-editor.git"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"type": "module",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": "./dist/index.js",
|
|
16
|
+
"./package.json": "./package.json",
|
|
17
|
+
"./styles.css": "./dist/styles.css"
|
|
18
|
+
},
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"commit": "cz",
|
|
24
|
+
"build": "tsdown",
|
|
25
|
+
"dev": "tsdown --watch",
|
|
26
|
+
"play": "vite",
|
|
27
|
+
"prepublish-packages": "yarn build",
|
|
28
|
+
"test": "vitest run --browser.headless",
|
|
29
|
+
"test-ui": "vitest --ui",
|
|
30
|
+
"test-ci": "yarn test --coverage --coverage.all --silent",
|
|
31
|
+
"check-all": "yarn typecheck && yarn lint && yarn format:check",
|
|
32
|
+
"lint": "oxlint",
|
|
33
|
+
"lint:fix": "oxlint --fix",
|
|
34
|
+
"format": "oxfmt src playground",
|
|
35
|
+
"format:check": "oxfmt --check src playground",
|
|
36
|
+
"typecheck": "tsgo --noEmit"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@tiptap/core": "3.22.3",
|
|
40
|
+
"@tiptap/extensions": "3.22.3",
|
|
41
|
+
"@tiptap/markdown": "3.22.3",
|
|
42
|
+
"@tiptap/pm": "3.22.3",
|
|
43
|
+
"@tiptap/react": "3.22.3",
|
|
44
|
+
"@tiptap/starter-kit": "3.22.3"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@babel/core": "7.29.0",
|
|
48
|
+
"@commitlint/cli": "20.3.1",
|
|
49
|
+
"@commitlint/config-conventional": "20.5.0",
|
|
50
|
+
"@entur/a11y": "0.2.109",
|
|
51
|
+
"@entur/button": "4.0.5",
|
|
52
|
+
"@entur/dropdown": "8.1.1",
|
|
53
|
+
"@entur/form": "9.3.1",
|
|
54
|
+
"@entur/icons": "8.4.5",
|
|
55
|
+
"@entur/tokens": "3.22.4",
|
|
56
|
+
"@entur/typography": "2.1.6",
|
|
57
|
+
"@rolldown/plugin-babel": "0.2.2",
|
|
58
|
+
"@tsconfig/strictest": "2.0.8",
|
|
59
|
+
"@tsdown/css": "0.21.7",
|
|
60
|
+
"@types/babel__core": "7.20.5",
|
|
61
|
+
"@types/node": "25.6.0",
|
|
62
|
+
"@types/react": "19.2.14",
|
|
63
|
+
"@types/react-dom": "19.2.3",
|
|
64
|
+
"@typescript/native-preview": "7.0.0-dev.20260413.1",
|
|
65
|
+
"@vitejs/plugin-react": "6.0.1",
|
|
66
|
+
"@vitest/browser-playwright": "4.1.4",
|
|
67
|
+
"@vitest/coverage-v8": "4.1.4",
|
|
68
|
+
"@vitest/ui": "4.1.4",
|
|
69
|
+
"babel-plugin-react-compiler": "1.0.0",
|
|
70
|
+
"commitizen": "4.3.1",
|
|
71
|
+
"cz-conventional-changelog": "3.3.0",
|
|
72
|
+
"i18next": "26.0.4",
|
|
73
|
+
"oxfmt": "0.44.0",
|
|
74
|
+
"oxlint": "1.59.0",
|
|
75
|
+
"oxlint-tsgolint": "0.20.0",
|
|
76
|
+
"playwright": "1.59.1",
|
|
77
|
+
"react": "19.2.5",
|
|
78
|
+
"react-dom": "19.2.5",
|
|
79
|
+
"react-i18next": "17.0.2",
|
|
80
|
+
"react-router-dom": "7.14.0",
|
|
81
|
+
"rolldown": "1.0.0-rc.15",
|
|
82
|
+
"tsdown": "0.21.7",
|
|
83
|
+
"typescript": "6.0.2",
|
|
84
|
+
"vite": "8.0.8",
|
|
85
|
+
"vitest": "4.1.4",
|
|
86
|
+
"vitest-browser-react": "2.2.0",
|
|
87
|
+
"vitest-sonar-reporter": "3.0.0"
|
|
88
|
+
},
|
|
89
|
+
"peerDependencies": {
|
|
90
|
+
"@entur/a11y": "^0.2.109",
|
|
91
|
+
"@entur/button": "^4.0.0",
|
|
92
|
+
"@entur/dropdown": "^8.1.0",
|
|
93
|
+
"@entur/expand": "^3.7.0",
|
|
94
|
+
"@entur/form": "^9.3.0",
|
|
95
|
+
"@entur/icons": "^8.4.0",
|
|
96
|
+
"@entur/menu": "^6.1.0",
|
|
97
|
+
"@entur/tokens": "^3.22.0",
|
|
98
|
+
"@entur/typography": "^2.1.0",
|
|
99
|
+
"i18next": "^26.0.0",
|
|
100
|
+
"react": "^19.2.0",
|
|
101
|
+
"react-dom": "^19.2.0",
|
|
102
|
+
"react-i18next": "^17.0.0"
|
|
103
|
+
},
|
|
104
|
+
"config": {
|
|
105
|
+
"commitizen": {
|
|
106
|
+
"path": "cz-conventional-changelog"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"packageManager": "yarn@4.13.0"
|
|
135
110
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { type VariantType } from "@entur/form";
|
|
2
|
-
import { type LanguageKey, type LanguageOption, type MultiLanguageValues } from "@entur-partner/common";
|
|
3
|
-
import React from "react";
|
|
4
|
-
type MultiLanguageInputProps = {
|
|
5
|
-
values: MultiLanguageValues;
|
|
6
|
-
onChange: (values: MultiLanguageValues) => void;
|
|
7
|
-
variant?: (lang: LanguageKey) => VariantType;
|
|
8
|
-
feedback?: (lang: LanguageKey) => string;
|
|
9
|
-
tags?: {
|
|
10
|
-
tag: string;
|
|
11
|
-
delimiter: string;
|
|
12
|
-
label: string;
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
15
|
-
type ExpandableMultiLanguageRichTextEditorProps = MultiLanguageInputProps & {
|
|
16
|
-
name: string;
|
|
17
|
-
title: string;
|
|
18
|
-
languages: LanguageOption[];
|
|
19
|
-
};
|
|
20
|
-
export declare const ExpandableMultiLanguageRichTextEditor: ({ name, title, languages, ...rest }: ExpandableMultiLanguageRichTextEditorProps) => React.JSX.Element;
|
|
21
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@testing-library/jest-dom";
|