@moonbase.sh/storefront 3.3.0 → 3.4.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 +4 -2
- package/dist/moonbase.d.ts +2 -15
- package/dist/moonbase.js +10401 -10471
- package/dist/moonbase.umd.cjs +18 -18
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -236,8 +236,10 @@ code (`USD 10`), and `'name'` spells it out in the visitor's language
|
|
|
236
236
|
(`10 US dollars`). The symbol and its placement still follow the visitor's own
|
|
237
237
|
locale — this only chooses between the four forms.
|
|
238
238
|
|
|
239
|
-
Both `pricing` options cover the widget's UI
|
|
240
|
-
elements
|
|
239
|
+
Both `pricing` options cover the widget's UI, your `data-moonbase-render` price
|
|
240
|
+
elements, and the checkout itself: the widget passes them to Moonbase's own
|
|
241
|
+
checkout page, so the prices a buyer pays are written the same way as the ones
|
|
242
|
+
that got them there.
|
|
241
243
|
|
|
242
244
|
`cart.offers.cartWide` covers offers keyed off the cart as a whole, such as "10% off orders
|
|
243
245
|
over $50", rather than off a single product. These apply themselves the moment the
|
package/dist/moonbase.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ActivationRequestFulfillmentType } from '@moonbase.sh/vue';
|
|
2
2
|
import { CartItem } from '@moonbase.sh/vue';
|
|
3
3
|
import { CheckoutRedirectMode } from '@moonbase.sh/vue';
|
|
4
|
+
import { CurrencyDisplay } from '@moonbase.sh/vue';
|
|
4
5
|
import { Download } from '@moonbase.sh/vue';
|
|
5
6
|
import { InjectionKey } from 'vue';
|
|
6
7
|
import { MarketingConsentType } from '@moonbase.sh/vue';
|
|
@@ -11,18 +12,10 @@ import { OwnedProduct } from '@moonbase.sh/vue';
|
|
|
11
12
|
import { Storefront } from '@moonbase.sh/vue';
|
|
12
13
|
import { StorefrontProduct } from '@moonbase.sh/vue';
|
|
13
14
|
import { StorefrontPromotion } from '@moonbase.sh/vue';
|
|
15
|
+
import { TrailingZeros } from '@moonbase.sh/vue';
|
|
14
16
|
import { User } from '@moonbase.sh/vue';
|
|
15
17
|
import { Voucher } from '@moonbase.sh/vue';
|
|
16
18
|
|
|
17
|
-
/**
|
|
18
|
-
* Which marker identifies the currency, for `10` USD read in a British locale:
|
|
19
|
-
* - `'narrowSymbol'` (default) — the shortest symbol: `$10`.
|
|
20
|
-
* - `'symbol'` — the locale's usual symbol, disambiguated where it needs to be: `US$10`.
|
|
21
|
-
* - `'code'` — the ISO 4217 code: `USD 10`.
|
|
22
|
-
* - `'name'` — the currency spelled out in the visitor's language: `10 US dollars`.
|
|
23
|
-
*/
|
|
24
|
-
declare type CurrencyDisplay = 'narrowSymbol' | 'symbol' | 'code' | 'name';
|
|
25
|
-
|
|
26
19
|
declare type DeepPartial<T> = T extends object ? {
|
|
27
20
|
[P in keyof T]?: T[P] extends HTMLElement | undefined ? T[P] : DeepPartial<T[P]>;
|
|
28
21
|
} : T;
|
|
@@ -588,12 +581,6 @@ export declare interface TikTokPixelConfig {
|
|
|
588
581
|
pixelId: string;
|
|
589
582
|
}
|
|
590
583
|
|
|
591
|
-
/**
|
|
592
|
-
* How a whole-number price renders: `'auto'` drops the fraction (`$10`),
|
|
593
|
-
* `'always'` keeps the currency's own fraction digits (`$10.00`, `¥1000`).
|
|
594
|
-
*/
|
|
595
|
-
declare type TrailingZeros = 'auto' | 'always';
|
|
596
|
-
|
|
597
584
|
export declare const urlKey: InjectionKey<string>;
|
|
598
585
|
|
|
599
586
|
export { }
|