create-powerapps-project 2.3.1 → 2.3.3

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/lib/plopfile.js CHANGED
@@ -337,7 +337,7 @@ export default async (plop) => {
337
337
  type: 'append',
338
338
  path: `${process.cwd()}/eslint.config.mjs`,
339
339
  pattern: 'reactPlugin.configs.flat.recommended,',
340
- template: '\treactHooks.configs.flat.recommended,',
340
+ template: '\treactHooksPlugin.configs.flat.recommended,',
341
341
  separator: '\n'
342
342
  },
343
343
  {
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": "2.3.1",
4
+ "version": "2.3.3",
5
5
  "license": "MIT",
6
6
  "exports": "./lib/index.js",
7
7
  "engines": {
@@ -1,12 +1,13 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { IInputs } from './generated/ManifestTypes';
3
3
  import { AppContext } from './contexts/AppContext';
4
+ import { FluentProvider, Theme } from "@fluentui/react-components";
4
5
 
5
- export const App = ({ context }: { context: ComponentFramework.Context<IInputs>; }) => {
6
+ export function App({ context }: { context: ComponentFramework.Context<IInputs>; }) {
6
7
  return (
7
8
  <AppContext.Provider value=\{{ context }}>
9
+ <FluentProvider theme={context.fluentDesignLanguage?.tokenTheme as Theme}>
10
+ </FluentProvider>
8
11
  </AppContext.Provider>
9
12
  );
10
- };
11
-
12
- App.displayName = 'App';
13
+ }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { IInputs } from '../generated/ManifestTypes';
3
3
 
4
4
  export interface IAppContext {