create-powerapps-project 1.3.1 → 1.3.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-powerapps-project",
3
3
  "description": "💧 plop generator for Dataverse development",
4
- "version": "1.3.1",
4
+ "version": "1.3.2",
5
5
  "license": "MIT",
6
6
  "exports": "./lib/index.js",
7
7
  "engines": {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IInputs } from './generated/ManifestTypes';
3
- import { AppContextProvider } from './AppContext';
3
+ import { AppContext } from './contexts/AppContext';
4
4
 
5
5
  export const App = (props: { context: ComponentFramework.Context<IInputs>; }) => {
6
6
  const {
@@ -8,7 +8,7 @@ export const App = (props: { context: ComponentFramework.Context<IInputs>; }) =>
8
8
  } = props;
9
9
 
10
10
  return (
11
- <AppContext.Provider value="{{ context }}">
11
+ <AppContext.Provider value={{ context }}>
12
12
  </AppContext.Provider>
13
13
  );
14
14
  };
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import { IInputs } from './generated/ManifestTypes';
2
+ import { IInputs } from '../generated/ManifestTypes';
3
3
 
4
4
  interface IAppContext {
5
5
  context: ComponentFramework.Context<IInputs>;
6
6
  }
7
7
 
8
- const AppContext = React.createContext<IAppContext>({} as IAppContext);
8
+ export const AppContext = React.createContext<IAppContext>({} as IAppContext);
9
9
 
10
10
  export const useAppContext = (): IAppContext => React.useContext(AppContext);