@dropins/storefront-account 1.0.0 → 1.0.1-beta2
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/createCustomerAddress/graphql/createCustomerAddress.graphql.d.ts +16 -0
- package/api/createCustomerAddress/index.d.ts +16 -0
- package/api/fetch-graphql/fetch-graphql.d.ts +16 -0
- package/api/fetch-graphql/index.d.ts +16 -0
- package/api/fragments.d.ts +16 -0
- package/api/getAttributesForm/graphql/getAttributesForm.graphql.d.ts +16 -0
- package/api/getAttributesForm/index.d.ts +16 -0
- package/api/getCountries/graphql/getCountries.graphql.d.ts +16 -0
- package/api/getCountries/index.d.ts +16 -0
- package/api/getCustomer/graphql/getCustomer.graphql.d.ts +16 -0
- package/api/getCustomer/index.d.ts +16 -0
- package/api/getCustomerAddress/graphql/getCustomerAddress.graphql.d.ts +16 -0
- package/api/getCustomerAddress/index.d.ts +16 -0
- package/api/getOrderHistoryList/graphql/getOrderHistoryList.graphql.d.ts +16 -0
- package/api/getOrderHistoryList/index.d.ts +16 -0
- package/api/getRegions/graphql/getRegions.graphql.d.ts +16 -0
- package/api/getRegions/index.d.ts +16 -0
- package/api/getStoreConfig/graphql/getStoreConfig.graphql.d.ts +16 -0
- package/api/getStoreConfig/index.d.ts +16 -0
- package/api/graphql/CustomerAddressFragment.graphql.d.ts +16 -0
- package/api/graphql/CustomerFragment.graphql.d.ts +16 -0
- package/api/graphql/OrderSummaryFragment.graphql.d.ts +17 -1
- package/api/index.d.ts +16 -0
- package/api/initialize/index.d.ts +16 -0
- package/api/removeCustomerAddress/graphql/removeCustomerAddress.graphql.d.ts +16 -0
- package/api/removeCustomerAddress/index.d.ts +16 -0
- package/api/removeCustomerAddress/removeCustomerAddress.d.ts +16 -0
- package/api/updateCustomer/graphql/updateCustomer.graphql.d.ts +16 -0
- package/api/updateCustomer/index.d.ts +16 -0
- package/api/updateCustomer/updateCustomer.d.ts +16 -0
- package/api/updateCustomerAddress/graphql/updateCustomerAddress.graphql.d.ts +16 -0
- package/api/updateCustomerAddress/index.d.ts +16 -0
- package/api/updateCustomerEmail/graphql/updateCustomerEmail.graphql.d.ts +16 -0
- package/api/updateCustomerEmail/index.d.ts +16 -0
- package/api/updateCustomerEmail/updateCustomerEmail.d.ts +16 -0
- package/api/updateCustomerPassword/graphql/updateCustomerPassword.graphql.d.ts +16 -0
- package/api/updateCustomerPassword/index.d.ts +16 -0
- package/api.js +1 -1
- package/chunks/CustomerInformationCard.js +2 -2
- package/chunks/getOrderHistoryList.js +5 -5
- package/chunks/getStoreConfig.js +3 -3
- package/chunks/removeCustomerAddress.js +10 -10
- package/chunks/updateCustomer.js +6 -6
- package/components/AccountLoaders/index.d.ts +16 -0
- package/components/AddressActions/index.d.ts +16 -0
- package/components/AddressCard/index.d.ts +16 -0
- package/components/AddressFormWrapper/index.d.ts +16 -0
- package/components/AddressModal/index.d.ts +16 -0
- package/components/AddressesWrapper/index.d.ts +16 -0
- package/components/ChangePassword/ChangePassword.d.ts +4 -1
- package/components/ChangePassword/index.d.ts +16 -0
- package/components/CustomerInformationCard/index.d.ts +16 -0
- package/components/EditCustomerInformation/index.d.ts +16 -0
- package/components/EmptyList/index.d.ts +16 -0
- package/components/Form/FormInputs/index.d.ts +16 -0
- package/components/Form/index.d.ts +16 -0
- package/components/OrdersListAction/index.d.ts +16 -0
- package/components/OrdersListCard/index.d.ts +16 -0
- package/components/OrdersListWrapper/index.d.ts +16 -0
- package/components/index.d.ts +16 -0
- package/configs/defaultAttributePreset.config.d.ts +16 -0
- package/configs/mockDefaultAddress.config.d.ts +16 -0
- package/configs/mockOrdersList.config.d.ts +16 -2
- package/containers/AddressForm/index.d.ts +16 -0
- package/containers/AddressForm.js +1 -1
- package/containers/Addresses/index.d.ts +16 -0
- package/containers/Addresses.js +2 -2
- package/containers/CustomerInformation/index.d.ts +16 -0
- package/containers/CustomerInformation.js +2 -2
- package/containers/OrdersList/index.d.ts +16 -0
- package/containers/OrdersList.js +2 -2
- package/containers/index.d.ts +16 -0
- package/data/models/attributes-form.d.ts +32 -16
- package/data/models/country.d.ts +16 -0
- package/data/models/customer-address.d.ts +16 -0
- package/data/models/customer.d.ts +16 -0
- package/data/models/index.d.ts +16 -0
- package/data/models/region.d.ts +16 -0
- package/data/models/store-config.d.ts +16 -0
- package/data/transforms/index.d.ts +16 -0
- package/fragments.js +10 -3
- package/hooks/containers/useCustomerInformation.d.ts +16 -16
- package/hooks/containers/useGetStoreConfigs.d.ts +16 -0
- package/hooks/containers/useOrderSelectList.d.ts +16 -0
- package/hooks/useDebounce.d.ts +16 -0
- package/hooks/useIsMobile.d.ts +16 -0
- package/i18n/en_US.json.d.ts +6 -3
- package/lib/areRequiredFieldsValid.d.ts +16 -0
- package/lib/checkIsFunction.d.ts +16 -0
- package/lib/convertCase.d.ts +16 -0
- package/lib/convertToBoolean.d.ts +16 -0
- package/lib/convertToInputDateFormat.d.ts +16 -0
- package/lib/fetch-error.d.ts +16 -0
- package/lib/formatDateToLocale.d.ts +16 -0
- package/lib/getDateRange.d.ts +16 -0
- package/lib/getFormValues.d.ts +16 -0
- package/lib/initializeFormDataAndErrors.d.ts +16 -0
- package/lib/network-error.d.ts +16 -0
- package/lib/normalizeAttributes.d.ts +16 -0
- package/lib/normalizeGetAddressData.d.ts +16 -0
- package/lib/transformDobCustomer.d.ts +6 -0
- package/lib/validationChangePassword.d.ts +16 -0
- package/lib/validationUniqueSymbolsPassword.d.ts +16 -0
- package/package.json +1 -1
- package/render/index.d.ts +16 -0
- package/render.js +2 -2
- package/types/addresses.types.d.ts +5 -3
- package/types/api/createCustomerAddress.types.d.ts +16 -0
- package/types/api/getAttributesForm.types.d.ts +20 -0
- package/types/api/getCountries.types.d.ts +16 -0
- package/types/api/getCustomer.types.d.ts +16 -0
- package/types/api/getCustomerAddress.type.d.ts +16 -0
- package/types/api/getOrderHistoryList.types.d.ts +7 -0
- package/types/api/getRegions.types.d.ts +16 -0
- package/types/api/removeCustomerAddress.types.d.ts +16 -0
- package/types/api/storeConfig.types.d.ts +16 -0
- package/types/api/updateCustomerAddress.types.d.ts +16 -0
- package/types/api/updateCustomerPassword.types.d.ts +16 -0
- package/types/form.types.d.ts +2 -2
- package/types/index.d.ts +16 -0
package/containers/OrdersList.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Copyright
|
|
1
|
+
/*! Copyright 2025 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{jsx as s,jsxs as
|
|
3
|
+
import{jsx as s,jsxs as l,Fragment as $}from"@dropins/tools/preact-jsx-runtime.js";import{classes as k,Slot as U}from"@dropins/tools/lib.js";import{S as K,c as Q,E as X,C as Z}from"../chunks/CustomerInformationCard.js";import"@dropins/tools/preact-compat.js";import{Card as R,Icon as V,Price as rr,ContentGrid as tr,Image as W,Header as sr,Picker as er,Pagination as ar}from"@dropins/tools/components.js";import{useText as D}from"@dropins/tools/i18n.js";import{useState as y,useEffect as Y,useMemo as cr,useCallback as j}from"@dropins/tools/preact-hooks.js";import"@dropins/tools/event-bus.js";import{g as nr}from"../chunks/getOrderHistoryList.js";import{g as or}from"../chunks/getStoreConfig.js";import"../chunks/removeCustomerAddress.js";import"@dropins/tools/fetch-graphql.js";import"@dropins/tools/preact.js";import"../fragments.js";const m={size:"32",stroke:"2"},G=({minifiedView:a,orderNumber:c,orderToken:r,routeOrdersList:e,routeOrderDetails:u})=>{const n=a?"minifiedView":"fullSizeView",i=D({viewAllOrdersButton:`Account.${n}.OrdersList.viewAllOrdersButton`,ariaLabelLink:`Account.${n}.OrdersList.ariaLabelLink`});return e?s("a",{className:k(["account-orders-list-action",["account-orders-list-action--minifiedView",a]]),"data-testid":"ordersListActionButtonMinifiedView",href:e(),children:s(R,{"data-testid":"ordersListActionMinifiedView",variant:"secondary",children:l("div",{className:"account-orders-list-action__card-wrapper",children:[s("p",{children:i.viewAllOrdersButton}),s(V,{source:K,...m})]})})}):s("a",{"aria-label":`${i.ariaLabelLink} ${c??r}`,href:Q(u)?u(c,r):"#",className:"account-orders-list-action","data-testid":"ordersListActionButton",children:s(V,{source:K,...m})})},dr=()=>{const[a,c]=y(window.innerWidth<768);return Y(()=>{const r=()=>{c(window.innerWidth<768)};return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[]),a},ir=({placeholderImage:a,minifiedView:c,item:r,withThumbnails:e,children:u,slots:n,routeTracking:i,routeOrderProduct:p,routeReturnDetails:f,...b})=>{var g,I,_,x,N,M,P,O,z,w,T,v;const o=c?"minifiedView":"fullSizeView",h=D({orderNumber:`Account.${o}.OrdersList.OrdersListCard.orderNumber`,itemsAmount:`Account.${o}.OrdersList.OrdersListCard.itemsAmount`,carrier:`Account.${o}.OrdersList.OrdersListCard.carrier`,returnsText:`Account.${o}.OrdersList.OrdersListCard.returns`,deliveryDateText:`Account.${o}.OrdersList.OrdersListCard.orderDate`}),d=dr(),S=Q(p);return l(R,{variant:"secondary",...b,className:k(["account-orders-list-card",["account-orders-list-card--full",((g=r==null?void 0:r.items)==null?void 0:g.length)>6]]),children:[s("div",{className:"account-orders-list-card__content",children:n!=null&&n.OrdersListCard?s(U,{"data-testid":`ordersListCard${r.id}`,name:"OrdersListCard",slot:n==null?void 0:n.OrdersListCard,context:{orderHistoryListItem:r}}):l($,{children:[s("div",{children:r==null?void 0:r.status}),l("p",{children:[h.deliveryDateText," ",r==null?void 0:r.orderDate]}),l("p",{children:[h.orderNumber," ",r.number]}),(I=r==null?void 0:r.shipments)==null?void 0:I.map(t=>{var L;return(L=t==null?void 0:t.tracking)==null?void 0:L.map(A=>{const C=i==null?void 0:i(A);return l("p",{"data-testid":A.number,children:[s("span",{children:`${h.carrier} ${A.carrier.toLocaleUpperCase()} `}),C?s("a",{href:C,target:"_blank",className:"account-orders-list-card__content--track_number",rel:"noreferrer",children:A.number}):s("span",{className:"account-orders-list-card__content--track_number",children:A.number})]},t.id)})}),r!=null&&r.returns&&((_=r.returns)!=null&&_.length)?l("p",{"data-testid":r.number,children:[l("span",{children:[h.returnsText," "]}),(x=r==null?void 0:r.returns)==null?void 0:x.map(t=>s("span",{"data-testid":t.number,children:l("a",{href:(f==null?void 0:f({orderNumber:r.number,orderToken:r.token,returnNumber:t.number}))??"#",className:"account-orders-list-card__content--return_number",children:[t.number," "]})},t.uid))]},r.id):null,s("p",{children:s(rr,{amount:((M=(N=r==null?void 0:r.total)==null?void 0:N.grandTotal)==null?void 0:M.value)??0,currency:(O=(P=r==null?void 0:r.total)==null?void 0:P.grandTotal)==null?void 0:O.currency,weight:"normal",size:"medium"})}),l("p",{"data-testid":"itemsAmount",children:[(z=r==null?void 0:r.items)!=null&&z.length?(w=r==null?void 0:r.items)==null?void 0:w.reduce((t,L)=>{const A=(L==null?void 0:L.quantityOrdered)||0;return t+A},0):0," ",h.itemsAmount]}),(T=r==null?void 0:r.items)==null?void 0:T.map((t,L)=>{if(L>=0&&L<10)return l("p",{className:"account-orders-list-card__content--product-name",children:[l("span",{className:"account-orders-list-card__content--quantity",children:[(t==null?void 0:t.quantityOrdered)>1?t==null?void 0:t.quantityOrdered:null," "]}),t==null?void 0:t.productName.replaceAll("-"," ")]},`${L}_${t.id}`);if(L===11)return s("p",{children:"..."},"ellipsis")})]})}),e&&((v=r==null?void 0:r.items)!=null&&v.length)?s(tr,{maxColumns:d?3:9,emptyGridContent:s($,{}),className:k(["account-orders-list-card__images",["account-orders-list-card__images-3",d]]),"data-testid":"ordersListCardImages",children:r.items.map((t,L)=>{var H,q,B,F,J;const A=(B=(q=(H=t==null?void 0:t.product)==null?void 0:H.smallImage)==null?void 0:q.url)!=null&&B.length?(J=(F=t==null?void 0:t.product)==null?void 0:F.smallImage)==null?void 0:J.url:a,C=(t==null?void 0:t.productName)??"";return S?s("a",{href:(p==null?void 0:p(t))??"",target:"_blank",rel:"noreferrer",children:s(W,{src:A,width:65,height:65,alt:C})},t.id+L):s(W,{src:A,width:65,height:65,alt:C},t.id+L)})}):null,s("div",{className:"account-orders-list-card__actions",children:u})]})},lr=({ordersInMinifiedView:a,minifiedView:c,pageSize:r,selectedDate:e,selectedPage:u,handleSetFirstOrderDate:n})=>{const[i,p]=y([]),[f,b]=y({totalPages:1,currentPage:1,pageSize:1}),[o,h]=y(!1),[d,S]=y("");return Y(()=>{or().then(g=>{S(g.baseMediaUrl)})},[]),Y(()=>{h(!0),nr(c?a:r,e,u).then(g=>{!g||!g.items||(b(g.pageInfo),p(g.items),n==null||n(g.dateOfFirstOrder))}).finally(()=>{h(!1)})},[n,c,a,r,e,u]),{loading:o,orderHistoryListItems:i,pageInfo:f,placeholderImage:d}},E=(a,c=1)=>{const r=new Date,e=new Date(r);switch(a){case"sixMonthsAgo":{e.setMonth(e.getMonth()-c);break}case"oneYearAgo":{e.setFullYear(e.getFullYear()-c);break}default:return""}return{from:e==null?void 0:e.toISOString().split("T")[0],to:`${r==null?void 0:r.toISOString().split("T")[0]} 23:59:59`}},ur=a=>{const c=[],r=new Date().getFullYear();for(let e=a;e<=r-1;e++)c.push({value:`{"from":"${e}-01-01","to":"${e+1}-01-01 23:59:59"}`,text:e.toString()});return c},hr=()=>{const a=D({pastSixMonths:"Account.fullSizeView.OrdersList.OrdersListSelectDate.pastSixMonths",currentYear:"Account.fullSizeView.OrdersList.OrdersListSelectDate.currentYear",viewAll:"Account.fullSizeView.OrdersList.OrdersListSelectDate.viewAll"}),[c,r]=y(),[e,u]=y(JSON.stringify(E("sixMonthsAgo",6))),[n,i]=y(1);Y(()=>{window==null||window.scrollTo({top:100,behavior:"smooth"})},[n]);const p=cr(()=>{const o=[{value:JSON.stringify(E("sixMonthsAgo",6)),text:a.pastSixMonths},{value:JSON.stringify(E("oneYearAgo",1)),text:a.currentYear},{value:"viewAll",text:a.viewAll}];if(c){const d=new Date(c).getFullYear();o==null||o.splice(2,0,...ur(d))}return o},[a,c]),f=j(o=>{r(o)},[]),b=j(o=>{const d=o.target.value;u(d),i(1)},[]);return{selectableDateList:p,selectedDate:e,selectedPage:n,handleSelectDate:b,setSelectedPage:i,handleSetFirstOrderDate:f}},gr=({className:a,withHeader:c=!0,minifiedView:r=!1,withThumbnails:e=!0,withFilter:u=!0,ordersInMinifiedView:n=1,pageSize:i=10,routeOrdersList:p,routeOrderDetails:f,routeReturnDetails:b,routeTracking:o,routeOrderProduct:h,slots:d})=>{const S=r?"minifiedView":"fullSizeView",g=D({containerTitle:`Account.${S}.OrdersList.containerTitle`,dateOrderPlaced:`Account.${S}.OrdersList.dateOrderPlaced`}),{selectableDateList:I,selectedDate:_,handleSelectDate:x,selectedPage:N,setSelectedPage:M,handleSetFirstOrderDate:P}=hr(),{pageInfo:O,loading:z,orderHistoryListItems:w,placeholderImage:T}=lr({minifiedView:r,pageSize:i,ordersInMinifiedView:n,selectedDate:_,selectedPage:N,handleSetFirstOrderDate:P});return l("div",{children:[c?s(sr,{"aria-label":g.containerTitle,role:"region",title:g.containerTitle,divider:!r,className:r?"account-orders-list-header":""}):null,l("div",{className:k(["account-orders-list",a]),children:[!r&&u?l("div",{className:"account-orders-list__date-select",children:[s("span",{children:g.dateOrderPlaced}),s(er,{value:_,name:"orderDatePicker",options:I,handleSelect:x})]}):null,z?s($,{children:Array.from(Array(O==null?void 0:O.pageSize).keys()).map(v=>s(Z,{testId:"orderSkeletonLoader",withCard:!1},v))}):s($,{children:w.length?s($,{children:w.map((v,t)=>s(ir,{placeholderImage:T,routeTracking:o,routeOrderProduct:h,routeReturnDetails:b,minifiedView:r,item:v,withThumbnails:e,slots:d,children:d!=null&&d.OrdersListAction?s(U,{"data-testid":`ordersListActionSlot_${t}`,name:"OrdersListAction",slot:d==null?void 0:d.OrdersListAction,context:{orderHistoryListItem:v}}):s(G,{minifiedView:r,orderNumber:v.number,orderToken:v.token,routeOrderDetails:f})},t))}):s(X,{isEmpty:!w.length,typeList:"orders",minifiedView:r})}),!r&&(O==null?void 0:O.totalPages)>1?s(ar,{totalPages:O==null?void 0:O.totalPages,currentPage:N,onChange:M}):null,r?s(G,{minifiedView:r,routeOrdersList:p}):null]})]})},kr=({className:a,withHeader:c,minifiedView:r,withThumbnails:e,withFilter:u,ordersInMinifiedView:n,pageSize:i,routeOrdersList:p,routeOrderDetails:f,routeReturnDetails:b,routeTracking:o,routeOrderProduct:h,slots:d})=>s("div",{className:k(["account-orders-list",a]),"data-testid":"ordersListId",children:s(gr,{className:a,withHeader:c,minifiedView:r,withThumbnails:e,withFilter:u,ordersInMinifiedView:n,pageSize:i,routeOrdersList:p,routeOrderDetails:f,routeReturnDetails:b,routeTracking:o,routeOrderProduct:h,slots:d})});export{kr as OrdersList,kr as default};
|
package/containers/index.d.ts
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export * from './AddressForm';
|
|
2
18
|
export * from './Addresses';
|
|
3
19
|
export * from './OrdersList';
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export declare enum FieldEnumList {
|
|
2
18
|
BOOLEAN = "BOOLEAN",
|
|
3
19
|
DATE = "DATE",
|
|
@@ -20,26 +36,26 @@ export declare enum FieldEnumList {
|
|
|
20
36
|
EMPTY = ""
|
|
21
37
|
}
|
|
22
38
|
export interface AttributesFormItemsProps {
|
|
23
|
-
code
|
|
24
|
-
name
|
|
25
|
-
id
|
|
26
|
-
required
|
|
27
|
-
label
|
|
28
|
-
options
|
|
29
|
-
|
|
30
|
-
|
|
39
|
+
code: string;
|
|
40
|
+
name: string;
|
|
41
|
+
id: string;
|
|
42
|
+
required: boolean;
|
|
43
|
+
label: string;
|
|
44
|
+
options: {
|
|
45
|
+
isDefault: boolean;
|
|
46
|
+
text: string;
|
|
31
47
|
value: string;
|
|
32
48
|
}[];
|
|
33
|
-
entityType
|
|
34
|
-
className
|
|
35
|
-
defaultValue
|
|
36
|
-
fieldType
|
|
37
|
-
multilineCount
|
|
38
|
-
isUnique
|
|
49
|
+
entityType: string;
|
|
50
|
+
className: string;
|
|
51
|
+
defaultValue: string | boolean | number;
|
|
52
|
+
fieldType: FieldEnumList;
|
|
53
|
+
multilineCount: number;
|
|
54
|
+
isUnique: boolean;
|
|
39
55
|
orderNumber: number;
|
|
40
|
-
isHidden
|
|
56
|
+
isHidden: boolean;
|
|
41
57
|
customUpperCode: string;
|
|
42
|
-
validateRules: Record<string, string>[];
|
|
58
|
+
validateRules: Record<string, string | number | boolean>[];
|
|
43
59
|
}
|
|
44
60
|
export interface AttributesFormModel extends AttributesFormItemsProps {
|
|
45
61
|
}
|
package/data/models/country.d.ts
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export type Country = {
|
|
2
18
|
value: string;
|
|
3
19
|
text: string;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export interface CustomerAddressesModel {
|
|
2
18
|
firstName?: string;
|
|
3
19
|
lastName?: string;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export interface CustomerDataModelShort {
|
|
2
18
|
firstName: string;
|
|
3
19
|
lastName: string;
|
package/data/models/index.d.ts
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export * from './customer-address';
|
|
2
18
|
export * from './attributes-form';
|
|
3
19
|
export * from './country';
|
package/data/models/region.d.ts
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export type Region = {
|
|
2
18
|
code: string;
|
|
3
19
|
id?: number;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export interface StoreConfigModel {
|
|
2
18
|
baseMediaUrl: string;
|
|
3
19
|
minLength: number;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export * from './transform-attributes-form';
|
|
2
18
|
export * from './transform-customer-address';
|
|
3
19
|
export * from './transform-customer';
|
package/fragments.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Copyright
|
|
1
|
+
/*! Copyright 2025 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
3
|
const e=`
|
|
4
4
|
fragment BASIC_CUSTOMER_INFO_FRAGMENT on Customer {
|
|
@@ -32,12 +32,19 @@ const e=`
|
|
|
32
32
|
}
|
|
33
33
|
`,a=`
|
|
34
34
|
fragment ORDER_SUMMARY_FRAGMENT on OrderTotal {
|
|
35
|
-
__typename
|
|
36
35
|
grand_total {
|
|
37
36
|
value
|
|
38
37
|
currency
|
|
39
38
|
}
|
|
40
|
-
|
|
39
|
+
total_giftcard {
|
|
40
|
+
currency
|
|
41
|
+
value
|
|
42
|
+
}
|
|
43
|
+
subtotal_excl_tax {
|
|
44
|
+
currency
|
|
45
|
+
value
|
|
46
|
+
}
|
|
47
|
+
subtotal_incl_tax {
|
|
41
48
|
currency
|
|
42
49
|
value
|
|
43
50
|
}
|
|
@@ -14,25 +14,25 @@ export declare const useCustomerInformation: ({ handleSetInLineAlert, }: UseCust
|
|
|
14
14
|
loading: boolean;
|
|
15
15
|
normalizeFieldsConfig: {
|
|
16
16
|
defaultValue: any;
|
|
17
|
-
code
|
|
18
|
-
name
|
|
19
|
-
id
|
|
20
|
-
required
|
|
21
|
-
label
|
|
22
|
-
options
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
code: string;
|
|
18
|
+
name: string;
|
|
19
|
+
id: string;
|
|
20
|
+
required: boolean;
|
|
21
|
+
label: string;
|
|
22
|
+
options: {
|
|
23
|
+
isDefault: boolean;
|
|
24
|
+
text: string;
|
|
25
25
|
value: string;
|
|
26
|
-
}[]
|
|
27
|
-
entityType
|
|
28
|
-
className
|
|
29
|
-
fieldType
|
|
30
|
-
multilineCount
|
|
31
|
-
isUnique
|
|
26
|
+
}[];
|
|
27
|
+
entityType: string;
|
|
28
|
+
className: string;
|
|
29
|
+
fieldType: import('../../data/models').FieldEnumList;
|
|
30
|
+
multilineCount: number;
|
|
31
|
+
isUnique: boolean;
|
|
32
32
|
orderNumber: number;
|
|
33
|
-
isHidden
|
|
33
|
+
isHidden: boolean;
|
|
34
34
|
customUpperCode: string;
|
|
35
|
-
validateRules: Record<string, string>[];
|
|
35
|
+
validateRules: Record<string, string | number | boolean>[];
|
|
36
36
|
}[];
|
|
37
37
|
submitLoading: boolean;
|
|
38
38
|
showEditForm: boolean;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export declare const useGetStoreConfigs: () => {
|
|
2
18
|
passwordConfigs: {
|
|
3
19
|
minLength: number;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export declare const useOrderSelectList: () => {
|
|
2
18
|
selectableDateList: {
|
|
3
19
|
value: string;
|
package/hooks/useDebounce.d.ts
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
declare const useDebounce: (value: string, delay: number) => string;
|
|
2
18
|
export default useDebounce;
|
|
3
19
|
//# sourceMappingURL=useDebounce.d.ts.map
|
package/hooks/useIsMobile.d.ts
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export declare const useIsMobile: () => boolean;
|
|
2
18
|
//# sourceMappingURL=useIsMobile.d.ts.map
|
package/i18n/en_US.json.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ declare const _default: {
|
|
|
3
3
|
"minifiedView": {
|
|
4
4
|
"CustomerInformation": {
|
|
5
5
|
"containerTitle": "Account settings",
|
|
6
|
-
"genderMale":"Male",
|
|
7
|
-
"genderFemale":"Female",
|
|
6
|
+
"genderMale": "Male",
|
|
7
|
+
"genderFemale": "Female",
|
|
8
8
|
"changePassword": {
|
|
9
9
|
"passwordValidationMessage": {
|
|
10
10
|
"chartTwoSymbols": "Use characters and numbers or symbols",
|
|
@@ -54,6 +54,7 @@ declare const _default: {
|
|
|
54
54
|
"differentAddressFormTitle": "Deliver to new address",
|
|
55
55
|
"viewAllAddressesButton": "View address list",
|
|
56
56
|
"differentAddressButton": "Use a different address",
|
|
57
|
+
"ariaLabelAddressPicker": "form",
|
|
57
58
|
"addressCard": {
|
|
58
59
|
"actionRemove": "Remove",
|
|
59
60
|
"actionEdit": "Edit",
|
|
@@ -103,6 +104,7 @@ declare const _default: {
|
|
|
103
104
|
"newAddressFormTitle": "Add address",
|
|
104
105
|
"addNewAddressButton": "Create new",
|
|
105
106
|
"differentAddressButton": "Use a different address",
|
|
107
|
+
"ariaLabelAddressPicker": "form",
|
|
106
108
|
"addressCard": {
|
|
107
109
|
"actionRemove": "Remove",
|
|
108
110
|
"actionEdit": "Edit",
|
|
@@ -165,6 +167,7 @@ declare const _default: {
|
|
|
165
167
|
"lengthTextError": "Text length must be between {min} and {max} characters."
|
|
166
168
|
}
|
|
167
169
|
}
|
|
168
|
-
}
|
|
170
|
+
}
|
|
171
|
+
;
|
|
169
172
|
|
|
170
173
|
export default _default;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
type ErrorsList = {
|
|
2
18
|
[key: string]: string;
|
|
3
19
|
};
|
package/lib/checkIsFunction.d.ts
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export declare const checkIsFunction: (value: any) => value is Function;
|
|
2
18
|
//# sourceMappingURL=checkIsFunction.d.ts.map
|
package/lib/convertCase.d.ts
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export declare const convertToCamelCase: (key: string) => string;
|
|
2
18
|
export declare const convertToSnakeCase: (key: string) => string;
|
|
3
19
|
export declare const convertKeysCase: (data: any, type: 'snakeCase' | 'camelCase', dictionary?: Record<string, string>) => any;
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export declare const convertToBoolean: (element: string | number) => boolean;
|
|
2
18
|
//# sourceMappingURL=convertToBoolean.d.ts.map
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export declare const convertToInputDateFormat: (dateTimeString: string) => string;
|
|
2
18
|
//# sourceMappingURL=convertToInputDateFormat.d.ts.map
|
package/lib/fetch-error.d.ts
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
/** Actions */
|
|
2
18
|
export declare const handleFetchError: (errors: Array<{
|
|
3
19
|
message: string;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
/**
|
|
2
18
|
* Formats a date string according to a specified locale and options.
|
|
3
19
|
* Returns "Invalid Date" if the input date string is invalid.
|
package/lib/getDateRange.d.ts
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 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
|
+
*******************************************************************/
|
|
1
17
|
export interface FilterDateProps {
|
|
2
18
|
from: string;
|
|
3
19
|
to: string;
|