@qobo/banner 1.0.2 → 1.0.3

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
@@ -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 Se;function cr(){if(Se)return I;Se=1;var j=Y,_=Symbol.for("react.element"),F=Symbol.for("react.fragment"),g=Object.prototype.hasOwnProperty,k=j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,T={key:!0,ref:!0,__self:!0,__source:!0};function m(y,f,E){var c,b={},w=null,W=null;E!==void 0&&(w=""+E),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(W=f.ref);for(c in f)g.call(f,c)&&!T.hasOwnProperty(c)&&(b[c]=f[c]);if(y&&y.defaultProps)for(c in f=y.defaultProps,f)b[c]===void 0&&(b[c]=f[c]);return{$$typeof:_,type:y,key:w,ref:W,props:b,_owner:k.current}}return I.Fragment=F,I.jsx=m,I.jsxs=m,I}var $={};/**
9
+ */var Se;function cr(){if(Se)return I;Se=1;var j=Y,_=Symbol.for("react.element"),k=Symbol.for("react.fragment"),g=Object.prototype.hasOwnProperty,F=j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,T={key:!0,ref:!0,__self:!0,__source:!0};function m(y,f,E){var c,b={},w=null,W=null;E!==void 0&&(w=""+E),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(W=f.ref);for(c in f)g.call(f,c)&&!T.hasOwnProperty(c)&&(b[c]=f[c]);if(y&&y.defaultProps)for(c in f=y.defaultProps,f)b[c]===void 0&&(b[c]=f[c]);return{$$typeof:_,type:y,key:w,ref:W,props:b,_owner:F.current}}return I.Fragment=k,I.jsx=m,I.jsxs=m,I}var $={};/**
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 Pe;function dr(){return Pe||(Pe=1,process.env.NODE_ENV!=="production"&&function(){var j=Y,_=Symbol.for("react.element"),F=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),y=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),Z=Symbol.iterator,xe="@@iterator";function Ce(e){if(e===null||typeof e!="object")return null;var r=Z&&e[Z]||e[xe];return typeof r=="function"?r:null}var O=j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];je("error",e,t)}}function je(e,r,t){{var n=O.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Fe=!1,ke=!1,Ae=!1,De=!1,Ie=!1,ee;ee=Symbol.for("react.module.reference");function $e(e){return!!(typeof e=="string"||typeof e=="function"||e===g||e===T||Ie||e===k||e===E||e===c||De||e===W||Fe||ke||Ae||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===b||e.$$typeof===m||e.$$typeof===y||e.$$typeof===f||e.$$typeof===ee||e.getModuleId!==void 0))}function Ye(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function re(e){return e.displayName||"Context"}function R(e){if(e==null)return null;if(typeof e.tag=="number"&&d("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 g:return"Fragment";case F:return"Portal";case T:return"Profiler";case k:return"StrictMode";case E:return"Suspense";case c:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var r=e;return re(r)+".Consumer";case m:var t=e;return re(t._context)+".Provider";case f:return Ye(e,e.render,"ForwardRef");case b:var n=e.displayName||null;return n!==null?n:R(e.type)||"Memo";case w:{var i=e,u=i._payload,o=i._init;try{return R(o(u))}catch{return null}}}return null}var S=Object.assign,A=0,te,ne,ae,oe,ie,ue,se;function le(){}le.__reactDisabledLog=!0;function We(){{if(A===0){te=console.log,ne=console.info,ae=console.warn,oe=console.error,ie=console.group,ue=console.groupCollapsed,se=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})}A++}}function Be(){{if(A--,A===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:te}),info:S({},e,{value:ne}),warn:S({},e,{value:ae}),error:S({},e,{value:oe}),group:S({},e,{value:ie}),groupCollapsed:S({},e,{value:ue}),groupEnd:S({},e,{value:se})})}A<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=O.ReactCurrentDispatcher,N;function B(e,r,t){{if(N===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);N=n&&n[1]||""}return`
18
- `+N+e}}var K=!1,V;{var Ve=typeof WeakMap=="function"?WeakMap:Map;V=new Ve}function fe(e,r){if(!e||K)return"";{var t=V.get(e);if(t!==void 0)return t}var n;K=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=U.current,U.current=null,We();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(p){n=p}Reflect.construct(e,[],o)}else{try{o.call()}catch(p){n=p}e.call(o.prototype)}}else{try{throw Error()}catch(p){n=p}e()}}catch(p){if(p&&n&&typeof p.stack=="string"){for(var a=p.stack.split(`
17
+ */var Pe;function dr(){return Pe||(Pe=1,process.env.NODE_ENV!=="production"&&function(){var j=Y,_=Symbol.for("react.element"),k=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),y=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),Z=Symbol.iterator,xe="@@iterator";function Ce(e){if(e===null||typeof e!="object")return null;var r=Z&&e[Z]||e[xe];return typeof r=="function"?r:null}var O=j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];je("error",e,t)}}function je(e,r,t){{var n=O.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var s=t.map(function(o){return String(o)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var ke=!1,Fe=!1,Ae=!1,De=!1,Ie=!1,ee;ee=Symbol.for("react.module.reference");function $e(e){return!!(typeof e=="string"||typeof e=="function"||e===g||e===T||Ie||e===F||e===E||e===c||De||e===W||ke||Fe||Ae||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===b||e.$$typeof===m||e.$$typeof===y||e.$$typeof===f||e.$$typeof===ee||e.getModuleId!==void 0))}function Ye(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function re(e){return e.displayName||"Context"}function R(e){if(e==null)return null;if(typeof e.tag=="number"&&d("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 g:return"Fragment";case k:return"Portal";case T:return"Profiler";case F:return"StrictMode";case E:return"Suspense";case c:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var r=e;return re(r)+".Consumer";case m:var t=e;return re(t._context)+".Provider";case f:return Ye(e,e.render,"ForwardRef");case b:var n=e.displayName||null;return n!==null?n:R(e.type)||"Memo";case w:{var i=e,s=i._payload,o=i._init;try{return R(o(s))}catch{return null}}}return null}var S=Object.assign,A=0,te,ne,ae,oe,ie,se,ue;function le(){}le.__reactDisabledLog=!0;function We(){{if(A===0){te=console.log,ne=console.info,ae=console.warn,oe=console.error,ie=console.group,se=console.groupCollapsed,ue=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})}A++}}function Be(){{if(A--,A===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:te}),info:S({},e,{value:ne}),warn:S({},e,{value:ae}),error:S({},e,{value:oe}),group:S({},e,{value:ie}),groupCollapsed:S({},e,{value:se}),groupEnd:S({},e,{value:ue})})}A<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=O.ReactCurrentDispatcher,N;function B(e,r,t){{if(N===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);N=n&&n[1]||""}return`
18
+ `+N+e}}var K=!1,V;{var Ve=typeof WeakMap=="function"?WeakMap:Map;V=new Ve}function fe(e,r){if(!e||K)return"";{var t=V.get(e);if(t!==void 0)return t}var n;K=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=U.current,U.current=null,We();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(p){n=p}Reflect.construct(e,[],o)}else{try{o.call()}catch(p){n=p}e.call(o.prototype)}}else{try{throw Error()}catch(p){n=p}e()}}catch(p){if(p&&n&&typeof p.stack=="string"){for(var a=p.stack.split(`
19
19
  `),v=n.stack.split(`
20
- `),s=a.length-1,l=v.length-1;s>=1&&l>=0&&a[s]!==v[l];)l--;for(;s>=1&&l>=0;s--,l--)if(a[s]!==v[l]){if(s!==1||l!==1)do if(s--,l--,l<0||a[s]!==v[l]){var h=`
21
- `+a[s].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,h),h}while(s>=1&&l>=0);break}}}finally{K=!1,U.current=u,Be(),Error.prepareStackTrace=i}var C=e?e.displayName||e.name:"",P=C?B(C):"";return typeof e=="function"&&V.set(e,P),P}function Le(e,r,t){return fe(e,!1)}function Me(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function L(e,r,t){if(e==null)return"";if(typeof e=="function")return fe(e,Me(e));if(typeof e=="string")return B(e);switch(e){case E:return B("Suspense");case c:return B("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Le(e.render);case b:return L(e.type,r,t);case w:{var n=e,i=n._payload,u=n._init;try{return L(u(i),r,t)}catch{}}}return""}var D=Object.prototype.hasOwnProperty,ce={},de=O.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=L(e.type,e._source,r?r.type:null);de.setExtraStackFrame(t)}else de.setExtraStackFrame(null)}function Ue(e,r,t,n,i){{var u=Function.call.bind(D);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var v=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(M(i),d("%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,o,typeof a),M(null)),a instanceof Error&&!(a.message in ce)&&(ce[a.message]=!0,M(i),d("Failed %s type: %s",t,a.message),M(null))}}}var Ne=Array.isArray;function q(e){return Ne(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 ve(e),!1}catch{return!0}}function ve(e){return""+e}function pe(e){if(qe(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(e)),ve(e)}var be=O.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},he,ge;function Ge(e){if(D.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ze(e){if(D.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Qe(e,r){typeof e.ref=="string"&&be.current}function Xe(e,r){{var t=function(){he||(he=!0,d("%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 He(e,r){{var t=function(){ge||(ge=!0,d("%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 Ze=function(e,r,t,n,i,u,o){var a={$$typeof:_,type:e,key:r,ref:t,props:o,_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:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function er(e,r,t,n,i){{var u,o={},a=null,v=null;t!==void 0&&(pe(t),a=""+t),ze(r)&&(pe(r.key),a=""+r.key),Ge(r)&&(v=r.ref,Qe(r,i));for(u in r)D.call(r,u)&&!Je.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)o[u]===void 0&&(o[u]=s[u])}if(a||v){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Xe(o,l),v&&He(o,l)}return Ze(e,a,v,i,n,be.current,o)}}var J=O.ReactCurrentOwner,ye=O.ReactDebugCurrentFrame;function x(e){if(e){var r=e._owner,t=L(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}var G;G=!1;function z(e){return typeof e=="object"&&e!==null&&e.$$typeof===_}function Ee(){{if(J.current){var e=R(J.current.type);if(e)return`
20
+ `),u=a.length-1,l=v.length-1;u>=1&&l>=0&&a[u]!==v[l];)l--;for(;u>=1&&l>=0;u--,l--)if(a[u]!==v[l]){if(u!==1||l!==1)do if(u--,l--,l<0||a[u]!==v[l]){var h=`
21
+ `+a[u].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,h),h}while(u>=1&&l>=0);break}}}finally{K=!1,U.current=s,Be(),Error.prepareStackTrace=i}var C=e?e.displayName||e.name:"",P=C?B(C):"";return typeof e=="function"&&V.set(e,P),P}function Le(e,r,t){return fe(e,!1)}function Me(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function L(e,r,t){if(e==null)return"";if(typeof e=="function")return fe(e,Me(e));if(typeof e=="string")return B(e);switch(e){case E:return B("Suspense");case c:return B("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Le(e.render);case b:return L(e.type,r,t);case w:{var n=e,i=n._payload,s=n._init;try{return L(s(i),r,t)}catch{}}}return""}var D=Object.prototype.hasOwnProperty,ce={},de=O.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=L(e.type,e._source,r?r.type:null);de.setExtraStackFrame(t)}else de.setExtraStackFrame(null)}function Ue(e,r,t,n,i){{var s=Function.call.bind(D);for(var o in e)if(s(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var v=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(u){a=u}a&&!(a instanceof Error)&&(M(i),d("%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,o,typeof a),M(null)),a instanceof Error&&!(a.message in ce)&&(ce[a.message]=!0,M(i),d("Failed %s type: %s",t,a.message),M(null))}}}var Ne=Array.isArray;function q(e){return Ne(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 ve(e),!1}catch{return!0}}function ve(e){return""+e}function pe(e){if(qe(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(e)),ve(e)}var be=O.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},he,ge;function ze(e){if(D.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ge(e){if(D.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Qe(e,r){typeof e.ref=="string"&&be.current}function Xe(e,r){{var t=function(){he||(he=!0,d("%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 He(e,r){{var t=function(){ge||(ge=!0,d("%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 Ze=function(e,r,t,n,i,s,o){var a={$$typeof:_,type:e,key:r,ref:t,props:o,_owner:s};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:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function er(e,r,t,n,i){{var s,o={},a=null,v=null;t!==void 0&&(pe(t),a=""+t),Ge(r)&&(pe(r.key),a=""+r.key),ze(r)&&(v=r.ref,Qe(r,i));for(s in r)D.call(r,s)&&!Je.hasOwnProperty(s)&&(o[s]=r[s]);if(e&&e.defaultProps){var u=e.defaultProps;for(s in u)o[s]===void 0&&(o[s]=u[s])}if(a||v){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Xe(o,l),v&&He(o,l)}return Ze(e,a,v,i,n,be.current,o)}}var J=O.ReactCurrentOwner,ye=O.ReactDebugCurrentFrame;function x(e){if(e){var r=e._owner,t=L(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}var z;z=!1;function G(e){return typeof e=="object"&&e!==null&&e.$$typeof===_}function Ee(){{if(J.current){var e=R(J.current.type);if(e)return`
22
22
 
23
23
  Check the render method of \``+e+"`."}return""}}function rr(e){return""}var _e={};function tr(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 me(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=tr(r);if(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==J.current&&(n=" It was passed a child from "+R(e._owner.type)+"."),x(e),d('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),x(null)}}function Re(e,r){{if(typeof e!="object")return;if(q(e))for(var t=0;t<e.length;t++){var n=e[t];z(n)&&me(n,r)}else if(z(e))e._store&&(e._store.validated=!0);else if(e){var i=Ce(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)z(o.value)&&me(o.value,r)}}}function nr(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===b))t=r.propTypes;else return;if(t){var n=R(r);Ue(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!G){G=!0;var i=R(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){x(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),x(null);break}}e.ref!==null&&(x(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),x(null))}}var Te={};function we(e,r,t,n,i,u){{var o=$e(e);if(!o){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 v=rr();v?a+=v:a+=Ee();var s;e===null?s="null":q(e)?s="array":e!==void 0&&e.$$typeof===_?(s="<"+(R(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=er(e,r,t,i,u);if(l==null)return l;if(o){var h=r.children;if(h!==void 0)if(n)if(q(h)){for(var C=0;C<h.length;C++)Re(h[C],e);Object.freeze&&Object.freeze(h)}else d("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 Re(h,e)}if(D.call(r,"key")){var P=R(e),p=Object.keys(r).filter(function(fr){return fr!=="key"}),Q=p.length>0?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}";if(!Te[P+Q]){var lr=p.length>0?"{"+p.join(": ..., ")+": ...}":"{}";d(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+t+">.")}return r}}function me(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=tr(r);if(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==J.current&&(n=" It was passed a child from "+R(e._owner.type)+"."),x(e),d('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),x(null)}}function Re(e,r){{if(typeof e!="object")return;if(q(e))for(var t=0;t<e.length;t++){var n=e[t];G(n)&&me(n,r)}else if(G(e))e._store&&(e._store.validated=!0);else if(e){var i=Ce(e);if(typeof i=="function"&&i!==e.entries)for(var s=i.call(e),o;!(o=s.next()).done;)G(o.value)&&me(o.value,r)}}}function nr(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===b))t=r.propTypes;else return;if(t){var n=R(r);Ue(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!z){z=!0;var i=R(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){x(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),x(null);break}}e.ref!==null&&(x(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),x(null))}}var Te={};function we(e,r,t,n,i,s){{var o=$e(e);if(!o){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 v=rr();v?a+=v:a+=Ee();var u;e===null?u="null":q(e)?u="array":e!==void 0&&e.$$typeof===_?(u="<"+(R(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):u=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,a)}var l=er(e,r,t,i,s);if(l==null)return l;if(o){var h=r.children;if(h!==void 0)if(n)if(q(h)){for(var C=0;C<h.length;C++)Re(h[C],e);Object.freeze&&Object.freeze(h)}else d("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 Re(h,e)}if(D.call(r,"key")){var P=R(e),p=Object.keys(r).filter(function(fr){return fr!=="key"}),Q=p.length>0?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}";if(!Te[P+Q]){var lr=p.length>0?"{"+p.join(": ..., ")+": ...}":"{}";d(`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} />`,Q,P,lr,P),Te[P+Q]=!0}}return e===g?ar(l):nr(l),l}}function or(e,r,t){return we(e,r,t,!0)}function ir(e,r,t){return we(e,r,t,!1)}var ur=ir,sr=or;$.Fragment=g,$.jsx=ur,$.jsxs=sr}()),$}process.env.NODE_ENV==="production"?H.exports=cr():H.exports=dr();var X=H.exports;function Oe(){const[j,_]=Y.useState(!0),[F,g]=Y.useState(!0);return Y.useEffect(()=>{(async()=>{var T;try{const y="https://api.qobo.dev";console.warn("[QoboBanner] VITE_API_KEY not set, defaulting to visible"),g(!1);return}catch(m){console.warn("[QoboBanner] Error fetching banner visibility, defaulting to visible:",m.message),_(!0)}finally{g(!1)}})()},[]),!j&&!F?null:X.jsxs("div",{className:"w-full bg-gradient-to-r from-cyan-400 to-blue-500 text-white py-2 px-4 text-center text-sm font-medium shadow-md",style:{backgroundColor:"#06B6D4",color:"#FFFFFF",padding:"0.5rem 1rem",textAlign:"center",fontSize:"0.875rem",fontWeight:"500",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)",transition:"all 0.3s ease"},children:["Made with"," ",X.jsx("span",{style:{color:"#FF1744",display:"inline-block",margin:"0 0.25rem"},children:"❤️"})," ","by"," ",X.jsx("a",{href:"https://qobo.dev",target:"_blank",rel:"noopener noreferrer",style:{color:"#FFFFFF",textDecoration:"underline",fontWeight:"600",cursor:"pointer"},className:"hover:text-cyan-100 transition-colors",children:"qobo.dev"})]})}exports.QoboBanner=Oe;exports.default=Oe;
30
+ <%s key={someKey} {...props} />`,Q,P,lr,P),Te[P+Q]=!0}}return e===g?ar(l):nr(l),l}}function or(e,r,t){return we(e,r,t,!0)}function ir(e,r,t){return we(e,r,t,!1)}var sr=ir,ur=or;$.Fragment=g,$.jsx=sr,$.jsxs=ur}()),$}process.env.NODE_ENV==="production"?H.exports=cr():H.exports=dr();var X=H.exports;function Oe(){const[j,_]=Y.useState(!0),[k,g]=Y.useState(!0);return Y.useEffect(()=>{(async()=>{var T;try{const y="https://api.qobo.dev";console.warn("[QoboBanner] VITE_API_KEY not set, defaulting to visible"),g(!1);return}catch(m){console.warn("[QoboBanner] Error fetching banner visibility, defaulting to visible:",m.message),_(!0)}finally{g(!1)}})()},[]),!j&&!k?null:X.jsxs("div",{className:"w-full bg-gradient-to-r from-cyan-400 to-blue-500 text-white py-2 px-4 text-center text-sm font-medium shadow-md",style:{position:"sticky",top:0,zIndex:9999,backgroundColor:"#06B6D4",color:"#FFFFFF",padding:"0.5rem 1rem",textAlign:"center",fontSize:"0.875rem",fontWeight:"500",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)",transition:"all 0.3s ease"},children:["Made with"," ",X.jsx("span",{style:{color:"#FF1744",display:"inline-block",margin:"0 0.25rem"},children:"❤️"})," ","by"," ",X.jsx("a",{href:"https://qobo.dev",target:"_blank",rel:"noopener noreferrer",style:{color:"#FFFFFF",textDecoration:"underline",fontWeight:"600",cursor:"pointer"},className:"hover:text-cyan-100 transition-colors",children:"qobo.dev"})]})}exports.QoboBanner=Oe;exports.default=Oe;
package/dist/index.js CHANGED
@@ -13,15 +13,15 @@ var Pe;
13
13
  function dr() {
14
14
  if (Pe) return I;
15
15
  Pe = 1;
16
- var j = Se, _ = Symbol.for("react.element"), F = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, k = j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, T = { key: !0, ref: !0, __self: !0, __source: !0 };
16
+ var j = Se, _ = Symbol.for("react.element"), k = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, F = j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, T = { key: !0, ref: !0, __self: !0, __source: !0 };
17
17
  function m(y, f, E) {
18
18
  var c, b = {}, w = null, Y = null;
19
19
  E !== void 0 && (w = "" + E), f.key !== void 0 && (w = "" + f.key), f.ref !== void 0 && (Y = f.ref);
20
20
  for (c in f) g.call(f, c) && !T.hasOwnProperty(c) && (b[c] = f[c]);
21
21
  if (y && y.defaultProps) for (c in f = y.defaultProps, f) b[c] === void 0 && (b[c] = f[c]);
22
- return { $$typeof: _, type: y, key: w, ref: Y, props: b, _owner: k.current };
22
+ return { $$typeof: _, type: y, key: w, ref: Y, props: b, _owner: F.current };
23
23
  }
24
- return I.Fragment = F, I.jsx = m, I.jsxs = m, I;
24
+ return I.Fragment = k, I.jsx = m, I.jsxs = m, I;
25
25
  }
26
26
  var $ = {};
27
27
  /**
@@ -36,7 +36,7 @@ var $ = {};
36
36
  var Oe;
37
37
  function vr() {
38
38
  return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
39
- var j = Se, _ = Symbol.for("react.element"), F = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), y = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), H = Symbol.iterator, xe = "@@iterator";
39
+ var j = Se, _ = Symbol.for("react.element"), k = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), y = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), H = Symbol.iterator, xe = "@@iterator";
40
40
  function Ce(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
@@ -61,10 +61,10 @@ function vr() {
61
61
  s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
62
62
  }
63
63
  }
64
- var Fe = !1, ke = !1, Ae = !1, De = !1, Ie = !1, Z;
64
+ var ke = !1, Fe = !1, Ae = !1, De = !1, Ie = !1, Z;
65
65
  Z = Symbol.for("react.module.reference");
66
66
  function $e(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === g || e === T || Ie || e === k || e === E || e === c || De || e === Y || Fe || ke || Ae || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === b || e.$$typeof === m || e.$$typeof === y || e.$$typeof === f || // This needs to include all possible module reference object
67
+ return !!(typeof e == "string" || typeof e == "function" || e === g || e === T || Ie || e === F || e === E || e === c || De || e === Y || ke || Fe || Ae || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === b || e.$$typeof === m || e.$$typeof === y || e.$$typeof === f || // This needs to include all possible module reference object
68
68
  // types supported by any Flight configuration anywhere since
69
69
  // we don't know which Flight build this will end up being used
70
70
  // with.
@@ -90,11 +90,11 @@ function vr() {
90
90
  switch (e) {
91
91
  case g:
92
92
  return "Fragment";
93
- case F:
93
+ case k:
94
94
  return "Portal";
95
95
  case T:
96
96
  return "Profiler";
97
- case k:
97
+ case F:
98
98
  return "StrictMode";
99
99
  case E:
100
100
  return "Suspense";
@@ -370,7 +370,7 @@ function vr() {
370
370
  __self: !0,
371
371
  __source: !0
372
372
  }, be, he;
373
- function Ge(e) {
373
+ function ze(e) {
374
374
  if (D.call(e, "ref")) {
375
375
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
376
376
  if (r && r.isReactWarning)
@@ -378,7 +378,7 @@ function vr() {
378
378
  }
379
379
  return e.ref !== void 0;
380
380
  }
381
- function ze(e) {
381
+ function Ge(e) {
382
382
  if (D.call(e, "key")) {
383
383
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
384
384
  if (r && r.isReactWarning)
@@ -443,7 +443,7 @@ function vr() {
443
443
  function er(e, r, t, n, i) {
444
444
  {
445
445
  var s, o = {}, a = null, v = null;
446
- t !== void 0 && (ve(t), a = "" + t), ze(r) && (ve(r.key), a = "" + r.key), Ge(r) && (v = r.ref, Xe(r, i));
446
+ t !== void 0 && (ve(t), a = "" + t), Ge(r) && (ve(r.key), a = "" + r.key), ze(r) && (v = r.ref, Xe(r, i));
447
447
  for (s in r)
448
448
  D.call(r, s) && !Je.hasOwnProperty(s) && (o[s] = r[s]);
449
449
  if (e && e.defaultProps) {
@@ -468,7 +468,7 @@ function vr() {
468
468
  }
469
469
  var J;
470
470
  J = !1;
471
- function G(e) {
471
+ function z(e) {
472
472
  return typeof e == "object" && e !== null && e.$$typeof === _;
473
473
  }
474
474
  function ye() {
@@ -519,15 +519,15 @@ Check the top-level render call using <` + t + ">.");
519
519
  if (K(e))
520
520
  for (var t = 0; t < e.length; t++) {
521
521
  var n = e[t];
522
- G(n) && _e(n, r);
522
+ z(n) && _e(n, r);
523
523
  }
524
- else if (G(e))
524
+ else if (z(e))
525
525
  e._store && (e._store.validated = !0);
526
526
  else if (e) {
527
527
  var i = Ce(e);
528
528
  if (typeof i == "function" && i !== e.entries)
529
529
  for (var s = i.call(e), o; !(o = s.next()).done; )
530
- G(o.value) && _e(o.value, r);
530
+ z(o.value) && _e(o.value, r);
531
531
  }
532
532
  }
533
533
  }
@@ -599,15 +599,15 @@ Check the top-level render call using <` + t + ">.");
599
599
  if (D.call(r, "key")) {
600
600
  var O = R(e), p = Object.keys(r).filter(function(fr) {
601
601
  return fr !== "key";
602
- }), z = p.length > 0 ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}";
603
- if (!Re[O + z]) {
602
+ }), G = p.length > 0 ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}";
603
+ if (!Re[O + G]) {
604
604
  var lr = p.length > 0 ? "{" + p.join(": ..., ") + ": ...}" : "{}";
605
605
  d(`A props object containing a "key" prop is being spread into JSX:
606
606
  let props = %s;
607
607
  <%s {...props} />
608
608
  React keys must be passed directly to JSX without using spread:
609
609
  let props = %s;
610
- <%s key={someKey} {...props} />`, z, O, lr, O), Re[O + z] = !0;
610
+ <%s key={someKey} {...props} />`, G, O, lr, O), Re[O + G] = !0;
611
611
  }
