@zappie/foundations 0.28.5 → 0.29.0
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,16 @@
|
|
|
1
1
|
# @zappie/foundations
|
|
2
2
|
|
|
3
|
+
## 0.29.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ecb9878: Search and Schedule read the menus of the bag's order type, so a pickup-only item is found and its menu's hours count on Pickup. `createBranchSwitchLoader` takes `fulfilment`, which names the order type to read another branch's menu for, as the root loader passes it to `loadStoreAndMenu`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [ecb9878]
|
|
12
|
+
- @zappie/sdk@0.30.0
|
|
13
|
+
|
|
3
14
|
## 0.28.5
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Branch, Store, Zappie, Menu } from '@zappie/sdk';
|
|
1
|
+
import { Branch, Store, Zappie, Menu, MenuFulfilment } from '@zappie/sdk';
|
|
2
2
|
import { IntentPreloadHandlers } from '../index.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
@@ -41,6 +41,11 @@ type BranchSwitchOptions<T extends BranchSwitchShop> = {
|
|
|
41
41
|
serverOnly?(url: URL, shop: T): boolean;
|
|
42
42
|
/** The query parameter that names a branch in a link. Defaults to `branch`. */
|
|
43
43
|
param?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The order type to read the other branch's menu for, as your root loader passes it to
|
|
46
|
+
* `loadStoreAndMenu`. Each type has its own menus. Left out, the branch's default type.
|
|
47
|
+
*/
|
|
48
|
+
fulfilment?(url: URL, shop: T): MenuFulfilment | undefined;
|
|
44
49
|
};
|
|
45
50
|
/** The arguments React Router passes to `shouldRevalidate` that the branch switch reads. */
|
|
46
51
|
type BranchSwitchRevalidateArgs = {
|
|
@@ -124,7 +129,7 @@ declare function reloadsShop(current: URLSearchParams, next: URLSearchParams, lo
|
|
|
124
129
|
* export const shouldRevalidate: ShouldRevalidateFunction = (args) => branchSwitch.shouldRevalidate(args);
|
|
125
130
|
* export const clientLoader = (args: Route.ClientLoaderArgs) => branchSwitch.clientLoader(args);
|
|
126
131
|
*/
|
|
127
|
-
declare function createBranchSwitchLoader<T extends BranchSwitchShop>({ shopAt, serverOnly, param, }?: BranchSwitchOptions<T>): BranchSwitchLoader<T>;
|
|
132
|
+
declare function createBranchSwitchLoader<T extends BranchSwitchShop>({ shopAt, serverOnly, param, fulfilment, }?: BranchSwitchOptions<T>): BranchSwitchLoader<T>;
|
|
128
133
|
/**
|
|
129
134
|
* Pointer, touch and focus handlers that start reading a branch's menu when
|
|
130
135
|
* the shopper reaches for the control that chooses it. The client keeps one
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{useCart,useZappie}from"@zappie/sdk/react";import{useEffect,useMemo}from"react";import{useLocation,useNavigate}from"react-router";import{useIntentPreload}from"../deferred/index.js";function shopAtBranch(shop,branch,menu){const fields=shop;return{...shop,...fields.config?{config:{...fields.config,branch:branch.id}}:{},branch,menu,branchChosen:true,..."mustChoose"in fields?{mustChoose:false}:{}}}function loadedBranchOf(shop){return{...shop.branch?{id:shop.branch.id,slug:shop.branch.slug}:{},chosen:shop.branchChosen??true}}function branchNamed(store,wanted){return wanted?store.branches.find(branch=>branch.id===wanted||branch.slug===wanted):void 0}function reloadsShop(current,next,loaded,param="branch"){const wanted=next.get(param);if(wanted===null||wanted===current.get(param)){return false}return!(loaded?.chosen&&(wanted===loaded.id||wanted===loaded.slug))}function createBranchSwitchLoader({shopAt=shopAtBranch,serverOnly,param="branch"}={}){let live;return{remember(shop,client){if(typeof window!=="undefined"){live={shop,client}}},shouldRevalidate({currentUrl,nextUrl,formMethod,defaultShouldRevalidate}){if(formMethod&&formMethod.toUpperCase()!=="GET"){return defaultShouldRevalidate}return reloadsShop(currentUrl.searchParams,nextUrl.searchParams,live&&loadedBranchOf(live.shop),param)},async clientLoader({request,serverLoader}){const url=new URL(request.url);const current=live;const branch=current?branchNamed(current.shop.store,url.searchParams.get(param)):void 0;if(current&&branch&&!serverOnly?.(url,current.shop)){try{const menu=await current.client.menu.get({branch:branch.id,signal:request.signal});return shopAt(current.shop,branch,menu)}catch(error){if(request.signal.aborted){throw error}}}return serverLoader()}}}var readMenu=(client,branch)=>client.menu.get({branch:typeof branch==="string"?branch:branch.id});function useBranchIntent(branch){const client=useZappie();return useIntentPreload(useMemo(()=>({preload:()=>readMenu(client,branch)}),[client,branch]))}function useChooseBranch(then){const move=useMoveToBranch();return async branch=>{await move(branch);await then(branch)}}function useMoveToBranch(){const client=useZappie();const cart=useCart();return async branch=>{readMenu(client,branch).catch(()=>{});if(cart.lines.length>0&&branch.id!==cart.branchId){await cart.actions.moveTo(branch.id)}}}var COOKIE_MAX_AGE=2592e3;function rememberBranch(cookie,branch){document.cookie=`${cookie}=${encodeURIComponent(branch)}; path=/; max-age=${COOKIE_MAX_AGE}; samesite=lax`}function atBranch(path,branch,param="branch"){const url=new URL(path,"https://site.invalid");url.searchParams.set(param,branch);return`${url.pathname}${url.search}${url.hash}`}function useBranchChoice({cookie,rememberBy,to="/",param,then}={}){const navigate=useNavigate();const move=useMoveToBranch();return async(branch,destination)=>{await move(branch);if(cookie){rememberBranch(cookie,rememberBy==="slug"?branch.slug:branch.id)}const where=destination??(typeof to==="string"?{path:to}:to(branch));void navigate(atBranch(where.path,branch.slug,param),{state:where.state,replace:where.replace??false,preventScrollReset:where.preventScrollReset??false});then?.(branch,where)}}function useRememberLinkedBranch(branch,{cookie,rememberBy,param="branch"}){const named=new URLSearchParams(useLocation().search).get(param);const id=branch?.id;const slug=branch?.slug;useEffect(()=>{if(named&&id&&slug&&(named===id||named===slug)){rememberBranch(cookie,rememberBy==="slug"?slug:id)}},[named,id,slug,cookie,rememberBy])}function useReloadingBranch(shop,{location,navigation},param="branch"){const next=navigation.state==="loading"?navigation.location:void 0;const pathname=next?.pathname;const search=next?.search;return useMemo(()=>{if(pathname===void 0||search===void 0){return void 0}const wanted=new URLSearchParams(search);if(!reloadsShop(new URLSearchParams(location.search),wanted,loadedBranchOf(shop),param)){return void 0}const branch=branchNamed(shop.store,wanted.get(param));return branch?{branch,pathname}:void 0},[shop,location.search,pathname,search,param])}export{atBranch,branchNamed,createBranchSwitchLoader,loadedBranchOf,reloadsShop,rememberBranch,shopAtBranch,useBranchChoice,useBranchIntent,useChooseBranch,useReloadingBranch,useRememberLinkedBranch};
|
|
1
|
+
"use client";import{useCart,useZappie}from"@zappie/sdk/react";import{useEffect,useMemo}from"react";import{useLocation,useNavigate}from"react-router";import{useIntentPreload}from"../deferred/index.js";function shopAtBranch(shop,branch,menu){const fields=shop;return{...shop,...fields.config?{config:{...fields.config,branch:branch.id}}:{},branch,menu,branchChosen:true,..."mustChoose"in fields?{mustChoose:false}:{}}}function loadedBranchOf(shop){return{...shop.branch?{id:shop.branch.id,slug:shop.branch.slug}:{},chosen:shop.branchChosen??true}}function branchNamed(store,wanted){return wanted?store.branches.find(branch=>branch.id===wanted||branch.slug===wanted):void 0}function reloadsShop(current,next,loaded,param="branch"){const wanted=next.get(param);if(wanted===null||wanted===current.get(param)){return false}return!(loaded?.chosen&&(wanted===loaded.id||wanted===loaded.slug))}function createBranchSwitchLoader({shopAt=shopAtBranch,serverOnly,param="branch",fulfilment}={}){let live;return{remember(shop,client){if(typeof window!=="undefined"){live={shop,client}}},shouldRevalidate({currentUrl,nextUrl,formMethod,defaultShouldRevalidate}){if(formMethod&&formMethod.toUpperCase()!=="GET"){return defaultShouldRevalidate}return reloadsShop(currentUrl.searchParams,nextUrl.searchParams,live&&loadedBranchOf(live.shop),param)},async clientLoader({request,serverLoader}){const url=new URL(request.url);const current=live;const branch=current?branchNamed(current.shop.store,url.searchParams.get(param)):void 0;if(current&&branch&&!serverOnly?.(url,current.shop)){try{const menu=await current.client.menu.get({branch:branch.id,fulfilment:fulfilment?.(url,current.shop),signal:request.signal});return shopAt(current.shop,branch,menu)}catch(error){if(request.signal.aborted){throw error}}}return serverLoader()}}}var readMenu=(client,branch)=>client.menu.get({branch:typeof branch==="string"?branch:branch.id});function useBranchIntent(branch){const client=useZappie();return useIntentPreload(useMemo(()=>({preload:()=>readMenu(client,branch)}),[client,branch]))}function useChooseBranch(then){const move=useMoveToBranch();return async branch=>{await move(branch);await then(branch)}}function useMoveToBranch(){const client=useZappie();const cart=useCart();return async branch=>{readMenu(client,branch).catch(()=>{});if(cart.lines.length>0&&branch.id!==cart.branchId){await cart.actions.moveTo(branch.id)}}}var COOKIE_MAX_AGE=2592e3;function rememberBranch(cookie,branch){document.cookie=`${cookie}=${encodeURIComponent(branch)}; path=/; max-age=${COOKIE_MAX_AGE}; samesite=lax`}function atBranch(path,branch,param="branch"){const url=new URL(path,"https://site.invalid");url.searchParams.set(param,branch);return`${url.pathname}${url.search}${url.hash}`}function useBranchChoice({cookie,rememberBy,to="/",param,then}={}){const navigate=useNavigate();const move=useMoveToBranch();return async(branch,destination)=>{await move(branch);if(cookie){rememberBranch(cookie,rememberBy==="slug"?branch.slug:branch.id)}const where=destination??(typeof to==="string"?{path:to}:to(branch));void navigate(atBranch(where.path,branch.slug,param),{state:where.state,replace:where.replace??false,preventScrollReset:where.preventScrollReset??false});then?.(branch,where)}}function useRememberLinkedBranch(branch,{cookie,rememberBy,param="branch"}){const named=new URLSearchParams(useLocation().search).get(param);const id=branch?.id;const slug=branch?.slug;useEffect(()=>{if(named&&id&&slug&&(named===id||named===slug)){rememberBranch(cookie,rememberBy==="slug"?slug:id)}},[named,id,slug,cookie,rememberBy])}function useReloadingBranch(shop,{location,navigation},param="branch"){const next=navigation.state==="loading"?navigation.location:void 0;const pathname=next?.pathname;const search=next?.search;return useMemo(()=>{if(pathname===void 0||search===void 0){return void 0}const wanted=new URLSearchParams(search);if(!reloadsShop(new URLSearchParams(location.search),wanted,loadedBranchOf(shop),param)){return void 0}const branch=branchNamed(shop.store,wanted.get(param));return branch?{branch,pathname}:void 0},[shop,location.search,pathname,search,param])}export{atBranch,branchNamed,createBranchSwitchLoader,loadedBranchOf,reloadsShop,rememberBranch,shopAtBranch,useBranchChoice,useBranchIntent,useChooseBranch,useReloadingBranch,useRememberLinkedBranch};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{useCart,useMenu,useStore,useZappie}from"@zappie/sdk/react";import{forwardRef,useEffect,useMemo,useState}from"react";import{part}from"../internal/slot.js";import{useControllableState}from"../internal/use-controllable-state.js";var windowModule;var windowLoad;var loadRules=()=>windowLoad??(windowLoad=import("./window.js").catch(()=>import("./window.js")).then(module=>windowModule=module).catch(error=>{windowLoad=void 0;throw error}));var Schedule=/*@__PURE__ */forwardRef(function Schedule2({branch,timezone:suppliedTimezone,value,defaultValue=null,onValueChange,intervalMinutes,maxDays,noticeMinutes,menuIds,...props},ref){const client=useZappie();const store=useStore();const menu=useMenu(branch.id,{metadataOnly:true});const
|
|
1
|
+
"use client";import{useCart,useMenu,useStore,useZappie}from"@zappie/sdk/react";import{forwardRef,useEffect,useMemo,useState}from"react";import{bagOrderType}from"../internal/order-type.js";import{part}from"../internal/slot.js";import{useControllableState}from"../internal/use-controllable-state.js";var windowModule;var windowLoad;var loadRules=()=>windowLoad??(windowLoad=import("./window.js").catch(()=>import("./window.js")).then(module=>windowModule=module).catch(error=>{windowLoad=void 0;throw error}));var Schedule=/*@__PURE__ */forwardRef(function Schedule2({branch,timezone:suppliedTimezone,value,defaultValue=null,onValueChange,intervalMinutes,maxDays,noticeMinutes,menuIds,...props},ref){const client=useZappie();const store=useStore();const cart=useCart();const fulfilment=bagOrderType(cart.fulfilment);const menu=useMenu(branch.id,{metadataOnly:true,fulfilment});const ids=(menuIds??cart.lines.map(line=>line.menuId)).join(" ");const[retrying,setRetrying]=useState(false);const[rules,setRules]=useState(windowModule);const[failed,setFailed]=useState(false);useEffect(()=>{if(!rules){loadRules().then(setRules,()=>setFailed(true))}},[]);const menuFailed=!menu.data&&menu.error!==void 0;const status=menu.isLoading||retrying||!rules&&!failed?"loading":menuFailed||failed?"error":"ready";const ready=status==="ready";const timezone=suppliedTimezone??branch.timezone??store.data?.timezone??"UTC";const[now,setNow]=useState(()=>new Date);useEffect(()=>{const timer=setTimeout(()=>setNow(new Date),6e4-Date.now()%6e4);return()=>clearTimeout(timer)},[now]);const[selection,setSelection]=useControllableState({value,defaultValue,onChange:onValueChange});const result=useMemo(()=>rules?.bagWindow(branch,timezone,now,menu.data,ids,{intervalMinutes,maxDays,noticeMinutes}),[rules,branch,timezone,now,menu.data,ids,intervalMinutes,maxDays,noticeMinutes]);const slots=ready&&result?.slots||[];const days=Array.from(new Set(slots.map(slot=>slot.date))).map(date=>({date,slots:slots.filter(slot=>slot.date===date)}));const canAsap=ready&&result.canAsap;const isClosed=ready&&!canAsap&&slots.length===0;const isValid=selection===null?canAsap:slots.some(slot=>slot.value===selection);const retry=()=>{if(failed){location.reload();return}if(retrying||!menuFailed){return}setRetrying(true);void client.menu.get({branch:branch.id,metadataOnly:true,fulfilment}).catch(()=>{}).finally(()=>setRetrying(false))};const setValue=next=>{if(next===null?canAsap:slots.some(slot=>slot.value===next)){setSelection(next)}};return part("div",props,{status,retry,isClosed,blocker:isClosed?result.why():void 0,days,slots,value:selection,setValue,isAsap:selection===null,canAsap,isValid},{role:"group","aria-busy":status==="loading"?true:void 0,"data-status":status,"data-state":isValid?"valid":"invalid","data-invalid":isValid||!ready?void 0:""},ref)});export{Schedule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var bagOrderType=fulfilment=>fulfilment?.type==="dine_in"?"dineIn":fulfilment?.type;export{bagOrderType};
|
package/dist/search/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{useCart,useMenu,useZappie}from"@zappie/sdk/react";import{createContext,forwardRef,useContext,useEffect,useMemo}from"react";import{countAnnouncement,useCombobox,withLiveRegion}from"../internal/combobox.js";import{composeRefs,part}from"../internal/slot.js";import{useControllableState}from"../internal/use-controllable-state.js";import{createSearchIndex}from"./engine.js";import{createSearchIndex as createSearchIndex2}from"./engine.js";import{jsx}from"react/jsx-runtime";var Context=/*@__PURE__ */createContext(null);function useSearch(){const ctx=useContext(Context);if(!ctx){throw new Error("Search parts require Search.Root")}return ctx}function Root(props){if(props.source){return jsx(ControlledRoot,{...props,source:props.source})}return jsx(UncontrolledRoot,{...props})}function UncontrolledRoot(props){const cart=useCart();const menu=useMenu(cart.branchId??void 0);const[query,setQuery]=useControllableState({value:props.query,defaultValue:props.defaultQuery??"",onChange:props.onQueryChange});const index=useMemo(()=>menu.data?createSearchIndex(menu.data):()=>[],[menu.data]);const results=useMemo(()=>index(query),[index,query]);return jsx(ControlledRoot,{...props,query,onQueryChange:setQuery,source:{results,isLoading:menu.isLoading,isStale:menu.isStale}})}function ControlledRoot({query,defaultQuery="",onQueryChange,onSelect=()=>{},announcement=countAnnouncement,source,...props}){const client=useZappie();const[value,setValue]=useControllableState({value:query,defaultValue:defaultQuery,onChange:onQueryChange});const results=source.results;const combo=useCombobox(results,onSelect);const setQuery=next=>{setValue(next);combo.setActiveIndex(-1);combo.setOpen(true)};useEffect(()=>{if(!value.trim()){return}const timer=setTimeout(()=>client._internal.emit("search",{query:value,resultCount:results.length}),600);return()=>clearTimeout(timer)},[client,value,results.length]);const state={...combo,query:value,setQuery,results,setComposing:value2=>source.onCompositionChange?.(value2),...source.error?{error:source.error}:{},...source.retry?{retry:source.retry}:{}};return jsx(Context.Provider,{value:state,children:part("div",withLiveRegion(props,combo.isOpen&&value.trim()?announcement(results.length):""),state,{"data-state":source.error?"error":source.isLoading?"loading":source.isStale?"stale":"valid",onBlur:event=>{if(!event.currentTarget.contains(event.relatedTarget)){combo.setOpen(false)}}})})}var Input=/*@__PURE__ */forwardRef(function Input2(props,ref){const state=useSearch();return part("input",props,state,{...state.inputProps,type:"search",onCompositionStart:()=>state.setComposing(true),onCompositionEnd:()=>state.setComposing(false),value:state.query,onChange:event=>state.setQuery(event.target.value)},ref)});var Results=/*@__PURE__ */forwardRef(function Results2(props,ref){const state=useSearch();return part("div",props,state,state.listProps,composeRefs(ref,node=>{if(node?.id&&node.id!==state.listProps.id){state.setListId(node.id)}}))});var Result=/*@__PURE__ */forwardRef(function Result2({index,...props},ref){const state=useSearch();return part("div",props,state,state.getOptionProps(index),composeRefs(ref,node=>{if(node?.id&&node.id!==state.getOptionProps(index).id){state.registerOption(index,node.id)}}))});var Search={Root,Input,Results,Result};export{Search,createSearchIndex2 as createSearchIndex};
|
|
1
|
+
"use client";import{useCart,useMenu,useZappie}from"@zappie/sdk/react";import{createContext,forwardRef,useContext,useEffect,useMemo}from"react";import{countAnnouncement,useCombobox,withLiveRegion}from"../internal/combobox.js";import{bagOrderType}from"../internal/order-type.js";import{composeRefs,part}from"../internal/slot.js";import{useControllableState}from"../internal/use-controllable-state.js";import{createSearchIndex}from"./engine.js";import{createSearchIndex as createSearchIndex2}from"./engine.js";import{jsx}from"react/jsx-runtime";var Context=/*@__PURE__ */createContext(null);function useSearch(){const ctx=useContext(Context);if(!ctx){throw new Error("Search parts require Search.Root")}return ctx}function Root(props){if(props.source){return jsx(ControlledRoot,{...props,source:props.source})}return jsx(UncontrolledRoot,{...props})}function UncontrolledRoot(props){const cart=useCart();const menu=useMenu(cart.branchId??void 0,{fulfilment:bagOrderType(cart.fulfilment)});const[query,setQuery]=useControllableState({value:props.query,defaultValue:props.defaultQuery??"",onChange:props.onQueryChange});const index=useMemo(()=>menu.data?createSearchIndex(menu.data):()=>[],[menu.data]);const results=useMemo(()=>index(query),[index,query]);return jsx(ControlledRoot,{...props,query,onQueryChange:setQuery,source:{results,isLoading:menu.isLoading,isStale:menu.isStale}})}function ControlledRoot({query,defaultQuery="",onQueryChange,onSelect=()=>{},announcement=countAnnouncement,source,...props}){const client=useZappie();const[value,setValue]=useControllableState({value:query,defaultValue:defaultQuery,onChange:onQueryChange});const results=source.results;const combo=useCombobox(results,onSelect);const setQuery=next=>{setValue(next);combo.setActiveIndex(-1);combo.setOpen(true)};useEffect(()=>{if(!value.trim()){return}const timer=setTimeout(()=>client._internal.emit("search",{query:value,resultCount:results.length}),600);return()=>clearTimeout(timer)},[client,value,results.length]);const state={...combo,query:value,setQuery,results,setComposing:value2=>source.onCompositionChange?.(value2),...source.error?{error:source.error}:{},...source.retry?{retry:source.retry}:{}};return jsx(Context.Provider,{value:state,children:part("div",withLiveRegion(props,combo.isOpen&&value.trim()?announcement(results.length):""),state,{"data-state":source.error?"error":source.isLoading?"loading":source.isStale?"stale":"valid",onBlur:event=>{if(!event.currentTarget.contains(event.relatedTarget)){combo.setOpen(false)}}})})}var Input=/*@__PURE__ */forwardRef(function Input2(props,ref){const state=useSearch();return part("input",props,state,{...state.inputProps,type:"search",onCompositionStart:()=>state.setComposing(true),onCompositionEnd:()=>state.setComposing(false),value:state.query,onChange:event=>state.setQuery(event.target.value)},ref)});var Results=/*@__PURE__ */forwardRef(function Results2(props,ref){const state=useSearch();return part("div",props,state,state.listProps,composeRefs(ref,node=>{if(node?.id&&node.id!==state.listProps.id){state.setListId(node.id)}}))});var Result=/*@__PURE__ */forwardRef(function Result2({index,...props},ref){const state=useSearch();return part("div",props,state,state.getOptionProps(index),composeRefs(ref,node=>{if(node?.id&&node.id!==state.getOptionProps(index).id){state.registerOption(index,node.id)}}))});var Search={Root,Input,Results,Result};export{Search,createSearchIndex2 as createSearchIndex};
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var PACKAGE_VERSION=true?"0.
|
|
1
|
+
var PACKAGE_VERSION=true?"0.29.0":"0.0.0-development";export{PACKAGE_VERSION};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zappie/foundations",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "UI-less React primitives for Zappie storefronts: behaviour, state and accessibility without styles.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"react": "^18.2.0 || ^19.0.0",
|
|
103
103
|
"react-dom": "^18.2.0 || ^19.0.0",
|
|
104
|
-
"@zappie/sdk": "^0.
|
|
104
|
+
"@zappie/sdk": "^0.30.0",
|
|
105
105
|
"react-router": "^8.4.0"
|
|
106
106
|
},
|
|
107
107
|
"peerDependenciesMeta": {
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"@types/google.maps": "^3.66.7",
|
|
119
119
|
"esbuild": "^0.28.2",
|
|
120
120
|
"react-router": "8.5.0",
|
|
121
|
-
"@zappie/sdk": "0.
|
|
121
|
+
"@zappie/sdk": "0.30.0"
|
|
122
122
|
},
|
|
123
123
|
"license": "MIT",
|
|
124
124
|
"homepage": "https://github.com/zappie/storefront-packages#readme",
|