@obb871001/api-integration-sdk 1.0.29 → 1.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("@tanstack/react-query"),C=require("react"),pr=require("axios"),Z=C.createContext(null),je=()=>{const s=C.useContext(Z);if(!s)throw new Error("useApiContext must be used within ApiProvider");return s};function yr({baseURL:s,getToken:p,timeoutMs:R=15e3,currency:b="TWD",lng:m="tw",onError:w}={}){const v=pr.create({baseURL:s,timeout:R,headers:{"Content-Type":"application/json"}});return v.interceptors.request.use(async c=>{if(c.headers=c.headers||{},p){const f=await p();f&&(c.headers.Authorization=`Bearer ${f}`)}return c.headers.Currency=b,c.headers["currency-code"]=b,c.headers.lang=m,c}),v.interceptors.response.use(c=>c,c=>w?w(c,{instance:v}):Promise.reject(c)),v}const hr=()=>{const{client:s}=je(),p=C.useCallback(async v=>{const{mac_address:c="",app_version:f="",anydesk_id:P=""}=v,{data:y}=await s.post("/cash-register/login",{mac_address:c,app_version:f,anydesk_id:P});return y},[s]),R=C.useCallback(async()=>{if(!s)throw new Error("Axios client not available - make sure you are using ApiProvider");return s.get("/getMemberInfo")},[s]),b=C.useCallback(async()=>{const{data:v}=await s.get("/getGameList");return v},[s]),m=C.useCallback(async()=>{const{data:v}=await s.get("/getNowCurrencyExchange");return v},[s]),w=C.useCallback(async()=>{const{data:v}=await s.get("/getFavoriteGame");return v},[s]);return{machineLoginApi:p,userInfoApi:R,userGameListApi:b,userFavoriteGameApi:w,userCurrencyExchangeApi:m}},gr=()=>{const{userInfoApi:s}=hr(),p=H.useQueries({queries:[{queryKey:["getMemberInfo"],queryFn:async()=>await s(),refetchInterval:5e4}]}),{data:R,isFetching:b,error:m}=p[0]||{};return{data:R,isFetching:b,error:m}};var V={exports:{}},$={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("@tanstack/react-query"),C=require("react"),pr=require("axios"),Z=C.createContext(null),je=()=>{const s=C.useContext(Z);if(!s)throw new Error("useApiContext must be used within ApiProvider");return s};function yr({baseURL:s,getToken:p,timeoutMs:R=15e3,currency:b="TWD",lng:E="tw",onError:T}={}){const v=pr.create({baseURL:s,timeout:R,headers:{"Content-Type":"application/json"}});return v.interceptors.request.use(async c=>{if(c.headers=c.headers||{},p){const f=await p();f&&(c.headers.Authorization=`Bearer ${f}`)}return c.headers.Currency=b,c.headers["currency-code"]=b,c.headers.lang=E,c}),v.interceptors.response.use(c=>c,c=>T?T(c,{instance:v}):Promise.reject(c)),v}const hr=()=>{const{client:s}=je(),p=C.useCallback(async v=>{const{mac_address:c="",app_version:f="",anydesk_id:P=""}=v,{data:y}=await s.post("/cash-register/login",{mac_address:c,app_version:f,anydesk_id:P});return y},[s]),R=C.useCallback(async()=>s.get("/member/getMemberInfo"),[s]),b=C.useCallback(async()=>{const{data:v}=await s.get("/getGameList");return v},[s]),E=C.useCallback(async()=>{const{data:v}=await s.get("/getNowCurrencyExchange");return v},[s]),T=C.useCallback(async()=>{const{data:v}=await s.get("/getFavoriteGame");return v},[s]);return{machineLoginApi:p,userInfoApi:R,userGameListApi:b,userFavoriteGameApi:T,userCurrencyExchangeApi:E}},gr=()=>{const{userInfoApi:s}=hr(),p=H.useQueries({queries:[{queryKey:["getMemberInfo"],queryFn:async()=>await s(),refetchInterval:5e4}]}),{data:R,isFetching:b,error:E}=p[0]||{};return{data:R,isFetching:b,error:E}};var V={exports:{}},$={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Pe;function br(){if(Pe)return $;Pe=1;var s=C,p=Symbol.for("react.element"),R=Symbol.for("react.fragment"),b=Object.prototype.hasOwnProperty,m=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w={key:!0,ref:!0,__self:!0,__source:!0};function v(c,f,P){var y,T={},x=null,Y=null;P!==void 0&&(x=""+P),f.key!==void 0&&(x=""+f.key),f.ref!==void 0&&(Y=f.ref);for(y in f)b.call(f,y)&&!w.hasOwnProperty(y)&&(T[y]=f[y]);if(c&&c.defaultProps)for(y in f=c.defaultProps,f)T[y]===void 0&&(T[y]=f[y]);return{$$typeof:p,type:c,key:x,ref:Y,props:T,_owner:m.current}}return $.Fragment=R,$.jsx=v,$.jsxs=v,$}var W={};/**
9
+ */var Pe;function br(){if(Pe)return $;Pe=1;var s=C,p=Symbol.for("react.element"),R=Symbol.for("react.fragment"),b=Object.prototype.hasOwnProperty,E=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,T={key:!0,ref:!0,__self:!0,__source:!0};function v(c,f,P){var y,w={},x=null,Y=null;P!==void 0&&(x=""+P),f.key!==void 0&&(x=""+f.key),f.ref!==void 0&&(Y=f.ref);for(y in f)b.call(f,y)&&!T.hasOwnProperty(y)&&(w[y]=f[y]);if(c&&c.defaultProps)for(y in f=c.defaultProps,f)w[y]===void 0&&(w[y]=f[y]);return{$$typeof:p,type:c,key:x,ref:Y,props:w,_owner:E.current}}return $.Fragment=R,$.jsx=v,$.jsxs=v,$}var W={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,17 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Oe;function Er(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&(function(){var s=C,p=Symbol.for("react.element"),R=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),ee=Symbol.iterator,ke="@@iterator";function Ae(e){if(e===null||typeof e!="object")return null;var r=ee&&e[ee]||e[ke];return typeof r=="function"?r:null}var k=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Fe("error",e,t)}}function Fe(e,r,t){{var n=k.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var De=!1,Ie=!1,$e=!1,We=!1,Ye=!1,re;re=Symbol.for("react.module.reference");function Me(e){return!!(typeof e=="string"||typeof e=="function"||e===b||e===w||Ye||e===m||e===P||e===y||We||e===Y||De||Ie||$e||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===T||e.$$typeof===v||e.$$typeof===c||e.$$typeof===f||e.$$typeof===re||e.getModuleId!==void 0))}function Le(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function te(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case b:return"Fragment";case R:return"Portal";case w:return"Profiler";case m:return"StrictMode";case P:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var r=e;return te(r)+".Consumer";case v:var t=e;return te(t._context)+".Provider";case f:return Le(e,e.render,"ForwardRef");case T:var n=e.displayName||null;return n!==null?n:O(e.type)||"Memo";case x:{var o=e,u=o._payload,i=o._init;try{return O(i(u))}catch{return null}}}return null}var S=Object.assign,D=0,ne,ae,ie,oe,ue,se,ce;function le(){}le.__reactDisabledLog=!0;function Ue(){{if(D===0){ne=console.log,ae=console.info,ie=console.warn,oe=console.error,ue=console.group,se=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function qe(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:ne}),info:S({},e,{value:ae}),warn:S({},e,{value:ie}),error:S({},e,{value:oe}),group:S({},e,{value:ue}),groupCollapsed:S({},e,{value:se}),groupEnd:S({},e,{value:ce})})}D<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var N=k.ReactCurrentDispatcher,J;function M(e,r,t){{if(J===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);J=n&&n[1]||""}return`
18
- `+J+e}}var B=!1,L;{var Ve=typeof WeakMap=="function"?WeakMap:Map;L=new Ve}function fe(e,r){if(!e||B)return"";{var t=L.get(e);if(t!==void 0)return t}var n;B=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=N.current,N.current=null,Ue();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(E){n=E}Reflect.construct(e,[],i)}else{try{i.call()}catch(E){n=E}e.call(i.prototype)}}else{try{throw Error()}catch(E){n=E}e()}}catch(E){if(E&&n&&typeof E.stack=="string"){for(var a=E.stack.split(`
17
+ */var Oe;function mr(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&(function(){var s=C,p=Symbol.for("react.element"),R=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),ee=Symbol.iterator,ke="@@iterator";function Ae(e){if(e===null||typeof e!="object")return null;var r=ee&&e[ee]||e[ke];return typeof r=="function"?r:null}var k=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Fe("error",e,t)}}function Fe(e,r,t){{var n=k.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var De=!1,Ie=!1,$e=!1,We=!1,Ye=!1,re;re=Symbol.for("react.module.reference");function Me(e){return!!(typeof e=="string"||typeof e=="function"||e===b||e===T||Ye||e===E||e===P||e===y||We||e===Y||De||Ie||$e||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===w||e.$$typeof===v||e.$$typeof===c||e.$$typeof===f||e.$$typeof===re||e.getModuleId!==void 0))}function Le(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function te(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case b:return"Fragment";case R:return"Portal";case T:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var r=e;return te(r)+".Consumer";case v:var t=e;return te(t._context)+".Provider";case f:return Le(e,e.render,"ForwardRef");case w:var n=e.displayName||null;return n!==null?n:O(e.type)||"Memo";case x:{var o=e,u=o._payload,i=o._init;try{return O(i(u))}catch{return null}}}return null}var S=Object.assign,D=0,ne,ae,ie,oe,ue,se,ce;function le(){}le.__reactDisabledLog=!0;function Ue(){{if(D===0){ne=console.log,ae=console.info,ie=console.warn,oe=console.error,ue=console.group,se=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function qe(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:ne}),info:S({},e,{value:ae}),warn:S({},e,{value:ie}),error:S({},e,{value:oe}),group:S({},e,{value:ue}),groupCollapsed:S({},e,{value:se}),groupEnd:S({},e,{value:ce})})}D<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var N=k.ReactCurrentDispatcher,J;function M(e,r,t){{if(J===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);J=n&&n[1]||""}return`
18
+ `+J+e}}var B=!1,L;{var Ve=typeof WeakMap=="function"?WeakMap:Map;L=new Ve}function fe(e,r){if(!e||B)return"";{var t=L.get(e);if(t!==void 0)return t}var n;B=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=N.current,N.current=null,Ue();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(m){n=m}Reflect.construct(e,[],i)}else{try{i.call()}catch(m){n=m}e.call(i.prototype)}}else{try{throw Error()}catch(m){n=m}e()}}catch(m){if(m&&n&&typeof m.stack=="string"){for(var a=m.stack.split(`
19
19
  `),g=n.stack.split(`
20
20
  `),l=a.length-1,d=g.length-1;l>=1&&d>=0&&a[l]!==g[d];)d--;for(;l>=1&&d>=0;l--,d--)if(a[l]!==g[d]){if(l!==1||d!==1)do if(l--,d--,d<0||a[l]!==g[d]){var _=`
21
- `+a[l].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),typeof e=="function"&&L.set(e,_),_}while(l>=1&&d>=0);break}}}finally{B=!1,N.current=u,qe(),Error.prepareStackTrace=o}var F=e?e.displayName||e.name:"",j=F?M(F):"";return typeof e=="function"&&L.set(e,j),j}function Ne(e,r,t){return fe(e,!1)}function Je(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return fe(e,Je(e));if(typeof e=="string")return M(e);switch(e){case P:return M("Suspense");case y:return M("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Ne(e.render);case T:return U(e.type,r,t);case x:{var n=e,o=n._payload,u=n._init;try{return U(u(o),r,t)}catch{}}}return""}var I=Object.prototype.hasOwnProperty,de={},ve=k.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);ve.setExtraStackFrame(t)}else ve.setExtraStackFrame(null)}function Be(e,r,t,n,o){{var u=Function.call.bind(I);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var g=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(q(o),h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),q(null)),a instanceof Error&&!(a.message in de)&&(de[a.message]=!0,q(o),h("Failed %s type: %s",t,a.message),q(null))}}}var Ge=Array.isArray;function G(e){return Ge(e)}function Ke(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Qe(e){try{return pe(e),!1}catch{return!0}}function pe(e){return""+e}function ye(e){if(Qe(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(e)),pe(e)}var he=k.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0},ge,be;function Xe(e){if(I.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function He(e){if(I.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ze(e,r){typeof e.ref=="string"&&he.current}function er(e,r){{var t=function(){ge||(ge=!0,h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function rr(e,r){{var t=function(){be||(be=!0,h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var tr=function(e,r,t,n,o,u,i){var a={$$typeof:p,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function nr(e,r,t,n,o){{var u,i={},a=null,g=null;t!==void 0&&(ye(t),a=""+t),He(r)&&(ye(r.key),a=""+r.key),Xe(r)&&(g=r.ref,Ze(r,o));for(u in r)I.call(r,u)&&!ze.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var l=e.defaultProps;for(u in l)i[u]===void 0&&(i[u]=l[u])}if(a||g){var d=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&er(i,d),g&&rr(i,d)}return tr(e,a,g,o,n,he.current,i)}}var K=k.ReactCurrentOwner,Ee=k.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var Q;Q=!1;function z(e){return typeof e=="object"&&e!==null&&e.$$typeof===p}function me(){{if(K.current){var e=O(K.current.type);if(e)return`
21
+ `+a[l].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),typeof e=="function"&&L.set(e,_),_}while(l>=1&&d>=0);break}}}finally{B=!1,N.current=u,qe(),Error.prepareStackTrace=o}var F=e?e.displayName||e.name:"",j=F?M(F):"";return typeof e=="function"&&L.set(e,j),j}function Ne(e,r,t){return fe(e,!1)}function Je(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return fe(e,Je(e));if(typeof e=="string")return M(e);switch(e){case P:return M("Suspense");case y:return M("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Ne(e.render);case w:return U(e.type,r,t);case x:{var n=e,o=n._payload,u=n._init;try{return U(u(o),r,t)}catch{}}}return""}var I=Object.prototype.hasOwnProperty,de={},ve=k.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);ve.setExtraStackFrame(t)}else ve.setExtraStackFrame(null)}function Be(e,r,t,n,o){{var u=Function.call.bind(I);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var g=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(q(o),h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),q(null)),a instanceof Error&&!(a.message in de)&&(de[a.message]=!0,q(o),h("Failed %s type: %s",t,a.message),q(null))}}}var Ge=Array.isArray;function G(e){return Ge(e)}function Ke(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Qe(e){try{return pe(e),!1}catch{return!0}}function pe(e){return""+e}function ye(e){if(Qe(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(e)),pe(e)}var he=k.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0},ge,be;function Xe(e){if(I.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function He(e){if(I.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ze(e,r){typeof e.ref=="string"&&he.current}function er(e,r){{var t=function(){ge||(ge=!0,h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function rr(e,r){{var t=function(){be||(be=!0,h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var tr=function(e,r,t,n,o,u,i){var a={$$typeof:p,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function nr(e,r,t,n,o){{var u,i={},a=null,g=null;t!==void 0&&(ye(t),a=""+t),He(r)&&(ye(r.key),a=""+r.key),Xe(r)&&(g=r.ref,Ze(r,o));for(u in r)I.call(r,u)&&!ze.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var l=e.defaultProps;for(u in l)i[u]===void 0&&(i[u]=l[u])}if(a||g){var d=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&er(i,d),g&&rr(i,d)}return tr(e,a,g,o,n,he.current,i)}}var K=k.ReactCurrentOwner,me=k.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);me.setExtraStackFrame(t)}else me.setExtraStackFrame(null)}var Q;Q=!1;function z(e){return typeof e=="object"&&e!==null&&e.$$typeof===p}function Ee(){{if(K.current){var e=O(K.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function ar(e){return""}var _e={};function ir(e){{var r=me();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
23
+ Check the render method of \``+e+"`."}return""}}function ar(e){return""}var _e={};function ir(e){{var r=Ee();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
24
 
25
- Check the top-level render call using <`+t+">.")}return r}}function Re(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ir(r);if(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==K.current&&(n=" It was passed a child from "+O(e._owner.type)+"."),A(e),h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),A(null)}}function Ce(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];z(n)&&Re(n,r)}else if(z(e))e._store&&(e._store.validated=!0);else if(e){var o=Ae(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)z(i.value)&&Re(i.value,r)}}}function or(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===T))t=r.propTypes;else return;if(t){var n=O(r);Be(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var o=O(r);h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ur(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),h("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var we={};function Te(e,r,t,n,o,u){{var i=Me(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var g=ar();g?a+=g:a+=me();var l;e===null?l="null":G(e)?l="array":e!==void 0&&e.$$typeof===p?(l="<"+(O(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,a)}var d=nr(e,r,t,o,u);if(d==null)return d;if(i){var _=r.children;if(_!==void 0)if(n)if(G(_)){for(var F=0;F<_.length;F++)Ce(_[F],e);Object.freeze&&Object.freeze(_)}else h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ce(_,e)}if(I.call(r,"key")){var j=O(e),E=Object.keys(r).filter(function(vr){return vr!=="key"}),X=E.length>0?"{key: someKey, "+E.join(": ..., ")+": ...}":"{key: someKey}";if(!we[j+X]){var dr=E.length>0?"{"+E.join(": ..., ")+": ...}":"{}";h(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+t+">.")}return r}}function Re(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ir(r);if(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==K.current&&(n=" It was passed a child from "+O(e._owner.type)+"."),A(e),h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),A(null)}}function Ce(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];z(n)&&Re(n,r)}else if(z(e))e._store&&(e._store.validated=!0);else if(e){var o=Ae(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)z(i.value)&&Re(i.value,r)}}}function or(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===w))t=r.propTypes;else return;if(t){var n=O(r);Be(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var o=O(r);h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ur(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),h("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var Te={};function we(e,r,t,n,o,u){{var i=Me(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var g=ar();g?a+=g:a+=Ee();var l;e===null?l="null":G(e)?l="array":e!==void 0&&e.$$typeof===p?(l="<"+(O(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,a)}var d=nr(e,r,t,o,u);if(d==null)return d;if(i){var _=r.children;if(_!==void 0)if(n)if(G(_)){for(var F=0;F<_.length;F++)Ce(_[F],e);Object.freeze&&Object.freeze(_)}else h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ce(_,e)}if(I.call(r,"key")){var j=O(e),m=Object.keys(r).filter(function(vr){return vr!=="key"}),X=m.length>0?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}";if(!Te[j+X]){var dr=m.length>0?"{"+m.join(": ..., ")+": ...}":"{}";h(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,X,j,dr,j),we[j+X]=!0}}return e===b?ur(d):or(d),d}}function sr(e,r,t){return Te(e,r,t,!0)}function cr(e,r,t){return Te(e,r,t,!1)}var lr=cr,fr=sr;W.Fragment=b,W.jsx=lr,W.jsxs=fr})()),W}var xe;function mr(){return xe||(xe=1,process.env.NODE_ENV==="production"?V.exports=br():V.exports=Er()),V.exports}var Se=mr();function _r({children:s,...p}){const R=C.useMemo(()=>yr(p),[p]),m=C.useMemo(()=>new H.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}}),[]);return Se.jsx(H.QueryClientProvider,{client:m,children:Se.jsx(Z.Provider,{value:{client:R},children:s})})}exports.ApiCtx=Z;exports.ApiProvider=_r;exports.useApiContext=je;exports.usePeriodicDataUpdater=gr;
30
+ <%s key={someKey} {...props} />`,X,j,dr,j),Te[j+X]=!0}}return e===b?ur(d):or(d),d}}function sr(e,r,t){return we(e,r,t,!0)}function cr(e,r,t){return we(e,r,t,!1)}var lr=cr,fr=sr;W.Fragment=b,W.jsx=lr,W.jsxs=fr})()),W}var xe;function Er(){return xe||(xe=1,process.env.NODE_ENV==="production"?V.exports=br():V.exports=mr()),V.exports}var Se=Er();function _r({children:s,...p}){const R=C.useMemo(()=>yr(p),[p]),E=C.useMemo(()=>new H.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}}),[]);return Se.jsx(H.QueryClientProvider,{client:E,children:Se.jsx(Z.Provider,{value:{client:R},children:s})})}exports.ApiCtx=Z;exports.ApiProvider=_r;exports.useApiContext=je;exports.usePeriodicDataUpdater=gr;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useQueries as pr, QueryClient as yr, QueryClientProvider as hr } from "@tanstack/react-query";
2
- import Se, { createContext as gr, useContext as mr, useCallback as I, useMemo as we } from "react";
2
+ import Se, { createContext as gr, useContext as mr, useCallback as I, useMemo as Te } from "react";
3
3
  import br from "axios";
