@weavix/sdk-react 0.0.34 → 0.0.36
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 +3 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @weavix/sdk-react
|
|
2
2
|
|
|
3
|
-
Generic plugin SDK React package — framework-agnostic `PluginProvider
|
|
3
|
+
Generic plugin SDK React package — framework-agnostic `PluginProvider`, hooks, and components.
|
|
4
4
|
|
|
5
5
|
Automatically includes [`@weavix/sdk-core`](https://www.npmjs.com/package/@weavix/sdk-core) as a dependency.
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ import { PluginProvider, usePluginContext } from '@weavix/sdk-react';
|
|
|
20
20
|
root.render(
|
|
21
21
|
<PluginProvider>
|
|
22
22
|
<App />
|
|
23
|
-
</PluginProvider
|
|
23
|
+
</PluginProvider>,
|
|
24
24
|
);
|
|
25
25
|
|
|
26
26
|
// Use in components
|
|
@@ -46,8 +46,4 @@ function AppFull() {
|
|
|
46
46
|
- **`isInternalUrl()`** — utility for checking if a URL is internal
|
|
47
47
|
- **Hooks**: `useTheme`, `useLanguage`, `useIsYateam`, `useUserId`, `useOrgId`, `useIsOrbita`, `useConfirm`, `useToaster`, `useLocalizedString`
|
|
48
48
|
- **Components**: `PluginError`, `PluginLoader`, `ErrorBoundary`
|
|
49
|
-
- **Re-exports from `@weavix/sdk-core`**: `hostApi`, `uiApi`, `on`, `dispatchHostEvent`, error codes, types
|
|
50
|
-
|
|
51
|
-
## For Tracker plugins
|
|
52
|
-
|
|
53
|
-
Use [`@yandex-data-ui/tracker-plugin-sdk-react`](https://npm.yandex-team.ru/@yandex-data-ui/tracker-plugin-sdk-react) (internal) or [`@weavix/tracker-plugin-sdk-react`](https://www.npmjs.com/package/@weavix/tracker-plugin-sdk-react) (external) for fully typed Tracker-specific wrappers.
|
|
49
|
+
- **Re-exports from `@weavix/sdk-core`**: `hostApi`, `uiApi`, `on`, `dispatchHostEvent`, error codes, types
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weavix/sdk-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"license": "SEE LICENSE IN LICENSE",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@weavix/sdk-core": "0.0.
|
|
17
|
+
"@weavix/sdk-core": "0.0.36"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"react": "^18.0.0"
|