@zappie/checkout-fields 0.2.2 → 0.2.4

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 CHANGED
@@ -1,5 +1,27 @@
1
1
  # @zappie/checkout-fields
2
2
 
3
+ ## 0.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - f9cc0ca: Ship no `.js.map` files. They held no source, so they only made the download bigger. Type declarations and their TSDoc still ship, so editor hovers are unchanged.
8
+ - c7a941b: Document every member of the public types and the meaning of every value of their string unions.
9
+ - Updated dependencies [f9cc0ca]
10
+ - Updated dependencies [6c550cd]
11
+ - Updated dependencies [61d813f]
12
+ - Updated dependencies [c7a941b]
13
+ - @zappie/sdk@0.29.0
14
+ - @zappie/foundations@0.28.4
15
+
16
+ ## 0.2.3
17
+
18
+ ### Patch Changes
19
+
20
+ - 8f44616: The docs reference now carries each parameter's description, marks a parameter with a default as optional, and lists a string union's values with their meanings.
21
+ - Updated dependencies [8f44616]
22
+ - @zappie/sdk@0.28.2
23
+ - @zappie/foundations@0.28.3
24
+
3
25
  ## 0.2.2
4
26
 
5
27
  ### Patch Changes
package/dist/address.js CHANGED
@@ -1,2 +1 @@
1
1
  "use client";import{useCallback,useEffect,useMemo,useRef,useState}from"react";function deliveryAddress(place){return{line1:place.line1,...place.city?{city:place.city}:{},placeId:place.place_id,coordinates:{lat:place.lat,lng:place.lng}}}function locationError(error){const position=typeof error==="object"&&error!==null&&"code"in error?error:void 0;if(position?.code===1){return"Location access is off. Search for your address instead."}if(position?.code===2||position?.code===3){return"We couldn't find your location. Search for your address instead."}return error instanceof Error?error.message:"We couldn't find your location. Search for your address instead."}function useAddressPicker(places,branchId,onChange){const search=useMemo(()=>places.createAddressSearch({branchId}),[branchId,places]);const revision=useRef(0);const[query,setQueryState]=useState("");const[selected,setSelected]=useState(null);const[finding,setFinding]=useState(false);const[error,setError]=useState(null);useEffect(()=>()=>search.dispose(),[search]);const choose=useCallback(address=>{revision.current++;setSelected(address);setQueryState(address.line1);setError(null);onChange(address)},[onChange]);const setQuery=useCallback(value=>{revision.current++;setQueryState(value);setError(null)},[]);const clear=useCallback(()=>{revision.current++;setSelected(null);setQueryState("");setError(null)},[]);const pick=useCallback(id=>{const current=++revision.current;return search.select(id).then(place=>{if(revision.current===current){choose(deliveryAddress(place))}},()=>{if(revision.current===current){setError("We couldn't open that address. Try another one.")}})},[choose,search]);const locate=useCallback(()=>{const current=++revision.current;setFinding(true);setError(null);const fail=failure=>{if(revision.current===current){setError(locationError(failure));setFinding(false)}};navigator.geolocation.getCurrentPosition(({coords})=>{void places.reverse(coords.latitude,coords.longitude).then(place=>{if(revision.current===current){choose(deliveryAddress(place));setFinding(false)}},fail)},fail,{enableHighAccuracy:false,timeout:1e4,maximumAge:6e4})},[choose,places]);const canLocate=typeof navigator!=="undefined"&&Boolean(navigator.geolocation);return{search,query,setQuery,selected,choose,pick,clear,canLocate,locate,finding,error}}function useAddressSuggestions(search,query,{enabled=true,minLength=3,debounceMs=250}={}){const[suggestions,setSuggestions]=useState([]);const[searching,setSearching]=useState(false);const text=query.trim();useEffect(()=>{if(!enabled||text.length<minLength){setSuggestions([]);setSearching(false);return}let live=true;setSearching(true);const timer=window.setTimeout(()=>{void search.suggest(text).then(found=>{if(live){setSuggestions(found.map(entry=>({id:entry.place_id,text:entry.text})))}}).catch(()=>void 0).finally(()=>{if(live){setSearching(false)}})},debounceMs);return()=>{live=false;window.clearTimeout(timer)}},[debounceMs,enabled,minLength,search,text]);return{suggestions,searching}}export{deliveryAddress,locationError,useAddressPicker,useAddressSuggestions};
