sample-piral 0.14.13 → 0.14.14-beta.3765

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/app/index.d.ts CHANGED
@@ -1281,6 +1281,10 @@ declare module "sample-piral" {
1281
1281
  * The layout used for pages.
1282
1282
  */
1283
1283
  Layout: React.ComponentType<LayoutProps>;
1284
+ /**
1285
+ * The route switch used for determining the route registration.
1286
+ */
1287
+ RouteSwitch: React.ComponentType<RouteSwitchProps>;
1284
1288
  /**
1285
1289
  * A component that can be used for debugging purposes.
1286
1290
  */
@@ -1681,6 +1685,29 @@ declare module "sample-piral" {
1681
1685
  currentLayout: LayoutType;
1682
1686
  }
1683
1687
 
1688
+ /**
1689
+ * The props of the RouteSwitch component.
1690
+ */
1691
+ export interface RouteSwitchProps extends ReactRouter.SwitchProps {
1692
+ /**
1693
+ * The component that should be used in case nothing was found.
1694
+ */
1695
+ NotFound: React.ComponentType<ReactRouter.RouteComponentProps>;
1696
+ /**
1697
+ * The component to register for the different paths.
1698
+ */
1699
+ paths: Array<{
1700
+ /**
1701
+ * The exact path to use.
1702
+ */
1703
+ path: string;
1704
+ /**
1705
+ * The component to register for this path.
1706
+ */
1707
+ Component: React.ComponentType<ReactRouter.RouteComponentProps>;
1708
+ }>;
1709
+ }
1710
+
1684
1711
  /**
1685
1712
  * Custom parts of the global registry state defined outside of piral-core.
1686
1713
  */
package/app/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <title>Piral Sample</title>
6
6
  <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
7
7
 
8
- <script defer src="/index.1021e6.js"></script></head>
8
+ <script defer src="/index.2d688d.js"></script></head>
9
9
  <body>
10
10
  <div id="app">
11
11
  <div class="pi-center">
package/app/index.js CHANGED
@@ -2,7 +2,7 @@ if (process.env.NODE_ENV === 'test') {
2
2
  // behavior for the test environment, we'll try to make it work
3
3
 
4
4
  if (typeof window !== 'undefined') {
5
- require('.//index.1021e6.js');
5
+ require('.//index.2d688d.js');
6
6
  const ctx = window['dbg:piral'];
7
7
  const dependencies = (ctx && ctx.pilets && ctx.pilets.getDependencies({})) || {};
8
8
  module.exports = dependencies['sample-piral'] || {};
package/files.tar CHANGED
Binary file
package/files_once.tar CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sample-piral",
3
3
  "description": "Example project illustrating the use of the piral and piral-cli packages.",
4
- "version": "0.14.13",
4
+ "version": "0.14.14-beta.3765",
5
5
  "license": "MIT",
6
6
  "homepage": "https://piral.io",
7
7
  "keywords": [
@@ -24,7 +24,7 @@
24
24
  }
25
25
  },
26
26
  "piralCLI": {
27
- "version": "0.14.12",
27
+ "version": "0.14.13",
28
28
  "generated": true
29
29
  },
30
30
  "main": "./app/index.js",
@@ -36,8 +36,8 @@
36
36
  "@types/react-dom": "^17.0.0",
37
37
  "@types/react-router": "^5.1.8",
38
38
  "@types/react-router-dom": "^5.1.6",
39
- "piral-cli": "^0.14.12",
40
- "piral-cli-webpack5": "^0.14.12",
39
+ "piral-cli": "^0.14.13",
40
+ "piral-cli-webpack5": "^0.14.13",
41
41
  "sass": "^1.17.0",
42
42
  "bootstrap": "^4.3.1",
43
43
  "piral": "^0.14.13",