@panneau/display-text-description 4.0.7 → 4.0.11

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/display-text-description",
3
- "version": "4.0.7",
3
+ "version": "4.0.11",
4
4
  "description": "Text with description in list",
5
5
  "keywords": [
6
6
  "javascript"
@@ -27,30 +27,37 @@
27
27
  "license": "ISC",
28
28
  "type": "module",
29
29
  "module": "es/index.js",
30
+ "types": "types/index.d.ts",
30
31
  "exports": {
31
- ".": "./es/index.js"
32
+ ".": {
33
+ "import": {
34
+ "default": "./es/index.js",
35
+ "types": "./types/index.d.ts"
36
+ }
37
+ }
32
38
  },
33
39
  "files": [
34
40
  "lib",
35
41
  "es",
36
- "assets"
42
+ "assets",
43
+ "types"
37
44
  ],
38
45
  "scripts": {
39
46
  "prepublishOnly": "npm run build",
40
- "build": "../../scripts/prepare-package.sh"
47
+ "build": "../../scripts/prepare-package.sh --types"
41
48
  },
42
49
  "devDependencies": {
43
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
44
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
50
+ "react": "^19.0.0",
51
+ "react-dom": "^19.0.0"
45
52
  },
46
53
  "peerDependencies": {
47
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
48
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
54
+ "react": "^19.0.0",
55
+ "react-dom": "^19.0.0"
49
56
  },
50
57
  "dependencies": {
51
58
  "@babel/runtime": "^7.12.5",
52
- "@panneau/core": "^4.0.7",
53
- "@panneau/themes": "^4.0.7",
59
+ "@panneau/core": "^4.0.11",
60
+ "@panneau/themes": "^4.0.11",
54
61
  "classnames": "^2.5.1",
55
62
  "lodash-es": "^4.17.21",
56
63
  "prop-types": "^15.7.2",
@@ -59,5 +66,5 @@
59
66
  "publishConfig": {
60
67
  "access": "public"
61
68
  },
62
- "gitHead": "8d44fb7aa253ad3ef23c1aca2e7f1a4884c357a6"
69
+ "gitHead": "fe8264ed2815da0b5a40339dec99999c6fe70751"
63
70
  }
@@ -0,0 +1,15 @@
1
+ import { type ReactNode } from 'react';
2
+ interface TextDescriptionProps {
3
+ value?: string | Record<string, unknown> | null;
4
+ placeholder?: ReactNode | null;
5
+ item?: {
6
+ id: string | number;
7
+ } | null;
8
+ descriptionPath?: string | null;
9
+ descriptionValues?: Record<string, unknown> | null;
10
+ locale?: string | null;
11
+ selected?: boolean;
12
+ className?: string | null;
13
+ }
14
+ declare function TextDescription({ value: initialValue, placeholder, locale: parentLocale, item, descriptionPath, descriptionValues, selected, className, }: TextDescriptionProps): import("react/jsx-runtime").JSX.Element;
15
+ export default TextDescription;
@@ -0,0 +1,2 @@
1
+ export default TextDescription;
2
+ import TextDescription from './TextDescription';