2
- //# sourceMappingURL=address.js.map
package/dist/contact.js CHANGED
@@ -1,2 +1 @@
1
1
  "use client";import{contactProblems}from"@zappie/foundations/checkout";import{useState}from"react";function contactProblemText(problem,field){if(!problem){return void 0}if(!field){return problem==="invalid"?"Check this number":"Add your phone number"}if(problem==="invalid"){return field.type==="email"?"Check this email address":`Check your ${field.label.toLowerCase()}`}return`Add your ${field.label.toLowerCase()}`}function recipientProblemText(key,problem){if(!problem){return void 0}if(key==="recipient_name"){return problem==="invalid"?"Use 100 characters or fewer":"Add their name"}return problem==="invalid"?"Check this number":"Add their phone number"}function contactProblemTexts(fields,problems){const text={};for(const[key,problem]of Object.entries(problems)){const message=key.startsWith("recipient_")?recipientProblemText(key,problem):contactProblemText(problem,key==="phone"?void 0:fields.find(field=>field.key===key));if(message){text[key]=message}}return text}function useContactDraft(contact,focus,dialCode="+234"){const[phone,setPhone]=useState(contact.phone.startsWith(dialCode)?contact.phone.slice(dialCode.length):contact.phone);const[values,setValues]=useState(contact.values);const[tried,setTried]=useState(contact.shown.has(focus));const problems=contactProblems(contact.fields,values,phone,contact.accountPhone,dialCode);if(contact.recipient?.on){delete problems.phone}return{phone,setPhone,values,setValue:(key,value)=>setValues({...values,[key]:value}),problem:key=>tried?contactProblemText(problems[key],key==="phone"?void 0:contact.fields.find(field=>field.key===key)):void 0,save:()=>{const first=Object.keys(problems)[0];if(first){setTried(true);return first}contact.setPhone(phone);for(const field of contact.fields){contact.setField(field.key,values[field.key]??"")}for(const key of["phone",...contact.fields.map(field=>field.key)]){contact.show(key)}return void 0}}}export{contactProblemText,contactProblemTexts,recipientProblemText,useContactDraft};
2
- //# sourceMappingURL=contact.js.map
@@ -1,2 +1 @@
1
1
  "use client";import{deferred}from"@zappie/foundations";import{jsx}from"react/jsx-runtime";var liveMap=deferred(()=>import("./live-map.js"));var join=(...names)=>names.filter(Boolean).join(" ");function DeliveryAddressMap({places,branch,address,mapsKey,pinImageUrl,label,className,surfaceClassName}){const at=address.coordinates;if(!at){return null}if(mapsKey&&branch?.coordinates){return jsx(liveMap.Component,{open:true,fallback:jsx("div",{"aria-hidden":"true",className:join(surfaceClassName,className)}),branch,shopper:at,browserKey:mapsKey,...pinImageUrl?{pinImageUrl}:{},...label?{role:"img","aria-label":label}:{"aria-hidden":true},className:join(surfaceClassName,className)})}return jsx("img",{src:places.staticMapUrl(at.lat,at.lng,branch?.id),alt:label??"",width:560,height:160,className})}export{DeliveryAddressMap};
2
- //# sourceMappingURL=delivery-map.js.map
package/dist/escape.js CHANGED
@@ -1,2 +1 @@
1
1
  "use client";import{useEffect}from"react";function useEscapeClose(onClose){useEffect(()=>{const onKey=event=>{if(event.key==="Escape"){event.stopPropagation();onClose()}};document.addEventListener("keydown",onKey,true);return()=>document.removeEventListener("keydown",onKey,true)},[onClose])}export{useEscapeClose};
