@linked365/pptb-flowfinder 0.1.0
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 +96 -0
- package/dist/assets/index-bZDwkcSu.js +104 -0
- package/dist/index.html +14 -0
- package/index.html +12 -0
- package/npm-shrinkwrap.json +3727 -0
- package/package.json +56 -0
package/README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# FlowFinder
|
|
2
|
+
|
|
3
|
+
A Power Platform Tool Box tool
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- ✅ React 18 with TypeScript
|
|
8
|
+
- ✅ Vite for fast development and building
|
|
9
|
+
- ✅ Access to ToolBox API via `window.toolboxAPI`
|
|
10
|
+
- ✅ Connection URL and access token handling
|
|
11
|
+
- ✅ Event subscription and handling
|
|
12
|
+
- ✅ Hot Module Replacement (HMR) for development
|
|
13
|
+
|
|
14
|
+
## Structure
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
pptb-flowfinder/
|
|
18
|
+
├── src/
|
|
19
|
+
│ ├── App.tsx # Main component
|
|
20
|
+
│ ├── main.tsx # Entry point
|
|
21
|
+
│ └── styles.css # Styling
|
|
22
|
+
├── dist/ # Build output
|
|
23
|
+
├── index.html
|
|
24
|
+
├── package.json
|
|
25
|
+
├── tsconfig.json
|
|
26
|
+
└── vite.config.ts
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
Install dependencies:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npm install
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Development
|
|
38
|
+
|
|
39
|
+
Start development server with HMR:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm run dev
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Build the tool:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npm run build
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Preview production build:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
npm run preview
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Usage in ToolBox
|
|
58
|
+
|
|
59
|
+
1. Build the tool using `npm run build`
|
|
60
|
+
2. Install the tool in ToolBox
|
|
61
|
+
3. Load and use the tool from the ToolBox interface
|
|
62
|
+
|
|
63
|
+
## API Usage
|
|
64
|
+
|
|
65
|
+
The tool demonstrates various ToolBox API features:
|
|
66
|
+
|
|
67
|
+
### Getting Connection Context
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
const context = await window.toolboxAPI.getToolContext();
|
|
71
|
+
console.log(context.connectionUrl);
|
|
72
|
+
console.log(context.accessToken);
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Showing Notifications
|
|
76
|
+
|
|
77
|
+
```typescript
|
|
78
|
+
await window.toolboxAPI.showNotification({
|
|
79
|
+
title: 'Success',
|
|
80
|
+
body: 'Operation completed',
|
|
81
|
+
type: 'success'
|
|
82
|
+
});
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Subscribing to Events
|
|
86
|
+
|
|
87
|
+
```typescript
|
|
88
|
+
window.toolboxAPI.onToolboxEvent((event, payload) => {
|
|
89
|
+
console.log('Event:', payload.event);
|
|
90
|
+
console.log('Data:', payload.data);
|
|
91
|
+
});
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## License
|
|
95
|
+
|
|
96
|
+
MIT
|