@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/package.json CHANGED
@@ -1,135 +1,110 @@
1
1
  {
2
- "name": "@entur-partner/rich-text-editor",
3
- "version": "6.3.5",
4
- "author": "Entur AS",
5
- "license": "EUPL-1.2",
6
- "main": "dist/index.js",
7
- "module": "dist/rich-text-editor.esm.js",
8
- "typings": "dist/index.d.ts",
9
- "files": [
10
- "dist"
11
- ],
12
- "repository": {
13
- "type": "git",
14
- "url": "https://github.com/entur/rich-text-editor.git"
15
- },
16
- "publishConfig": {
17
- "access": "public"
18
- },
19
- "scripts": {
20
- "commit": "cz",
21
- "build": "dts build",
22
- "prepublish-packages": "yarn build",
23
- "test": "dts test --env=jsdom --passWithNoTests",
24
- "check-all": "yarn type-check && yarn biome check",
25
- "lint-check": "biome lint --max-diagnostics=0",
26
- "lint-fix": "biome lint --write",
27
- "format-check": "biome format",
28
- "format": "biome format --write",
29
- "type-check": "tsc"
30
- },
31
- "peerDependencies": {
32
- "@entur-partner/common": ">=10.0.3",
33
- "@entur/button": ">=3.4.1",
34
- "@entur/dropdown": ">=6.1.0",
35
- "@entur/expand": ">=3.7.1",
36
- "@entur/form": ">=8.4.2",
37
- "@entur/icons": ">=8.4.0",
38
- "@entur/menu": ">=5.3.1",
39
- "@entur/tokens": ">=2.0.0",
40
- "@entur/typography": ">=1.9.14",
41
- "classnames": ">=2.5.1",
42
- "i18next": ">=22.0.4",
43
- "react": ">=16.8.0",
44
- "react-dom": ">=16.8.0",
45
- "react-i18next": ">=12.0.0"
46
- },
47
- "dependencies": {
48
- "draft-convert": "^2.1.13",
49
- "draft-js": "^0.11.7",
50
- "markdown-draft-js": "^2.4.0",
51
- "prop-types": "^15.8.1",
52
- "showdown": "^2.1.0"
53
- },
54
- "devDependencies": {
55
- "@babel/core": "7.28.6",
56
- "@babel/plugin-proposal-class-properties": "7.18.6",
57
- "@babel/preset-env": "7.28.6",
58
- "@babel/preset-react": "7.28.5",
59
- "@biomejs/biome": "2.3.13",
60
- "@commitlint/cli": "20.3.1",
61
- "@commitlint/config-conventional": "20.3.1",
62
- "@entur-partner/common": "10.0.3",
63
- "@entur/alert": "0.18.3",
64
- "@entur/button": "3.4.1",
65
- "@entur/dropdown": "6.1.0",
66
- "@entur/expand": "3.7.2",
67
- "@entur/form": "8.4.2",
68
- "@entur/icons": "8.4.1",
69
- "@entur/menu": "6.0.1",
70
- "@entur/modal": "1.8.3",
71
- "@entur/tokens": "3.22.0",
72
- "@entur/tooltip": "5.3.3",
73
- "@entur/typography": "2.1.2",
74
- "@testing-library/dom": "10.4.1",
75
- "@testing-library/jest-dom": "6.9.1",
76
- "@testing-library/react": "16.3.2",
77
- "@types/draft-js": "0.11.20",
78
- "@types/jest": "30.0.0",
79
- "@types/node": "25.0.10",
80
- "@types/react": "19.2.10",
81
- "classnames": "2.5.1",
82
- "commitizen": "4.3.1",
83
- "cz-conventional-changelog": "3.3.0",
84
- "dts-cli": "2.0.5",
85
- "i18next": "25.8.0",
86
- "identity-obj-proxy": "3.0.0",
87
- "jest": "30.2.0",
88
- "jest-environment-jsdom": "30.2.0",
89
- "jest-util": "30.2.0",
90
- "jest-watch-typeahead": "3.0.1",
91
- "lint-staged": "16.2.7",
92
- "react": "19.2.4",
93
- "react-dom": "19.2.4",
94
- "react-i18next": "16.5.3",
95
- "react-router-dom": "7.13.0",
96
- "rollup-plugin-sass": "1.15.3",
97
- "ts-jest": "29.4.6",
98
- "tslib": "2.8.1",
99
- "typescript": "5.9.3"
100
- },
101
- "config": {
102
- "commitizen": {
103
- "path": "cz-conventional-changelog"
104
- }
105
- },
106
- "jest": {
107
- "setupFilesAfterEnv": [
108
- "./jest-setup.js"
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";