@kizenapps/engine 0.2.2-a2e3f65 → 0.3.0-edc2730
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 +22 -6
- package/dist/{chunk-XY7OWVFS.js → chunk-2MGW5YZ6.js} +5 -5
- package/dist/{chunk-XY7OWVFS.js.map → chunk-2MGW5YZ6.js.map} +1 -1
- package/dist/{chunk-6YT5BEZ5.js → chunk-5ITM37KQ.js} +3 -3
- package/dist/{chunk-6YT5BEZ5.js.map → chunk-5ITM37KQ.js.map} +1 -1
- package/dist/{chunk-3QOGPB4J.js → chunk-7F6OJQQJ.js} +3 -3
- package/dist/{chunk-3QOGPB4J.js.map → chunk-7F6OJQQJ.js.map} +1 -1
- package/dist/{chunk-454A26O2.js → chunk-A6ZFHDF3.js} +3 -3
- package/dist/{chunk-454A26O2.js.map → chunk-A6ZFHDF3.js.map} +1 -1
- package/dist/{chunk-MS7FMEDE.js → chunk-D3MYWM32.js} +5 -5
- package/dist/{chunk-MS7FMEDE.js.map → chunk-D3MYWM32.js.map} +1 -1
- package/dist/{chunk-KCX7OVU5.js → chunk-HTP5DKJZ.js} +4 -4
- package/dist/{chunk-KCX7OVU5.js.map → chunk-HTP5DKJZ.js.map} +1 -1
- package/dist/{chunk-OINBOKVF.js → chunk-OV2LTZHB.js} +3 -3
- package/dist/{chunk-OINBOKVF.js.map → chunk-OV2LTZHB.js.map} +1 -1
- package/dist/{chunk-C4J3ZUQ3.js → chunk-TVSR7UNB.js} +3 -3
- package/dist/{chunk-C4J3ZUQ3.js.map → chunk-TVSR7UNB.js.map} +1 -1
- package/dist/{chunk-YBAGXUNR.js → chunk-XHL4J5DZ.js} +3 -3
- package/dist/{chunk-YBAGXUNR.js.map → chunk-XHL4J5DZ.js.map} +1 -1
- package/dist/communication.js +2 -2
- package/dist/contexts/base.js +4 -4
- package/dist/contexts/floatingFrame.js +5 -5
- package/dist/contexts/recordDetail.js +5 -5
- package/dist/index.js +3 -3
- package/dist/react.d.ts +8 -8
- package/dist/react.js +16 -16
- package/dist/react.js.map +1 -1
- package/dist/util.js +6 -6
- package/dist/vite.d.ts +3 -3
- package/dist/vite.js +2 -2
- package/dist/vite.js.map +1 -1
- package/dist/workers/calendarSource.worker.js +6 -6
- package/dist/workers/floatingFrame.worker.js +7 -7
- package/dist/workers/generic.worker.js +6 -6
- package/dist/workers/recordDetail.worker.js +7 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## Kizen
|
|
1
|
+
## Kizen App Engine
|
|
2
2
|
|
|
3
|
-
The core
|
|
3
|
+
The core app engine for the Kizen developer platform for running plugin apps in web workers.
|
|
4
4
|
|
|
5
5
|
### Installation
|
|
6
6
|
|
|
@@ -8,14 +8,30 @@ The core plugin engine for the Kizen developer platform for running plugin apps
|
|
|
8
8
|
yarn add @kizenapps/engine
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
### Usage
|
|
11
|
+
### Usage With Vite
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
The app engine is designed to work with consumers that use Vite, and ships with a vite plugin to do so. This plugin is important for web workers being bundled correctly by the consuming application.
|
|
14
|
+
|
|
15
|
+
In your `vite.config.ts`:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { appEnginePlugin } from '@kizenapps/engine/vite';
|
|
19
|
+
|
|
20
|
+
export default defineConfig({
|
|
21
|
+
plugins: [appEnginePlugin()],
|
|
22
|
+
|
|
23
|
+
// The rest of your config
|
|
24
|
+
});
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Engine Usage
|
|
28
|
+
|
|
29
|
+
Your app needs to be wrapped in the `AppEngineProvider`. This provider gives the internal components access to the worker runner, network requests, and other consumer-specific features, and adapts your application's common UI components like modals and toasts to a common API that plugins can use.
|
|
14
30
|
|
|
15
31
|
#### Context Provider
|
|
16
32
|
|
|
17
33
|
```tsx
|
|
18
|
-
import {
|
|
34
|
+
import { AppEngineProvider } from '@kizenapps/engine/react';
|
|
19
35
|
import { useHistory } from 'react-router-dom';
|
|
20
36
|
import PluginContext from 'contexts/Plugins';
|
|
21
37
|
|
|
@@ -41,7 +57,7 @@ const AppProvider = ({ user, teamMember, business, clientObject }) => {
|
|
|
41
57
|
const { show: showPrompt, showing } = integrationModalTriggerProps;
|
|
42
58
|
|
|
43
59
|
return (
|
|
44
|
-
<
|
|
60
|
+
<AppEngineProvider
|
|
45
61
|
user={user}
|
|
46
62
|
teamMember={teamMember}
|
|
47
63
|
business={business}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { generateUUIDV4, getPartialLocation } from './chunk-
|
|
2
|
-
import { IFRAME_PREFIX, ACTIONS, RESPONSES, COMMUNICATIONS, thirdPartyGlobalNames, getScriptIntegrationType, thirdPartySetupScripts, thirdPartyReadyPredicates } from './chunk-
|
|
1
|
+
import { generateUUIDV4, getPartialLocation } from './chunk-TVSR7UNB.js';
|
|
2
|
+
import { IFRAME_PREFIX, ACTIONS, RESPONSES, COMMUNICATIONS, thirdPartyGlobalNames, getScriptIntegrationType, thirdPartySetupScripts, thirdPartyReadyPredicates } from './chunk-5ITM37KQ.js';
|
|
3
3
|
import { __commonJS, __toESM } from './chunk-5WRI5ZAA.js';
|
|
4
4
|
import DOMPurify from 'dompurify';
|
|
5
5
|
|
|
@@ -2408,8 +2408,8 @@ var runObjectExpression = async (expression, values) => {
|
|
|
2408
2408
|
};
|
|
2409
2409
|
|
|
2410
2410
|
// src/index.ts
|
|
2411
|
-
var version = "0.
|
|
2411
|
+
var version = "0.3.0-edc2730";
|
|
2412
2412
|
|
|
2413
2413
|
export { getHash, getStableHash, isFlagEnabled, runExpression, runObjectExpression, runOptionExpression, runScript, runStringExpression, version };
|
|
2414
|
-
//# sourceMappingURL=chunk-
|
|
2415
|
-
//# sourceMappingURL=chunk-
|
|
2414
|
+
//# sourceMappingURL=chunk-2MGW5YZ6.js.map
|
|
2415
|
+
//# sourceMappingURL=chunk-2MGW5YZ6.js.map
|