@bid-scents/shared-sdk 1.0.0 → 1.0.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.
package/README.md CHANGED
@@ -8,7 +8,7 @@ A modular and reusable SDK for the Bid-Scents Marketplace, built with TypeScript
8
8
 
9
9
  ### 1. Clone and Initialize
10
10
  ```bash
11
- git clone https://github.com/Shawarmaa/shared-sdk.git
11
+ git clone https://github.com/BidScents/shared-sdk.git
12
12
  cd shared-sdk
13
13
  bun install # or npm install
14
14
  ```
@@ -1,2 +1,3 @@
1
1
  export { useAuthStore } from './auth';
2
+ export { useLoadingStore } from './loading';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stores/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stores/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA"}
@@ -1,2 +1,3 @@
1
1
  // Central export for all Zustand stores.
2
2
  export { useAuthStore } from './auth';
3
+ export { useLoadingStore } from './loading';
@@ -0,0 +1,8 @@
1
+ interface LoadingState {
2
+ isLoading: boolean;
3
+ showLoading: () => void;
4
+ hideLoading: () => void;
5
+ }
6
+ export declare const useLoadingStore: import("zustand").UseBoundStore<import("zustand").StoreApi<LoadingState>>;
7
+ export {};
8
+ //# sourceMappingURL=loading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../src/stores/loading.ts"],"names":[],"mappings":"AAEA,UAAU,YAAY;IACpB,SAAS,EAAE,OAAO,CAAA;IAClB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB;AAED,eAAO,MAAM,eAAe,2EAIzB,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { create } from 'zustand';
2
+ export const useLoadingStore = create((set) => ({
3
+ isLoading: false,
4
+ showLoading: () => set({ isLoading: true }),
5
+ hideLoading: () => set({ isLoading: false }),
6
+ }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bid-scents/shared-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Shared SDK for marketplace applications",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",