@micromag/elements 0.4.71 → 0.4.74
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/assets/css/styles.css +0 -1
- package/es/index.js +30 -10
- package/package.json +39 -37
package/assets/css/styles.css
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
@import '@micromag/element-checkbox/assets/css/styles.css';
|
|
8
8
|
@import '@micromag/element-closed-captions/assets/css/styles.css';
|
|
9
9
|
@import '@micromag/element-container/assets/css/styles.css';
|
|
10
|
-
@import '@micromag/element-footer/assets/css/styles.css';
|
|
11
10
|
@import '@micromag/element-grid/assets/css/styles.css';
|
|
12
11
|
@import '@micromag/element-header/assets/css/styles.css';
|
|
13
12
|
@import '@micromag/element-heading/assets/css/styles.css';
|
package/es/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, ELEMENTS_NAMESPACE } from '@micromag/core/contexts';
|
|
4
3
|
import elementAudio from '@micromag/element-audio';
|
|
5
4
|
import elementAuthor from '@micromag/element-author';
|
|
@@ -65,14 +64,35 @@ var ElementComponents = /*#__PURE__*/Object.freeze({
|
|
|
65
64
|
WebView: elementWebview
|
|
66
65
|
});
|
|
67
66
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
67
|
+
function ElementsProvider(t0) {
|
|
68
|
+
const $ = c(5);
|
|
69
|
+
let props;
|
|
70
|
+
let t1;
|
|
71
|
+
if ($[0] !== t0) {
|
|
72
|
+
({
|
|
73
|
+
children: t1,
|
|
74
|
+
...props
|
|
75
|
+
} = t0);
|
|
76
|
+
$[0] = t0;
|
|
77
|
+
$[1] = props;
|
|
78
|
+
$[2] = t1;
|
|
79
|
+
} else {
|
|
80
|
+
props = $[1];
|
|
81
|
+
t1 = $[2];
|
|
82
|
+
}
|
|
83
|
+
let t2;
|
|
84
|
+
if ($[3] !== props) {
|
|
85
|
+
t2 = /*#__PURE__*/jsx(ComponentsProvider, {
|
|
86
|
+
namespace: ELEMENTS_NAMESPACE,
|
|
87
|
+
components: ElementComponents,
|
|
88
|
+
...props
|
|
89
|
+
});
|
|
90
|
+
$[3] = props;
|
|
91
|
+
$[4] = t2;
|
|
92
|
+
} else {
|
|
93
|
+
t2 = $[4];
|
|
94
|
+
}
|
|
95
|
+
return t2;
|
|
76
96
|
}
|
|
77
97
|
|
|
78
98
|
export { ElementsProvider };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/elements",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.74",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -32,10 +32,12 @@
|
|
|
32
32
|
"license": "ISC",
|
|
33
33
|
"type": "module",
|
|
34
34
|
"module": "es/index.js",
|
|
35
|
+
"style": "./assets/css/styles.css",
|
|
35
36
|
"exports": {
|
|
36
37
|
".": {
|
|
37
38
|
"types": "./es/index.d.ts",
|
|
38
|
-
"import": "./es/index.js"
|
|
39
|
+
"import": "./es/index.js",
|
|
40
|
+
"style": "./assets/css/styles.css"
|
|
39
41
|
},
|
|
40
42
|
"./all": {
|
|
41
43
|
"types": "./es/all.d.ts",
|
|
@@ -62,45 +64,45 @@
|
|
|
62
64
|
"build": "../../scripts/prepare-package.sh --types && npm run aggregate-css"
|
|
63
65
|
},
|
|
64
66
|
"devDependencies": {
|
|
65
|
-
"react": "^
|
|
66
|
-
"react-dom": "^
|
|
67
|
+
"react": "^19.0.0",
|
|
68
|
+
"react-dom": "^19.0.0"
|
|
67
69
|
},
|
|
68
70
|
"peerDependencies": {
|
|
69
|
-
"react": "^
|
|
70
|
-
"react-dom": "^
|
|
71
|
+
"react": "^19.0.0",
|
|
72
|
+
"react-dom": "^19.0.0"
|
|
71
73
|
},
|
|
72
74
|
"dependencies": {
|
|
73
75
|
"@babel/runtime": "^7.28.6",
|
|
74
|
-
"@micromag/core": "^0.4.
|
|
75
|
-
"@micromag/element-audio": "^0.4.
|
|
76
|
-
"@micromag/element-author": "^0.4.
|
|
77
|
-
"@micromag/element-background": "^0.4.
|
|
78
|
-
"@micromag/element-badge": "^0.4.
|
|
79
|
-
"@micromag/element-button": "^0.4.
|
|
80
|
-
"@micromag/element-call-to-action": "^0.4.
|
|
81
|
-
"@micromag/element-checkbox": "^0.4.
|
|
82
|
-
"@micromag/element-closed-captions": "^0.4.
|
|
83
|
-
"@micromag/element-container": "^0.4.
|
|
84
|
-
"@micromag/element-footer": "^0.4.
|
|
85
|
-
"@micromag/element-grid": "^0.4.
|
|
86
|
-
"@micromag/element-header": "^0.4.
|
|
87
|
-
"@micromag/element-heading": "^0.4.
|
|
88
|
-
"@micromag/element-image": "^0.4.
|
|
89
|
-
"@micromag/element-keypad": "^0.4.
|
|
90
|
-
"@micromag/element-layout": "^0.4.
|
|
91
|
-
"@micromag/element-link": "^0.4.
|
|
92
|
-
"@micromag/element-map": "^0.4.
|
|
93
|
-
"@micromag/element-quote": "^0.4.
|
|
94
|
-
"@micromag/element-scroll": "^0.4.
|
|
95
|
-
"@micromag/element-share-incentive": "^0.4.
|
|
96
|
-
"@micromag/element-share-options": "^0.4.
|
|
97
|
-
"@micromag/element-stack": "^0.4.
|
|
98
|
-
"@micromag/element-text": "^0.4.
|
|
99
|
-
"@micromag/element-text-input": "^0.4.
|
|
100
|
-
"@micromag/element-urbania-author": "^0.4.
|
|
101
|
-
"@micromag/element-video": "^0.4.
|
|
102
|
-
"@micromag/element-visual": "^0.4.
|
|
103
|
-
"@micromag/element-webview": "^0.4.
|
|
76
|
+
"@micromag/core": "^0.4.74",
|
|
77
|
+
"@micromag/element-audio": "^0.4.74",
|
|
78
|
+
"@micromag/element-author": "^0.4.74",
|
|
79
|
+
"@micromag/element-background": "^0.4.74",
|
|
80
|
+
"@micromag/element-badge": "^0.4.74",
|
|
81
|
+
"@micromag/element-button": "^0.4.74",
|
|
82
|
+
"@micromag/element-call-to-action": "^0.4.74",
|
|
83
|
+
"@micromag/element-checkbox": "^0.4.74",
|
|
84
|
+
"@micromag/element-closed-captions": "^0.4.74",
|
|
85
|
+
"@micromag/element-container": "^0.4.74",
|
|
86
|
+
"@micromag/element-footer": "^0.4.74",
|
|
87
|
+
"@micromag/element-grid": "^0.4.74",
|
|
88
|
+
"@micromag/element-header": "^0.4.74",
|
|
89
|
+
"@micromag/element-heading": "^0.4.74",
|
|
90
|
+
"@micromag/element-image": "^0.4.74",
|
|
91
|
+
"@micromag/element-keypad": "^0.4.74",
|
|
92
|
+
"@micromag/element-layout": "^0.4.74",
|
|
93
|
+
"@micromag/element-link": "^0.4.74",
|
|
94
|
+
"@micromag/element-map": "^0.4.74",
|
|
95
|
+
"@micromag/element-quote": "^0.4.74",
|
|
96
|
+
"@micromag/element-scroll": "^0.4.74",
|
|
97
|
+
"@micromag/element-share-incentive": "^0.4.74",
|
|
98
|
+
"@micromag/element-share-options": "^0.4.74",
|
|
99
|
+
"@micromag/element-stack": "^0.4.74",
|
|
100
|
+
"@micromag/element-text": "^0.4.74",
|
|
101
|
+
"@micromag/element-text-input": "^0.4.74",
|
|
102
|
+
"@micromag/element-urbania-author": "^0.4.74",
|
|
103
|
+
"@micromag/element-video": "^0.4.74",
|
|
104
|
+
"@micromag/element-visual": "^0.4.74",
|
|
105
|
+
"@micromag/element-webview": "^0.4.74",
|
|
104
106
|
"classnames": "^2.2.6",
|
|
105
107
|
"lodash": "^4.17.23"
|
|
106
108
|
},
|
|
@@ -108,6 +110,6 @@
|
|
|
108
110
|
"access": "public",
|
|
109
111
|
"registry": "https://registry.npmjs.org/"
|
|
110
112
|
},
|
|
111
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "fe510ee87845280d0760cb292aef9d2eb69e67c1",
|
|
112
114
|
"types": "es/index.d.ts"
|
|
113
115
|
}
|