@coras-io/embed 0.6.12 → 0.7.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 +12 -0
- package/dist/components/alert/alert.styles.js +4 -4
- package/dist/components/attraction-card/long/attraction-long-card.styles.js +1 -1
- package/dist/components/basket/basket.styles.js +2 -2
- package/dist/components/basket-item/basket-item.styles.js +2 -2
- package/dist/components/better-carousel/better-carousel.component.js +11 -7
- package/dist/components/better-carousel/better-carousel.styles.js +15 -5
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.styles.js +4 -0
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/calendar/base/calendar.mixin.js +7 -5
- package/dist/components/calendar/month/month.component.js +1 -1
- package/dist/components/calendar/multi/multi.component.js +3 -1
- package/dist/components/carousel/carousel.component.js +6 -2
- package/dist/components/carousel/carousel.styles.js +12 -2
- package/dist/components/checkbox-group/checkbox-group.styles.js +2 -2
- package/dist/components/dialog/dialog.styles.js +4 -0
- package/dist/components/drawer/drawer.styles.js +14 -6
- package/dist/components/filters-drawer/filters-drawer.styles.js +6 -4
- package/dist/components/icon/icon.styles.js +4 -0
- package/dist/components/image-viewer/image-viewer.styles.js +2 -2
- package/dist/components/input-field/input-field.styles.js +18 -17
- package/dist/components/locations-results/locations-results.styles.js +2 -1
- package/dist/components/mobile-menu-item/mobile-menu-item.styles.js +1 -1
- package/dist/components/seats-io/seats-io.component.js +1 -0
- package/dist/components/sport-options/sport-option/sport-option.styles.js +6 -6
- package/dist/components/tabs/tabs.component.js +4 -2
- package/dist/components/text-section/text-section.styles.js +2 -2
- package/dist/core/currency/constants.js +1 -1
- package/dist/core/currency/index.d.ts +7 -1
- package/dist/core/currency/index.js +11 -3
- package/dist/core/currency/saudi-riyal-font.d.ts +5 -0
- package/dist/core/currency/saudi-riyal-font.js +24 -0
- package/dist/core/i18n/date.d.ts +1 -1
- package/dist/core/i18n/date.js +3 -1
- package/dist/core/utils/direction.d.ts +6 -0
- package/dist/core/utils/direction.js +8 -0
- package/dist/core/utils/locale.d.ts +7 -0
- package/dist/core/utils/locale.js +12 -0
- package/dist/helpers/helpers.d.ts +1 -0
- package/dist/helpers/helpers.js +1 -0
- package/dist/mixins/base.mixin.js +8 -0
- package/dist/mixins/location-search/location-search.styles.js +3 -3
- package/dist/styles/tokens.d.ts +1 -1
- package/dist/styles/tokens.generated.d.ts +1 -1
- package/dist/styles/tokens.generated.js +1 -1
- package/dist/views/details-page/details-page.styles.js +4 -3
- package/dist/views/help-page/help-page.styles.js +4 -4
- package/dist/views/payment-page/partials/confirmation/confirmation.styles.js +1 -1
- package/dist/views/payment-page/partials/stripe/stripe.utils.d.ts +3 -1
- package/dist/views/payment-page/partials/stripe/stripe.utils.js +4 -1
- package/package.json +3 -3
|
@@ -165,7 +165,9 @@ export function createPortalElement(className) {
|
|
|
165
165
|
return portal;
|
|
166
166
|
}
|
|
167
167
|
/**
|
|
168
|
-
* Positions a portal element to match a placeholder's position
|
|
168
|
+
* Positions a portal element to match a placeholder's position, and gives it
|
|
169
|
+
* the placeholder's text direction: the portal lives on `document.body`,
|
|
170
|
+
* outside the embed, so it would not inherit a right-to-left layout.
|
|
169
171
|
*
|
|
170
172
|
* The coordinates are document-relative, so a host page that scrolls the window
|
|
171
173
|
* moves the portal with the document and every recomputed value is identical.
|
|
@@ -181,6 +183,7 @@ export function createPortalElement(className) {
|
|
|
181
183
|
export function positionPortalElement(placeholder, portal, zIndex, inlinePadding = 1) {
|
|
182
184
|
if (!placeholder || !portal)
|
|
183
185
|
return;
|
|
186
|
+
portal.dir = getComputedStyle(placeholder).direction;
|
|
184
187
|
const rect = placeholder.getBoundingClientRect();
|
|
185
188
|
// Hide portal if placeholder has no dimensions or is hidden
|
|
186
189
|
if (rect.width === 0 || rect.height === 0) {
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=22"
|
|
22
22
|
},
|
|
23
|
-
"version": "0.
|
|
23
|
+
"version": "0.7.0",
|
|
24
24
|
"private": false,
|
|
25
25
|
"homepage": "https://docs.coras.io",
|
|
26
26
|
"bugs": {
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"typescript-eslint": "8.67.0",
|
|
108
108
|
"vite": "8.2.2",
|
|
109
109
|
"vitest": "4.1.11",
|
|
110
|
-
"@coras-io/static": "0.0.
|
|
110
|
+
"@coras-io/static": "0.0.7"
|
|
111
111
|
},
|
|
112
112
|
"dependencies": {
|
|
113
113
|
"@coinbase/cdp-core": "0.0.122",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"lit": "^3.3.3",
|
|
126
126
|
"openapi-fetch": "^0.17.0",
|
|
127
127
|
"viem": "^2.55.19",
|
|
128
|
-
"@coras-io/brand-tokens": "^0.6.
|
|
128
|
+
"@coras-io/brand-tokens": "^0.6.1"
|
|
129
129
|
},
|
|
130
130
|
"scripts": {
|
|
131
131
|
"lint": "eslint \"src/**/*.ts*\"",
|