@panneau/field-resource-item 4.0.55 → 4.0.56
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 +2 -2
- package/dist/index.js +3 -3
- package/package.json +15 -12
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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):
|
|
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.
|
|
3
|
+
"version": "4.0.56",
|
|
4
4
|
"description": "An item mapping a resource",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -28,6 +28,9 @@
|
|
|
28
28
|
"type": "module",
|
|
29
29
|
"module": "dist/index.js",
|
|
30
30
|
"types": "dist/index.d.ts",
|
|
31
|
+
"sideEffects": [
|
|
32
|
+
"**/*.css"
|
|
33
|
+
],
|
|
31
34
|
"exports": {
|
|
32
35
|
".": {
|
|
33
36
|
"types": "./dist/index.d.ts",
|
|
@@ -52,16 +55,16 @@
|
|
|
52
55
|
},
|
|
53
56
|
"dependencies": {
|
|
54
57
|
"@babel/runtime": "^7.28.6",
|
|
55
|
-
"@panneau/core": "^4.0.
|
|
56
|
-
"@panneau/data": "^4.0.
|
|
57
|
-
"@panneau/element-button": "^4.0.
|
|
58
|
-
"@panneau/element-resource-card": "^4.0.
|
|
59
|
-
"@panneau/element-select": "^4.0.
|
|
60
|
-
"@panneau/form-resource": "^4.0.
|
|
61
|
-
"@panneau/intl": "^4.0.
|
|
62
|
-
"@panneau/modal-dialog": "^4.0.
|
|
63
|
-
"@panneau/modal-resource-form": "^4.0.
|
|
64
|
-
"@panneau/modal-resource-items": "^4.0.
|
|
58
|
+
"@panneau/core": "^4.0.56",
|
|
59
|
+
"@panneau/data": "^4.0.56",
|
|
60
|
+
"@panneau/element-button": "^4.0.56",
|
|
61
|
+
"@panneau/element-resource-card": "^4.0.56",
|
|
62
|
+
"@panneau/element-select": "^4.0.56",
|
|
63
|
+
"@panneau/form-resource": "^4.0.56",
|
|
64
|
+
"@panneau/intl": "^4.0.56",
|
|
65
|
+
"@panneau/modal-dialog": "^4.0.56",
|
|
66
|
+
"@panneau/modal-resource-form": "^4.0.56",
|
|
67
|
+
"@panneau/modal-resource-items": "^4.0.56",
|
|
65
68
|
"classnames": "^2.5.1",
|
|
66
69
|
"lodash": "^4.17.21",
|
|
67
70
|
"react-intl": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^10.0.0"
|
|
@@ -69,5 +72,5 @@
|
|
|
69
72
|
"publishConfig": {
|
|
70
73
|
"access": "public"
|
|
71
74
|
},
|
|
72
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "9c3ba1bdd04699e0150f84a35f2bdbdec073bd59"
|
|
73
76
|
}
|