lupine.web 1.0.24 → 1.0.26
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/package.json +1 -1
- package/src/core/index.ts +0 -1
- package/src/core/mount-components.ts +6 -0
- package/src/core/web-version.ts +0 -12
package/package.json
CHANGED
package/src/core/index.ts
CHANGED
|
@@ -226,6 +226,12 @@ export const mountComponents = async (selector: string | null | Element, jsxNode
|
|
|
226
226
|
|
|
227
227
|
// call unload before releace innerHTML
|
|
228
228
|
// el.innerHTML = jsxNodes.props._html.join('');
|
|
229
|
+
// remove <Fragment> and </Fragment>
|
|
230
|
+
const _html = jsxNodes.props._html;
|
|
231
|
+
if (_html[0] === '<Fragment>' && _html[_html.length - 1] === '</Fragment>') {
|
|
232
|
+
_html.shift();
|
|
233
|
+
_html.pop();
|
|
234
|
+
}
|
|
229
235
|
await replaceInnerhtml(el, jsxNodes.props._html.join(''));
|
|
230
236
|
|
|
231
237
|
// if (firstDom && firstDom.tagName === 'STYLE') {
|
package/src/core/web-version.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// This is Lupine.Js's version to help release confirmation, and user's api can add sub version to this.
|
|
2
|
-
const WEB_VERSION = '1.0.0 - build 20250409';
|
|
3
|
-
const _saved = {
|
|
4
|
-
WEB_VERSION,
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
export const addWebVersion = (version: string) => {
|
|
8
|
-
_saved.WEB_VERSION = WEB_VERSION + ` (${version})`;
|
|
9
|
-
};
|
|
10
|
-
export const getWebVersion = () => {
|
|
11
|
-
return _saved.WEB_VERSION;
|
|
12
|
-
};
|