@panneau/action-duplicate 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.
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { ButtonTheme } from '@panneau/core';
|
|
4
|
+
|
|
3
5
|
interface DuplicateActionProps {
|
|
4
6
|
id: string;
|
|
5
7
|
title?: ReactNode | null;
|
|
@@ -18,5 +20,6 @@ interface DuplicateActionProps {
|
|
|
18
20
|
withConfirmation?: boolean;
|
|
19
21
|
className?: string | null;
|
|
20
22
|
}
|
|
21
|
-
declare function DuplicateAction({ id, title, description, endpoint, action, label: initialLabel, icon, value, theme, disabled, onChange, onConfirmed, valueLabelPath, modalComponent, withConfirmation, className, ...props }: DuplicateActionProps):
|
|
22
|
-
|
|
23
|
+
declare function DuplicateAction({ id, title, description, endpoint, action, label: initialLabel, icon, value, theme, disabled, onChange, onConfirmed, valueLabelPath, modalComponent, withConfirmation, className, ...props }: DuplicateActionProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
|
|
25
|
+
export { DuplicateAction as default };
|
package/{es → dist}/index.js
RENAMED
|
@@ -2,12 +2,12 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
|
-
import { useState, useCallback } from 'react';
|
|
6
5
|
import { postJSON, getCSRFHeaders } from '@folklore/fetch';
|
|
7
6
|
import classNames from 'classnames';
|
|
7
|
+
import { useState, useCallback } from 'react';
|
|
8
8
|
import { FormattedMessage } from 'react-intl';
|
|
9
|
+
import { useActionProps } from '@panneau/action-actions';
|
|
9
10
|
import { useModalsComponentsManager } from '@panneau/core/contexts';
|
|
10
|
-
import { useActionProps } from '@panneau/core/hooks';
|
|
11
11
|
import Button from '@panneau/element-button';
|
|
12
12
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
13
13
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/action-duplicate",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.14",
|
|
4
4
|
"description": "Duplicate action",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -26,46 +26,41 @@
|
|
|
26
26
|
],
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"type": "module",
|
|
29
|
-
"module": "
|
|
30
|
-
"types": "
|
|
29
|
+
"module": "dist/index.js",
|
|
30
|
+
"types": "dist/index.d.ts",
|
|
31
31
|
"exports": {
|
|
32
32
|
".": {
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
"types": "./types/index.d.ts"
|
|
36
|
-
}
|
|
33
|
+
"default": "./dist/index.js",
|
|
34
|
+
"types": "./dist/index.d.ts"
|
|
37
35
|
}
|
|
38
36
|
},
|
|
39
37
|
"files": [
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"assets",
|
|
43
|
-
"types"
|
|
38
|
+
"dist",
|
|
39
|
+
"assets"
|
|
44
40
|
],
|
|
45
41
|
"scripts": {
|
|
46
42
|
"prepublishOnly": "npm run build",
|
|
47
43
|
"build": "../../scripts/prepare-package.sh --types"
|
|
48
44
|
},
|
|
49
45
|
"devDependencies": {
|
|
50
|
-
"react": "^
|
|
51
|
-
"react-dom": "^
|
|
46
|
+
"react": "^19.0.0",
|
|
47
|
+
"react-dom": "^19.0.0"
|
|
52
48
|
},
|
|
53
49
|
"peerDependencies": {
|
|
54
|
-
"react": "^
|
|
55
|
-
"react-dom": "^
|
|
50
|
+
"react": "^19.0.0",
|
|
51
|
+
"react-dom": "^19.0.0"
|
|
56
52
|
},
|
|
57
53
|
"dependencies": {
|
|
58
54
|
"@babel/runtime": "^7.12.5",
|
|
59
55
|
"@folklore/fetch": "^0.1.21",
|
|
60
|
-
"@panneau/core": "^4.0.
|
|
61
|
-
"@panneau/element-button": "^4.0.
|
|
62
|
-
"@panneau/themes": "^4.0.
|
|
56
|
+
"@panneau/core": "^4.0.14",
|
|
57
|
+
"@panneau/element-button": "^4.0.14",
|
|
58
|
+
"@panneau/themes": "^4.0.14",
|
|
63
59
|
"classnames": "^2.5.1",
|
|
64
|
-
"prop-types": "^15.7.2",
|
|
65
60
|
"react-intl": "^5.15.8 || ^6.0.0 || ^7.0.0"
|
|
66
61
|
},
|
|
67
62
|
"publishConfig": {
|
|
68
63
|
"access": "public"
|
|
69
64
|
},
|
|
70
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "ce35c2ddb30a7be2efe951882d9826dca577f5d4"
|
|
71
66
|
}
|
package/types/index.d.ts
DELETED