@blateral/b.kit 2.1.6 → 2.1.7-patch.1.1

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.
@@ -0,0 +1,11 @@
1
+ export declare type MessageType = 'NAVIGATION_STATE';
2
+ export interface Message<TData = Record<string, any> | string | number> {
3
+ type: MessageType;
4
+ data: TData;
5
+ }
6
+ declare const useMessage: <TData = string | number | Record<string, any>>() => {
7
+ send: (type: MessageType, data: TData) => void;
8
+ listen: (type: MessageType, callback: (message: Message<TData>) => void) => () => void;
9
+ };
10
+ export default useMessage;
11
+ //# sourceMappingURL=useMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMessage.d.ts","sourceRoot":"","sources":["../../src/utils/useMessage.ts"],"names":[],"mappings":"AAEA,oBAAY,WAAW,GAAG,kBAAkB,CAAC;AAE7C,MAAM,WAAW,OAAO,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,GAAG,MAAM;IAClE,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,KAAK,CAAC;CACf;AAED,QAAA,MAAM,UAAU;iBACoB,WAAW;mBAKhC,WAAW,yCAAyC,IAAI;CAsBtE,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { MessageNavigationState } from "../components/sections/navigation/Navigation";
2
+ export declare const useNavigationState: (initialState?: MessageNavigationState | undefined) => MessageNavigationState | null;
3
+ //# sourceMappingURL=useNavigationState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNavigationState.d.ts","sourceRoot":"","sources":["../../src/utils/useNavigationState.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,qDAAkD;AAExF,eAAO,MAAM,kBAAkB,sFAwB9B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blateral/b.kit",
3
- "version": "2.1.6",
3
+ "version": "2.1.7-patch.1.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
@@ -14,7 +14,7 @@
14
14
  "storybook": "start-storybook -s ./public -p 9000 -c .storybook --no-manager-cache",
15
15
  "deploy-storybook": "yarn storybook-to-ghpages",
16
16
  "build-storybook": "build-storybook -c .storybook -s ./public",
17
- "publish-yalc": "rm -rf lib && yarn build && yalc publish",
17
+ "push-yalc": "yarn build && yalc push --sig",
18
18
  "tc": "tsc --noEmit",
19
19
  "check-publish": "yarn pack && tar -xvzf *.tgz && rm -rf package *.tgz",
20
20
  "deploy": "yarn tc && yarn build && yarn publish",