lupine.components 1.0.11 → 1.0.13

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lupine.components",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "license": "MIT",
5
5
  "author": "uuware.com",
6
6
  "homepage": "https://github.com/uuware/lupine.js",
@@ -1,4 +1,4 @@
1
- import { RefProps, VNode, mountComponents } from 'lupine.web';
1
+ import { RefProps, VNode, mountComponents, replaceInnerhtml } from 'lupine.web';
2
2
 
3
3
  export type HtmlVarResult = { value: string | VNode<any>; ref: RefProps; node: VNode<any> };
4
4
  export const HtmlVar = (initial?: string | VNode<any>): HtmlVarResult => {
@@ -9,7 +9,8 @@ export const HtmlVar = (initial?: string | VNode<any>): HtmlVarResult => {
9
9
  if (typeof value === 'object' && value.type && value.props) {
10
10
  await mountComponents(ref.current, value);
11
11
  } else {
12
- ref.current.innerHTML = value;
12
+ await replaceInnerhtml(ref.current, value as string);
13
+ // ref.current.innerHTML = value;
13
14
  }
14
15
  _dirty = false;
15
16
  };
@@ -1,12 +1,12 @@
1
1
  import { VNode, CssProps, MediaQueryRange } from 'lupine.components';
2
2
  import { MobileFooterMenu, MobileFooterMenuItemProps } from '../components/mobile-components/mobile-footer-menu';
3
- import { Footer } from '../components/footer';
4
- import { DesktopTopMenu } from '../components/desktop-top-menu';
5
3
  import { MobileHeaderComponent } from '../components/mobile-components/mobile-header-component';
6
- import { webConfig } from '../services/web-config';
7
4
 
8
5
  export const ResponsiveFrame = async (
9
6
  placeholderClassname: string,
7
+ title: string,
8
+ footerTitle: string,
9
+ logoUrl: string,
10
10
  vnode: VNode<any>,
11
11
  bottomMenu: MobileFooterMenuItemProps[]
12
12
  ) => {
@@ -68,13 +68,15 @@ export const ResponsiveFrame = async (
68
68
  return (
69
69
  <div css={cssContainer} class='responsive-frame'>
70
70
  <div class='frame-top-menu'>
71
- <DesktopTopMenu title={webConfig.getSiteTitle()}></DesktopTopMenu>
71
+ {/* <DesktopTopMenu title={title}></DesktopTopMenu> */}
72
72
  <MobileHeaderComponent></MobileHeaderComponent>
73
73
  </div>
74
74
  <div class='frame-content'>
75
75
  <div class={'content-block ' + placeholderClassname}>{vnode}</div>
76
76
  <div class='frame-footer'>
77
- <Footer title={webConfig.getSiteFooter()}></Footer>
77
+ <div class='footer-box'>
78
+ <div class='footer-cp'>{footerTitle}</div>
79
+ </div>
78
80
  <MobileFooterMenu items={bottomMenu}></MobileFooterMenu>
79
81
  </div>
80
82
  </div>