@panneau/lists 4.0.38 → 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 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, LISTS_NAMESPACE } from '@panneau/core/contexts';
4
3
  import listTable from '@panneau/list-table';
5
4
  import listCards from '@panneau/list-cards';
@@ -11,19 +10,55 @@ var components = /*#__PURE__*/Object.freeze({
11
10
  Table: listTable
12
11
  });
13
12
 
14
- var _excluded = ["components", "children"];
15
- function ListsProvider(_ref) {
16
- var _ref$components = _ref.components,
17
- injectedComponents = _ref$components === void 0 ? null : _ref$components,
18
- _ref$children = _ref.children,
19
- children = _ref$children === void 0 ? null : _ref$children,
20
- props = _objectWithoutProperties(_ref, _excluded);
21
- return /*#__PURE__*/jsx(ComponentsProvider, _objectSpread(_objectSpread({
22
- namespace: LISTS_NAMESPACE,
23
- components: _objectSpread(_objectSpread({}, components), injectedComponents)
24
- }, props), {}, {
25
- children: children
26
- }));
13
+ function ListsProvider(t0) {
14
+ const $ = c(10);
15
+ let props;
16
+ let t1;
17
+ let t2;
18
+ if ($[0] !== t0) {
19
+ ({
20
+ components: t1,
21
+ children: t2,
22
+ ...props
23
+ } = t0);
24
+ $[0] = t0;
25
+ $[1] = props;
26
+ $[2] = t1;
27
+ $[3] = t2;
28
+ } else {
29
+ props = $[1];
30
+ t1 = $[2];
31
+ t2 = $[3];
32
+ }
33
+ const injectedComponents = t1 === undefined ? null : t1;
34
+ const children = t2 === undefined ? null : t2;
35
+ let t3;
36
+ if ($[4] !== injectedComponents) {
37
+ t3 = {
38
+ ...components,
39
+ ...injectedComponents
40
+ };
41
+ $[4] = injectedComponents;
42
+ $[5] = t3;
43
+ } else {
44
+ t3 = $[5];
45
+ }
46
+ let t4;
47
+ if ($[6] !== children || $[7] !== props || $[8] !== t3) {
48
+ t4 = /*#__PURE__*/jsx(ComponentsProvider, {
49
+ namespace: LISTS_NAMESPACE,
50
+ components: t3,
51
+ ...props,
52
+ children: children
53
+ });
54
+ $[6] = children;
55
+ $[7] = props;
56
+ $[8] = t3;
57
+ $[9] = t4;
58
+ } else {
59
+ t4 = $[9];
60
+ }
61
+ return t4;
27
62
  }
28
63
 
29
64
  export { ListsProvider as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/lists",
3
- "version": "4.0.38",
3
+ "version": "4.0.40-alpha.1",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -53,7 +53,7 @@
53
53
  "scripts": {
54
54
  "css": "../../scripts/build-packages-styles.js --pattern='@panneau/list-*' ./src/styles.css.ejs ./assets/css/styles.css",
55
55
  "prepublishOnly": "npm run build",
56
- "build": "../../scripts/prepare-package.sh --types && npm run css"
56
+ "build": "../../scripts/prepare-package.sh --types"
57
57
  },
58
58
  "devDependencies": {
59
59
  "react": "^19.2.0",
@@ -65,12 +65,12 @@
65
65
  },
66
66
  "dependencies": {
67
67
  "@babel/runtime": "^7.28.6",
68
- "@panneau/core": "^4.0.38",
69
- "@panneau/list-cards": "^4.0.38",
70
- "@panneau/list-table": "^4.0.38"
68
+ "@panneau/core": "^4.0.40-alpha.1",
69
+ "@panneau/list-cards": "^4.0.40-alpha.1",
70
+ "@panneau/list-table": "^4.0.40-alpha.1"
71
71
  },
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "fa4b9c4ec7fe5c0e360dda5a40f8b5d8c7ada651"
75
+ "gitHead": "66520f92373b3aa371222b354d60ed3cf3d20c96"
76
76
  }
@@ -1 +0,0 @@
1
-