612
612
  }
613
613
  return e === g ? ar(l) : nr(l), l;
@@ -626,7 +626,7 @@ React keys must be passed directly to JSX without using spread:
626
626
  process.env.NODE_ENV === "production" ? Q.exports = dr() : Q.exports = vr();
627
627
  var X = Q.exports;
628
628
  function br() {
629
- const [j, _] = we(!0), [F, g] = we(!0);
629
+ const [j, _] = we(!0), [k, g] = we(!0);
630
630
  return cr(() => {
631
631
  (async () => {
632
632
  var T;
@@ -640,11 +640,14 @@ function br() {
640
640
  g(!1);
641
641
  }
642
642
  })();
643
- }, []), !j && !F ? null : /* @__PURE__ */ X.jsxs(
643
+ }, []), !j && !k ? null : /* @__PURE__ */ X.jsxs(
644
644
  "div",
645
645
  {
646
646
  className: "w-full bg-gradient-to-r from-cyan-400 to-blue-500 text-white py-2 px-4 text-center text-sm font-medium shadow-md",
647
647
  style: {
648
+ position: "sticky",
649
+ top: 0,
650
+ zIndex: 9999,
648
651
  backgroundColor: "#06B6D4",
649
652
  color: "#FFFFFF",
650
653
  padding: "0.5rem 1rem",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qobo/banner",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Shared Qobo banner component for all generated projects",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -71,6 +71,9 @@ export function QoboBanner() {
71
71
  <div
72
72
  className="w-full bg-gradient-to-r from-cyan-400 to-blue-500 text-white py-2 px-4 text-center text-sm font-medium shadow-md"
73
73
  style={{
74
+ position: 'sticky',
75
+ top: 0,
76
+ zIndex: 9999,
74
77
  backgroundColor: '#06B6D4',
75
78
  color: '#FFFFFF',
76
79
  padding: '0.5rem 1rem',