@weavix/tracker-plugin-sdk-react 0.0.2 → 0.0.3
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/dist/components/TrackerPluginProvider.d.ts +3 -3
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +18 -16
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BasicContext, PluginProviderProps, Theme } from '
|
|
2
|
-
import { GetDataResultMap, HandlerFunction, Handlers, SlotContextMap } from '
|
|
1
|
+
import { BasicContext, PluginProviderProps, Theme } from '@weavix/sdk-react';
|
|
2
|
+
import { GetDataResultMap, HandlerFunction, Handlers, SlotContextMap } from '@weavix/tracker-plugin-sdk';
|
|
3
3
|
/** Строковые ключи слота (для индексных типов без `symbol` в keyof). */
|
|
4
4
|
type TrackerSlotKey = Extract<keyof SlotContextMap, string>;
|
|
5
5
|
/**
|
|
@@ -87,5 +87,5 @@ export declare function useTrackerPluginContext(level: 'full'): {
|
|
|
87
87
|
}[TrackerSlotKey];
|
|
88
88
|
export declare function useTrackerPluginContext<TSlot extends TrackerSlotKey>(level?: 'basic'): BasicTrackerPluginContextValue<TSlot>;
|
|
89
89
|
export declare function useTrackerPluginContext<TSlot extends TrackerSlotKey>(level: 'full'): FullTrackerPluginContextValue<TSlot>;
|
|
90
|
-
export { isInternalUrl } from '
|
|
90
|
+
export { isInternalUrl } from '@weavix/sdk-react';
|
|
91
91
|
//# sourceMappingURL=TrackerPluginProvider.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { PluginError } from '
|
|
2
|
-
export type { PluginErrorProps } from '
|
|
3
|
-
export { PluginLoader } from '
|
|
1
|
+
export { PluginError } from '@weavix/sdk-react';
|
|
2
|
+
export type { PluginErrorProps } from '@weavix/sdk-react';
|
|
3
|
+
export { PluginLoader } from '@weavix/sdk-react';
|
|
4
4
|
export { TrackerPluginProvider, useTrackerPluginContext } from './components/TrackerPluginProvider';
|
|
5
5
|
export type { BasicTrackerPluginContextValue, FullTrackerPluginContextValue, RegisterHandlerFunction, TrackerPluginProviderProps, } from './components/TrackerPluginProvider';
|
|
6
|
-
export { useConfirm, useLocalizedString, useToaster } from '
|
|
7
|
-
export { getField, getLocalizedString, hostApi, METHOD_NOT_SUPPORTED, MISSING_REQUIRED_SCOPE, PLUGIN_ID_IS_NOT_CORRECT, PLUGIN_ID_OR_SLOT_NOT_PROVIDED, PluginActionError, trackerApi, uiApi, UNKNOWN_ERROR, VALIDATION_ERROR, } from '
|
|
8
|
-
export type { Attachment, BasicContext, ConfirmOptions, ConfirmResult, ContextLevel, ContentSizeUpdateRequest, HostEventCallback, HostEventContract, HostEventMethod, Issue, LocalizedString, MetaEntityV2, SlotContextMap, Theme, ToastAction, ToastOptions, TrackerApi, TrackerApiCallOptions, TrackerApiInitOptions, TrackerApiV3, TriggerActionData, Unsubscribe, } from '
|
|
6
|
+
export { useConfirm, useLanguage, useLocalizedString, useTheme, useToaster, } from '@weavix/sdk-react';
|
|
7
|
+
export { getField, getLocalizedString, hostApi, METHOD_NOT_SUPPORTED, MISSING_REQUIRED_SCOPE, PLUGIN_ID_IS_NOT_CORRECT, PLUGIN_ID_OR_SLOT_NOT_PROVIDED, PluginActionError, trackerApi, uiApi, UNKNOWN_ERROR, VALIDATION_ERROR, } from '@weavix/tracker-plugin-sdk';
|
|
8
|
+
export type { Attachment, BasicContext, ConfirmOptions, ConfirmResult, ContextLevel, ContentSizeUpdateRequest, HostEventCallback, HostEventContract, HostEventMethod, Issue, LocalizedString, MetaEntityV2, SlotContextMap, Theme, ToastAction, ToastOptions, TrackerApi, TrackerApiCallOptions, TrackerApiInitOptions, TrackerApiV3, TriggerActionData, Unsubscribe, } from '@weavix/tracker-plugin-sdk';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AACpG,YAAY,EACR,8BAA8B,EAC9B,6BAA6B,EAC7B,uBAAuB,EACvB,0BAA0B,GAC7B,MAAM,oCAAoC,CAAC;AAG5C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AACpG,YAAY,EACR,8BAA8B,EAC9B,6BAA6B,EAC7B,uBAAuB,EACvB,0BAA0B,GAC7B,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EACH,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,QAAQ,EACR,UAAU,GACb,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACH,QAAQ,EACR,kBAAkB,EAClB,OAAO,EACP,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,8BAA8B,EAC9B,iBAAiB,EACjB,UAAU,EACV,KAAK,EACL,aAAa,EACb,gBAAgB,GACnB,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EACR,UAAU,EACV,YAAY,EACZ,cAAc,EACd,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,KAAK,EACL,eAAe,EACf,YAAY,EACZ,cAAc,EACd,KAAK,EACL,WAAW,EACX,YAAY,EACZ,UAAU,EACV,qBAAqB,EACrB,qBAAqB,EACrB,YAAY,EACZ,iBAAiB,EACjB,WAAW,GACd,MAAM,4BAA4B,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PluginProvider as pr, usePluginContext as xe } from "@weavix/sdk-react";
|
|
2
|
-
import { PluginError as Sr, PluginLoader as xr, useConfirm as wr,
|
|
2
|
+
import { PluginError as Sr, PluginLoader as xr, useConfirm as wr, useLanguage as jr, useLocalizedString as kr, useTheme as Dr, useToaster as Ar } from "@weavix/sdk-react";
|
|
3
3
|
import we, { createContext as gr, useContext as Rr, useMemo as Pe } from "react";
|
|
4
|
-
import { METHOD_NOT_SUPPORTED as
|
|
4
|
+
import { METHOD_NOT_SUPPORTED as Fr, MISSING_REQUIRED_SCOPE as Lr, PLUGIN_ID_IS_NOT_CORRECT as $r, PLUGIN_ID_OR_SLOT_NOT_PROVIDED as Wr, PluginActionError as Nr, UNKNOWN_ERROR as Yr, VALIDATION_ERROR as Ur, getField as Mr, getLocalizedString as Vr, hostApi as Hr, trackerApi as Jr, uiApi as qr } from "@weavix/tracker-plugin-sdk";
|
|
5
5
|
var M = { exports: {} }, F = {};
|
|
6
6
|
var Oe;
|
|
7
7
|
function _r() {
|
|
@@ -646,24 +646,26 @@ function Pr(_ = "basic") {
|
|
|
646
646
|
};
|
|
647
647
|
}
|
|
648
648
|
export {
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
649
|
+
Fr as METHOD_NOT_SUPPORTED,
|
|
650
|
+
Lr as MISSING_REQUIRED_SCOPE,
|
|
651
|
+
$r as PLUGIN_ID_IS_NOT_CORRECT,
|
|
652
|
+
Wr as PLUGIN_ID_OR_SLOT_NOT_PROVIDED,
|
|
653
|
+
Nr as PluginActionError,
|
|
654
654
|
Sr as PluginError,
|
|
655
655
|
xr as PluginLoader,
|
|
656
656
|
Tr as TrackerPluginProvider,
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
657
|
+
Yr as UNKNOWN_ERROR,
|
|
658
|
+
Ur as VALIDATION_ERROR,
|
|
659
|
+
Mr as getField,
|
|
660
|
+
Vr as getLocalizedString,
|
|
661
|
+
Hr as hostApi,
|
|
662
|
+
Jr as trackerApi,
|
|
663
|
+
qr as uiApi,
|
|
664
664
|
wr as useConfirm,
|
|
665
|
-
jr as
|
|
666
|
-
kr as
|
|
665
|
+
jr as useLanguage,
|
|
666
|
+
kr as useLocalizedString,
|
|
667
|
+
Dr as useTheme,
|
|
668
|
+
Ar as useToaster,
|
|
667
669
|
Pr as useTrackerPluginContext
|
|
668
670
|
};
|
|
669
671
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weavix/tracker-plugin-sdk-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@weavix/tracker-plugin-sdk": "^0.0.
|
|
26
|
-
"@weavix/sdk-core": "^0.0.
|
|
27
|
-
"@weavix/sdk-react": "^0.0.
|
|
28
|
-
"@weavix/tracker-core": "^0.0.
|
|
25
|
+
"@weavix/tracker-plugin-sdk": "^0.0.3",
|
|
26
|
+
"@weavix/sdk-core": "^0.0.5",
|
|
27
|
+
"@weavix/sdk-react": "^0.0.5",
|
|
28
|
+
"@weavix/tracker-core": "^0.0.3"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": "^18.0.0",
|
|
32
|
-
"@weavix/tracker-core": "^0.0.
|
|
32
|
+
"@weavix/tracker-core": "^0.0.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@testing-library/jest-dom": "*",
|