@panneau/field-html 4.0.8 → 4.0.14

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.
@@ -0,0 +1,25 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Feedback } from '@panneau/core';
3
+
4
+ interface HtmlFieldProps {
5
+ feedback?: Feedback;
6
+ errors?: string | string[] | null;
7
+ value?: string | null;
8
+ placeholder?: string;
9
+ inline?: boolean;
10
+ disabled?: boolean;
11
+ onChange?: ((value: string | null) => void) | null;
12
+ onFocus?: (() => void) | null;
13
+ onBlur?: (() => void) | null;
14
+ ckConfig?: Record<string, unknown>;
15
+ ckOptions?: Record<string, unknown> | null;
16
+ className?: string | null;
17
+ }
18
+ declare function HtmlField({ feedback, errors, value, inline, disabled, onChange, onFocus, onBlur, ckConfig, ckOptions, className, }: HtmlFieldProps): react_jsx_runtime.JSX.Element;
19
+
20
+ declare namespace _default {
21
+ let id: string;
22
+ let component: string;
23
+ }
24
+
25
+ export { HtmlField as default, _default as definition };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/field-html",
3
- "version": "4.0.8",
3
+ "version": "4.0.14",
4
4
  "description": "A HTML field, using either Quill or CK Editor",
5
5
  "keywords": [
6
6
  "javascript"
@@ -34,39 +34,42 @@
34
34
  ],
35
35
  "license": "ISC",
36
36
  "type": "module",
37
- "module": "es/index.js",
37
+ "module": "dist/index.js",
38
+ "types": "dist/index.d.ts",
39
+ "style": "./assets/css/styles.css",
38
40
  "exports": {
39
- ".": "./es/index.js",
41
+ ".": {
42
+ "default": "./dist/index.js",
43
+ "types": "./dist/index.d.ts"
44
+ },
40
45
  "./assets/css/styles": "./assets/css/styles.css",
41
46
  "./assets/css/styles.css": "./assets/css/styles.css"
42
47
  },
43
48
  "files": [
44
- "lib",
45
- "es",
49
+ "dist",
46
50
  "assets"
47
51
  ],
48
52
  "scripts": {
49
53
  "prepublishOnly": "npm run build",
50
- "build": "../../scripts/prepare-package.sh"
54
+ "build": "../../scripts/prepare-package.sh --types"
51
55
  },
52
56
  "devDependencies": {
53
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
54
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
57
+ "react": "^19.0.0",
58
+ "react-dom": "^19.0.0"
55
59
  },
56
60
  "peerDependencies": {
57
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
58
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
61
+ "react": "^19.0.0",
62
+ "react-dom": "^19.0.0"
59
63
  },
60
64
  "dependencies": {
61
65
  "@babel/runtime": "^7.12.5",
62
66
  "@ckeditor/ckeditor5-editor-multi-root": "^47.1.0",
63
67
  "@ckeditor/ckeditor5-react": "^11.0.0",
64
- "@panneau/ckeditor": "^4.0.0",
65
- "@panneau/core": "^4.0.8",
66
- "@panneau/field-input-group": "^4.0.8",
67
- "@panneau/themes": "^4.0.8",
68
- "classnames": "^2.5.1",
69
- "prop-types": "^15.7.2"
68
+ "@panneau/ckeditor": "^4.0.14",
69
+ "@panneau/core": "^4.0.14",
70
+ "@panneau/field-input-group": "^4.0.14",
71
+ "@panneau/themes": "^4.0.14",
72
+ "classnames": "^2.5.1"
70
73
  },
71
74
  "overrides": {
72
75
  "@ckeditor/ckeditor5-editor-multi-root": "^47.1.0"
@@ -74,5 +77,5 @@
74
77
  "publishConfig": {
75
78
  "access": "public"
76
79
  },
77
- "gitHead": "c9fa22382cc63416e2bfaac780f31794b11c8c64"
80
+ "gitHead": "ce35c2ddb30a7be2efe951882d9826dca577f5d4"
78
81
  }
File without changes