@dropins/storefront-checkout 2.0.0 → 2.0.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/api.js +1 -0
- package/api.js.map +1 -0
- package/chunks/ConditionalWrapper.js +2 -1
- package/chunks/ConditionalWrapper.js.map +1 -0
- package/chunks/OrderError.js +1 -0
- package/chunks/OrderError.js.map +1 -0
- package/chunks/ServerErrorSignal.js +1 -0
- package/chunks/ServerErrorSignal.js.map +1 -0
- package/chunks/TermsAndConditions.js +3 -2
- package/chunks/TermsAndConditions.js.map +1 -0
- package/chunks/checkout.js +1 -0
- package/chunks/checkout.js.map +1 -0
- package/chunks/classes.js +1 -0
- package/chunks/classes.js.map +1 -0
- package/chunks/dom.js +1 -0
- package/chunks/dom.js.map +1 -0
- package/chunks/errors.js +1 -0
- package/chunks/errors.js.map +1 -0
- package/chunks/setBillingAddress.js +1 -0
- package/chunks/setBillingAddress.js.map +1 -0
- package/chunks/setGuestEmailOnCart.js +1 -0
- package/chunks/setGuestEmailOnCart.js.map +1 -0
- package/chunks/setPaymentMethod.js +1 -0
- package/chunks/setPaymentMethod.js.map +1 -0
- package/chunks/setShippingMethods.js +1 -0
- package/chunks/setShippingMethods.js.map +1 -0
- package/chunks/synchronizeCheckout.js +1 -0
- package/chunks/synchronizeCheckout.js.map +1 -0
- package/chunks/values.js +1 -0
- package/chunks/values.js.map +1 -0
- package/components/PaymentMethods/PaymentMethods.d.ts +2 -2
- package/components/ShippingMethods/ShippingMethods.d.ts +2 -2
- package/components/index.d.ts +0 -4
- package/containers/BillToShippingAddress.js +2 -1
- package/containers/BillToShippingAddress.js.map +1 -0
- package/containers/EstimateShipping.js +2 -1
- package/containers/EstimateShipping.js.map +1 -0
- package/containers/LoginForm.js +2 -1
- package/containers/LoginForm.js.map +1 -0
- package/containers/MergedCartBanner.js +2 -1
- package/containers/MergedCartBanner.js.map +1 -0
- package/containers/OutOfStock.js +1 -0
- package/containers/OutOfStock.js.map +1 -0
- package/containers/PaymentMethods.js +2 -1
- package/containers/PaymentMethods.js.map +1 -0
- package/containers/PlaceOrder.js +2 -1
- package/containers/PlaceOrder.js.map +1 -0
- package/containers/ServerError.js +1 -0
- package/containers/ServerError.js.map +1 -0
- package/containers/ShippingMethods.js +2 -1
- package/containers/ShippingMethods.js.map +1 -0
- package/containers/TermsAndConditions.js +2 -1
- package/containers/TermsAndConditions.js.map +1 -0
- package/containers/index.d.ts +0 -2
- package/fragments.js +1 -0
- package/fragments.js.map +1 -0
- package/package.json +1 -1
- package/render.js +4 -3
- package/render.js.map +1 -0
- package/chunks/Summary.js +0 -3
- package/chunks/events.js +0 -3
- package/components/LoginFormSummary/LoginFormSummary.d.ts +0 -10
- package/components/LoginFormSummary/index.d.ts +0 -18
- package/components/PaymentMethodsSummary/PaymentMethodsSummary.d.ts +0 -11
- package/components/PaymentMethodsSummary/index.d.ts +0 -19
- package/components/ShippingMethodsSummary/ShippingMethodsSummary.d.ts +0 -14
- package/components/ShippingMethodsSummary/index.d.ts +0 -19
- package/components/Summary/Summary.d.ts +0 -10
- package/components/Summary/index.d.ts +0 -19
- package/containers/LoginFormSummary/LoginFormSummary.d.ts +0 -14
- package/containers/LoginFormSummary/index.d.ts +0 -19
- package/containers/LoginFormSummary.d.ts +0 -3
- package/containers/LoginFormSummary.js +0 -3
- package/containers/PaymentMethodsSummary/PaymentMethodsSummary.d.ts +0 -18
- package/containers/PaymentMethodsSummary/index.d.ts +0 -19
- package/containers/PaymentMethodsSummary.d.ts +0 -3
- package/containers/PaymentMethodsSummary.js +0 -3
- package/containers/ShippingMethodsSummary/ShippingMethodsSummary.d.ts +0 -15
- package/containers/ShippingMethodsSummary/index.d.ts +0 -19
- package/containers/ShippingMethodsSummary.d.ts +0 -3
- package/containers/ShippingMethodsSummary.js +0 -3
package/render.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render.js","sources":["../node_modules/deepmerge/dist/cjs.js","/@dropins/storefront-checkout/src/render/Provider.tsx","/@dropins/storefront-checkout/src/render/render.tsx"],"sourcesContent":["'use strict';\n\nvar isMergeableObject = function isMergeableObject(value) {\n\treturn isNonNullObject(value)\n\t\t&& !isSpecial(value)\n};\n\nfunction isNonNullObject(value) {\n\treturn !!value && typeof value === 'object'\n}\n\nfunction isSpecial(value) {\n\tvar stringValue = Object.prototype.toString.call(value);\n\n\treturn stringValue === '[object RegExp]'\n\t\t|| stringValue === '[object Date]'\n\t\t|| isReactElement(value)\n}\n\n// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n\treturn value.$$typeof === REACT_ELEMENT_TYPE\n}\n\nfunction emptyTarget(val) {\n\treturn Array.isArray(val) ? [] : {}\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n\treturn (options.clone !== false && options.isMergeableObject(value))\n\t\t? deepmerge(emptyTarget(value), value, options)\n\t\t: value\n}\n\nfunction defaultArrayMerge(target, source, options) {\n\treturn target.concat(source).map(function(element) {\n\t\treturn cloneUnlessOtherwiseSpecified(element, options)\n\t})\n}\n\nfunction getMergeFunction(key, options) {\n\tif (!options.customMerge) {\n\t\treturn deepmerge\n\t}\n\tvar customMerge = options.customMerge(key);\n\treturn typeof customMerge === 'function' ? customMerge : deepmerge\n}\n\nfunction getEnumerableOwnPropertySymbols(target) {\n\treturn Object.getOwnPropertySymbols\n\t\t? Object.getOwnPropertySymbols(target).filter(function(symbol) {\n\t\t\treturn Object.propertyIsEnumerable.call(target, symbol)\n\t\t})\n\t\t: []\n}\n\nfunction getKeys(target) {\n\treturn Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))\n}\n\nfunction propertyIsOnObject(object, property) {\n\ttry {\n\t\treturn property in object\n\t} catch(_) {\n\t\treturn false\n\t}\n}\n\n// Protects from prototype poisoning and unexpected merging up the prototype chain.\nfunction propertyIsUnsafe(target, key) {\n\treturn propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,\n\t\t&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,\n\t\t\t&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.\n}\n\nfunction mergeObject(target, source, options) {\n\tvar destination = {};\n\tif (options.isMergeableObject(target)) {\n\t\tgetKeys(target).forEach(function(key) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n\t\t});\n\t}\n\tgetKeys(source).forEach(function(key) {\n\t\tif (propertyIsUnsafe(target, key)) {\n\t\t\treturn\n\t\t}\n\n\t\tif (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {\n\t\t\tdestination[key] = getMergeFunction(key, options)(target[key], source[key], options);\n\t\t} else {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n\t\t}\n\t});\n\treturn destination\n}\n\nfunction deepmerge(target, source, options) {\n\toptions = options || {};\n\toptions.arrayMerge = options.arrayMerge || defaultArrayMerge;\n\toptions.isMergeableObject = options.isMergeableObject || isMergeableObject;\n\t// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()\n\t// implementations can use it. The caller may not replace it.\n\toptions.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;\n\n\tvar sourceIsArray = Array.isArray(source);\n\tvar targetIsArray = Array.isArray(target);\n\tvar sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n\tif (!sourceAndTargetTypesMatch) {\n\t\treturn cloneUnlessOtherwiseSpecified(source, options)\n\t} else if (sourceIsArray) {\n\t\treturn options.arrayMerge(target, source, options)\n\t} else {\n\t\treturn mergeObject(target, source, options)\n\t}\n}\n\ndeepmerge.all = function deepmergeAll(array, options) {\n\tif (!Array.isArray(array)) {\n\t\tthrow new Error('first argument should be an array')\n\t}\n\n\treturn array.reduce(function(prev, next) {\n\t\treturn deepmerge(prev, next, options)\n\t}, {})\n};\n\nvar deepmerge_1 = deepmerge;\n\nmodule.exports = deepmerge_1;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { config } from '@/checkout/api';\nimport { UIProvider } from '@adobe-commerce/elsie/components';\nimport { Lang } from '@adobe-commerce/elsie/i18n';\nimport { deepmerge } from '@adobe-commerce/elsie/lib/deepmerge';\nimport { events } from '@adobe-commerce/event-bus';\nimport { FunctionComponent } from 'preact';\nimport { useEffect, useState } from 'preact/hooks';\n\nimport en_US from '../i18n/en_US.json';\n\n// Langs\nconst langDefinitions = {\n default: en_US,\n};\n\ninterface IntlProviderProps {\n children?: any;\n}\n\nexport const Provider: FunctionComponent<IntlProviderProps> = ({\n children,\n}) => {\n const [locale, setLang] = useState<Lang>();\n\n const userLangDefinitions = config.getConfig()?.langDefinitions;\n\n useEffect(() => {\n const localeEvent = events.on(\n 'locale',\n (payload) => {\n if (payload !== locale) setLang(payload as Lang);\n },\n { eager: true }\n );\n return () => {\n localeEvent?.off();\n };\n }, [locale]);\n\n // Merge language definitions with user language definitions\n const definitions = deepmerge(langDefinitions, userLangDefinitions ?? {});\n\n return (\n <UIProvider lang={locale} langDefinitions={definitions}>\n {children}\n </UIProvider>\n );\n};\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { Render } from '@adobe-commerce/elsie/lib';\nimport { Provider } from './Provider';\nexport { Provider };\nexport const render = new Render(<Provider />);\n"],"names":["isMergeableObject","value","isNonNullObject","isSpecial","stringValue","isReactElement","canUseSymbol","REACT_ELEMENT_TYPE","emptyTarget","val","cloneUnlessOtherwiseSpecified","options","deepmerge","defaultArrayMerge","target","source","element","getMergeFunction","key","customMerge","getEnumerableOwnPropertySymbols","symbol","getKeys","propertyIsOnObject","object","property","propertyIsUnsafe","mergeObject","destination","sourceIsArray","targetIsArray","sourceAndTargetTypesMatch","array","prev","next","deepmerge_1","cjs","langDefinitions","en_US","Provider","children","locale","setLang","useState","userLangDefinitions","_a","config","useEffect","localeEvent","events","payload","definitions","UIProvider","render","Render","jsx"],"mappings":"sjBAEA,IAAIA,EAAoB,SAA2BC,EAAO,CACzD,OAAOC,EAAgBD,CAAK,GACxB,CAACE,EAAUF,CAAK,CACrB,EAEA,SAASC,EAAgBD,EAAO,CAC/B,MAAO,CAAC,CAACA,GAAS,OAAOA,GAAU,QACpC,CAEA,SAASE,EAAUF,EAAO,CACzB,IAAIG,EAAc,OAAO,UAAU,SAAS,KAAKH,CAAK,EAEtD,OAAOG,IAAgB,mBACnBA,IAAgB,iBAChBC,EAAeJ,CAAK,CACzB,CAGA,IAAIK,EAAe,OAAO,QAAW,YAAc,OAAO,IACtDC,EAAqBD,EAAe,OAAO,IAAI,eAAe,EAAI,MAEtE,SAASD,EAAeJ,EAAO,CAC9B,OAAOA,EAAM,WAAaM,CAC3B,CAEA,SAASC,EAAYC,EAAK,CACzB,OAAO,MAAM,QAAQA,CAAG,EAAI,CAAA,EAAK,CAAA,CAClC,CAEA,SAASC,EAA8BT,EAAOU,EAAS,CACtD,OAAQA,EAAQ,QAAU,IAASA,EAAQ,kBAAkBV,CA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CAAE,MAAO,EAAK,CAChB,EACA,MAAO,IAAM,CACXF,GAAA,MAAAA,EAAa,KACf,CAAA,EACC,CAACP,CAAM,CAAC,EAGX,MAAMU,EAAcvC,EAAUyB,EAAiBO,GAAuB,CAAA,CAAE,EAExE,SACGQ,EAAW,CAAA,KAAMX,EAAQ,gBAAiBU,EACxC,SAAAX,EACH,CAEJ,EC5Caa,EAAS,IAAIC,EAAOC,EAAChB,IAAS,CAAE","x_google_ignoreList":[0]}
|
package/chunks/Summary.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Copyright 2025 Adobe
|
|
2
|
-
All Rights Reserved. */
|
|
3
|
-
import{jsxs as n,jsx as s}from"@dropins/tools/preact-jsx-runtime.js";import"./TermsAndConditions.js";import{Button as l}from"@dropins/tools/components.js";import{classes as _,VComponent as d}from"@dropins/tools/lib.js";import{useText as y}from"@dropins/tools/i18n.js";const u=t=>{const i=y({edit:"Checkout.Summary.Edit"});return s(l,{...t,class:"summary__edit","data-testid":"summary-edit-button",size:"medium",variant:"tertiary",children:i.edit})},B=({children:t,className:i,heading:c,onEditClick:o,...a})=>{const m=!!c,r=!!o,e=_(["summary",["summary--inline",!m&&r],i]);return m&&r?n("div",{...a,className:e,children:[n("div",{class:"summary__header",children:[s(d,{node:c}),s(u,{onClick:o})]}),s("div",{class:"summary__content",children:t})]}):!m&&r?n("div",{...a,className:e,children:[s("div",{class:"summary__content",children:t}),s(u,{onClick:o})]}):m&&!r?n("div",{...a,className:e,children:[s("div",{class:"summary__header",children:s(d,{node:c})}),s("div",{class:"summary__content",children:t})]}):s("div",{...a,className:e,children:s("div",{class:"summary__content",children:t})})};export{B as S};
|
package/chunks/events.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Copyright 2025 Adobe
|
|
2
|
-
All Rights Reserved. */
|
|
3
|
-
import{events as a}from"@dropins/tools/event-bus.js";function i(){return a.lastPayload("checkout/initialized")??null}function u(){return a.lastPayload("checkout/updated")??null}function n(){return u()??i()}function s(){var e;const t=n();return!!((e=t==null?void 0:t.shippingAddresses)!=null&&e.length)}function l(){const t=n();return!!(t!=null&&t.isVirtual)}function r(){const t=n();return(t==null?void 0:t.email)??null}export{n as a,r as b,u as g,s as h,l as i};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, VNode } from 'preact';
|
|
2
|
-
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
|
|
4
|
-
export interface LoginFormSummaryProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
heading?: VNode;
|
|
6
|
-
email: string;
|
|
7
|
-
onEditClick?: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const LoginFormSummary: FunctionComponent<LoginFormSummaryProps>;
|
|
10
|
-
//# sourceMappingURL=LoginFormSummary.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/********************************************************************
|
|
2
|
-
* ADOBE CONFIDENTIAL
|
|
3
|
-
* __________________
|
|
4
|
-
*
|
|
5
|
-
* Copyright 2025 Adobe
|
|
6
|
-
* All Rights Reserved.
|
|
7
|
-
*
|
|
8
|
-
* NOTICE: All information contained herein is, and remains
|
|
9
|
-
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
-
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
-
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
-
* property laws, including trade secret and copyright laws.
|
|
13
|
-
* Dissemination of this information or reproduction of this material
|
|
14
|
-
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
-
* from Adobe.
|
|
16
|
-
*******************************************************************/
|
|
17
|
-
export * from './LoginFormSummary';
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, VNode } from 'preact';
|
|
2
|
-
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
|
|
4
|
-
export interface PaymentMethodsSummaryProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
details: VNode;
|
|
6
|
-
heading?: VNode;
|
|
7
|
-
onEditClick?: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const PaymentMethodsSummary: FunctionComponent<PaymentMethodsSummaryProps>;
|
|
10
|
-
export default PaymentMethodsSummary;
|
|
11
|
-
//# sourceMappingURL=PaymentMethodsSummary.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/********************************************************************
|
|
2
|
-
* ADOBE CONFIDENTIAL
|
|
3
|
-
* __________________
|
|
4
|
-
*
|
|
5
|
-
* Copyright 2025 Adobe
|
|
6
|
-
* All Rights Reserved.
|
|
7
|
-
*
|
|
8
|
-
* NOTICE: All information contained herein is, and remains
|
|
9
|
-
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
-
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
-
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
-
* property laws, including trade secret and copyright laws.
|
|
13
|
-
* Dissemination of this information or reproduction of this material
|
|
14
|
-
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
-
* from Adobe.
|
|
16
|
-
*******************************************************************/
|
|
17
|
-
export * from './PaymentMethodsSummary';
|
|
18
|
-
export { PaymentMethodsSummary as default } from './PaymentMethodsSummary';
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, VNode } from 'preact';
|
|
2
|
-
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
|
|
4
|
-
export interface ShippingMethodsSummaryProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
shippingMethod: {
|
|
6
|
-
label: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
};
|
|
9
|
-
heading?: VNode;
|
|
10
|
-
onEditClick?: () => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const ShippingMethodsSummary: FunctionComponent<ShippingMethodsSummaryProps>;
|
|
13
|
-
export default ShippingMethodsSummary;
|
|
14
|
-
//# sourceMappingURL=ShippingMethodsSummary.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/********************************************************************
|
|
2
|
-
* ADOBE CONFIDENTIAL
|
|
3
|
-
* __________________
|
|
4
|
-
*
|
|
5
|
-
* Copyright 2025 Adobe
|
|
6
|
-
* All Rights Reserved.
|
|
7
|
-
*
|
|
8
|
-
* NOTICE: All information contained herein is, and remains
|
|
9
|
-
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
-
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
-
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
-
* property laws, including trade secret and copyright laws.
|
|
13
|
-
* Dissemination of this information or reproduction of this material
|
|
14
|
-
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
-
* from Adobe.
|
|
16
|
-
*******************************************************************/
|
|
17
|
-
export * from './ShippingMethodsSummary';
|
|
18
|
-
export { ShippingMethodsSummary as default } from './ShippingMethodsSummary';
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FunctionalComponent, VNode } from 'preact';
|
|
2
|
-
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
|
|
4
|
-
export interface SummaryProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
heading?: VNode;
|
|
6
|
-
onEditClick?: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const Summary: FunctionalComponent<SummaryProps>;
|
|
9
|
-
export default Summary;
|
|
10
|
-
//# sourceMappingURL=Summary.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/********************************************************************
|
|
2
|
-
* ADOBE CONFIDENTIAL
|
|
3
|
-
* __________________
|
|
4
|
-
*
|
|
5
|
-
* Copyright 2025 Adobe
|
|
6
|
-
* All Rights Reserved.
|
|
7
|
-
*
|
|
8
|
-
* NOTICE: All information contained herein is, and remains
|
|
9
|
-
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
-
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
-
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
-
* property laws, including trade secret and copyright laws.
|
|
13
|
-
* Dissemination of this information or reproduction of this material
|
|
14
|
-
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
-
* from Adobe.
|
|
16
|
-
*******************************************************************/
|
|
17
|
-
export * from './Summary';
|
|
18
|
-
export { Summary as default } from './Summary';
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Container, SlotProps } from '@dropins/tools/types/elsie/src/lib';
|
|
2
|
-
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
|
|
4
|
-
export interface LoginFormSummaryProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
onEditClick?: () => void;
|
|
6
|
-
slots?: {
|
|
7
|
-
Heading: SlotProps;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export interface LoginFormSummaryData {
|
|
11
|
-
email: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const LoginFormSummary: Container<LoginFormSummaryProps, LoginFormSummaryData>;
|
|
14
|
-
//# sourceMappingURL=LoginFormSummary.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/********************************************************************
|
|
2
|
-
* ADOBE CONFIDENTIAL
|
|
3
|
-
* __________________
|
|
4
|
-
*
|
|
5
|
-
* Copyright 2025 Adobe
|
|
6
|
-
* All Rights Reserved.
|
|
7
|
-
*
|
|
8
|
-
* NOTICE: All information contained herein is, and remains
|
|
9
|
-
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
-
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
-
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
-
* property laws, including trade secret and copyright laws.
|
|
13
|
-
* Dissemination of this information or reproduction of this material
|
|
14
|
-
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
-
* from Adobe.
|
|
16
|
-
*******************************************************************/
|
|
17
|
-
export * from './LoginFormSummary';
|
|
18
|
-
export { LoginFormSummary as default } from './LoginFormSummary';
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Copyright 2025 Adobe
|
|
2
|
-
All Rights Reserved. */
|
|
3
|
-
import{jsx as t}from"@dropins/tools/preact-jsx-runtime.js";/* empty css */import"@dropins/tools/components.js";import"../chunks/TermsAndConditions.js";import{Slot as u}from"@dropins/tools/lib.js";import{c as p}from"../chunks/classes.js";/* empty css */import"../chunks/errors.js";import{events as f}from"@dropins/tools/event-bus.js";import"@dropins/tools/preact-compat.js";/* empty css *//* empty css */import{useState as l,useCallback as g,useEffect as h}from"@dropins/tools/preact-hooks.js";import{S as y}from"../chunks/Summary.js";import{a as S}from"../chunks/events.js";import"@dropins/tools/signals.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/i18n.js";const d=({className:m,heading:r,email:o,onEditClick:e})=>t(y,{className:p([m,"checkout-login-form-summary"]),"data-testid":"checkout-login-form-summary",heading:r,onEditClick:e,children:t("span",{className:"checkout-login-form-summary__email","data-testid":"checkout-login-form-summary-email",children:o})}),k=({initialData:m,onEditClick:r,slots:o})=>{const[e,a]=l((m==null?void 0:m.email)??""),n=g(()=>{r==null||r()},[r]);if(h(()=>{const i=f.on("checkout/updated",s=>{a((s==null?void 0:s.email)??"")});return()=>{i==null||i.off()}},[]),e==="")return null;const c=o!=null&&o.Heading?t(u,{name:"LoginFormHeadingTitle",slot:o.Heading}):void 0;return t(d,{email:e,heading:c,onEditClick:n})};k.getInitialData=async()=>{const m=S();return Promise.resolve({email:(m==null?void 0:m.email)??""})};export{k as LoginFormSummary,k as default};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { PaymentMethod } from '../../data/models';
|
|
2
|
-
import { Container, SlotProps } from '@dropins/tools/types/elsie/src/lib';
|
|
3
|
-
import { HTMLAttributes } from 'preact/compat';
|
|
4
|
-
|
|
5
|
-
export interface PaymentMethodsSummaryData {
|
|
6
|
-
selectedPaymentMethod: PaymentMethod | null;
|
|
7
|
-
}
|
|
8
|
-
export interface PaymentMethodsSummaryProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
|
-
onEditClick?: () => void;
|
|
10
|
-
slots?: {
|
|
11
|
-
Heading?: SlotProps;
|
|
12
|
-
Details?: SlotProps<{
|
|
13
|
-
selectedPaymentMethod: PaymentMethod;
|
|
14
|
-
}>;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export declare const PaymentMethodsSummary: Container<PaymentMethodsSummaryProps, PaymentMethodsSummaryData>;
|
|
18
|
-
//# sourceMappingURL=PaymentMethodsSummary.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/********************************************************************
|
|
2
|
-
* ADOBE CONFIDENTIAL
|
|
3
|
-
* __________________
|
|
4
|
-
*
|
|
5
|
-
* Copyright 2025 Adobe
|
|
6
|
-
* All Rights Reserved.
|
|
7
|
-
*
|
|
8
|
-
* NOTICE: All information contained herein is, and remains
|
|
9
|
-
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
-
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
-
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
-
* property laws, including trade secret and copyright laws.
|
|
13
|
-
* Dissemination of this information or reproduction of this material
|
|
14
|
-
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
-
* from Adobe.
|
|
16
|
-
*******************************************************************/
|
|
17
|
-
export * from './PaymentMethodsSummary';
|
|
18
|
-
export { PaymentMethodsSummary as default } from './PaymentMethodsSummary';
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Copyright 2025 Adobe
|
|
2
|
-
All Rights Reserved. */
|
|
3
|
-
import{jsx as a,Fragment as f}from"@dropins/tools/preact-jsx-runtime.js";/* empty css */import"@dropins/tools/components.js";import"../chunks/TermsAndConditions.js";import{Slot as i}from"@dropins/tools/lib.js";/* empty css */import"../chunks/errors.js";import{events as P}from"@dropins/tools/event-bus.js";import{a as M}from"../chunks/events.js";import"@dropins/tools/preact-compat.js";import{c as l}from"../chunks/classes.js";/* empty css *//* empty css */import{useState as N,useCallback as S,useEffect as g}from"@dropins/tools/preact-hooks.js";import{S as k}from"../chunks/Summary.js";import"@dropins/tools/signals.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/i18n.js";function u({node:e,...t}){return e?Array.isArray(e)?a(f,{children:e.map((m,r)=>a(u,{node:m,className:t.className,...t},r))}):(t.className=l([e.props.className,t.className]),a(e.type,{ref:e.ref,...e.props,...t},e.key)):null}const D=({className:e,details:t,heading:m,onEditClick:r,...s})=>a(k,{className:l([e,"checkout-payment-methods-summary"]),"data-testid":"checkout-payment-methods-summary",heading:m,onEditClick:r,...s,children:a(u,{className:"checkout-payment-methods-summary__details","data-testid":"checkout-payment-methods-summary-details",node:t})}),_=e=>e===null?!1:e.code!==""&&e.title!=="",b=({initialData:e={selectedPaymentMethod:null},onEditClick:t,slots:m})=>{const[r,s]=N(e),n=r.selectedPaymentMethod,y=S(()=>{t==null||t()},[t]);if(g(()=>{const o=P.on("checkout/updated",c=>{s(p=>({...p,selectedPaymentMethod:(c==null?void 0:c.selectedPaymentMethod)??null}))});return()=>{o==null||o.off()}},[]),!_(n))return null;const d=m!=null&&m.Heading?a(i,{name:"PaymentMethodsSummaryTitle",slot:m.Heading}):void 0,h=a(i,{context:{selectedPaymentMethod:n},name:"PaymentMethodsSummaryDetails",slot:m==null?void 0:m.Details,children:a("span",{className:"checkout-payment-methods-summary__label","data-testid":"checkout-payment-methods-summary-label",children:n.title})});return a(D,{details:h,heading:d,onEditClick:y})};b.getInitialData=async()=>{const e=M(),t=(e==null?void 0:e.selectedPaymentMethod)??null;return Promise.resolve({selectedPaymentMethod:t})};export{b as PaymentMethodsSummary,b as default};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ShippingMethod } from '../../data/models';
|
|
2
|
-
import { Container, SlotProps } from '@dropins/tools/types/elsie/src/lib';
|
|
3
|
-
import { HTMLAttributes } from 'preact/compat';
|
|
4
|
-
|
|
5
|
-
export interface ShippingMethodsSummaryProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
onEditClick?: () => void;
|
|
7
|
-
slots?: {
|
|
8
|
-
Heading?: SlotProps;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export interface ShippingMethodsSummaryData {
|
|
12
|
-
shippingMethod: ShippingMethod | null;
|
|
13
|
-
}
|
|
14
|
-
export declare const ShippingMethodsSummary: Container<ShippingMethodsSummaryProps, ShippingMethodsSummaryData>;
|
|
15
|
-
//# sourceMappingURL=ShippingMethodsSummary.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/********************************************************************
|
|
2
|
-
* ADOBE CONFIDENTIAL
|
|
3
|
-
* __________________
|
|
4
|
-
*
|
|
5
|
-
* Copyright 2025 Adobe
|
|
6
|
-
* All Rights Reserved.
|
|
7
|
-
*
|
|
8
|
-
* NOTICE: All information contained herein is, and remains
|
|
9
|
-
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
-
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
-
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
-
* property laws, including trade secret and copyright laws.
|
|
13
|
-
* Dissemination of this information or reproduction of this material
|
|
14
|
-
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
-
* from Adobe.
|
|
16
|
-
*******************************************************************/
|
|
17
|
-
export * from './ShippingMethodsSummary';
|
|
18
|
-
export { ShippingMethodsSummary as default } from './ShippingMethodsSummary';
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Copyright 2025 Adobe
|
|
2
|
-
All Rights Reserved. */
|
|
3
|
-
import{jsx as p,jsxs as a}from"@dropins/tools/preact-jsx-runtime.js";/* empty css */import"@dropins/tools/components.js";import"../chunks/TermsAndConditions.js";import{Slot as l}from"@dropins/tools/lib.js";/* empty css */import"../chunks/errors.js";import{events as g}from"@dropins/tools/event-bus.js";import{a as S}from"../chunks/events.js";import"@dropins/tools/preact-compat.js";/* empty css *//* empty css */import{useState as f,useCallback as y,useEffect as M}from"@dropins/tools/preact-hooks.js";import{c as k}from"../chunks/classes.js";import{S as _}from"../chunks/Summary.js";import"@dropins/tools/signals.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/i18n.js";const b=({className:t,shippingMethod:e,heading:s,onEditClick:i,...o})=>p(_,{className:k([t,"checkout-shipping-methods-summary"]),"data-testid":"checkout-shipping-methods-summary",heading:s,onEditClick:i,...o,children:a("div",{className:"checkout-shipping-methods-summary__content",children:[p("span",{className:"checkout-shipping-methods-summary__label","data-testid":"checkout-shipping-methods-summary-label",children:e.label}),e.description&&p("span",{className:"checkout-shipping-methods-summary__description","data-testid":"checkout-shipping-methods-summary-description",children:e.description})]})}),v=({initialData:t,onEditClick:e,slots:s})=>{const[i,o]=f((t==null?void 0:t.shippingMethod)??null),c=y(()=>{e==null||e()},[e]);if(M(()=>{const r=g.on("checkout/updated",m=>{var n,h;const u=((h=(n=m==null?void 0:m.shippingAddresses)==null?void 0:n[0])==null?void 0:h.selectedShippingMethod)??null;o(u)});return()=>{r==null||r.off()}},[]),!i)return null;const d=s!=null&&s.Heading?p(l,{name:"ShippingMethodsHeadingTitle",slot:s.Heading}):void 0;return p(b,{heading:d,shippingMethod:{label:i.carrier.title,description:i.title},onEditClick:c})};v.getInitialData=async()=>{var s,i;const t=S(),e=((i=(s=t==null?void 0:t.shippingAddresses)==null?void 0:s[0])==null?void 0:i.selectedShippingMethod)??null;return Promise.resolve({shippingMethod:e})};export{v as ShippingMethodsSummary,v as default};
|