@weavix/tracker-plugin-sdk-react 0.0.1

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.mjs ADDED
@@ -0,0 +1,669 @@
1
+ import { PluginProvider as pr, usePluginContext as xe } from "@weavix/sdk-react";
2
+ import { PluginError as Sr, PluginLoader as xr, useConfirm as wr, useLocalizedString as jr, useToaster as kr } from "@weavix/sdk-react";
3
+ import we, { createContext as gr, useContext as Rr, useMemo as Pe } from "react";
4
+ import { METHOD_NOT_SUPPORTED as Ar, MISSING_REQUIRED_SCOPE as Ir, PLUGIN_ID_IS_NOT_CORRECT as Fr, PLUGIN_ID_OR_SLOT_NOT_PROVIDED as Lr, PluginActionError as $r, UNKNOWN_ERROR as Wr, VALIDATION_ERROR as Nr, getField as Yr, getLocalizedString as Ur, hostApi as Mr, trackerApi as Vr, uiApi as Hr } from "@weavix/tracker-plugin-sdk";
5
+ var M = { exports: {} }, F = {};
6
+ var Oe;
7
+ function _r() {
8
+ if (Oe) return F;
9
+ Oe = 1;
10
+ var _ = we, p = /* @__PURE__ */ Symbol.for("react.element"), h = /* @__PURE__ */ Symbol.for("react.fragment"), E = Object.prototype.hasOwnProperty, C = _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
11
+ function D(m, c, x) {
12
+ var g, b = {}, T = null, $ = null;
13
+ x !== void 0 && (T = "" + x), c.key !== void 0 && (T = "" + c.key), c.ref !== void 0 && ($ = c.ref);
14
+ for (g in c) E.call(c, g) && !S.hasOwnProperty(g) && (b[g] = c[g]);
15
+ if (m && m.defaultProps) for (g in c = m.defaultProps, c) b[g] === void 0 && (b[g] = c[g]);
16
+ return { $$typeof: p, type: m, key: T, ref: $, props: b, _owner: C.current };
17
+ }
18
+ return F.Fragment = h, F.jsx = D, F.jsxs = D, F;
19
+ }
20
+ var L = {};
21
+ var Ce;
22
+ function Er() {
23
+ return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && (function() {
24
+ var _ = we, p = /* @__PURE__ */ Symbol.for("react.element"), h = /* @__PURE__ */ Symbol.for("react.portal"), E = /* @__PURE__ */ Symbol.for("react.fragment"), C = /* @__PURE__ */ Symbol.for("react.strict_mode"), S = /* @__PURE__ */ Symbol.for("react.profiler"), D = /* @__PURE__ */ Symbol.for("react.provider"), m = /* @__PURE__ */ Symbol.for("react.context"), c = /* @__PURE__ */ Symbol.for("react.forward_ref"), x = /* @__PURE__ */ Symbol.for("react.suspense"), g = /* @__PURE__ */ Symbol.for("react.suspense_list"), b = /* @__PURE__ */ Symbol.for("react.memo"), T = /* @__PURE__ */ Symbol.for("react.lazy"), $ = /* @__PURE__ */ Symbol.for("react.offscreen"), Q = Symbol.iterator, ke = "@@iterator";
25
+ function De(e) {
26
+ if (e === null || typeof e != "object")
27
+ return null;
28
+ var r = Q && e[Q] || e[ke];
29
+ return typeof r == "function" ? r : null;
30
+ }
31
+ var w = _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
32
+ function f(e) {
33
+ {
34
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
35
+ t[n - 1] = arguments[n];
36
+ Ae("error", e, t);
37
+ }
38
+ }
39
+ function Ae(e, r, t) {
40
+ {
41
+ var n = w.ReactDebugCurrentFrame, o = n.getStackAddendum();
42
+ o !== "" && (r += "%s", t = t.concat([o]));
43
+ var u = t.map(function(i) {
44
+ return String(i);
45
+ });
46
+ u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
47
+ }
48
+ }
49
+ var Ie = !1, Fe = !1, Le = !1, $e = !1, We = !1, Z;
50
+ Z = /* @__PURE__ */ Symbol.for("react.module.reference");
51
+ function Ne(e) {
52
+ return !!(typeof e == "string" || typeof e == "function" || e === E || e === S || We || e === C || e === x || e === g || $e || e === $ || Ie || Fe || Le || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === b || e.$$typeof === D || e.$$typeof === m || e.$$typeof === c || // This needs to include all possible module reference object
53
+ // types supported by any Flight configuration anywhere since
54
+ // we don't know which Flight build this will end up being used
55
+ // with.
56
+ e.$$typeof === Z || e.getModuleId !== void 0));
57
+ }
58
+ function Ye(e, r, t) {
59
+ var n = e.displayName;
60
+ if (n)
61
+ return n;
62
+ var o = r.displayName || r.name || "";
63
+ return o !== "" ? t + "(" + o + ")" : t;
64
+ }
65
+ function ee(e) {
66
+ return e.displayName || "Context";
67
+ }
68
+ function y(e) {
69
+ if (e == null)
70
+ return null;
71
+ if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
72
+ return e.displayName || e.name || null;
73
+ if (typeof e == "string")
74
+ return e;
75
+ switch (e) {
76
+ case E:
77
+ return "Fragment";
78
+ case h:
79
+ return "Portal";
80
+ case S:
81
+ return "Profiler";
82
+ case C:
83
+ return "StrictMode";
84
+ case x:
85
+ return "Suspense";
86
+ case g:
87
+ return "SuspenseList";
88
+ }
89
+ if (typeof e == "object")
90
+ switch (e.$$typeof) {
91
+ case m:
92
+ var r = e;
93
+ return ee(r) + ".Consumer";
94
+ case D:
95
+ var t = e;
96
+ return ee(t._context) + ".Provider";
97
+ case c:
98
+ return Ye(e, e.render, "ForwardRef");
99
+ case b:
100
+ var n = e.displayName || null;
101
+ return n !== null ? n : y(e.type) || "Memo";
102
+ case T: {
103
+ var o = e, u = o._payload, i = o._init;
104
+ try {
105
+ return y(i(u));
106
+ } catch {
107
+ return null;
108
+ }
109
+ }
110
+ }
111
+ return null;
112
+ }
113
+ var P = Object.assign, A = 0, re, te, ne, ae, ie, oe, ue;
114
+ function se() {
115
+ }
116
+ se.__reactDisabledLog = !0;
117
+ function Ue() {
118
+ {
119
+ if (A === 0) {
120
+ re = console.log, te = console.info, ne = console.warn, ae = console.error, ie = console.group, oe = console.groupCollapsed, ue = console.groupEnd;
121
+ var e = {
122
+ configurable: !0,
123
+ enumerable: !0,
124
+ value: se,
125
+ writable: !0
126
+ };
127
+ Object.defineProperties(console, {
128
+ info: e,
129
+ log: e,
130
+ warn: e,
131
+ error: e,
132
+ group: e,
133
+ groupCollapsed: e,
134
+ groupEnd: e
135
+ });
136
+ }
137
+ A++;
138
+ }
139
+ }
140
+ function Me() {
141
+ {
142
+ if (A--, A === 0) {
143
+ var e = {
144
+ configurable: !0,
145
+ enumerable: !0,
146
+ writable: !0
147
+ };
148
+ Object.defineProperties(console, {
149
+ log: P({}, e, {
150
+ value: re
151
+ }),
152
+ info: P({}, e, {
153
+ value: te
154
+ }),
155
+ warn: P({}, e, {
156
+ value: ne
157
+ }),
158
+ error: P({}, e, {
159
+ value: ae
160
+ }),
161
+ group: P({}, e, {
162
+ value: ie
163
+ }),
164
+ groupCollapsed: P({}, e, {
165
+ value: oe
166
+ }),
167
+ groupEnd: P({}, e, {
168
+ value: ue
169
+ })
170
+ });
171
+ }
172
+ A < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
173
+ }
174
+ }
175
+ var V = w.ReactCurrentDispatcher, H;
176
+ function W(e, r, t) {
177
+ {
178
+ if (H === void 0)
179
+ try {
180
+ throw Error();
181
+ } catch (o) {
182
+ var n = o.stack.trim().match(/\n( *(at )?)/);
183
+ H = n && n[1] || "";
184
+ }
185
+ return `
186
+ ` + H + e;
187
+ }
188
+ }
189
+ var J = !1, N;
190
+ {
191
+ var Ve = typeof WeakMap == "function" ? WeakMap : Map;
192
+ N = new Ve();
193
+ }
194
+ function le(e, r) {
195
+ if (!e || J)
196
+ return "";
197
+ {
198
+ var t = N.get(e);
199
+ if (t !== void 0)
200
+ return t;
201
+ }
202
+ var n;
203
+ J = !0;
204
+ var o = Error.prepareStackTrace;
205
+ Error.prepareStackTrace = void 0;
206
+ var u;
207
+ u = V.current, V.current = null, Ue();
208
+ try {
209
+ if (r) {
210
+ var i = function() {
211
+ throw Error();
212
+ };
213
+ if (Object.defineProperty(i.prototype, "props", {
214
+ set: function() {
215
+ throw Error();
216
+ }
217
+ }), typeof Reflect == "object" && Reflect.construct) {
218
+ try {
219
+ Reflect.construct(i, []);
220
+ } catch (v) {
221
+ n = v;
222
+ }
223
+ Reflect.construct(e, [], i);
224
+ } else {
225
+ try {
226
+ i.call();
227
+ } catch (v) {
228
+ n = v;
229
+ }
230
+ e.call(i.prototype);
231
+ }
232
+ } else {
233
+ try {
234
+ throw Error();
235
+ } catch (v) {
236
+ n = v;
237
+ }
238
+ e();
239
+ }
240
+ } catch (v) {
241
+ if (v && n && typeof v.stack == "string") {
242
+ for (var a = v.stack.split(`
243
+ `), d = n.stack.split(`
244
+ `), s = a.length - 1, l = d.length - 1; s >= 1 && l >= 0 && a[s] !== d[l]; )
245
+ l--;
246
+ for (; s >= 1 && l >= 0; s--, l--)
247
+ if (a[s] !== d[l]) {
248
+ if (s !== 1 || l !== 1)
249
+ do
250
+ if (s--, l--, l < 0 || a[s] !== d[l]) {
251
+ var R = `
252
+ ` + a[s].replace(" at new ", " at ");
253
+ return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, R), R;
254
+ }
255
+ while (s >= 1 && l >= 0);
256
+ break;
257
+ }
258
+ }
259
+ } finally {
260
+ J = !1, V.current = u, Me(), Error.prepareStackTrace = o;
261
+ }
262
+ var k = e ? e.displayName || e.name : "", O = k ? W(k) : "";
263
+ return typeof e == "function" && N.set(e, O), O;
264
+ }
265
+ function He(e, r, t) {
266
+ return le(e, !1);
267
+ }
268
+ function Je(e) {
269
+ var r = e.prototype;
270
+ return !!(r && r.isReactComponent);
271
+ }
272
+ function Y(e, r, t) {
273
+ if (e == null)
274
+ return "";
275
+ if (typeof e == "function")
276
+ return le(e, Je(e));
277
+ if (typeof e == "string")
278
+ return W(e);
279
+ switch (e) {
280
+ case x:
281
+ return W("Suspense");
282
+ case g:
283
+ return W("SuspenseList");
284
+ }
285
+ if (typeof e == "object")
286
+ switch (e.$$typeof) {
287
+ case c:
288
+ return He(e.render);
289
+ case b:
290
+ return Y(e.type, r, t);
291
+ case T: {
292
+ var n = e, o = n._payload, u = n._init;
293
+ try {
294
+ return Y(u(o), r, t);
295
+ } catch {
296
+ }
297
+ }
298
+ }
299
+ return "";
300
+ }
301
+ var I = Object.prototype.hasOwnProperty, ce = {}, fe = w.ReactDebugCurrentFrame;
302
+ function U(e) {
303
+ if (e) {
304
+ var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
305
+ fe.setExtraStackFrame(t);
306
+ } else
307
+ fe.setExtraStackFrame(null);
308
+ }
309
+ function qe(e, r, t, n, o) {
310
+ {
311
+ var u = Function.call.bind(I);
312
+ for (var i in e)
313
+ if (u(e, i)) {
314
+ var a = void 0;
315
+ try {
316
+ if (typeof e[i] != "function") {
317
+ var d = 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`.");
318
+ throw d.name = "Invariant Violation", d;
319
+ }
320
+ a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
321
+ } catch (s) {
322
+ a = s;
323
+ }
324
+ a && !(a instanceof Error) && (U(o), f("%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), U(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, U(o), f("Failed %s type: %s", t, a.message), U(null));
325
+ }
326
+ }
327
+ }
328
+ var Be = Array.isArray;
329
+ function q(e) {
330
+ return Be(e);
331
+ }
332
+ function Ge(e) {
333
+ {
334
+ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
335
+ return t;
336
+ }
337
+ }
338
+ function Ke(e) {
339
+ try {
340
+ return de(e), !1;
341
+ } catch {
342
+ return !0;
343
+ }
344
+ }
345
+ function de(e) {
346
+ return "" + e;
347
+ }
348
+ function ve(e) {
349
+ if (Ke(e))
350
+ return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), de(e);
351
+ }
352
+ var pe = w.ReactCurrentOwner, ze = {
353
+ key: !0,
354
+ ref: !0,
355
+ __self: !0,
356
+ __source: !0
357
+ }, ge, Re;
358
+ function Xe(e) {
359
+ if (I.call(e, "ref")) {
360
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
361
+ if (r && r.isReactWarning)
362
+ return !1;
363
+ }
364
+ return e.ref !== void 0;
365
+ }
366
+ function Qe(e) {
367
+ if (I.call(e, "key")) {
368
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
369
+ if (r && r.isReactWarning)
370
+ return !1;
371
+ }
372
+ return e.key !== void 0;
373
+ }
374
+ function Ze(e, r) {
375
+ typeof e.ref == "string" && pe.current;
376
+ }
377
+ function er(e, r) {
378
+ {
379
+ var t = function() {
380
+ ge || (ge = !0, f("%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));
381
+ };
382
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
383
+ get: t,
384
+ configurable: !0
385
+ });
386
+ }
387
+ }
388
+ function rr(e, r) {
389
+ {
390
+ var t = function() {
391
+ Re || (Re = !0, f("%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));
392
+ };
393
+ t.isReactWarning = !0, Object.defineProperty(e, "ref", {
394
+ get: t,
395
+ configurable: !0
396
+ });
397
+ }
398
+ }
399
+ var tr = function(e, r, t, n, o, u, i) {
400
+ var a = {
401
+ // This tag allows us to uniquely identify this as a React Element
402
+ $$typeof: p,
403
+ // Built-in properties that belong on the element
404
+ type: e,
405
+ key: r,
406
+ ref: t,
407
+ props: i,
408
+ // Record the component responsible for creating this element.
409
+ _owner: u
410
+ };
411
+ return a._store = {}, Object.defineProperty(a._store, "validated", {
412
+ configurable: !1,
413
+ enumerable: !1,
414
+ writable: !0,
415
+ value: !1
416
+ }), Object.defineProperty(a, "_self", {
417
+ configurable: !1,
418
+ enumerable: !1,
419
+ writable: !1,
420
+ value: n
421
+ }), Object.defineProperty(a, "_source", {
422
+ configurable: !1,
423
+ enumerable: !1,
424
+ writable: !1,
425
+ value: o
426
+ }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
427
+ };
428
+ function nr(e, r, t, n, o) {
429
+ {
430
+ var u, i = {}, a = null, d = null;
431
+ t !== void 0 && (ve(t), a = "" + t), Qe(r) && (ve(r.key), a = "" + r.key), Xe(r) && (d = r.ref, Ze(r, o));
432
+ for (u in r)
433
+ I.call(r, u) && !ze.hasOwnProperty(u) && (i[u] = r[u]);
434
+ if (e && e.defaultProps) {
435
+ var s = e.defaultProps;
436
+ for (u in s)
437
+ i[u] === void 0 && (i[u] = s[u]);
438
+ }
439
+ if (a || d) {
440
+ var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
441
+ a && er(i, l), d && rr(i, l);
442
+ }
443
+ return tr(e, a, d, o, n, pe.current, i);
444
+ }
445
+ }
446
+ var B = w.ReactCurrentOwner, _e = w.ReactDebugCurrentFrame;
447
+ function j(e) {
448
+ if (e) {
449
+ var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
450
+ _e.setExtraStackFrame(t);
451
+ } else
452
+ _e.setExtraStackFrame(null);
453
+ }
454
+ var G;
455
+ G = !1;
456
+ function K(e) {
457
+ return typeof e == "object" && e !== null && e.$$typeof === p;
458
+ }
459
+ function Ee() {
460
+ {
461
+ if (B.current) {
462
+ var e = y(B.current.type);
463
+ if (e)
464
+ return `
465
+
466
+ Check the render method of \`` + e + "`.";
467
+ }
468
+ return "";
469
+ }
470
+ }
471
+ function ar(e) {
472
+ return "";
473
+ }
474
+ var he = {};
475
+ function ir(e) {
476
+ {
477
+ var r = Ee();
478
+ if (!r) {
479
+ var t = typeof e == "string" ? e : e.displayName || e.name;
480
+ t && (r = `
481
+
482
+ Check the top-level render call using <` + t + ">.");
483
+ }
484
+ return r;
485
+ }
486
+ }
487
+ function be(e, r) {
488
+ {
489
+ if (!e._store || e._store.validated || e.key != null)
490
+ return;
491
+ e._store.validated = !0;
492
+ var t = ir(r);
493
+ if (he[t])
494
+ return;
495
+ he[t] = !0;
496
+ var n = "";
497
+ e && e._owner && e._owner !== B.current && (n = " It was passed a child from " + y(e._owner.type) + "."), j(e), f('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), j(null);
498
+ }
499
+ }
500
+ function ye(e, r) {
501
+ {
502
+ if (typeof e != "object")
503
+ return;
504
+ if (q(e))
505
+ for (var t = 0; t < e.length; t++) {
506
+ var n = e[t];
507
+ K(n) && be(n, r);
508
+ }
509
+ else if (K(e))
510
+ e._store && (e._store.validated = !0);
511
+ else if (e) {
512
+ var o = De(e);
513
+ if (typeof o == "function" && o !== e.entries)
514
+ for (var u = o.call(e), i; !(i = u.next()).done; )
515
+ K(i.value) && be(i.value, r);
516
+ }
517
+ }
518
+ }
519
+ function or(e) {
520
+ {
521
+ var r = e.type;
522
+ if (r == null || typeof r == "string")
523
+ return;
524
+ var t;
525
+ if (typeof r == "function")
526
+ t = r.propTypes;
527
+ else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
528
+ // Inner props are checked in the reconciler.
529
+ r.$$typeof === b))
530
+ t = r.propTypes;
531
+ else
532
+ return;
533
+ if (t) {
534
+ var n = y(r);
535
+ qe(t, e.props, "prop", n, e);
536
+ } else if (r.PropTypes !== void 0 && !G) {
537
+ G = !0;
538
+ var o = y(r);
539
+ f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
540
+ }
541
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
542
+ }
543
+ }
544
+ function ur(e) {
545
+ {
546
+ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
547
+ var n = r[t];
548
+ if (n !== "children" && n !== "key") {
549
+ j(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), j(null);
550
+ break;
551
+ }
552
+ }
553
+ e.ref !== null && (j(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), j(null));
554
+ }
555
+ }
556
+ var me = {};
557
+ function Te(e, r, t, n, o, u) {
558
+ {
559
+ var i = Ne(e);
560
+ if (!i) {
561
+ var a = "";
562
+ (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.");
563
+ var d = ar();
564
+ d ? a += d : a += Ee();
565
+ var s;
566
+ e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === p ? (s = "<" + (y(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, f("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);
567
+ }
568
+ var l = nr(e, r, t, o, u);
569
+ if (l == null)
570
+ return l;
571
+ if (i) {
572
+ var R = r.children;
573
+ if (R !== void 0)
574
+ if (n)
575
+ if (q(R)) {
576
+ for (var k = 0; k < R.length; k++)
577
+ ye(R[k], e);
578
+ Object.freeze && Object.freeze(R);
579
+ } else
580
+ f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
581
+ else
582
+ ye(R, e);
583
+ }
584
+ if (I.call(r, "key")) {
585
+ var O = y(e), v = Object.keys(r).filter(function(vr) {
586
+ return vr !== "key";
587
+ }), z = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
588
+ if (!me[O + z]) {
589
+ var dr = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
590
+ f(`A props object containing a "key" prop is being spread into JSX:
591
+ let props = %s;
592
+ <%s {...props} />
593
+ React keys must be passed directly to JSX without using spread:
594
+ let props = %s;
595
+ <%s key={someKey} {...props} />`, z, O, dr, O), me[O + z] = !0;
596
+ }
597
+ }
598
+ return e === E ? ur(l) : or(l), l;
599
+ }
600
+ }
601
+ function sr(e, r, t) {
602
+ return Te(e, r, t, !0);
603
+ }
604
+ function lr(e, r, t) {
605
+ return Te(e, r, t, !1);
606
+ }
607
+ var cr = lr, fr = sr;
608
+ L.Fragment = E, L.jsx = cr, L.jsxs = fr;
609
+ })()), L;
610
+ }
611
+ var Se;
612
+ function hr() {
613
+ return Se || (Se = 1, process.env.NODE_ENV === "production" ? M.exports = _r() : M.exports = Er()), M.exports;
614
+ }
615
+ var X = hr();
616
+ const je = gr(null);
617
+ function br({ children: _ }) {
618
+ const { registerHandler: p } = xe("basic"), h = Pe(() => ((C, S) => p(
619
+ C,
620
+ S
621
+ )), [p]), E = Pe(
622
+ () => ({ registerHandler: h }),
623
+ [h]
624
+ );
625
+ return /* @__PURE__ */ X.jsx(je.Provider, { value: E, children: _ });
626
+ }
627
+ function Tr(_) {
628
+ return /* @__PURE__ */ X.jsx(pr, { ..._, children: /* @__PURE__ */ X.jsx(br, { children: _.children }) });
629
+ }
630
+ function Pr(_ = "basic") {
631
+ const p = xe(_), h = Rr(je);
632
+ if (!h)
633
+ throw new Error(
634
+ "useTrackerPluginContext must be used within TrackerPluginProvider (Tracker service layer). Use PluginProvider only with usePluginContext, or wrap the app with TrackerPluginProvider."
635
+ );
636
+ const E = p.slot;
637
+ return _ === "full" ? {
638
+ ...p,
639
+ slot: E,
640
+ registerHandler: h.registerHandler,
641
+ slotContext: p.slotContext
642
+ } : {
643
+ ...p,
644
+ slot: E,
645
+ registerHandler: h.registerHandler
646
+ };
647
+ }
648
+ export {
649
+ Ar as METHOD_NOT_SUPPORTED,
650
+ Ir as MISSING_REQUIRED_SCOPE,
651
+ Fr as PLUGIN_ID_IS_NOT_CORRECT,
652
+ Lr as PLUGIN_ID_OR_SLOT_NOT_PROVIDED,
653
+ $r as PluginActionError,
654
+ Sr as PluginError,
655
+ xr as PluginLoader,
656
+ Tr as TrackerPluginProvider,
657
+ Wr as UNKNOWN_ERROR,
658
+ Nr as VALIDATION_ERROR,
659
+ Yr as getField,
660
+ Ur as getLocalizedString,
661
+ Mr as hostApi,
662
+ Vr as trackerApi,
663
+ Hr as uiApi,
664
+ wr as useConfirm,
665
+ jr as useLocalizedString,
666
+ kr as useToaster,
667
+ Pr as useTrackerPluginContext
668
+ };
669
+ //# sourceMappingURL=index.mjs.map