@talxis/base-controls 1.2408.16 → 1.2408.18
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/README.md +26 -12
- package/package.json +2 -6
package/README.md
CHANGED
|
@@ -1,18 +1,32 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Running the controls in local PCF harness
|
|
2
2
|
|
|
3
3
|
1. Run `npm install` inside the root directory.
|
|
4
|
-
1.
|
|
5
|
-
|
|
6
|
-
1.
|
|
4
|
+
1. Navigate to `examples` folder which contains a PCF wrapper for each Base Control.
|
|
5
|
+
1. Navigate to the desired control folder and run `npm install` again.
|
|
6
|
+
1. Run `npm start watch`. This will open the local PCF harness. If you make any changes in the Base Control being used by the wrapper, it will automatically re-build the PCF and show your changes.
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# Running the controls in Portal
|
|
9
9
|
|
|
10
|
-
1.
|
|
11
|
-
1.
|
|
10
|
+
1. Navigate to the root directory.
|
|
11
|
+
1. Run `npm install`.
|
|
12
12
|
1. Run `npm run build`.
|
|
13
|
-
1. Run `
|
|
14
|
-
1. Go to
|
|
15
|
-
1.
|
|
13
|
+
1. Run `npm link`.
|
|
14
|
+
1. Go to `Portal.Web.Frontend` directory.
|
|
15
|
+
1. Add the following prop in the `vite.config.mts` file under `defineConfig`:
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
optimizeDeps: {
|
|
19
|
+
exclude: ['@talxis/base-controls']
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
7. Delete `node_modules`
|
|
23
|
+
8. Run `npm install`
|
|
24
|
+
9. Run `npm link @talxis/base-controls`
|
|
25
|
+
10. Run `npm start`
|
|
26
|
+
|
|
27
|
+
These steps only need to be done once. If you want to see any future changes you made in Base Control package, you need to run `npm run build` in Base Control root directory and Portal will automatically reload with your changes applied.
|
|
28
|
+
|
|
29
|
+
**Don't forget to revert the `vite.config.mts` file to the original version before pushing any changes to the Portal repo!**
|
|
30
|
+
|
|
31
|
+
> **_NOTE:_** If Portal starts to complain that there is a mismatch in React versions, you need to delete the `react` and `react-dom` packages from the `node_modules` folder in Base Controls
|
|
16
32
|
|
|
17
|
-
If you want to see the latest changes applied, repeat steps 2 and 3 and run `yalc update` in the `Portal.Web.Frontend` directory.
|
|
18
|
-
**Don't forget to revert the `package.json` file to the original version before pushing any changes to the Portal repo!**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@talxis/base-controls",
|
|
3
|
-
"version": "1.2408.
|
|
3
|
+
"version": "1.2408.18",
|
|
4
4
|
"description": "Set of React components that natively work with Power Apps Component Framework API's",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"esbuild": "^0.13.9",
|
|
35
35
|
"glob": "^11.0.0",
|
|
36
36
|
"postcss": "^8.3.11",
|
|
37
|
-
"react-scripts": "^5.0.0",
|
|
38
37
|
"rollup": "^2.58.1",
|
|
39
38
|
"rollup-plugin-delete": "^2.0.0",
|
|
40
39
|
"rollup-plugin-dts": "^4.0.0",
|
|
@@ -49,10 +48,7 @@
|
|
|
49
48
|
},
|
|
50
49
|
"scripts": {
|
|
51
50
|
"build": "rollup -c",
|
|
52
|
-
"test": "react-scripts test",
|
|
53
|
-
"eject": "react-scripts eject",
|
|
54
51
|
"documentation": "start-storybook -p 6006",
|
|
55
|
-
"sandbox": "react-scripts start",
|
|
56
52
|
"build-documentation": "build-storybook",
|
|
57
53
|
"lint": "eslint \"./src/**\"",
|
|
58
54
|
"lint:fix": "eslint \"./src/**\" --fix",
|
|
@@ -84,7 +80,7 @@
|
|
|
84
80
|
"@fluentui/react": "^8.119.1",
|
|
85
81
|
"@fluentui/react-migration-v8-v9": "^9.6.20",
|
|
86
82
|
"@talxis/client-libraries": "1.2407.2",
|
|
87
|
-
"@talxis/react-components": "1.2408.
|
|
83
|
+
"@talxis/react-components": "1.2408.10",
|
|
88
84
|
"color": "^4.2.3",
|
|
89
85
|
"dayjs": "^1.11.10",
|
|
90
86
|
"external-svg-loader": "^1.7.1",
|