@panneau/modals 4.0.39 → 4.0.40-alpha.1
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.js +50 -15
- package/package.json +12 -17
- package/assets/css/styles.css +0 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
3
2
|
import { ComponentsProvider, MODALS_NAMESPACE } from '@panneau/core/contexts';
|
|
4
3
|
import modalDialog from '@panneau/modal-dialog';
|
|
5
4
|
import modalUpload from '@panneau/modal-upload';
|
|
@@ -19,19 +18,55 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
19
18
|
Upload: modalUpload
|
|
20
19
|
});
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
21
|
+
function ModalsProvider(t0) {
|
|
22
|
+
const $ = c(10);
|
|
23
|
+
let props;
|
|
24
|
+
let t1;
|
|
25
|
+
let t2;
|
|
26
|
+
if ($[0] !== t0) {
|
|
27
|
+
({
|
|
28
|
+
components: t1,
|
|
29
|
+
children: t2,
|
|
30
|
+
...props
|
|
31
|
+
} = t0);
|
|
32
|
+
$[0] = t0;
|
|
33
|
+
$[1] = props;
|
|
34
|
+
$[2] = t1;
|
|
35
|
+
$[3] = t2;
|
|
36
|
+
} else {
|
|
37
|
+
props = $[1];
|
|
38
|
+
t1 = $[2];
|
|
39
|
+
t2 = $[3];
|
|
40
|
+
}
|
|
41
|
+
const injectedComponents = t1 === undefined ? null : t1;
|
|
42
|
+
const children = t2 === undefined ? null : t2;
|
|
43
|
+
let t3;
|
|
44
|
+
if ($[4] !== injectedComponents) {
|
|
45
|
+
t3 = {
|
|
46
|
+
...components,
|
|
47
|
+
...injectedComponents
|
|
48
|
+
};
|
|
49
|
+
$[4] = injectedComponents;
|
|
50
|
+
$[5] = t3;
|
|
51
|
+
} else {
|
|
52
|
+
t3 = $[5];
|
|
53
|
+
}
|
|
54
|
+
let t4;
|
|
55
|
+
if ($[6] !== children || $[7] !== props || $[8] !== t3) {
|
|
56
|
+
t4 = /*#__PURE__*/jsx(ComponentsProvider, {
|
|
57
|
+
namespace: MODALS_NAMESPACE,
|
|
58
|
+
components: t3,
|
|
59
|
+
...props,
|
|
60
|
+
children: children
|
|
61
|
+
});
|
|
62
|
+
$[6] = children;
|
|
63
|
+
$[7] = props;
|
|
64
|
+
$[8] = t3;
|
|
65
|
+
$[9] = t4;
|
|
66
|
+
} else {
|
|
67
|
+
t4 = $[9];
|
|
68
|
+
}
|
|
69
|
+
return t4;
|
|
35
70
|
}
|
|
36
71
|
|
|
37
72
|
export { ModalsProvider as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/modals",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.40-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -36,24 +36,19 @@
|
|
|
36
36
|
"type": "module",
|
|
37
37
|
"module": "dist/index.js",
|
|
38
38
|
"types": "dist/index.d.ts",
|
|
39
|
-
"style": "assets/css/styles.css",
|
|
40
39
|
"exports": {
|
|
41
40
|
".": {
|
|
42
41
|
"types": "./dist/index.d.ts",
|
|
43
|
-
"style": "./assets/css/styles.css",
|
|
44
42
|
"default": "./dist/index.js"
|
|
45
|
-
}
|
|
46
|
-
"./assets/css/styles": "./assets/css/styles.css",
|
|
47
|
-
"./assets/css/styles.css": "./assets/css/styles.css"
|
|
43
|
+
}
|
|
48
44
|
},
|
|
49
45
|
"files": [
|
|
50
46
|
"dist",
|
|
51
47
|
"assets"
|
|
52
48
|
],
|
|
53
49
|
"scripts": {
|
|
54
|
-
"css": "../../scripts/build-packages-styles.js --pattern='@panneau/modal-*' ./src/styles.css.ejs ./assets/css/styles.css",
|
|
55
50
|
"prepublishOnly": "npm run build",
|
|
56
|
-
"build": "../../scripts/prepare-package.sh --types
|
|
51
|
+
"build": "../../scripts/prepare-package.sh --types"
|
|
57
52
|
},
|
|
58
53
|
"devDependencies": {
|
|
59
54
|
"react": "^19.2.0",
|
|
@@ -65,19 +60,19 @@
|
|
|
65
60
|
},
|
|
66
61
|
"dependencies": {
|
|
67
62
|
"@babel/runtime": "^7.28.6",
|
|
68
|
-
"@panneau/core": "^4.0.
|
|
63
|
+
"@panneau/core": "^4.0.40-alpha.1",
|
|
69
64
|
"@panneau/element-portal": "^4.0.38",
|
|
70
|
-
"@panneau/modal-confirm": "^4.0.
|
|
71
|
-
"@panneau/modal-dialog": "^4.0.
|
|
72
|
-
"@panneau/modal-form": "^4.0.
|
|
73
|
-
"@panneau/modal-resource-form": "^4.0.
|
|
74
|
-
"@panneau/modal-resource-items": "^4.0.
|
|
75
|
-
"@panneau/modal-upload": "^4.0.
|
|
76
|
-
"@panneau/themes": "^4.0.
|
|
65
|
+
"@panneau/modal-confirm": "^4.0.40-alpha.1",
|
|
66
|
+
"@panneau/modal-dialog": "^4.0.40-alpha.1",
|
|
67
|
+
"@panneau/modal-form": "^4.0.40-alpha.1",
|
|
68
|
+
"@panneau/modal-resource-form": "^4.0.40-alpha.1",
|
|
69
|
+
"@panneau/modal-resource-items": "^4.0.40-alpha.1",
|
|
70
|
+
"@panneau/modal-upload": "^4.0.40-alpha.1",
|
|
71
|
+
"@panneau/themes": "^4.0.40-alpha.1",
|
|
77
72
|
"classnames": "^2.5.1"
|
|
78
73
|
},
|
|
79
74
|
"publishConfig": {
|
|
80
75
|
"access": "public"
|
|
81
76
|
},
|
|
82
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "66520f92373b3aa371222b354d60ed3cf3d20c96"
|
|
83
78
|
}
|
package/assets/css/styles.css
DELETED