@outmarket-ai/react-sdk 0.3.0-beta.0 → 0.4.0-alpha.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 +1 -1
- package/dist/index.d.ts +4 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -90,7 +90,7 @@ Mount it once and put the components inside it.
|
|
|
90
90
|
| Prop | Type | Description |
|
|
91
91
|
| --- | --- | --- |
|
|
92
92
|
| `session` | `OutmarketSession` | Required. The `201` body from step 4, unchanged. |
|
|
93
|
-
| `onReady` | `({ workflowsByModule }) => void` | Called once the user's workflows have loaded, grouped by module. |
|
|
93
|
+
| `onReady` | `({ workflowsByModule }) => void` | Called once the user's workflows have loaded, and again if they change: the workflows the components can show, grouped by module, minus any your plan doesn't include. |
|
|
94
94
|
| `colorMode` | `'light' \| 'dark' \| 'system'` | Color mode of the components. |
|
|
95
95
|
| `theme` | `{ primary?: string }` | Your brand color, as hex. |
|
|
96
96
|
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ export interface OutmarketWorkflowInfo {
|
|
|
14
14
|
label: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
/** Fired once the real bootstrap
|
|
17
|
+
/** Fired once the real bootstrap and the user resolve: the workflows the
|
|
18
|
+
* components can render, minus the plan-locked ones, grouped by module. */
|
|
18
19
|
export interface OutmarketReadyPayload {
|
|
19
20
|
workflowsByModule: Record<OutmarketModule, OutmarketWorkflowInfo[]>;
|
|
20
21
|
}
|
|
@@ -132,7 +133,8 @@ export interface OutmarketProviderProps {
|
|
|
132
133
|
colorMode?: 'light' | 'dark' | 'system';
|
|
133
134
|
/** Brand accent (hex), mapped onto the surface's primary color. */
|
|
134
135
|
theme?: { primary?: string };
|
|
135
|
-
/** Fires once bootstrap
|
|
136
|
+
/** Fires once bootstrap and the user resolve, with the workflows the components
|
|
137
|
+
* can render, minus the plan-locked ones, grouped by module; again if they change. */
|
|
136
138
|
onReady?: (payload: OutmarketReadyPayload) => void;
|
|
137
139
|
children?: ReactNode;
|
|
138
140
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outmarket-ai/react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-alpha.0",
|
|
4
4
|
"description": "Embed the real Outmarket workflow surface (catalog + single workflow) in any React app.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"url": "git+https://github.com/Outmarket-AI/outmarket-monorepo.git",
|
|
62
62
|
"directory": "apps/product-frontend/packages/outmarket-react-sdk"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "3b3369a843d3d63bd125f6f96caa56571054a65a"
|
|
65
65
|
}
|