sample-piral 0.14.8 → 0.14.10-beta.3615

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
@@ -82,7 +82,7 @@ declare module "sample-piral" {
82
82
  * @param Component The component to be rendered.
83
83
  * @param defaults Optionally, sets the default values for the expected data.
84
84
  */
85
- registerExtension<TName>(name: TName extends string ? TName : string, Component: AnyComponent<ExtensionComponentProps<TName>>, defaults?: TName): RegistrationDisposer;
85
+ registerExtension<TName>(name: TName extends string ? TName : string, Component: AnyComponent<ExtensionComponentProps<TName>>, defaults?: Partial<ExtensionParams<TName>>): RegistrationDisposer;
86
86
  /**
87
87
  * Unregisters a global extension component.
88
88
  * Only previously registered extension components can be unregistered.
@@ -322,10 +322,15 @@ declare module "sample-piral" {
322
322
  params: T extends keyof PiralExtensionSlotMap ? PiralExtensionSlotMap[T] : T extends string ? any : T;
323
323
  }
324
324
 
325
+ /**
326
+ * Gives the extension params shape for the given extension slot name.
327
+ */
328
+ export type ExtensionParams<TName> = TName extends keyof PiralExtensionSlotMap ? PiralExtensionSlotMap[TName] : TName extends string ? any : TName;
329
+
325
330
  /**
326
331
  * The props for defining an extension slot.
327
332
  */
328
- export type ExtensionSlotProps<K = string> = BaseExtensionSlotProps<K extends string ? K : string, K extends keyof PiralExtensionSlotMap ? PiralExtensionSlotMap[K] : K extends string ? any : K>;
333
+ export type ExtensionSlotProps<TName = string> = BaseExtensionSlotProps<TName extends string ? TName : string, ExtensionParams<TName>>;
329
334
 
330
335
  /**
331
336
  * Can be implemented by functions to be used for disposal purposes.
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.405166.js"></script></head>
8
+ <script defer src="/index.8b5fb3.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.405166.js');
5
+ require('.//index.8b5fb3.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.8",
4
+ "version": "0.14.10-beta.3615",
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.8",
27
+ "version": "0.14.9",
28
28
  "generated": true
29
29
  },
30
30
  "main": "./app/index.js",
@@ -36,13 +36,13 @@
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.8",
40
- "piral-cli-webpack5": "^0.14.8",
39
+ "piral-cli": "^0.14.9",
40
+ "piral-cli-webpack5": "^0.14.9",
41
41
  "sass": "^1.17.0",
42
42
  "bootstrap": "^4.3.1",
43
- "piral": "^0.14.8",
44
- "piral-auth": "^0.14.8",
45
- "piral-search": "^0.14.8",
43
+ "piral": "^0.14.9",
44
+ "piral-auth": "^0.14.9",
45
+ "piral-search": "^0.14.9",
46
46
  "reactstrap": "8.10.0",
47
47
  "react": "17.0.2",
48
48
  "react-dom": "17.0.2",