piral-adal 0.14.9 → 0.15.0-alpha.3549

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.
Files changed (2) hide show
  1. package/README.md +7 -3
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -71,21 +71,25 @@ The separation into `setupAdalClient` and `createAdalApi` was done to simplify t
71
71
 
72
72
  Normally, you would want to have different modules here. As an example consider the following code:
73
73
 
74
- ```ts
74
+ ```jsx
75
75
  // module adal.ts
76
76
  import { setupAdalClient } from 'piral-adal';
77
77
 
78
78
  export const client = setupAdalClient({ ... });
79
79
 
80
- // app.ts
80
+ // app.tsx
81
+ import * as React from 'react';
81
82
  import { createAdalApi } from 'piral-adal';
83
+ import { createInstance } from 'piral-core';
82
84
  import { client } from './adal';
85
+ import { render } from 'react-dom';
83
86
 
84
87
  export function render() {
85
- renderInstance({
88
+ const instance = createInstance({
86
89
  // ...
87
90
  plugins: [createAdalApi(client)],
88
91
  });
92
+ render(<Piral instance={instance} />, document.querySelector('#app'));
89
93
  }
90
94
 
91
95
  // index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piral-adal",
3
- "version": "0.14.9",
3
+ "version": "0.15.0-alpha.3549",
4
4
  "description": "Plugin to integrate AAD authentication in Piral.",
5
5
  "keywords": [
6
6
  "piral",
@@ -47,10 +47,10 @@
47
47
  "msal": "^1.1.1"
48
48
  },
49
49
  "devDependencies": {
50
- "piral-core": "^0.14.9"
50
+ "piral-core": "0.15.0-alpha.3549"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "piral-core": "0.14.x"
54
54
  },
55
- "gitHead": "8c378ca7c8a55c1b1e23e7992c3875aaf311f29d"
55
+ "gitHead": "2edf7bbcee6a7e931348198d14139c7f958877e7"
56
56
  }