4
4
  const je = gr(null), Er = () => {
5
5
  const s = mr(je);
@@ -34,21 +34,15 @@ function _r({
34
34
  const Rr = () => {
35
35
  const { client: s } = Er(), p = I(
36
36
  async (v) => {
37
- const { mac_address: c = "", app_version: f = "", anydesk_id: T = "" } = v, { data: y } = await s.post("/cash-register/login", {
37
+ const { mac_address: c = "", app_version: f = "", anydesk_id: w = "" } = v, { data: y } = await s.post("/cash-register/login", {
38
38
  mac_address: c,
39
39
  app_version: f,
40
- anydesk_id: T
40
+ anydesk_id: w
41
41
  });
42
42
  return y;
43
43
  },
44
44
  [s]
45
- ), R = I(async () => {
46
- if (!s)
47
- throw new Error(
48
- "Axios client not available - make sure you are using ApiProvider"
49
- );
50
- return s.get("/getMemberInfo");
51
- }, [s]), m = I(async () => {
45
+ ), R = I(async () => s.get("/member/getMemberInfo"), [s]), m = I(async () => {
52
46
  const { data: v } = await s.get("/getGameList");
53
47
  return v;
54
48
  }, [s]), E = I(async () => {
@@ -87,17 +81,17 @@ var q = { exports: {} }, $ = {};
87
81
  * This source code is licensed under the MIT license found in the
88
82
  * LICENSE file in the root directory of this source tree.
89
83
  */
90
- var Te;
84
+ var we;
91
85
  function Cr() {
92
- if (Te) return $;
93
- Te = 1;
86
+ if (we) return $;
87
+ we = 1;
94
88
  var s = Se, p = Symbol.for("react.element"), R = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, E = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
95
- function v(c, f, T) {
96
- var y, w = {}, P = null, Y = null;
97
- T !== void 0 && (P = "" + T), f.key !== void 0 && (P = "" + f.key), f.ref !== void 0 && (Y = f.ref);
98
- for (y in f) m.call(f, y) && !C.hasOwnProperty(y) && (w[y] = f[y]);
99
- if (c && c.defaultProps) for (y in f = c.defaultProps, f) w[y] === void 0 && (w[y] = f[y]);
100
- return { $$typeof: p, type: c, key: P, ref: Y, props: w, _owner: E.current };
89
+ function v(c, f, w) {
90
+ var y, T = {}, P = null, Y = null;
91
+ w !== void 0 && (P = "" + w), f.key !== void 0 && (P = "" + f.key), f.ref !== void 0 && (Y = f.ref);
92
+ for (y in f) m.call(f, y) && !C.hasOwnProperty(y) && (T[y] = f[y]);
93
+ if (c && c.defaultProps) for (y in f = c.defaultProps, f) T[y] === void 0 && (T[y] = f[y]);
94
+ return { $$typeof: p, type: c, key: P, ref: Y, props: T, _owner: E.current };
101
95
  }
102
96
  return $.Fragment = R, $.jsx = v, $.jsxs = v, $;
103
97
  }
@@ -112,13 +106,13 @@ var W = {};
112
106
  * LICENSE file in the root directory of this source tree.
113
107
  */
114
108
  var Oe;
115
- function wr() {
109
+ function Tr() {
116
110
  return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && (function() {
117
- var s = Se, p = Symbol.for("react.element"), R = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), H = Symbol.iterator, Ae = "@@iterator";
118
- function ke(e) {
111
+ var s = Se, p = Symbol.for("react.element"), R = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), H = Symbol.iterator, ke = "@@iterator";
112
+ function Ae(e) {
119
113
  if (e === null || typeof e != "object")
120
114
  return null;
121
- var r = H && e[H] || e[Ae];
115
+ var r = H && e[H] || e[ke];
122
116
  return typeof r == "function" ? r : null;
123
117
  }
124
118
  var j = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -142,7 +136,7 @@ function wr() {
142
136
  var De = !1, Ie = !1, $e = !1, We = !1, Ye = !1, Z;
143
137
  Z = Symbol.for("react.module.reference");
144
138
  function Le(e) {
145
- return !!(typeof e == "string" || typeof e == "function" || e === m || e === C || Ye || e === E || e === T || e === y || We || e === Y || De || Ie || $e || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === w || e.$$typeof === v || e.$$typeof === c || e.$$typeof === f || // This needs to include all possible module reference object
139
+ return !!(typeof e == "string" || typeof e == "function" || e === m || e === C || Ye || e === E || e === w || e === y || We || e === Y || De || Ie || $e || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === T || e.$$typeof === v || e.$$typeof === c || e.$$typeof === f || // This needs to include all possible module reference object
146
140
  // types supported by any Flight configuration anywhere since
147
141
  // we don't know which Flight build this will end up being used
148
142
  // with.
@@ -174,7 +168,7 @@ function wr() {
174
168
  return "Profiler";
175
169
  case E:
176
170
  return "StrictMode";
177
- case T:
171
+ case w:
178
172
  return "Suspense";
179
173
  case y:
180
174
  return "SuspenseList";
@@ -189,7 +183,7 @@ function wr() {
189
183
  return ee(t._context) + ".Provider";
190
184
  case f:
191
185
  return Me(e, e.render, "ForwardRef");
192
- case w:
186
+ case T:
193
187
  var n = e.displayName || null;
194
188
  return n !== null ? n : O(e.type) || "Memo";
195
189
  case P: {
@@ -352,7 +346,7 @@ function wr() {
352
346
  } finally {
353
347
  B = !1, N.current = u, Ve(), Error.prepareStackTrace = o;
354
348
  }
355
- var k = e ? e.displayName || e.name : "", S = k ? L(k) : "";
349
+ var A = e ? e.displayName || e.name : "", S = A ? L(A) : "";
356
350
  return typeof e == "function" && M.set(e, S), S;
357
351
  }
358
352
  function Ne(e, r, t) {
@@ -370,7 +364,7 @@ function wr() {
370
364
  if (typeof e == "string")
371
365
  return L(e);
372
366
  switch (e) {
373
- case T:
367
+ case w:
374
368
  return L("Suspense");
375
369
  case y:
376
370
  return L("SuspenseList");
@@ -379,7 +373,7 @@ function wr() {
379
373
  switch (e.$$typeof) {
380
374
  case f:
381
375
  return Ne(e.render);
382
- case w:
376
+ case T:
383
377
  return U(e.type, r, t);
384
378
  case P: {
385
379
  var n = e, o = n._payload, u = n._init;
@@ -537,7 +531,7 @@ function wr() {
537
531
  }
538
532
  }
539
533
  var K = j.ReactCurrentOwner, ge = j.ReactDebugCurrentFrame;
540
- function A(e) {
534
+ function k(e) {
541
535
  if (e) {
542
536
  var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
543
537
  ge.setExtraStackFrame(t);
@@ -587,7 +581,7 @@ Check the top-level render call using <` + t + ">.");
587
581
  return;
588
582
  be[t] = !0;
589
583
  var n = "";
590
- e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + O(e._owner.type) + "."), A(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), A(null);
584
+ e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + O(e._owner.type) + "."), k(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), k(null);
591
585
  }
592
586
  }
593
587
  function _e(e, r) {
@@ -602,7 +596,7 @@ Check the top-level render call using <` + t + ">.");
602
596
  else if (Q(e))
603
597
  e._store && (e._store.validated = !0);
604
598
  else if (e) {
605
- var o = ke(e);
599
+ var o = Ae(e);
606
600
  if (typeof o == "function" && o !== e.entries)
607
601
  for (var u = o.call(e), i; !(i = u.next()).done; )
608
602
  Q(i.value) && Ee(i.value, r);
@@ -619,7 +613,7 @@ Check the top-level render call using <` + t + ">.");
619
613
  t = r.propTypes;
620
614
  else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
621
615
  // Inner props are checked in the reconciler.
622
- r.$$typeof === w))
616
+ r.$$typeof === T))
623
617
  t = r.propTypes;
624
618
  else
625
619
  return;
@@ -639,11 +633,11 @@ Check the top-level render call using <` + t + ">.");
639
633
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
640
634
  var n = r[t];
641
635
  if (n !== "children" && n !== "key") {
642
- A(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), A(null);
636
+ k(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
643
637
  break;
644
638
  }
645
639
  }
646
- e.ref !== null && (A(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
640
+ e.ref !== null && (k(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
647
641
  }
648
642
  }
649
643
  var Re = {};
@@ -666,8 +660,8 @@ Check the top-level render call using <` + t + ">.");
666
660
  if (_ !== void 0)
667
661
  if (n)
668
662
  if (G(_)) {
669
- for (var k = 0; k < _.length; k++)
670
- _e(_[k], e);
663
+ for (var A = 0; A < _.length; A++)
664
+ _e(_[A], e);
671
665
  Object.freeze && Object.freeze(_);
672
666
  } else
673
667
  h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -702,12 +696,12 @@ React keys must be passed directly to JSX without using spread:
702
696
  })()), W;
703
697
  }
704
698
  var Pe;
705
- function Tr() {
706
- return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? q.exports = Cr() : q.exports = wr()), q.exports;
699
+ function wr() {
700
+ return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? q.exports = Cr() : q.exports = Tr()), q.exports;
707
701
  }
708
- var xe = Tr();
702
+ var xe = wr();
709
703
  function jr({ children: s, ...p }) {
710
- const R = we(() => _r(p), [p]), E = we(
704
+ const R = Te(() => _r(p), [p]), E = Te(
711
705
  () => new yr({
712
706
  defaultOptions: {
713
707
  queries: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@obb871001/api-integration-sdk",
3
3
  "private": false,
4
- "version": "1.0.29",
4
+ "version": "1.0.30",
5
5
  "description": "集成API",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",