grab 0.0.80 → 0.0.82

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/core.cjs CHANGED
@@ -1,30 +1 @@
1
- 'use strict';
2
-
3
- var chunk2OKPQEMK_cjs = require('./chunk-2OKPQEMK.cjs');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "DEFAULT_THEME", {
8
- enumerable: true,
9
- get: function () { return chunk2OKPQEMK_cjs.DEFAULT_THEME; }
10
- });
11
- Object.defineProperty(exports, "formatElementInfo", {
12
- enumerable: true,
13
- get: function () { return chunk2OKPQEMK_cjs.getElementContext; }
14
- });
15
- Object.defineProperty(exports, "generateSnippet", {
16
- enumerable: true,
17
- get: function () { return chunk2OKPQEMK_cjs.generateSnippet; }
18
- });
19
- Object.defineProperty(exports, "getStack", {
20
- enumerable: true,
21
- get: function () { return chunk2OKPQEMK_cjs.getStack; }
22
- });
23
- Object.defineProperty(exports, "init", {
24
- enumerable: true,
25
- get: function () { return chunk2OKPQEMK_cjs.init; }
26
- });
27
- Object.defineProperty(exports, "isInstrumentationActive", {
28
- enumerable: true,
29
- get: function () { return chunk2OKPQEMK_cjs.Ee; }
30
- });
1
+ 'use strict';var chunkVX5TI23F_cjs=require('./chunk-VX5TI23F.cjs');Object.defineProperty(exports,"DEFAULT_THEME",{enumerable:true,get:function(){return chunkVX5TI23F_cjs.d}});Object.defineProperty(exports,"formatElementInfo",{enumerable:true,get:function(){return chunkVX5TI23F_cjs.c}});Object.defineProperty(exports,"generateSnippet",{enumerable:true,get:function(){return chunkVX5TI23F_cjs.e}});Object.defineProperty(exports,"getStack",{enumerable:true,get:function(){return chunkVX5TI23F_cjs.b}});Object.defineProperty(exports,"init",{enumerable:true,get:function(){return chunkVX5TI23F_cjs.f}});Object.defineProperty(exports,"isInstrumentationActive",{enumerable:true,get:function(){return chunkVX5TI23F_cjs.a}});
package/dist/core.js CHANGED
@@ -1 +1 @@
1
- export { DEFAULT_THEME, getElementContext as formatElementInfo, generateSnippet, getStack, init, Ee as isInstrumentationActive } from './chunk-VO4Y6JSD.js';
1
+ export{d as DEFAULT_THEME,c as formatElementInfo,e as generateSnippet,b as getStack,f as init,a as isInstrumentationActive}from'./chunk-STRAHFDU.js';
package/dist/index.cjs CHANGED
@@ -1,8 +1,4 @@
1
- 'use strict';
2
-
3
- var chunk2OKPQEMK_cjs = require('./chunk-2OKPQEMK.cjs');
4
-
5
- /**
1
+ 'use strict';var chunkVX5TI23F_cjs=require('./chunk-VX5TI23F.cjs');/**
6
2
  * @license MIT
7
3
  *
8
4
  * Copyright (c) 2025 Aiden Bai
@@ -10,58 +6,4 @@ var chunk2OKPQEMK_cjs = require('./chunk-2OKPQEMK.cjs');
10
6
  * This source code is licensed under the MIT license found in the
11
7
  * LICENSE file in the root directory of this source tree.
12
8
  */
13
-
14
- // src/index.ts
15
- var globalApi = null;
16
- var getGlobalApi = () => {
17
- if (typeof window === "undefined") return globalApi;
18
- return window.__REACT_GRAB__ ?? globalApi ?? null;
19
- };
20
- var setGlobalApi = (api) => {
21
- globalApi = api;
22
- if (typeof window !== "undefined") {
23
- if (api) {
24
- window.__REACT_GRAB__ = api;
25
- } else {
26
- delete window.__REACT_GRAB__;
27
- }
28
- }
29
- };
30
- if (typeof window !== "undefined") {
31
- if (window.__REACT_GRAB__) {
32
- globalApi = window.__REACT_GRAB__;
33
- } else {
34
- globalApi = chunk2OKPQEMK_cjs.init();
35
- window.__REACT_GRAB__ = globalApi;
36
- window.dispatchEvent(
37
- new CustomEvent("react-grab:init", { detail: globalApi })
38
- );
39
- }
40
- }
41
-
42
- Object.defineProperty(exports, "DEFAULT_THEME", {
43
- enumerable: true,
44
- get: function () { return chunk2OKPQEMK_cjs.DEFAULT_THEME; }
45
- });
46
- Object.defineProperty(exports, "formatElementInfo", {
47
- enumerable: true,
48
- get: function () { return chunk2OKPQEMK_cjs.getElementContext; }
49
- });
50
- Object.defineProperty(exports, "generateSnippet", {
51
- enumerable: true,
52
- get: function () { return chunk2OKPQEMK_cjs.generateSnippet; }
53
- });
54
- Object.defineProperty(exports, "getStack", {
55
- enumerable: true,
56
- get: function () { return chunk2OKPQEMK_cjs.getStack; }
57
- });
58
- Object.defineProperty(exports, "init", {
59
- enumerable: true,
60
- get: function () { return chunk2OKPQEMK_cjs.init; }
61
- });
62
- Object.defineProperty(exports, "isInstrumentationActive", {
63
- enumerable: true,
64
- get: function () { return chunk2OKPQEMK_cjs.Ee; }
65
- });
66
- exports.getGlobalApi = getGlobalApi;
67
- exports.setGlobalApi = setGlobalApi;
9
+ var e=null,A=()=>typeof window>"u"?e:window.__REACT_GRAB__??e??null,d=t=>{e=t,typeof window<"u"&&(t?window.__REACT_GRAB__=t:delete window.__REACT_GRAB__);};typeof window<"u"&&(window.__REACT_GRAB__?e=window.__REACT_GRAB__:(e=chunkVX5TI23F_cjs.f(),window.__REACT_GRAB__=e,window.dispatchEvent(new CustomEvent("react-grab:init",{detail:e}))));Object.defineProperty(exports,"DEFAULT_THEME",{enumerable:true,get:function(){return chunkVX5TI23F_cjs.d}});Object.defineProperty(exports,"formatElementInfo",{enumerable:true,get:function(){return chunkVX5TI23F_cjs.c}});Object.defineProperty(exports,"generateSnippet",{enumerable:true,get:function(){return chunkVX5TI23F_cjs.e}});Object.defineProperty(exports,"getStack",{enumerable:true,get:function(){return chunkVX5TI23F_cjs.b}});Object.defineProperty(exports,"init",{enumerable:true,get:function(){return chunkVX5TI23F_cjs.f}});Object.defineProperty(exports,"isInstrumentationActive",{enumerable:true,get:function(){return chunkVX5TI23F_cjs.a}});exports.getGlobalApi=A;exports.setGlobalApi=d;