sample-piral 0.14.9 → 0.14.10-beta.3659

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.
@@ -298,7 +298,12 @@ declare module "sample-piral" {
298
298
  /**
299
299
  * The props used by a page component.
300
300
  */
301
- export interface PageComponentProps<T = any, S = any> extends RouteBaseProps<T, S> {}
301
+ export interface PageComponentProps<T = any, S = any> extends RouteBaseProps<T, S> {
302
+ /**
303
+ * The meta data registered with the page.
304
+ */
305
+ meta: PiralPageMeta;
306
+ }
302
307
 
303
308
  /**
304
309
  * The meta data registered for a page.
@@ -322,10 +327,15 @@ declare module "sample-piral" {
322
327
  params: T extends keyof PiralExtensionSlotMap ? PiralExtensionSlotMap[T] : T extends string ? any : T;
323
328
  }
324
329
 
330
+ /**
331
+ * Gives the extension params shape for the given extension slot name.
332
+ */
333
+ export type ExtensionParams<TName> = TName extends keyof PiralExtensionSlotMap ? PiralExtensionSlotMap[TName] : TName extends string ? any : TName;
334
+
325
335
  /**
326
336
  * The props for defining an extension slot.
327
337
  */
328
- export type ExtensionSlotProps<K = string> = BaseExtensionSlotProps<K extends string ? K : string, K extends keyof PiralExtensionSlotMap ? PiralExtensionSlotMap[K] : K extends string ? any : K>;
338
+ export type ExtensionSlotProps<TName = string> = BaseExtensionSlotProps<TName extends string ? TName : string, ExtensionParams<TName>>;
329
339
 
330
340
  /**
331
341
  * 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.7455cb.js"></script></head>
8
+ <script defer src="/index.60c9f2.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.7455cb.js');
5
+ require('.//index.60c9f2.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.9",
4
+ "version": "0.14.10-beta.3659",
5
5
  "license": "MIT",
6
6
  "homepage": "https://piral.io",
7
7
  "keywords": [
@@ -40,9 +40,9 @@
40
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",