grab 0.1.48-dev.7b43062 → 0.1.48
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/{copy-content-aPzkB0pw.js → copy-content-BuqfLMsd.js} +1 -1
- package/dist/{copy-content-DqD6H7mI.cjs → copy-content-t2EX8O0f.cjs} +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.js +1 -1
- package/dist/{core-CGI3R0aj.js → core-BG_m3H2l.js} +2 -2
- package/dist/{core-CAq8Gl1J.cjs → core-Dc7B2kQ-.cjs} +2 -2
- package/dist/{create-pointer-move-prompt-handoff-Cc3Ao31A.js → create-pointer-move-prompt-handoff-C_G_UhQ-.js} +1 -1
- package/dist/{create-pointer-move-prompt-handoff-B6RIo2wa.cjs → create-pointer-move-prompt-handoff-CaakrBE0.cjs} +1 -1
- package/dist/{freeze-updates-CYpw0MB2.cjs → freeze-updates-DWTRok0k.cjs} +1 -1
- package/dist/{freeze-updates-BHM2DGMm.js → freeze-updates-DrGhS1i0.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.global.js +2 -2
- package/dist/index.js +1 -1
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.js +1 -1
- package/dist/{renderer-B5F9XzY8.cjs → renderer-Bg32Pg9L.cjs} +1 -1
- package/dist/{renderer-Dw-byE_k.js → renderer-OgmF5gNo.js} +1 -1
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
let e=null;const t=()=>{if(e!==null)return e;try{e=window.matchMedia(`(color-gamut: p3)`).matches}catch{e=!1}return e},n=t(),r=e=>n?`color(display-p3 0.84 0.19 0.78 / ${e})`:`rgba(210, 57, 192, ${e})`;let i=null;const a=e=>{i=e},o=()=>i,s=e=>i?e!==null&&i.contains(e):!0,c=e=>e,l=`data-react-grab`,u=`0.1.48
|
|
9
|
+
let e=null;const t=()=>{if(e!==null)return e;try{e=window.matchMedia(`(color-gamut: p3)`).matches}catch{e=!1}return e},n=t(),r=e=>n?`color(display-p3 0.84 0.19 0.78 / ${e})`:`rgba(210, 57, 192, ${e})`;let i=null;const a=e=>{i=e},o=()=>i,s=e=>i?e!==null&&i.contains(e):!0,c=e=>e,l=`data-react-grab`,u=`0.1.48`,ee=`var(--rg-panel-bg)`,te=`var(--rg-shadow)`,ne=-1e3,re=.95,ie=1500,ae=[`/components/ui/`,`/packages/ui/`,`/design-system/`,`/design-systems/`,`/primitives/`],oe=5e3,se=8e3,ce=1e4,le=2147483647,ue=2147483645,de=.7,fe=1e3/60,pe=.5,me=.01,he=r(.4),ge=r(.05),_e=r(.5),ve=r(.08),ye=r(.15),be=.2,xe=[`id`,`class`,`aria-label`,`data-testid`,`role`,`name`,`title`],Se=new Set([`id`,`data-testid`,`aria-label`,`href`,`src`,`alt`,`type`,`name`,`placeholder`,`role`,`for`,`action`,`method`,`title`,`disabled`,`checked`,`readonly`,`required`,`selected`,`open`]),Ce=new Set([`a`,`code`,`pre`]),we=new Set([`script`,`style`,`template`,`noscript`]),Te=[`Meta`,`Control`,`Shift`,`Alt`],Ee=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`]),d=`data-react-grab-frozen`,De=.18,Oe=.6,ke=.5,Ae=`data-react-grab-input`,je=.5,Me=`copy`,Ne=`comment`,Pe=`edit`,Fe=`superellipse(1.25)`,Ie=.75,Le=.01,Re=1e3,ze={left:-9999,top:-9999},Be={left:`left center`,right:`right center`,top:`center top`,bottom:`center bottom`},Ve=1e3,He=`#00000000`,Ue=`transparent`,We=2e3,Ge=`cubic-bezier(0.34, 1.56, 0.64, 1)`,Ke=12e3,qe=9e3,Je=1e4,Ye=8e3,Xe=5e3,Ze=1e3,Qe=1e7,$e=1.2,et=-9999,tt=new Set(`display.position.top.right.bottom.left.z-index.overflow.overflow-x.overflow-y.width.height.min-width.min-height.max-width.max-height.margin-top.margin-right.margin-bottom.margin-left.padding-top.padding-right.padding-bottom.padding-left.flex-direction.flex-wrap.justify-content.align-items.align-self.align-content.flex-grow.flex-shrink.flex-basis.order.gap.row-gap.column-gap.grid-template-columns.grid-template-rows.grid-template-areas.font-family.font-size.font-weight.font-style.line-height.letter-spacing.text-align.text-decoration-line.text-decoration-style.text-transform.text-overflow.text-shadow.white-space.word-break.overflow-wrap.vertical-align.color.background-color.background-image.background-position.background-size.background-repeat.border-top-width.border-right-width.border-bottom-width.border-left-width.border-top-style.border-right-style.border-bottom-style.border-left-style.border-top-color.border-right-color.border-bottom-color.border-left-color.border-top-left-radius.border-top-right-radius.border-bottom-left-radius.border-bottom-right-radius.box-shadow.opacity.transform.filter.backdrop-filter.object-fit.object-position`.split(`.`)),nt=e=>(e.tagName||``).toLowerCase();let rt;const it=()=>{if(rt!==void 0)return rt;let e=document.querySelector(`script[nonce], style[nonce]`),t=e?.nonce||e?.getAttribute(`nonce`)||null;return t&&(rt=t),t},at=[[`data-rr-block`,``],[`data-rr-ignore`,``],[`data-rr-mask`,``],[`data-sentry-block`,``],[`data-sentry-ignore`,``],[`data-sentry-mask`,``],[`data-dd-privacy`,`hidden`],[`data-fs-exclude`,``],[`data-lr-exclude`,``],[`data-hj-suppress`,``],[`data-recording-disable`,``],[`data-clarity-mask`,`true`],[`data-heap-redact-text`,``]],ot=e=>{for(let[t,n]of at)e.setAttribute(t,n);e.setAttribute(`data-testid`,`react-grab-overlay`),e.classList.add(`ph-no-capture`)},st=`bippy-0.5.43`,ct=Object.defineProperty,lt=Object.prototype.hasOwnProperty,f=()=>{},ut=e=>{try{Function.prototype.toString.call(e).indexOf(`^_^`)>-1&&setTimeout(()=>{throw Error(`React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build`)})}catch{}},dt=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e);let ft=!1,pt;const mt=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>ft?!0:(e&&typeof e.inject==`function`&&(pt=e.inject.toString()),!!pt?.includes(`(injected)`)),p=new Set,m=new Set,ht=e=>{let t=new Map,n=0,r={_instrumentationIsActive:!1,_instrumentationSource:st,checkDCE:ut,hasUnsupportedRendererAttached:!1,inject(e){let i=++n;return t.set(i,e),m.add(e),r._instrumentationIsActive||(r._instrumentationIsActive=!0,p.forEach(e=>e())),i},on:f,onCommitFiberRoot:f,onCommitFiberUnmount:f,onPostCommitFiberRoot:f,renderers:t,supportsFiber:!0,supportsFlight:!0};try{ct(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return r},set(t){if(t&&typeof t==`object`){let n=r.renderers;r=t,n.size>0&&(n.forEach((e,n)=>{m.add(e),t.renderers.set(n,e)}),gt(e))}}});let t=window.hasOwnProperty,n=!1;ct(window,`hasOwnProperty`,{configurable:!0,value:function(...e){try{if(!n&&e[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,n=!0,-0}catch{}return t.apply(this,e)},writable:!0})}catch{gt(e)}return r},gt=e=>{e&&p.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=ut,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=st,t._instrumentationIsActive=!1;let e=dt(t);if(e||(t.on=f),t.renderers.size){t._instrumentationIsActive=!0,p.forEach(e=>e());return}let n=t.inject,r=mt(t);r&&!e&&(ft=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let i=n(e);return m.add(e),r&&t.renderers.set(i,e),t._instrumentationIsActive=!0,p.forEach(e=>e()),i}}(t.renderers.size||t._instrumentationIsActive||mt())&&e?.()}catch{}},_t=()=>lt.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),h=e=>_t()?(gt(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):ht(e),vt=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)),yt=()=>{try{vt()&&h()}catch{}},g=e=>{switch(e.tag){case 1:case 11:case 0:case 14:case 15:return!0;default:return!1}};function bt(e,t,n=!1){if(!e)return null;let r=t(e);if(r instanceof Promise)return(async()=>{if(await r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=await St(i,t,n);if(e)return e;i=n?null:i.sibling}return null})();if(r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=xt(i,t,n);if(e)return e;i=n?null:i.sibling}return null}const xt=(e,t,n=!1)=>{if(!e)return null;if(t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=xt(r,t,n);if(e)return e;r=n?null:r.sibling}return null},St=async(e,t,n=!1)=>{if(!e)return null;if(await t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=await St(r,t,n);if(e)return e;r=n?null:r.sibling}return null},Ct=e=>{let t=e;return typeof t==`function`?t:typeof t==`object`&&t?Ct(t.type||t.render):null},_=e=>{let t=e;if(typeof t==`string`)return t;if(typeof t!=`function`&&!(typeof t==`object`&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=Ct(t);return r&&(r.displayName||r.name)||null},wt=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return!!e?._instrumentationIsActive||dt(e)||mt(e)},Tt=e=>Object.prototype.toString.call(e)===`[object Object]`&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null),Et=(e,t=[])=>{if(!Tt(e))return[{path:t,value:e}];let n=[];for(let r in e){let i=e[r],a=t.concat(r);Tt(i)?n.push(...Et(i,a)):n.push({path:a,value:i})}return n},Dt=e=>{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t?.renderers)for(let n of t.renderers.values())try{let t=n.findFiberByHostInstance?.(e);if(t)return t}catch{}if(typeof e==`object`&&e){if(`_reactRootContainer`in e)return e._reactRootContainer?._internalRoot?.current?.child;for(let t in e)if(t.startsWith(`__reactContainer$`)||t.startsWith(`__reactInternalInstance$`)||t.startsWith(`__reactFiber`))return e[t]||null}return null},Ot=new Set,kt=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,At=[`rsc://`,`file:///`,`webpack-internal://`,`webpack://`,`node:`,`turbopack://`,`metro://`,`/app-pages-browser/`,`/(app-pages-browser)/`],jt=[`<anonymous>`,`eval`,``],Mt=/\.(jsx|tsx|ts|js)$/,Nt=/(\.min|bundle|chunk|vendor|vendors|runtime|polyfill|polyfills)\.(js|mjs|cjs)$|(chunk|bundle|vendor|vendors|runtime|polyfill|polyfills|framework|app|main|index)[-_.][A-Za-z0-9_-]{4,}\.(js|mjs|cjs)$|[\da-f]{8,}\.(js|mjs|cjs)$|[-_.][\da-f]{20,}\.(js|mjs|cjs)$|\/dist\/|\/build\/|\/.next\/|\/out\/|\/node_modules\/|\.webpack\.|\.vite\.|\.turbopack\./i,Pt=/^\?[\w~.-]+(?:=[^&#]*)?(?:&[\w~.-]+(?:=[^&#]*)?)*$/,Ft=/\(at [^)]+\)$/,It=/(^|@)\S+:\d+/,Lt=/^\s*at .*(\S+:\d+|\(native\))/m,Rt=/^(eval@)?(\[native code\])?$/,zt=(e,t)=>{if(t?.includeInElement!==!1){let n=e.split(`
|
|
10
10
|
`),r=[];for(let e of n)if(/^\s*at\s+/.test(e)){let t=Ht(e,void 0)[0];t&&r.push(t)}else if(/^\s*in\s+/.test(e)){let t=e.replace(/^\s*in\s+/,``).replace(/\s*\(at .*\)$/,``);r.push({functionName:t,source:e})}else if(e.match(It)){let t=Ut(e,void 0)[0];t&&r.push(t)}return Vt(r,t)}return e.match(Lt)?Ht(e,t):Ut(e,t)},Bt=e=>{if(!e.includes(`:`))return[e,void 0,void 0];let t=e.startsWith(`(`)&&/:\d+\)$/.test(e)?e.slice(1,-1):e,n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t);return n?[n[1],n[2]||void 0,n[3]||void 0]:[t,void 0,void 0]},Vt=(e,t)=>t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e,Ht=(e,t)=>Vt(e.split(`
|
|
11
11
|
`).filter(e=>!!e.match(Lt)),t).map(e=>{let t=e;t.includes(`(eval `)&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));let n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],``):n;let i=Bt(r?r[1]:n);return{functionName:r&&n||void 0,fileName:[`eval`,`<anonymous>`].includes(i[0])?void 0:i[0],lineNumber:i[1]?+i[1]:void 0,columnNumber:i[2]?+i[2]:void 0,source:t}}),Ut=(e,t)=>Vt(e.split(`
|
|
12
12
|
`).filter(e=>!e.match(Rt)),t).map(e=>{let t=e;if(t.includes(` > eval`)&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),!t.includes(`@`)&&!t.includes(`:`))return{functionName:t};{let e=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,n=t.match(e),r=n&&n[1]?n[1]:void 0,i=Bt(t.replace(e,``));return{functionName:r,fileName:i[0],lineNumber:i[1]?+i[1]:void 0,columnNumber:i[2]?+i[2]:void 0,source:t}}});var Wt=44,Gt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Kt=new Uint8Array(64),qt=new Uint8Array(128);for(let e=0;e<Gt.length;e++){let t=Gt.charCodeAt(e);Kt[e]=t,qt[t]=e}function v(e,t){let n=0,r=0,i=0;do i=qt[e.next()],n|=(i&31)<<r,r+=5;while(i&32);let a=n&1;return n>>>=1,a&&(n=-2147483648|-n),t+n}function Jt(e,t){return e.pos>=t?!1:e.peek()!==Wt}var Yt=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function Xt(e){let{length:t}=e,n=new Yt(e),r=[],i=0,a=0,o=0,s=0,c=0;do{let e=n.indexOf(`;`),t=[],l=!0,u=0;for(i=0;n.pos<e;){let r;i=v(n,i),i<u&&(l=!1),u=i,Jt(n,e)?(a=v(n,a),o=v(n,o),s=v(n,s),Jt(n,e)?(c=v(n,c),r=[i,a,o,s,c]):r=[i,a,o,s]):r=[i],t.push(r),n.pos++}l||Zt(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r}function Zt(e){e.sort(Qt)}function Qt(e,t){return e[0]-t[0]}const $t=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,en=/^data:application\/json[^,]+base64,/,tn=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,y=new Map,b=new Map,nn=(e,t,n,r)=>{if(n<0||n>=e.length)return null;let i=e[n];if(!i||i.length===0)return null;let a=null;for(let e of i)if(e[0]<=r)a=e;else break;if(!a||a.length<4)return null;let[,o,s,c]=a;if(o===void 0||s===void 0||c===void 0)return null;let l=t[o];return l?{columnNumber:c,fileName:l,lineNumber:s+1}:null},rn=(e,t,n)=>{if(e.sections){let r=null;for(let i of e.sections)if(t>i.offset.line||t===i.offset.line&&n>=i.offset.column)r=i;else break;if(!r)return null;let i=t-r.offset.line,a=t===r.offset.line?n-r.offset.column:n;return nn(r.map.mappings,r.map.sources,i,a)}return nn(e.mappings,e.sources,t-1,n)},an=(e,t)=>{let n=t.split(`
|
package/dist/index.cjs
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./core-
|
|
9
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./core-Dc7B2kQ-.cjs`),t=require(`./freeze-updates-DWTRok0k.cjs`),n=require(`./copy-content-t2EX8O0f.cjs`);let r=null;const i=()=>typeof window>`u`?r:window.__REACT_GRAB__??r??null,a=e=>{r=e,typeof window<`u`&&(e?window.__REACT_GRAB__=e:delete window.__REACT_GRAB__)},o=[],s=e=>{for(;o.length>0;){let t=o.shift();t&&e.registerPlugin(t)}},c=e=>{let t=i();if(t){t.registerPlugin(e);return}o.push(e)},l=e=>{let t=i();if(t){t.unregisterPlugin(e);return}let n=o.findIndex(t=>t.name===e);n!==-1&&o.splice(n,1)};typeof window<`u`&&!window.__REACT_GRAB_DISABLED__&&(window.__REACT_GRAB__?r=window.__REACT_GRAB__:(r=e.t(),window.__REACT_GRAB__=r),s(r),window.dispatchEvent(new CustomEvent(`react-grab:init`,{detail:r}))),exports.DEFAULT_THEME=e.a,exports.commentPlugin=e.i,exports.formatElementInfo=n.n,exports.generateSnippet=e.n,exports.getGlobalApi=i,exports.getStack=n.o,exports.init=e.t,exports.isInstrumentationActive=t.A,exports.openPlugin=e.r,exports.registerPlugin=c,exports.setGlobalApi=a,exports.unregisterPlugin=l;
|