@kachingappz/bundles-js 0.3.5 → 0.3.6
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/dist/bundles-js.iife.js +1 -1
- package/dist/bundles-js.js +1 -1
- package/package.json +3 -3
package/dist/bundles-js.iife.js
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
`,{variables:{metafieldNamespace:n,settingsNamespace:o}}),r=s===p?m:L(s),g=d?M(d.value):1,i=u?JSON.parse(u.value):null,h=(i==null?void 0:i.feature_flags)??{},y=(i==null?void 0:i.custom_selectors)??{};return{shopifyDomain:f.host,moneyFormat:r,locale:(e==null?void 0:e.toLowerCase())||"en",liquidLocale:(e==null?void 0:e.toLowerCase())||"en",country:l??"US",currencyRate:g,marketId:0,productId:null,storefrontAccessToken:(i==null?void 0:i.storefront_access_token)??null,accessScopes:(i==null?void 0:i.access_scopes)??[],customApiHost:(i==null?void 0:i.custom_api_host)??null,keepQuantityInput:(i==null?void 0:i.keep_quantity_input)??!1,ignoreDeselect:(i==null?void 0:i.ignore_deselect)??!1,ignoreUnitPrice:(i==null?void 0:i.ignore_unit_price)??!1,requireCustomerLogin:(i==null?void 0:i.require_customer_login)??!1,abTestsRunning:(i==null?void 0:i.ab_tests_running)??!1,webPixel:(i==null?void 0:i.web_pixel)??!1,b2bCustomer:!1,isLoggedIn:!1,preview:!1,previewAlerts:!1,defaultTranslations:{"system.out_of_stock":"Out of stock","system.invalid_variant":"Invalid variant","system.unavailable_option_value":"Unavailable option value","system.confirm":"Confirm","system.cancel":"Cancel","system.free":"FREE","system.search":"Search","system.sort_by":"Sort by","system.sort_relevance":"Relevance","system.sort_newest_first":"Newest first","system.sort_price_low_to_high":"Price: Low → High","system.sort_price_high_to_low":"Price: High → Low","system.no_results_found":"No results found","system.no_results_description":"We can't find any item matching your search.","system.clear_search":"Clear search","system.no_products_available":"No products available"},customSelectors:{quantity:y.quantity??null,addToCartButton:y.add_to_cart_button??null,variantPicker:y.variant_picker??null,price:y.price??null,priceCompare:y.price_compare??null},shopCustomStyles:(i==null?void 0:i.shop_custom_styles)??"",featureFlags:h}},M=t=>JSON.parse(t).amount/1e6,L=t=>new Intl.NumberFormat("en",{style:"currency",currency:t,currencyDisplay:"narrowSymbol"}).format(1).replace(/1(\.
|
|
49
|
+
`,{variables:{metafieldNamespace:n,settingsNamespace:o}}),r=s===p?m:L(s),g=d?M(d.value):1,i=u?JSON.parse(u.value):null,h=(i==null?void 0:i.feature_flags)??{},y=(i==null?void 0:i.custom_selectors)??{};return{shopifyDomain:f.host,moneyFormat:r,locale:(e==null?void 0:e.toLowerCase())||"en",liquidLocale:(e==null?void 0:e.toLowerCase())||"en",country:l??"US",currencyRate:g,marketId:0,productId:null,storefrontAccessToken:(i==null?void 0:i.storefront_access_token)??null,accessScopes:(i==null?void 0:i.access_scopes)??[],customApiHost:(i==null?void 0:i.custom_api_host)??null,keepQuantityInput:(i==null?void 0:i.keep_quantity_input)??!1,ignoreDeselect:(i==null?void 0:i.ignore_deselect)??!1,ignoreUnitPrice:(i==null?void 0:i.ignore_unit_price)??!1,requireCustomerLogin:(i==null?void 0:i.require_customer_login)??!1,abTestsRunning:(i==null?void 0:i.ab_tests_running)??!1,webPixel:(i==null?void 0:i.web_pixel)??!1,b2bCustomer:!1,isLoggedIn:!1,preview:!1,previewAlerts:!1,defaultTranslations:{"system.out_of_stock":"Out of stock","system.invalid_variant":"Invalid variant","system.unavailable_option_value":"Unavailable option value","system.confirm":"Confirm","system.cancel":"Cancel","system.free":"FREE","system.search":"Search","system.sort_by":"Sort by","system.sort_relevance":"Relevance","system.sort_newest_first":"Newest first","system.sort_price_low_to_high":"Price: Low → High","system.sort_price_high_to_low":"Price: High → Low","system.no_results_found":"No results found","system.no_results_description":"We can't find any item matching your search.","system.clear_search":"Clear search","system.no_products_available":"No products available"},customSelectors:{quantity:y.quantity??null,addToCartButton:y.add_to_cart_button??null,variantPicker:y.variant_picker??null,price:y.price??null,priceCompare:y.price_compare??null},shopCustomStyles:(i==null?void 0:i.shop_custom_styles)??"",featureFlags:h}},M=t=>JSON.parse(t).amount/1e6,L=t=>new Intl.NumberFormat("en",{style:"currency",currency:t,currencyDisplay:"narrowSymbol"}).format(1).replace(/1(\.0+)?/,"{{amount}}"),O=async(t,e,l=200)=>(e=e.filter(Boolean).filter(a=>!a.startsWith("placeholder")),e.length===0?[]:(await t.query(`
|
|
50
50
|
query FetchMediaImages($mediaImageIds: [ID!]!, $size: Int!) {
|
|
51
51
|
nodes(ids: $mediaImageIds) {
|
|
52
52
|
... on MediaImage {
|
package/dist/bundles-js.js
CHANGED
|
@@ -424,7 +424,7 @@ const N = {
|
|
|
424
424
|
style: "currency",
|
|
425
425
|
currency: t,
|
|
426
426
|
currencyDisplay: "narrowSymbol"
|
|
427
|
-
}).format(1).replace(/1(\.
|
|
427
|
+
}).format(1).replace(/1(\.0+)?/, "{{amount}}"), F = async (t, e, l = 200) => (e = e.filter(Boolean).filter((a) => !a.startsWith("placeholder")), e.length === 0 ? [] : (await t.query(
|
|
428
428
|
`
|
|
429
429
|
query FetchMediaImages($mediaImageIds: [ID!]!, $size: Int!) {
|
|
430
430
|
nodes(ids: $mediaImageIds) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kachingappz/bundles-js",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/bundles-js.js",
|
|
6
6
|
"module": "./dist/bundles-js.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"vite": "^6.2.0",
|
|
27
27
|
"vite-plugin-dts": "^4.5.3",
|
|
28
28
|
"@kachingappz/bundles-storefront-api": "^0.1.0",
|
|
29
|
-
"@kachingappz/bundles-
|
|
30
|
-
"@kachingappz/
|
|
29
|
+
"@kachingappz/kaching-bundles-block": "^1.0.0",
|
|
30
|
+
"@kachingappz/bundles-types": "^0.1.0"
|
|
31
31
|
},
|
|
32
32
|
"description": "A vanilla JavaScript web component for integrating Kaching Bundles into any Shopify storefront.",
|
|
33
33
|
"author": "Donatas Stundys",
|