@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 +62 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# @atzentis/booking-react
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@atzentis/booking-react)
|
|
4
|
+
[](../../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.
|
|
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
|
package/dist/index.cjs.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.
|
|
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
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
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.
|
|
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.
|
|
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.
|
|
29
|
+
"@atzentis/booking-sdk": "0.1.0"
|
|
29
30
|
},
|
|
30
31
|
"peerDependencies": {
|
|
31
32
|
"react": ">=18.0.0"
|