@requiply/nuxt 0.0.0-stage → 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/CHANGELOG.md +15 -0
- package/LICENSE +21 -0
- package/README.md +644 -2
- package/dist/module.d.mts +16 -0
- package/dist/module.json +12 -0
- package/dist/module.mjs +83 -0
- package/dist/runtime/app/components/RequiplyAccountLinks.d.ts +53 -0
- package/dist/runtime/app/components/RequiplyAccountLinks.js +13 -0
- package/dist/runtime/app/components/RequiplyBookButton.d.ts +37 -0
- package/dist/runtime/app/components/RequiplyBookButton.js +6 -0
- package/dist/runtime/app/components/RequiplyBundle.d.ts +21 -0
- package/dist/runtime/app/components/RequiplyBundle.js +4 -0
- package/dist/runtime/app/components/RequiplyCallButton.d.ts +35 -0
- package/dist/runtime/app/components/RequiplyCallButton.js +6 -0
- package/dist/runtime/app/components/RequiplyCartButton.d.ts +24 -0
- package/dist/runtime/app/components/RequiplyCartButton.js +4 -0
- package/dist/runtime/app/components/RequiplyDatePicker.d.ts +12 -0
- package/dist/runtime/app/components/RequiplyDatePicker.js +2 -0
- package/dist/runtime/app/components/RequiplyPortalButton.d.ts +34 -0
- package/dist/runtime/app/components/RequiplyPortalButton.js +6 -0
- package/dist/runtime/app/components/RequiplyPriceTiers.d.ts +21 -0
- package/dist/runtime/app/components/RequiplyPriceTiers.js +4 -0
- package/dist/runtime/app/components/RequiplyProduct.d.ts +37 -0
- package/dist/runtime/app/components/RequiplyProduct.js +26 -0
- package/dist/runtime/app/components/RequiplyProductCard.d.ts +21 -0
- package/dist/runtime/app/components/RequiplyProductCard.js +4 -0
- package/dist/runtime/app/components/RequiplyProductList.d.ts +70 -0
- package/dist/runtime/app/components/RequiplyProductList.js +19 -0
- package/dist/runtime/app/composables/useRequiply.d.ts +12 -0
- package/dist/runtime/app/composables/useRequiply.js +12 -0
- package/dist/runtime/app/composables/useRequiplyEmbed.d.ts +43 -0
- package/dist/runtime/app/composables/useRequiplyEmbed.js +54 -0
- package/dist/runtime/app/composables/useRequiplyProduct.d.ts +40 -0
- package/dist/runtime/app/composables/useRequiplyProduct.js +92 -0
- package/dist/runtime/app/embed.d.ts +79 -0
- package/dist/runtime/app/embed.js +75 -0
- package/dist/runtime/app/placeholder.d.ts +26 -0
- package/dist/runtime/app/placeholder.js +29 -0
- package/dist/runtime/app/plugins/requiply.d.ts +2 -0
- package/dist/runtime/app/plugins/requiply.js +46 -0
- package/dist/runtime/requiply.d.ts +2 -0
- package/dist/runtime/requiply.js +1 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/server/utils/requiply.d.ts +16 -0
- package/dist/runtime/server/utils/requiply.js +22 -0
- package/dist/runtime/types.d.ts +221 -0
- package/dist/runtime/types.js +0 -0
- package/dist/types.d.mts +9 -0
- package/package.json +78 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
First release.
|
|
6
|
+
|
|
7
|
+
- Booking widget components: `<RequiplyBookButton>`, `<RequiplyProductCard>`, `<RequiplyProductList>`, `<RequiplyPriceTiers>`, `<RequiplyBundle>`, `<RequiplyDatePicker>`, `<RequiplyCartButton>`, `<RequiplyPortalButton>`, `<RequiplyAccountLinks>` and `<RequiplyCallButton>`, with server-rendered fallback in the default slot. The widget runtime loads from the booking portal, configured by the `requiply.embed` options.
|
|
8
|
+
- `useRequiplyEmbed()`: the visitor's cart as reactive state, plus `addToCart()`, `setDates()`, `openCart()`, `checkout()` and more for your own cart UI.
|
|
9
|
+
- `useRequiply()`: the `@requiply/api-sdk` client with the publishable key, in pages and during SSR.
|
|
10
|
+
- `useRequiplyServer(event)`: the client with the secret key in server routes; the key stays in private runtime config. A secret key put in the publishable slot stops the build and the render.
|
|
11
|
+
- `#requiply` alias for the SDK's types and `RequiplyError`.
|
|
12
|
+
- Customization: `embed.theme` design tokens (`--rq-*` variables, also settable from your own CSS), `embed.messages` for your own wording per language, CSS parts on every widget element (`::part(btn)`), and `embed.css` injected into every widget.
|
|
13
|
+
- Icons: a calendar on the floating cart and `<RequiplyCartButton>`, a plus on "Add to booking" by default (`embed.cartIcon`, `embed.buttonIcon` change them).
|
|
14
|
+
- Widget cards line up out of the box: in the product list and in a site's own grid of `<RequiplyProductCard>`s, images, two-line names, prices and buttons share one level, and product photos no longer show grey bars beside them (booking portal widget runtime from 2026-11-29).
|
|
15
|
+
- `<RequiplyProduct>` and `useRequiplyProduct()`: a product in your own markup, server-rendered from the public catalog, with live availability for the chosen dates, the formatted price, the cart quantity and `add()` / `setQuantity()` once the widgets load. Needs the booking portal's widget runtime from 2026-11-29 or later for tokens, wording, parts and `css`.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Andrian Zafiiovskiy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|