diff --git a/packages/demo/package-lock.json b/packages/demo/package-lock.json index 252d890..83cc850 100644 --- a/packages/demo/package-lock.json +++ b/packages/demo/package-lock.json @@ -1,6 +1,6 @@ { "name": "stencil-xstate-demo", - "version": "2.0.2", + "version": "3.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -21,12 +21,6 @@ "version": "file:../stencil-xstate-router", "requires": { "route-recognizer": "^0.3.4" - }, - "dependencies": { - "route-recognizer": { - "version": "0.3.4", - "bundled": true - } } }, "typescript": { diff --git a/packages/stencil-xstate-router/package.json b/packages/stencil-xstate-router/package.json index f7fc6b1..e08cdfe 100644 --- a/packages/stencil-xstate-router/package.json +++ b/packages/stencil-xstate-router/package.json @@ -22,7 +22,7 @@ "devDependencies": { "@stencil/core": "^1.1.3", "@types/navigo": "^7.0.1", - "navigo": "7.1.2", + "navigo": "^7.1.2", "xstate": "^4.6.3" }, "license": "MIT", diff --git a/packages/stencil-xstate-router/src/components/xstate-router-navigo/index.tsx b/packages/stencil-xstate-router/src/components/xstate-router-navigo/index.tsx index 47e23fc..8866883 100644 --- a/packages/stencil-xstate-router/src/components/xstate-router-navigo/index.tsx +++ b/packages/stencil-xstate-router/src/components/xstate-router-navigo/index.tsx @@ -32,8 +32,5 @@ export const RouterNavigo: < TSchema extends StateSchema, TEvent extends EventObject >( - props: RouterNavigoProps, - children?: Element[] -) => Element = (props, children) => ( - {children} -); + props: RouterNavigoProps +) => Element = props => ; diff --git a/packages/stencil-xstate-router/src/components/xstate-router-navigo/xstate-router-navigo.tsx b/packages/stencil-xstate-router/src/components/xstate-router-navigo/xstate-router-navigo.tsx index d15ed93..fe7e30b 100644 --- a/packages/stencil-xstate-router/src/components/xstate-router-navigo/xstate-router-navigo.tsx +++ b/packages/stencil-xstate-router/src/components/xstate-router-navigo/xstate-router-navigo.tsx @@ -165,9 +165,7 @@ export class XstateRouterNavigo implements ComponentInterface { }} // pass down config to router {...{ options, routes, stateRenderer, componentRenderer }} - > - - + /> ); } }