2
- //# sourceMappingURL=escape.js.map
package/dist/index.d.ts CHANGED
@@ -11,10 +11,13 @@ declare function locationError(error: unknown): string;
11
11
  type AddressPickerState = {
12
12
  /** The branch's address search. It is disposed when the branch changes or the picker unmounts. */
13
13
  search: ReturnType<PlacesClient["createAddressSearch"]>;
14
+ /** What the search box holds. Choosing an address sets it to the address's first line. */
14
15
  query: string;
16
+ /** Sets what the search box holds and clears `error`. */
15
17
  setQuery(query: string): void;
16
18
  /** The address the shopper chose, until they clear it. */
17
19
  selected: DeliveryAddress | null;
20
+ /** Chooses an address, puts its first line in the search box and calls `onChange` with it. */
18
21
  choose(address: DeliveryAddress): void;
19
22
  /** Chooses the place behind a suggestion's id. */
20
23
  pick(id: string): Promise<void>;
@@ -24,7 +27,9 @@ type AddressPickerState = {
24
27
  canLocate: boolean;
25
28
  /** Reads the shopper's location and chooses the address there. */
26
29
  locate(): void;
30
+ /** Whether the shopper's location is being read. */
27
31
  finding: boolean;
32
+ /** What to tell the shopper when opening a suggestion or reading their location failed. Null when nothing failed. */
28
33
  error: string | null;
29
34
  };
30
35
  /**
@@ -39,7 +44,9 @@ type AddressPickerState = {
39
44
  declare function useAddressPicker(places: PlacesClient, branchId: string, onChange: (address: DeliveryAddress) => void): AddressPickerState;
40
45
  /** A suggestion from the address search. */
41
46
  type AddressSuggestion = {
47
+ /** The place's id. Pass it to `pick` to choose the address. */
42
48
  id: string;
49
+ /** The suggestion in words, to show in the list. */
43
50
  text: string;
44
51
  };
45
52
  /** Options for `useAddressSuggestions`. */
@@ -90,8 +97,16 @@ declare function contactProblemTexts(fields: readonly ContactField[], problems:
90
97
  type ContactDraft = {
91
98
  /** The phone as typed in the dialog, without the dial code. */
92
99
  phone: string;
100
+ /** Sets the phone as typed in the dialog. Nothing reaches the order until `save`. */
93
101
  setPhone(phone: string): void;
102
+ /** What the shopper typed in each business field in the dialog, by its key. */
94
103
  values: ContactValues;
104
+ /**
105
+ * Sets one business field's value in the dialog. Nothing reaches the order until `save`.
106
+ *
107
+ * @param key - The field's key.
108
+ * @param value - The value as typed.
109
+ */
95
110
  setValue(key: string, value: string): void;
96
111
  /** What to show under a detail: nothing until the first Save, unless Pay opened the dialog on it. */
97
112
  problem(key: string): string | undefined;
@@ -113,6 +128,7 @@ declare function useContactDraft(contact: CheckoutContact, focus: string, dialCo
113
128
 
114
129
  /** Props for `DeliveryAddressMap`. */
115
130
  type DeliveryAddressMapProps = {
131
+ /** The places client. It gives the static map's image URL. */
116
132
  places: PlacesClient;
117
133
  /**
118
134
  * The branch the order leaves from. With its coordinates and a Maps key the map is live and draws
@@ -120,6 +136,7 @@ type DeliveryAddressMapProps = {
120
136
  * kitchen whose location is private.
121
137
  */
122
138
  branch?: Branch | undefined;
139
+ /** The shopper's delivery address. The map renders nothing when it has no coordinates. */
123
140
  address: DeliveryAddress;
124
141
  /** The store's Maps browser key. Without one the map is a static image. */
125
142
  mapsKey?: string | undefined;
@@ -192,6 +209,7 @@ type ScheduleDay = {
192
209
  type ScheduleStrip<D extends ScheduleDay> = {
193
210
  /** The chosen day, or undefined while the branch offers none. */
194
211
  day: D | undefined;
212
+ /** The chosen day's index among all the days. Starts at 0. */
195
213
  dayIndex: number;
196
214
  /** The days in view, each with its index among all the days. */
197
215
  visible: readonly {
@@ -201,9 +219,13 @@ type ScheduleStrip<D extends ScheduleDay> = {
201
219
  }[];
202
220
  /** Chooses a day. The time chosen on another day is cleared. */
203
221
  choose(index: number): void;
222
+ /** Whether there are earlier days before the ones in view. */
204
223
  canEarlier: boolean;
224
+ /** Whether there are later days after the ones in view. */
205
225
  canLater: boolean;
226
+ /** Moves the window back by one day. The chosen day stays. */
206
227
  earlier(): void;
228
+ /** Moves the window on by one day. The chosen day stays. */
207
229
  later(): void;
208
230
  };
209
231
  /**
package/dist/index.js CHANGED
@@ -1,2 +1 @@
1
1
  "use client";import{deliveryAddress,locationError,useAddressPicker,useAddressSuggestions}from"./address.js";import{contactProblemText,contactProblemTexts,recipientProblemText,useContactDraft}from"./contact.js";import{DeliveryAddressMap}from"./delivery-map.js";import{useEscapeClose}from"./escape.js";import{orderTimeChoice}from"./order-time.js";import{useRegionSearch}from"./region.js";import{scheduledLabel,useScheduleStrip}from"./schedule.js";export{DeliveryAddressMap,contactProblemText,contactProblemTexts,deliveryAddress,locationError,orderTimeChoice,recipientProblemText,scheduledLabel,useAddressPicker,useAddressSuggestions,useContactDraft,useEscapeClose,useRegionSearch,useScheduleStrip};
2
- //# sourceMappingURL=index.js.map
package/dist/live-map.js CHANGED
@@ -1,2 +1 @@
1
1
  import{DeliveryMap}from"@zappie/foundations";import{jsx}from"react/jsx-runtime";function LiveMap(props){return jsx(DeliveryMap,{...props})}export{LiveMap as default};
2
- //# sourceMappingURL=live-map.js.map
@@ -1,2 +1 @@
1
1
  function orderTimeChoice(timing,scheduledFor){if(!timing.ahead){return{kind:timing.closed?"closed":"now"}}return{kind:"choice",later:Boolean(scheduledFor)||!timing.canNow,canNow:timing.canNow}}export{orderTimeChoice};
2
- //# sourceMappingURL=order-time.js.map
package/dist/region.js CHANGED
@@ -1,2 +1 @@
1
1
  "use client";import{useState}from"react";function useRegionSearch(regions){const[query,setQuery]=useState("");const text=query.trim().toLowerCase();return{query,setQuery,shown:text?regions.filter(region=>region.name.toLowerCase().includes(text)):regions}}export{useRegionSearch};
2
- //# sourceMappingURL=region.js.map
package/dist/schedule.js CHANGED
@@ -1,2 +1 @@
1
1
  "use client";import{formatClock}from"@zappie/foundations/hours";import{useState}from"react";function useScheduleStrip(days,onDay,size=3){const[dayIndex,setDayIndex]=useState(0);const[start,setStart]=useState(0);return{day:days[dayIndex],dayIndex,visible:days.slice(start,start+size).map((day,offset)=>({day,index:start+offset,selected:start+offset===dayIndex})),choose:index=>{if(index!==dayIndex){setDayIndex(index);onDay()}},canEarlier:start>0,canLater:start+size<days.length,earlier:()=>setStart(Math.max(0,start-1)),later:()=>setStart(Math.min(Math.max(0,days.length-size),start+1))}}var dayKey=(date,timezone)=>new Intl.DateTimeFormat("en-CA",{timeZone:timezone,year:"numeric",month:"2-digit",day:"2-digit"}).format(date);function scheduledLabel(at,timezone,now=new Date){const date=new Date(at);const day=dayKey(date,timezone);const tomorrow=new Date(now.getTime()+864e5);const clock=new Intl.DateTimeFormat("en-GB",{timeZone:timezone,hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(date);const named=day===dayKey(now,timezone)?"Today":day===dayKey(tomorrow,timezone)?"Tomorrow":new Intl.DateTimeFormat("en-GB",{timeZone:timezone,weekday:"short",day:"numeric",month:"short"}).format(date).replace(",","");return`${named}, ${formatClock(clock)}`}export{scheduledLabel,useScheduleStrip};
2
- //# sourceMappingURL=schedule.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zappie/checkout-fields",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "UI-less checkout field behaviour for Zappie storefronts: the address search and its map, the contact draft and the schedule's days.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -20,12 +20,12 @@
20
20
  ],
21
21
  "peerDependencies": {
22
22
  "react": "^18.2.0 || ^19.0.0",
23
- "@zappie/foundations": "^0.28.0",
24
- "@zappie/sdk": "^0.28.0"
23
+ "@zappie/foundations": "^0.28.4",
24
+ "@zappie/sdk": "^0.29.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@zappie/sdk": "0.28.0",
28
- "@zappie/foundations": "0.28.0"
27
+ "@zappie/foundations": "0.28.4",
28
+ "@zappie/sdk": "0.29.0"
29
29
  },
30
30
  "repository": {
31
31
  "type": "git",
@@ -38,6 +38,6 @@
38
38
  "url": "https://github.com/zappie/storefront-packages/issues"
39
39
  },
40
40
  "scripts": {
41
- "build": "tsup && node ../../scripts/release-packages/build-modules.mjs --no-sources-content"
41
+ "build": "tsup && node ../../scripts/release-packages/build-modules.mjs --no-sourcemap"
42
42
  }
43
43
  }
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/address.ts"],
4
- "mappings": "aAGA,OAAS,YAAa,UAAW,QAAS,OAAQ,aAAgB,QAG3D,SAAS,gBAAgB,MAA+B,CAC7D,MAAO,CACL,MAAO,MAAM,MACb,GAAI,MAAM,KAAO,CAAE,KAAM,MAAM,IAAK,EAAI,CAAC,EACzC,QAAS,MAAM,SACf,YAAa,CAAE,IAAK,MAAM,IAAK,IAAK,MAAM,GAAI,CAChD,CACF,CAGO,SAAS,cAAc,MAAwB,CACpD,MAAM,SACJ,OAAO,QAAU,UAAY,QAAU,MAAQ,SAAU,MACpD,MACD,OACN,GAAI,UAAU,OAAS,EAAG,CACxB,MAAO,0DACT,CACA,GAAI,UAAU,OAAS,GAAK,UAAU,OAAS,EAAG,CAChD,MAAO,kEACT,CACA,OAAO,iBAAiB,MACpB,MAAM,QACN,kEACN,CAgCO,SAAS,iBACd,OACA,SACA,SACoB,CACpB,MAAM,OAAS,QACb,IAAM,OAAO,oBAAoB,CAAE,QAAS,CAAC,EAC7C,CAAC,SAAU,MAAM,CACnB,EACA,MAAM,SAAW,OAAO,CAAC,EACzB,KAAM,CAAC,MAAO,aAAa,EAAI,SAAS,EAAE,EAC1C,KAAM,CAAC,SAAU,WAAW,EAAI,SAAiC,IAAI,EACrE,KAAM,CAAC,QAAS,UAAU,EAAI,SAAS,KAAK,EAC5C,KAAM,CAAC,MAAO,QAAQ,EAAI,SAAwB,IAAI,EACtD,UAAU,IAAM,IAAM,OAAO,QAAQ,EAAG,CAAC,MAAM,CAAC,EAChD,MAAM,OAAS,YACZ,SAA6B,CAC5B,SAAS,UACT,YAAY,OAAO,EAC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A,MACA,UACA,OACA,QACA,KACF,CACF,CAsBO,SAAS,sBACd,OACA,MACA,CACE,QAAU,KACV,UAAY,EACZ,WAAa,GACf,EAA+B,CAAC,EACmC,CACnE,KAAM,CAAC,YAAa,cAAc,EAAI,SACpC,CAAC,CACH,EACA,KAAM,CAAC,UAAW,YAAY,EAAI,SAAS,KAAK,EAChD,MAAM,KAAO,MAAM,KAAK,EACxB,UAAU,IAAM,CACd,GAAI,CAAC,SAAW,KAAK,OAAS,UAAW,CACvC,eAAe,CAAC,CAAC,EACjB,aAAa,KAAK,EAClB,MACF,CACA,IAAI,KAAO,KACX,aAAa,IAAI,EACjB,MAAM,MAAQ,OAAO,WAAW,IAAM,CACpC,KAAK,OACF,QAAQ,IAAI,EACZ,KAAM,OAAU,CACf,GAAI,KAAM,CACR,eACE,MAAM,IAAK,QAAW,CAAE,GAAI,MAAM,SAAU,KAAM,MAAM,IAAK,EAAE,CACjE,CACF,CACF,CAAC,EACA,MAAM,IAAM,MAAS,EACrB,QAAQ,IAAM,CACb,GAAI,KAAM,CACR,aAAa,KAAK,CACpB,CACF,CAAC,CACL,EAAG,UAAU,EACb,MAAO,IAAM,CACX,KAAO,MACP,OAAO,aAAa,KAAK,CAC3B,CACF,EAAG,CAAC,WAAY,QAAS,UAAW,OAAQ,IAAI,CAAC,EACjD,MAAO,CAAE,YAAa,SAAU,CAClC",
5
- "names": []
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/contact.ts"],
4
- "mappings": "aACA,OACE,oBAKK,+BACP,OAAS,aAAgB,QAQlB,SAAS,mBACd,QACA,MACoB,CACpB,GAAI,CAAC,QAAS,CACZ,OAAO,MACT,CACA,GAAI,CAAC,MAAO,CACV,OAAO,UAAY,UACf,oBACA,uBACN,CACA,GAAI,UAAY,UAAW,CACzB,OAAO,MAAM,OAAS,QAClB,2BACA,cAAc,MAAM,MAAM,YAAY,CAAC,EAC7C,CACA,MAAO,YAAY,MAAM,MAAM,YAA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MAAO,CACT,SAAS,IAAI,EACb,OAAO,KACT,CACA,QAAQ,SAAS,KAAK,EACtB,UAAW,SAAS,QAAQ,OAAQ,CAClC,QAAQ,SAAS,MAAM,IAAK,OAAO,MAAM,GAAG,GAAK,EAAE,CACrD,CACA,UAAW,MAAO,CAChB,QACA,GAAG,QAAQ,OAAO,IAAK,OAAU,MAAM,GAAG,CAC5C,EAAG,CACD,QAAQ,KAAK,GAAG,CAClB,CACA,OAAO,MACT,CACF,CACF",
5
- "names": []
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/delivery-map.tsx"],
4
- "mappings": "aACA,OAAS,aAAgB,sBAuDf,mCAnDV,IAAM,QAAU,SAAS,IAAM,OAAO,eAAY,CAAC,EAwBnD,IAAM,KAAO,IAAI,QACf,MAAM,OAAO,OAAO,EAAE,KAAK,GAAG,EAOzB,SAAS,mBAAmB,CACjC,OACA,OACA,QACA,QACA,YACA,MACA,UACA,gBACF,EAA4B,CAC1B,MAAM,GAAK,QAAQ,YACnB,GAAI,CAAC,GAAI,CACP,OAAO,IACT,CACA,GAAI,SAAW,QAAQ,YAAa,CAClC,OACE,IAAC,QAAQ,UAAR,CACC,KAAI,KACJ,SACE,IAAC,OACC,cAAY,OACZ,UAAW,KAAK,iBAAkB,SAAS,EAC7C,EAEF,OACA,QAAS,GACT,WAAY,QACX,GAAI,YAAc,CAAE,WAAY,EAAI,CAAC,EACrC,GAAI,MACD,CAAE,KAAM,MAAO,aAAc,KAAM,EACnC,CAAE,cAAe,IAAK,EAC1B,UAAW,KAAK,iBAAkB,SAAS,EAC7C,CAEJ,CACA,OACE,IAAC,OACC,IAAK,OAAO,aAAa,GAAG,IAAK,GAAG,IAAK,QAAQ,EAAE,EACnD,IAAK,OAAS,GACd,MAAO,IACP,OAAQ,IACR,UACF,CAEJ",
5
- "names": []
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/escape.ts"],
4
- "mappings": "aACA,OAAS,cAAiB,QAMnB,SAAS,eAAe,QAA2B,CACxD,UAAU,IAAM,CACd,MAAM,MAAS,OAAyB,CACtC,GAAI,MAAM,MAAQ,SAAU,CAC1B,MAAM,gBAAgB,EACtB,QAAQ,CACV,CACF,EACA,SAAS,iBAAiB,UAAW,MAAO,IAAI,EAChD,MAAO,IAAM,SAAS,oBAAoB,UAAW,MAAO,IAAI,CAClE,EAAG,CAAC,OAAO,CAAC,CACd",
5
- "names": []
6
- }
package/dist/index.js.map DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/index.ts"],
4
- "mappings": "aAIA,OACE,gBACA,cACA,iBACA,0BACK,eAMP,OACE,mBACA,oBACA,qBACA,oBACK,eAEP,OAAS,uBAA0B,oBAEnC,OAAS,mBAAsB,cAC/B,OAAS,oBAAuB,kBAEhC,OAAS,oBAAuB,cAEhC,OAAS,eAAgB,qBAAwB",
5
- "names": []
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/live-map.tsx"],
4
- "mappings": "AAAA,OAAS,gBAA0C,sBAI1C,mCADM,SAAR,QAAyB,MAAyB,CACvD,OAAO,IAAC,aAAa,GAAG,MAAO,CACjC",
5
- "names": []
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/order-time.ts"],
4
- "mappings": "AAkBO,SAAS,gBACd,OACA,aACiB,CACjB,GAAI,CAAC,OAAO,MAAO,CACjB,MAAO,CAAE,KAAM,OAAO,OAAS,SAAW,KAAM,CAClD,CACA,MAAO,CACL,KAAM,SACN,MAAO,QAAQ,YAAY,GAAK,CAAC,OAAO,OACxC,OAAQ,OAAO,MACjB,CACF",
5
- "names": []
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/region.ts"],
4
- "mappings": "aAEA,OAAS,aAAgB,QAUlB,SAAS,gBAAgB,QAI9B,CACA,KAAM,CAAC,MAAO,QAAQ,EAAI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