@weavix/sdk-react 0.0.4 → 0.0.5

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.
@@ -1,4 +1,4 @@
1
- import { BasicContext, Theme } from '../../../plugin-sdk-core/src/index.ts';
1
+ import { BasicContext, Theme } from '@weavix/sdk-core';
2
2
  import { ReactNode } from 'react';
3
3
  /**
4
4
  * Generic registerHandler — no Tracker-specific types.
@@ -1,4 +1,4 @@
1
- import { ConfirmOptions, ConfirmResult } from '../../../plugin-sdk-core/src/index.ts';
1
+ import { ConfirmOptions, ConfirmResult } from '@weavix/sdk-core';
2
2
  export type UseConfirmReturn = {
3
3
  show: (options: ConfirmOptions) => Promise<ConfirmResult>;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { LocalizedString } from '../../../plugin-sdk-core/src/index.ts';
1
+ import { LocalizedString } from '@weavix/sdk-core';
2
2
  /**
3
3
  * Хук для получения локализованной строки на основе текущего языка из контекста.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { Theme } from '../../../plugin-sdk-core/src/index.ts';
1
+ import { Theme } from '@weavix/sdk-core';
2
2
  /**
3
3
  * Реактивный хук для получения текущей темы хоста.
4
4
  * @returns Текущая тема (`'light'` | `'dark'` и т.д.), или `undefined` до получения первого события.
@@ -1,4 +1,4 @@
1
- import { ToastOptions } from '../../../plugin-sdk-core/src/index.ts';
1
+ import { ToastOptions } from '@weavix/sdk-core';
2
2
  export type UseToasterReturn = {
3
3
  add: (options: ToastOptions) => Promise<{
4
4
  name: string;
package/dist/index.d.ts CHANGED
@@ -11,6 +11,6 @@ export { useLocalizedString } from './hooks/useLocalizedString';
11
11
  export { useTheme } from './hooks/useTheme';
12
12
  export { useToaster } from './hooks/useToaster';
13
13
  export { useUserId } from './hooks/useUserId';
14
- export { getField, getLocalizedString, hostApi, METHOD_NOT_SUPPORTED, MISSING_REQUIRED_SCOPE, PLUGIN_ID_IS_NOT_CORRECT, PLUGIN_ID_OR_SLOT_NOT_PROVIDED, PluginActionError, uiApi, UNKNOWN_ERROR, VALIDATION_ERROR, on, dispatchHostEvent, } from '../../plugin-sdk-core/src/index.ts';
15
- export type { BasicContext, ConfirmOptions, ConfirmResult, ContextLevel, ContentSizeUpdateRequest, HostEventCallback, HostEventContract, HostEventMethod, LocalizedString, Theme, ToastAction, ToastOptions, Unsubscribe, } from '../../plugin-sdk-core/src/index.ts';
14
+ export { getField, getLocalizedString, hostApi, METHOD_NOT_SUPPORTED, MISSING_REQUIRED_SCOPE, PLUGIN_ID_IS_NOT_CORRECT, PLUGIN_ID_OR_SLOT_NOT_PROVIDED, PluginActionError, uiApi, UNKNOWN_ERROR, VALIDATION_ERROR, on, dispatchHostEvent, } from '@weavix/sdk-core';
15
+ export type { BasicContext, ConfirmOptions, ConfirmResult, ContextLevel, ContentSizeUpdateRequest, HostEventCallback, HostEventContract, HostEventMethod, LocalizedString, Theme, ToastAction, ToastOptions, Unsubscribe, } from '@weavix/sdk-core';
16
16
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weavix/sdk-react",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",
@@ -12,7 +12,7 @@
12
12
  "README.md"
13
13
  ],
14
14
  "dependencies": {
15
- "@weavix/sdk-core": "0.0.4"
15
+ "@weavix/sdk-core": "0.0.5"
16
16
  },
17
17
  "peerDependencies": {
18
18
  "react": "^18.0.0"