sample-piral 0.14.20-beta.4067 → 0.14.21-beta.4078

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
@@ -226,8 +226,9 @@ declare module "sample-piral" {
226
226
  * @param name The name of the modal to register.
227
227
  * @param Component The component to render the page.
228
228
  * @param defaults Optionally, sets the default values for the inserted options.
229
+ * @param layout Optionally, sets the layout options for the dialog wrapper.
229
230
  */
230
- registerModal<T>(name: T extends string ? T : string, Component: AnyComponent<ModalComponentProps<T>>, defaults?: ModalOptions<T>): RegistrationDisposer;
231
+ registerModal<T>(name: T extends string ? T : string, Component: AnyComponent<ModalComponentProps<T>>, defaults?: ModalOptions<T>, layout?: ModalLayoutOptions): RegistrationDisposer;
231
232
  /**
232
233
  * Unregisters a modal by its name.
233
234
  * @param name The name that was previously registered.
@@ -466,6 +467,11 @@ declare module "sample-piral" {
466
467
 
467
468
  export type ModalComponentProps<T> = BaseComponentProps & BareModalComponentProps<ModalOptions<T>>;
468
469
 
470
+ /**
471
+ * The options provided for the dialog layout.
472
+ */
473
+ export interface ModalLayoutOptions {}
474
+
469
475
  export interface FeedResolver<TData> {
470
476
  (): Promise<TData>;
471
477
  }
@@ -1755,6 +1761,7 @@ declare module "sample-piral" {
1755
1761
  name: string;
1756
1762
  component: WrappedComponent<ModalComponentProps<any>>;
1757
1763
  defaults: any;
1764
+ layout: ModalLayoutOptions;
1758
1765
  }
1759
1766
 
1760
1767
  export interface ConnectorDetails<TData, TItem, TReducers extends FeedConnectorReducers<TData> = {}> extends FeedConnectorOptions<TData, TItem, TReducers> {
@@ -1989,7 +1996,10 @@ declare module "sample-piral" {
1989
1996
  close(): void;
1990
1997
  }
1991
1998
 
1992
- export interface ModalsDialogProps extends OpenModalDialog {}
1999
+ export interface ModalsDialogProps extends OpenModalDialog {
2000
+ layout: ModalLayoutOptions;
2001
+ defaults: any;
2002
+ }
1993
2003
 
1994
2004
  export interface SearchResultProps {}
1995
2005
 
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.6681ae.js"></script></head>
8
+ <script defer src="/index.7c40d9.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.6681ae.js');
5
+ require('.//index.7c40d9.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.20-beta.4067",
4
+ "version": "0.14.21-beta.4078",
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.19",
27
+ "version": "0.14.20",
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.19",
40
- "piral-cli-webpack5": "^0.14.19",
39
+ "piral-cli": "^0.14.20",
40
+ "piral-cli-webpack5": "^0.14.20",
41
41
  "sass": "^1.17.0",
42
42
  "bootstrap": "^4.3.1",
43
- "piral": "^0.14.19",
44
- "piral-auth": "^0.14.19",
45
- "piral-search": "^0.14.19",
43
+ "piral": "^0.14.20",
44
+ "piral-auth": "^0.14.20",
45
+ "piral-search": "^0.14.20",
46
46
  "reactstrap": "8.10.0",
47
47
  "react": "17.0.2",
48
48
  "react-dom": "17.0.2",