@atzentis/booking-react 0.0.0 → 0.1.0

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 ADDED
@@ -0,0 +1,62 @@
1
+ # @atzentis/booking-react
2
+
3
+ [![npm](https://img.shields.io/npm/v/@atzentis/booking-react)](https://www.npmjs.com/package/@atzentis/booking-react)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](../../LICENCE.md)
5
+
6
+ React hooks and components for [atzentis.io](https://atzentis.io) — the Atzentis Hospitality Platform. Built on top of [`@atzentis/booking-sdk`](https://www.npmjs.com/package/@atzentis/booking-sdk).
7
+
8
+ ## Install
9
+
10
+ ```bash
11
+ npm install @atzentis/booking-react @atzentis/booking-sdk @tanstack/react-query
12
+ ```
13
+
14
+ ## Quick Start
15
+
16
+ ```tsx
17
+ import { BookingProvider, useProperties } from '@atzentis/booking-react';
18
+
19
+ function App() {
20
+ return (
21
+ <BookingProvider apiKey="your-api-key" baseUrl="https://api.atzentis.io">
22
+ <PropertyList />
23
+ </BookingProvider>
24
+ );
25
+ }
26
+
27
+ function PropertyList() {
28
+ const { data: properties, isLoading } = useProperties();
29
+
30
+ if (isLoading) return <div>Loading...</div>;
31
+ return properties.map(p => <div key={p.id}>{p.name}</div>);
32
+ }
33
+ ```
34
+
35
+ ## Features
36
+
37
+ - `BookingProvider` wrapping `QueryClientProvider`
38
+ - 22 hooks covering all 28 services
39
+ - 26 pre-built components for booking flows, PMS operations, and dashboards
40
+ - SSR support via separate server entry point for Next.js 16+
41
+ - Full TypeScript coverage with strict types
42
+ - Tree-shakeable ESM and CJS output
43
+
44
+ ## Peer Dependencies
45
+
46
+ - `react` >= 18.0.0
47
+ - `@atzentis/booking-sdk` (core client)
48
+ - `@tanstack/react-query` (data fetching)
49
+
50
+ ## Core SDK
51
+
52
+ For framework-agnostic usage (Node.js, edge, etc.), see [`@atzentis/booking-sdk`](https://www.npmjs.com/package/@atzentis/booking-sdk).
53
+
54
+ ## Links
55
+
56
+ - [atzentis.io](https://atzentis.io) — Hospitality Platform
57
+ - [API Documentation](https://docs.atzentis.com)
58
+ - [GitHub](https://github.com/atzentis/atzentis-booking-sdk)
59
+
60
+ ## License
61
+
62
+ MIT
package/dist/index.cjs CHANGED
@@ -23,7 +23,7 @@ __export(index_exports, {
23
23
  REACT_VERSION: () => REACT_VERSION
24
24
  });
25
25
  module.exports = __toCommonJS(index_exports);
26
- var REACT_VERSION = "0.0.0";
26
+ var REACT_VERSION = "0.1.0";
27
27
  // Annotate the CommonJS export names for ESM import in node:
28
28
  0 && (module.exports = {
29
29
  REACT_VERSION
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @atzentis/booking-react\n// Placeholder — implementation starts in P29\nexport const REACT_VERSION = \"0.0.0\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,gBAAgB;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @atzentis/booking-react\n// Placeholder — implementation starts in P29\nexport const REACT_VERSION = \"0.1.0\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,gBAAgB;","names":[]}
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- declare const REACT_VERSION = "0.0.0";
1
+ declare const REACT_VERSION = "0.1.0";
2
2
 
3
3
  export { REACT_VERSION };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- declare const REACT_VERSION = "0.0.0";
1
+ declare const REACT_VERSION = "0.1.0";
2
2
 
3
3
  export { REACT_VERSION };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/index.ts
2
- var REACT_VERSION = "0.0.0";
2
+ var REACT_VERSION = "0.1.0";
3
3
  export {
4
4
  REACT_VERSION
5
5
  };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @atzentis/booking-react\n// Placeholder — implementation starts in P29\nexport const REACT_VERSION = \"0.0.0\";\n"],"mappings":";AAEO,IAAM,gBAAgB;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @atzentis/booking-react\n// Placeholder — implementation starts in P29\nexport const REACT_VERSION = \"0.1.0\";\n"],"mappings":";AAEO,IAAM,gBAAgB;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atzentis/booking-react",
3
- "version": "0.0.0",
3
+ "version": "0.1.0",
4
4
  "description": "Atzentis Booking SDK — React hooks and components",
5
5
  "keywords": [
6
6
  "atzentis",
@@ -22,10 +22,11 @@
22
22
  }
23
23
  },
24
24
  "files": [
25
- "dist"
25
+ "dist",
26
+ "README.md"
26
27
  ],
27
28
  "dependencies": {
28
- "@atzentis/booking-sdk": "0.0.0"
29
+ "@atzentis/booking-sdk": "0.1.0"
29
30
  },
30
31
  "peerDependencies": {
31
32
  "react": ">=18.0.0"