@weavix/sdk-react 0.0.33 → 0.0.35
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/LICENSE +9 -0
- package/README.md +3 -7
- package/package.json +5 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Copyright (c) 2026 Yandex
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted to use this software in accordance with the terms
|
|
4
|
+
and conditions outlined in the Yandex Developer Terms, which can be found
|
|
5
|
+
at the following URL:
|
|
6
|
+
https://yandex.ru/legal/360_plugin_dev_agreement
|
|
7
|
+
|
|
8
|
+
By using this software, you agree to comply with these terms and conditions.
|
|
9
|
+
If you do not agree with these terms, you are not permitted to use this software.
|
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.35",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -9,10 +9,12 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
|
-
"README.md"
|
|
12
|
+
"README.md",
|
|
13
|
+
"LICENSE"
|
|
13
14
|
],
|
|
15
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
14
16
|
"dependencies": {
|
|
15
|
-
"@weavix/sdk-core": "0.0.
|
|
17
|
+
"@weavix/sdk-core": "0.0.35"
|
|
16
18
|
},
|
|
17
19
|
"peerDependencies": {
|
|
18
20
|
"react": "^18.0.0"
|