sample-piral 0.13.5 → 0.14.0-beta.3156

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
@@ -108,7 +108,7 @@ declare module "sample-piral" {
108
108
  /**
109
109
  * Describes the metadata transported by a pilet.
110
110
  */
111
- export type PiletMetadata = SinglePiletMetadata | MultiPiletMetadata;
111
+ export type PiletMetadata = (SinglePiletMetadata | MultiPiletMetadata) & PiletRuntimeMetadata;
112
112
 
113
113
  /**
114
114
  * Listener for Piral app shell events.
@@ -337,13 +337,20 @@ declare module "sample-piral" {
337
337
  /**
338
338
  * The metadata response for a single pilet.
339
339
  */
340
- export type SinglePiletMetadata = PiletMetadataV0 | PiletMetadataV1 | PiletMetadataVx;
340
+ export type SinglePiletMetadata = PiletMetadataV0 | PiletMetadataV1 | PiletMetadataV2 | PiletMetadataVx;
341
341
 
342
342
  /**
343
343
  * The metadata response for a multi pilet.
344
344
  */
345
345
  export type MultiPiletMetadata = PiletMetadataBundle;
346
346
 
347
+ /**
348
+ * Additional metadata that may be added to the runtime information.
349
+ */
350
+ export interface PiletRuntimeMetadata {
351
+ basePath?: string;
352
+ }
353
+
347
354
  /**
348
355
  * Custom events defined outside of piral-core.
349
356
  */
@@ -655,6 +662,48 @@ declare module "sample-piral" {
655
662
  dependencies?: Record<string, string>;
656
663
  }
657
664
 
665
+ /**
666
+ * Metadata for pilets using the v2 schema.
667
+ */
668
+ export interface PiletMetadataV2 {
669
+ /**
670
+ * The name of the pilet, i.e., the package id.
671
+ */
672
+ name: string;
673
+ /**
674
+ * The version of the pilet. Should be semantically versioned.
675
+ */
676
+ version: string;
677
+ /**
678
+ * Provides the version of the specification for this pilet.
679
+ */
680
+ spec: "v2";
681
+ /**
682
+ * The reference name for the global require.
683
+ */
684
+ requireRef: string;
685
+ /**
686
+ * The computed integrity of the pilet.
687
+ */
688
+ integrity?: string;
689
+ /**
690
+ * The link for retrieving the content of the pilet.
691
+ */
692
+ link: string;
693
+ /**
694
+ * Optionally provides some custom metadata for the pilet.
695
+ */
696
+ custom?: any;
697
+ /**
698
+ * Optionally provides some configuration to be used in the pilet.
699
+ */
700
+ config?: Record<string, any>;
701
+ /**
702
+ * Additional shared dependency script files.
703
+ */
704
+ dependencies?: Record<string, string>;
705
+ }
706
+
658
707
  export interface PiletMetadataVx {
659
708
  /**
660
709
  * The name of the pilet, i.e., the package id.
package/app/index.html CHANGED
@@ -1,19 +1,18 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
1
+ <!DOCTYPE html><html lang="en"><head>
4
2
  <meta charset="UTF-8">
5
3
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
4
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
5
  <title>Piral Sample</title>
8
6
  <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
9
- <link rel="stylesheet" href="/styles.1280bebc.css">
10
- <link rel="stylesheet" href="/src.98f40073.css"></head>
7
+
8
+ <script defer src="/index.679927.js"></script></head>
11
9
  <body>
12
10
  <div id="app">
13
11
  <div class="pi-center">
14
12
  <div class="pi-spinner"></div>
15
13
  </div>
16
14
  </div>
17
- <script src="/src.92b3d9c8.js"></script>
18
- </body>
19
- </html>
15
+
16
+
17
+
18
+ </body></html>
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('./src.92b3d9c8.js');
5
+ require('.//index.679927.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.13.5",
4
+ "version": "0.14.0-beta.3156",
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.13.5",
27
+ "version": "0.13.9",
28
28
  "generated": true
29
29
  },
30
30
  "main": "./app/index.js",
@@ -36,24 +36,36 @@
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.13.5",
40
- "piral-cli-parcel": "^0.13.5",
39
+ "piral-cli": "^0.13.9",
40
+ "piral-cli-webpack5": "^0.13.9",
41
41
  "sass": "^1.17.0",
42
42
  "bootstrap": "^4.3.1",
43
- "piral": "^0.13.5",
44
- "piral-auth": "^0.13.5",
45
- "piral-search": "^0.13.5",
46
- "reactstrap": "8.9.0",
47
- "@dbeining/react-atom": "4.1.19",
48
- "@libre/atom": "1.3.3",
49
- "history": "4.10.1",
43
+ "piral": "^0.13.9",
44
+ "piral-auth": "^0.13.9",
45
+ "piral-search": "^0.13.9",
46
+ "reactstrap": "8.10.0",
50
47
  "react": "17.0.2",
51
48
  "react-dom": "17.0.2",
52
- "react-router": "5.2.0",
53
- "react-router-dom": "5.2.0",
54
- "tslib": "2.1.0",
55
- "path-to-regexp": "1.8.0"
49
+ "react-router": "5.2.1",
50
+ "react-router-dom": "5.3.0",
51
+ "history": "4.10.1",
52
+ "tslib": "2.3.1",
53
+ "path-to-regexp": "1.8.0",
54
+ "@libre/atom": "1.3.3",
55
+ "@dbeining/react-atom": "4.1.21"
56
56
  },
57
+ "sharedDependencies": [
58
+ "reactstrap",
59
+ "react",
60
+ "react-dom",
61
+ "react-router",
62
+ "react-router-dom",
63
+ "history",
64
+ "tslib",
65
+ "path-to-regexp",
66
+ "@libre/atom",
67
+ "@dbeining/react-atom"
68
+ ],
57
69
  "repository": {
58
70
  "type": "git",
59
71
  "url": "git+https://github.com/smapiot/piral.git"