@panneau/field-resource-item 4.0.55 → 4.0.58

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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { Item, FormError, Message } from '@panneau/core';
3
3
 
4
4
  interface ResourceItemFieldProps {
@@ -36,7 +36,7 @@ interface ResourceItemFieldProps {
36
36
  inputClassName?: string | null;
37
37
  onChange?: ((value: Item | Item[] | null) => void) | null;
38
38
  }
39
- declare function ResourceItemField({ name, value, errors, resource: resourceId, resourceType, paginated, query: initialQuery, requestQuery: initialRequestQuery, page: initialPage, count: initialCount, options: initialOptions, searchParamName, getItemLabel: initialGetItemLabel, getItemDescription, getItemImage, itemLabelPath, itemDescriptionPath, itemImagePath, itemLabelWithId, placeholder, canCreate, canEdit, canFind, withoutModal, withoutSelect, createButtonLabel, editButtonLabel, findButtonLabel, multiple, disabled, className, inputClassName, onChange, }: ResourceItemFieldProps): react_jsx_runtime.JSX.Element;
39
+ declare function ResourceItemField({ name, value, errors, resource: resourceId, resourceType, paginated, query: initialQuery, requestQuery: initialRequestQuery, page: initialPage, count: initialCount, options: initialOptions, searchParamName, getItemLabel: initialGetItemLabel, getItemDescription, getItemImage, itemLabelPath, itemDescriptionPath, itemImagePath, itemLabelWithId, placeholder, canCreate, canEdit, canFind, withoutModal, withoutSelect, createButtonLabel, editButtonLabel, findButtonLabel, multiple, disabled, className, inputClassName, onChange, }: ResourceItemFieldProps): react.JSX.Element;
40
40
 
41
41
  declare namespace _default {
42
42
  let id: string;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import classNames from 'classnames';
2
- import isArray from 'lodash/isArray';
3
- import isEmpty from 'lodash/isEmpty';
4
- import uniqBy from 'lodash/uniqBy';
2
+ import isArray from 'lodash-es/isArray';
3
+ import isEmpty from 'lodash-es/isEmpty';
4
+ import uniqBy from 'lodash-es/uniqBy';
5
5
  import { useMemo, useState, useCallback, useEffect } from 'react';
6
6
  import { useIntl, FormattedMessage } from 'react-intl';
7
7
  import { usePanneauResource } from '@panneau/core/contexts';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/field-resource-item",
3
- "version": "4.0.55",
3
+ "version": "4.0.58",
4
4
  "description": "An item mapping a resource",
5
5
  "keywords": [
6
6
  "javascript"
@@ -10,6 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/folkloreinc/panneau-js.git"
12
12
  },
13
+ "license": "ISC",
13
14
  "author": {
14
15
  "name": "Folklore",
15
16
  "email": "info@folklore.email"
@@ -24,23 +25,41 @@
24
25
  "email": "nrb@folklore.email"
25
26
  }
26
27
  ],
27
- "license": "ISC",
28
+ "sideEffects": [
29
+ "**/*.css"
30
+ ],
28
31
  "type": "module",
29
- "module": "dist/index.js",
30
- "types": "dist/index.d.ts",
31
32
  "exports": {
32
33
  ".": {
33
34
  "types": "./dist/index.d.ts",
34
35
  "default": "./dist/index.js"
35
36
  }
36
37
  },
38
+ "module": "dist/index.js",
39
+ "types": "dist/index.d.ts",
37
40
  "files": [
38
41
  "dist",
39
42
  "assets"
40
43
  ],
41
44
  "scripts": {
42
- "prepublishOnly": "npm run build",
43
- "build": "../../scripts/prepare-package.sh --types"
45
+ "build": "../../scripts/prepare-package.sh --types",
46
+ "prepublishOnly": "npm run build"
47
+ },
48
+ "dependencies": {
49
+ "@babel/runtime": "^7.28.6",
50
+ "@panneau/core": "^4.0.58",
51
+ "@panneau/data": "^4.0.58",
52
+ "@panneau/element-button": "^4.0.58",
53
+ "@panneau/element-resource-card": "^4.0.58",
54
+ "@panneau/element-select": "^4.0.58",
55
+ "@panneau/form-resource": "^4.0.58",
56
+ "@panneau/intl": "^4.0.58",
57
+ "@panneau/modal-dialog": "^4.0.58",
58
+ "@panneau/modal-resource-form": "^4.0.58",
59
+ "@panneau/modal-resource-items": "^4.0.58",
60
+ "classnames": "^2.5.1",
61
+ "lodash": "^4.17.21",
62
+ "react-intl": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^10.0.0"
44
63
  },
45
64
  "devDependencies": {
46
65
  "react": "^19.2.0",
@@ -50,24 +69,8 @@
50
69
  "react": "^19.2.0",
51
70
  "react-dom": "^19.0.0"
52
71
  },
53
- "dependencies": {
54
- "@babel/runtime": "^7.28.6",
55
- "@panneau/core": "^4.0.55",
56
- "@panneau/data": "^4.0.55",
57
- "@panneau/element-button": "^4.0.55",
58
- "@panneau/element-resource-card": "^4.0.55",
59
- "@panneau/element-select": "^4.0.55",
60
- "@panneau/form-resource": "^4.0.55",
61
- "@panneau/intl": "^4.0.55",
62
- "@panneau/modal-dialog": "^4.0.55",
63
- "@panneau/modal-resource-form": "^4.0.55",
64
- "@panneau/modal-resource-items": "^4.0.55",
65
- "classnames": "^2.5.1",
66
- "lodash": "^4.17.21",
67
- "react-intl": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^10.0.0"
68
- },
69
72
  "publishConfig": {
70
73
  "access": "public"
71
74
  },
72
- "gitHead": "1c9183567fc5bf98ba10fa57c63cf2ed2ae4a054"
75
+ "gitHead": "408b9bef2c15c0a6c55588721d13a965ead50a5f"
73
76
  }