@panneau/actions 4.0.39 → 4.0.40-alpha.3

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 CHANGED
@@ -1,5 +1,4 @@
1
- import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
- import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
1
+ import { c } from 'react/compiler-runtime';
3
2
  import { ComponentsProvider, ACTIONS_NAMESPACE } from '@panneau/core/contexts';
4
3
  import actionDelete from '@panneau/action-delete';
5
4
  import actionDuplicate from '@panneau/action-duplicate';
@@ -21,19 +20,55 @@ var components = /*#__PURE__*/Object.freeze({
21
20
  Upload: actionUpload
22
21
  });
23
22
 
24
- var _excluded = ["components", "children"];
25
- function ActionsProviders(_ref) {
26
- var _ref$components = _ref.components,
27
- injectedComponents = _ref$components === void 0 ? null : _ref$components,
28
- _ref$children = _ref.children,
29
- children = _ref$children === void 0 ? null : _ref$children,
30
- props = _objectWithoutProperties(_ref, _excluded);
31
- return /*#__PURE__*/jsx(ComponentsProvider, _objectSpread(_objectSpread({
32
- namespace: ACTIONS_NAMESPACE,
33
- components: _objectSpread(_objectSpread({}, components), injectedComponents)
34
- }, props), {}, {
35
- children: children
36
- }));
23
+ function ActionsProviders(t0) {
24
+ const $ = c(10);
25
+ let props;
26
+ let t1;
27
+ let t2;
28
+ if ($[0] !== t0) {
29
+ ({
30
+ components: t1,
31
+ children: t2,
32
+ ...props
33
+ } = t0);
34
+ $[0] = t0;
35
+ $[1] = props;
36
+ $[2] = t1;
37
+ $[3] = t2;
38
+ } else {
39
+ props = $[1];
40
+ t1 = $[2];
41
+ t2 = $[3];
42
+ }
43
+ const injectedComponents = t1 === undefined ? null : t1;
44
+ const children = t2 === undefined ? null : t2;
45
+ let t3;
46
+ if ($[4] !== injectedComponents) {
47
+ t3 = {
48
+ ...components,
49
+ ...injectedComponents
50
+ };
51
+ $[4] = injectedComponents;
52
+ $[5] = t3;
53
+ } else {
54
+ t3 = $[5];
55
+ }
56
+ let t4;
57
+ if ($[6] !== children || $[7] !== props || $[8] !== t3) {
58
+ t4 = /*#__PURE__*/jsx(ComponentsProvider, {
59
+ namespace: ACTIONS_NAMESPACE,
60
+ components: t3,
61
+ ...props,
62
+ children: children
63
+ });
64
+ $[6] = children;
65
+ $[7] = props;
66
+ $[8] = t3;
67
+ $[9] = t4;
68
+ } else {
69
+ t4 = $[9];
70
+ }
71
+ return t4;
37
72
  }
38
73
 
39
74
  export { ActionsProviders as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/actions",
3
- "version": "4.0.39",
3
+ "version": "4.0.40-alpha.3",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -45,7 +45,7 @@
45
45
  "scripts": {
46
46
  "css": "../../scripts/build-packages-styles.js --pattern='@panneau/action-*' ./src/styles.css.ejs ./assets/css/styles.css",
47
47
  "prepublishOnly": "npm run build",
48
- "build": "../../scripts/prepare-package.sh --types && npm run css"
48
+ "build": "../../scripts/prepare-package.sh --types"
49
49
  },
50
50
  "devDependencies": {
51
51
  "react": "^19.2.0",
@@ -57,17 +57,17 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@babel/runtime": "^7.28.6",
60
- "@panneau/action-delete": "^4.0.39",
61
- "@panneau/action-duplicate": "^4.0.39",
62
- "@panneau/action-edit": "^4.0.39",
63
- "@panneau/action-import": "^4.0.39",
64
- "@panneau/action-restore": "^4.0.39",
65
- "@panneau/action-show": "^4.0.39",
66
- "@panneau/action-upload": "^4.0.39",
67
- "@panneau/core": "^4.0.38"
60
+ "@panneau/action-delete": "^4.0.40-alpha.3",
61
+ "@panneau/action-duplicate": "^4.0.40-alpha.3",
62
+ "@panneau/action-edit": "^4.0.40-alpha.3",
63
+ "@panneau/action-import": "^4.0.40-alpha.3",
64
+ "@panneau/action-restore": "^4.0.40-alpha.3",
65
+ "@panneau/action-show": "^4.0.40-alpha.3",
66
+ "@panneau/action-upload": "^4.0.40-alpha.3",
67
+ "@panneau/core": "^4.0.40-alpha.3"
68
68
  },
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "621c5233f083c1ba95cd46cd427c38361723d5d6"
72
+ "gitHead": "1735964a2702ae0480b642225286e4184f36680d"
73
73
  }
@@ -1 +0,0 @@
1
-