react-iframe-plugin 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
package/README.md ADDED
@@ -0,0 +1,8 @@
1
+ # React + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
@@ -0,0 +1,645 @@
1
+ import we from "react";
2
+ var Z = { exports: {} }, A = {};
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.min.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var Oe;
13
+ function lr() {
14
+ if (Oe) return A;
15
+ Oe = 1;
16
+ var C = we, E = Symbol.for("react.element"), j = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, W = C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, $ = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function x(R, c, O) {
18
+ var p, b = {}, _ = null, Y = null;
19
+ O !== void 0 && (_ = "" + O), c.key !== void 0 && (_ = "" + c.key), c.ref !== void 0 && (Y = c.ref);
20
+ for (p in c) h.call(c, p) && !$.hasOwnProperty(p) && (b[p] = c[p]);
21
+ if (R && R.defaultProps) for (p in c = R.defaultProps, c) b[p] === void 0 && (b[p] = c[p]);
22
+ return { $$typeof: E, type: R, key: _, ref: Y, props: b, _owner: W.current };
23
+ }
24
+ return A.Fragment = j, A.jsx = x, A.jsxs = x, A;
25
+ }
26
+ var I = {};
27
+ /**
28
+ * @license React
29
+ * react-jsx-runtime.development.js
30
+ *
31
+ * Copyright (c) Facebook, Inc. and its affiliates.
32
+ *
33
+ * This source code is licensed under the MIT license found in the
34
+ * LICENSE file in the root directory of this source tree.
35
+ */
36
+ var Se;
37
+ function cr() {
38
+ return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
39
+ var C = we, E = Symbol.for("react.element"), j = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), R = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), Q = Symbol.iterator, Pe = "@@iterator";
40
+ function Ce(e) {
41
+ if (e === null || typeof e != "object")
42
+ return null;
43
+ var r = Q && e[Q] || e[Pe];
44
+ return typeof r == "function" ? r : null;
45
+ }
46
+ var S = C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
+ function l(e) {
48
+ {
49
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
50
+ t[n - 1] = arguments[n];
51
+ je("error", e, t);
52
+ }
53
+ }
54
+ function je(e, r, t) {
55
+ {
56
+ var n = S.ReactDebugCurrentFrame, i = n.getStackAddendum();
57
+ i !== "" && (r += "%s", t = t.concat([i]));
58
+ var u = t.map(function(o) {
59
+ return String(o);
60
+ });
61
+ u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
62
+ }
63
+ }
64
+ var xe = !1, ke = !1, De = !1, Fe = !1, Ae = !1, ee;
65
+ ee = Symbol.for("react.module.reference");
66
+ function Ie(e) {
67
+ return !!(typeof e == "string" || typeof e == "function" || e === h || e === $ || Ae || e === W || e === O || e === p || Fe || e === Y || xe || ke || De || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === b || e.$$typeof === x || e.$$typeof === R || e.$$typeof === c || // This needs to include all possible module reference object
68
+ // types supported by any Flight configuration anywhere since
69
+ // we don't know which Flight build this will end up being used
70
+ // with.
71
+ e.$$typeof === ee || e.getModuleId !== void 0));
72
+ }
73
+ function We(e, r, t) {
74
+ var n = e.displayName;
75
+ if (n)
76
+ return n;
77
+ var i = r.displayName || r.name || "";
78
+ return i !== "" ? t + "(" + i + ")" : t;
79
+ }
80
+ function re(e) {
81
+ return e.displayName || "Context";
82
+ }
83
+ function y(e) {
84
+ if (e == null)
85
+ return null;
86
+ if (typeof e.tag == "number" && l("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
87
+ return e.displayName || e.name || null;
88
+ if (typeof e == "string")
89
+ return e;
90
+ switch (e) {
91
+ case h:
92
+ return "Fragment";
93
+ case j:
94
+ return "Portal";
95
+ case $:
96
+ return "Profiler";
97
+ case W:
98
+ return "StrictMode";
99
+ case O:
100
+ return "Suspense";
101
+ case p:
102
+ return "SuspenseList";
103
+ }
104
+ if (typeof e == "object")
105
+ switch (e.$$typeof) {
106
+ case R:
107
+ var r = e;
108
+ return re(r) + ".Consumer";
109
+ case x:
110
+ var t = e;
111
+ return re(t._context) + ".Provider";
112
+ case c:
113
+ return We(e, e.render, "ForwardRef");
114
+ case b:
115
+ var n = e.displayName || null;
116
+ return n !== null ? n : y(e.type) || "Memo";
117
+ case _: {
118
+ var i = e, u = i._payload, o = i._init;
119
+ try {
120
+ return y(o(u));
121
+ } catch {
122
+ return null;
123
+ }
124
+ }
125
+ }
126
+ return null;
127
+ }
128
+ var m = Object.assign, k = 0, te, ne, ae, oe, ie, ue, se;
129
+ function fe() {
130
+ }
131
+ fe.__reactDisabledLog = !0;
132
+ function $e() {
133
+ {
134
+ if (k === 0) {
135
+ te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, ue = console.groupCollapsed, se = console.groupEnd;
136
+ var e = {
137
+ configurable: !0,
138
+ enumerable: !0,
139
+ value: fe,
140
+ writable: !0
141
+ };
142
+ Object.defineProperties(console, {
143
+ info: e,
144
+ log: e,
145
+ warn: e,
146
+ error: e,
147
+ group: e,
148
+ groupCollapsed: e,
149
+ groupEnd: e
150
+ });
151
+ }
152
+ k++;
153
+ }
154
+ }
155
+ function Ye() {
156
+ {
157
+ if (k--, k === 0) {
158
+ var e = {
159
+ configurable: !0,
160
+ enumerable: !0,
161
+ writable: !0
162
+ };
163
+ Object.defineProperties(console, {
164
+ log: m({}, e, {
165
+ value: te
166
+ }),
167
+ info: m({}, e, {
168
+ value: ne
169
+ }),
170
+ warn: m({}, e, {
171
+ value: ae
172
+ }),
173
+ error: m({}, e, {
174
+ value: oe
175
+ }),
176
+ group: m({}, e, {
177
+ value: ie
178
+ }),
179
+ groupCollapsed: m({}, e, {
180
+ value: ue
181
+ }),
182
+ groupEnd: m({}, e, {
183
+ value: se
184
+ })
185
+ });
186
+ }
187
+ k < 0 && l("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
+ }
189
+ }
190
+ var N = S.ReactCurrentDispatcher, B;
191
+ function L(e, r, t) {
192
+ {
193
+ if (B === void 0)
194
+ try {
195
+ throw Error();
196
+ } catch (i) {
197
+ var n = i.stack.trim().match(/\n( *(at )?)/);
198
+ B = n && n[1] || "";
199
+ }
200
+ return `
201
+ ` + B + e;
202
+ }
203
+ }
204
+ var J = !1, V;
205
+ {
206
+ var Le = typeof WeakMap == "function" ? WeakMap : Map;
207
+ V = new Le();
208
+ }
209
+ function le(e, r) {
210
+ if (!e || J)
211
+ return "";
212
+ {
213
+ var t = V.get(e);
214
+ if (t !== void 0)
215
+ return t;
216
+ }
217
+ var n;
218
+ J = !0;
219
+ var i = Error.prepareStackTrace;
220
+ Error.prepareStackTrace = void 0;
221
+ var u;
222
+ u = N.current, N.current = null, $e();
223
+ try {
224
+ if (r) {
225
+ var o = function() {
226
+ throw Error();
227
+ };
228
+ if (Object.defineProperty(o.prototype, "props", {
229
+ set: function() {
230
+ throw Error();
231
+ }
232
+ }), typeof Reflect == "object" && Reflect.construct) {
233
+ try {
234
+ Reflect.construct(o, []);
235
+ } catch (v) {
236
+ n = v;
237
+ }
238
+ Reflect.construct(e, [], o);
239
+ } else {
240
+ try {
241
+ o.call();
242
+ } catch (v) {
243
+ n = v;
244
+ }
245
+ e.call(o.prototype);
246
+ }
247
+ } else {
248
+ try {
249
+ throw Error();
250
+ } catch (v) {
251
+ n = v;
252
+ }
253
+ e();
254
+ }
255
+ } catch (v) {
256
+ if (v && n && typeof v.stack == "string") {
257
+ for (var a = v.stack.split(`
258
+ `), d = n.stack.split(`
259
+ `), s = a.length - 1, f = d.length - 1; s >= 1 && f >= 0 && a[s] !== d[f]; )
260
+ f--;
261
+ for (; s >= 1 && f >= 0; s--, f--)
262
+ if (a[s] !== d[f]) {
263
+ if (s !== 1 || f !== 1)
264
+ do
265
+ if (s--, f--, f < 0 || a[s] !== d[f]) {
266
+ var g = `
267
+ ` + a[s].replace(" at new ", " at ");
268
+ return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, g), g;
269
+ }
270
+ while (s >= 1 && f >= 0);
271
+ break;
272
+ }
273
+ }
274
+ } finally {
275
+ J = !1, N.current = u, Ye(), Error.prepareStackTrace = i;
276
+ }
277
+ var P = e ? e.displayName || e.name : "", T = P ? L(P) : "";
278
+ return typeof e == "function" && V.set(e, T), T;
279
+ }
280
+ function Ve(e, r, t) {
281
+ return le(e, !1);
282
+ }
283
+ function Me(e) {
284
+ var r = e.prototype;
285
+ return !!(r && r.isReactComponent);
286
+ }
287
+ function M(e, r, t) {
288
+ if (e == null)
289
+ return "";
290
+ if (typeof e == "function")
291
+ return le(e, Me(e));
292
+ if (typeof e == "string")
293
+ return L(e);
294
+ switch (e) {
295
+ case O:
296
+ return L("Suspense");
297
+ case p:
298
+ return L("SuspenseList");
299
+ }
300
+ if (typeof e == "object")
301
+ switch (e.$$typeof) {
302
+ case c:
303
+ return Ve(e.render);
304
+ case b:
305
+ return M(e.type, r, t);
306
+ case _: {
307
+ var n = e, i = n._payload, u = n._init;
308
+ try {
309
+ return M(u(i), r, t);
310
+ } catch {
311
+ }
312
+ }
313
+ }
314
+ return "";
315
+ }
316
+ var D = Object.prototype.hasOwnProperty, ce = {}, de = S.ReactDebugCurrentFrame;
317
+ function U(e) {
318
+ if (e) {
319
+ var r = e._owner, t = M(e.type, e._source, r ? r.type : null);
320
+ de.setExtraStackFrame(t);
321
+ } else
322
+ de.setExtraStackFrame(null);
323
+ }
324
+ function Ue(e, r, t, n, i) {
325
+ {
326
+ var u = Function.call.bind(D);
327
+ for (var o in e)
328
+ if (u(e, o)) {
329
+ var a = void 0;
330
+ try {
331
+ if (typeof e[o] != "function") {
332
+ var d = 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`.");
333
+ throw d.name = "Invariant Violation", d;
334
+ }
335
+ a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
+ } catch (s) {
337
+ a = s;
338
+ }
339
+ a && !(a instanceof Error) && (U(i), l("%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), U(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, U(i), l("Failed %s type: %s", t, a.message), U(null));
340
+ }
341
+ }
342
+ }
343
+ var Ne = Array.isArray;
344
+ function q(e) {
345
+ return Ne(e);
346
+ }
347
+ function Be(e) {
348
+ {
349
+ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
+ return t;
351
+ }
352
+ }
353
+ function Je(e) {
354
+ try {
355
+ return ve(e), !1;
356
+ } catch {
357
+ return !0;
358
+ }
359
+ }
360
+ function ve(e) {
361
+ return "" + e;
362
+ }
363
+ function pe(e) {
364
+ if (Je(e))
365
+ return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), ve(e);
366
+ }
367
+ var F = S.ReactCurrentOwner, qe = {
368
+ key: !0,
369
+ ref: !0,
370
+ __self: !0,
371
+ __source: !0
372
+ }, ge, ye, K;
373
+ K = {};
374
+ function Ke(e) {
375
+ if (D.call(e, "ref")) {
376
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
377
+ if (r && r.isReactWarning)
378
+ return !1;
379
+ }
380
+ return e.ref !== void 0;
381
+ }
382
+ function Ge(e) {
383
+ if (D.call(e, "key")) {
384
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
385
+ if (r && r.isReactWarning)
386
+ return !1;
387
+ }
388
+ return e.key !== void 0;
389
+ }
390
+ function ze(e, r) {
391
+ if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) {
392
+ var t = y(F.current.type);
393
+ K[t] || (l('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', y(F.current.type), e.ref), K[t] = !0);
394
+ }
395
+ }
396
+ function Xe(e, r) {
397
+ {
398
+ var t = function() {
399
+ ge || (ge = !0, l("%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));
400
+ };
401
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
402
+ get: t,
403
+ configurable: !0
404
+ });
405
+ }
406
+ }
407
+ function He(e, r) {
408
+ {
409
+ var t = function() {
410
+ ye || (ye = !0, l("%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));
411
+ };
412
+ t.isReactWarning = !0, Object.defineProperty(e, "ref", {
413
+ get: t,
414
+ configurable: !0
415
+ });
416
+ }
417
+ }
418
+ var Ze = function(e, r, t, n, i, u, o) {
419
+ var a = {
420
+ // This tag allows us to uniquely identify this as a React Element
421
+ $$typeof: E,
422
+ // Built-in properties that belong on the element
423
+ type: e,
424
+ key: r,
425
+ ref: t,
426
+ props: o,
427
+ // Record the component responsible for creating this element.
428
+ _owner: u
429
+ };
430
+ return a._store = {}, Object.defineProperty(a._store, "validated", {
431
+ configurable: !1,
432
+ enumerable: !1,
433
+ writable: !0,
434
+ value: !1
435
+ }), Object.defineProperty(a, "_self", {
436
+ configurable: !1,
437
+ enumerable: !1,
438
+ writable: !1,
439
+ value: n
440
+ }), Object.defineProperty(a, "_source", {
441
+ configurable: !1,
442
+ enumerable: !1,
443
+ writable: !1,
444
+ value: i
445
+ }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
446
+ };
447
+ function Qe(e, r, t, n, i) {
448
+ {
449
+ var u, o = {}, a = null, d = null;
450
+ t !== void 0 && (pe(t), a = "" + t), Ge(r) && (pe(r.key), a = "" + r.key), Ke(r) && (d = r.ref, ze(r, i));
451
+ for (u in r)
452
+ D.call(r, u) && !qe.hasOwnProperty(u) && (o[u] = r[u]);
453
+ if (e && e.defaultProps) {
454
+ var s = e.defaultProps;
455
+ for (u in s)
456
+ o[u] === void 0 && (o[u] = s[u]);
457
+ }
458
+ if (a || d) {
459
+ var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
460
+ a && Xe(o, f), d && He(o, f);
461
+ }
462
+ return Ze(e, a, d, i, n, F.current, o);
463
+ }
464
+ }
465
+ var G = S.ReactCurrentOwner, be = S.ReactDebugCurrentFrame;
466
+ function w(e) {
467
+ if (e) {
468
+ var r = e._owner, t = M(e.type, e._source, r ? r.type : null);
469
+ be.setExtraStackFrame(t);
470
+ } else
471
+ be.setExtraStackFrame(null);
472
+ }
473
+ var z;
474
+ z = !1;
475
+ function X(e) {
476
+ return typeof e == "object" && e !== null && e.$$typeof === E;
477
+ }
478
+ function he() {
479
+ {
480
+ if (G.current) {
481
+ var e = y(G.current.type);
482
+ if (e)
483
+ return `
484
+
485
+ Check the render method of \`` + e + "`.";
486
+ }
487
+ return "";
488
+ }
489
+ }
490
+ function er(e) {
491
+ return "";
492
+ }
493
+ var Ee = {};
494
+ function rr(e) {
495
+ {
496
+ var r = he();
497
+ if (!r) {
498
+ var t = typeof e == "string" ? e : e.displayName || e.name;
499
+ t && (r = `
500
+
501
+ Check the top-level render call using <` + t + ">.");
502
+ }
503
+ return r;
504
+ }
505
+ }
506
+ function Re(e, r) {
507
+ {
508
+ if (!e._store || e._store.validated || e.key != null)
509
+ return;
510
+ e._store.validated = !0;
511
+ var t = rr(r);
512
+ if (Ee[t])
513
+ return;
514
+ Ee[t] = !0;
515
+ var n = "";
516
+ e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + y(e._owner.type) + "."), w(e), l('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), w(null);
517
+ }
518
+ }
519
+ function _e(e, r) {
520
+ {
521
+ if (typeof e != "object")
522
+ return;
523
+ if (q(e))
524
+ for (var t = 0; t < e.length; t++) {
525
+ var n = e[t];
526
+ X(n) && Re(n, r);
527
+ }
528
+ else if (X(e))
529
+ e._store && (e._store.validated = !0);
530
+ else if (e) {
531
+ var i = Ce(e);
532
+ if (typeof i == "function" && i !== e.entries)
533
+ for (var u = i.call(e), o; !(o = u.next()).done; )
534
+ X(o.value) && Re(o.value, r);
535
+ }
536
+ }
537
+ }
538
+ function tr(e) {
539
+ {
540
+ var r = e.type;
541
+ if (r == null || typeof r == "string")
542
+ return;
543
+ var t;
544
+ if (typeof r == "function")
545
+ t = r.propTypes;
546
+ else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
547
+ // Inner props are checked in the reconciler.
548
+ r.$$typeof === b))
549
+ t = r.propTypes;
550
+ else
551
+ return;
552
+ if (t) {
553
+ var n = y(r);
554
+ Ue(t, e.props, "prop", n, e);
555
+ } else if (r.PropTypes !== void 0 && !z) {
556
+ z = !0;
557
+ var i = y(r);
558
+ l("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
559
+ }
560
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && l("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
+ }
562
+ }
563
+ function nr(e) {
564
+ {
565
+ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
566
+ var n = r[t];
567
+ if (n !== "children" && n !== "key") {
568
+ w(e), l("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), w(null);
569
+ break;
570
+ }
571
+ }
572
+ e.ref !== null && (w(e), l("Invalid attribute `ref` supplied to `React.Fragment`."), w(null));
573
+ }
574
+ }
575
+ var me = {};
576
+ function Te(e, r, t, n, i, u) {
577
+ {
578
+ var o = Ie(e);
579
+ if (!o) {
580
+ var a = "";
581
+ (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.");
582
+ var d = er();
583
+ d ? a += d : a += he();
584
+ var s;
585
+ e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === E ? (s = "<" + (y(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, l("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);
586
+ }
587
+ var f = Qe(e, r, t, i, u);
588
+ if (f == null)
589
+ return f;
590
+ if (o) {
591
+ var g = r.children;
592
+ if (g !== void 0)
593
+ if (n)
594
+ if (q(g)) {
595
+ for (var P = 0; P < g.length; P++)
596
+ _e(g[P], e);
597
+ Object.freeze && Object.freeze(g);
598
+ } else
599
+ l("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
600
+ else
601
+ _e(g, e);
602
+ }
603
+ if (D.call(r, "key")) {
604
+ var T = y(e), v = Object.keys(r).filter(function(fr) {
605
+ return fr !== "key";
606
+ }), H = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
607
+ if (!me[T + H]) {
608
+ var sr = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
609
+ l(`A props object containing a "key" prop is being spread into JSX:
610
+ let props = %s;
611
+ <%s {...props} />
612
+ React keys must be passed directly to JSX without using spread:
613
+ let props = %s;
614
+ <%s key={someKey} {...props} />`, H, T, sr, T), me[T + H] = !0;
615
+ }
616
+ }
617
+ return e === h ? nr(f) : tr(f), f;
618
+ }
619
+ }
620
+ function ar(e, r, t) {
621
+ return Te(e, r, t, !0);
622
+ }
623
+ function or(e, r, t) {
624
+ return Te(e, r, t, !1);
625
+ }
626
+ var ir = or, ur = ar;
627
+ I.Fragment = h, I.jsx = ir, I.jsxs = ur;
628
+ }()), I;
629
+ }
630
+ process.env.NODE_ENV === "production" ? Z.exports = lr() : Z.exports = cr();
631
+ var dr = Z.exports;
632
+ const pr = ({ src: C, title: E, style: j, ...h }) => /* @__PURE__ */ dr.jsx(
633
+ "iframe",
634
+ {
635
+ src: C,
636
+ title: E,
637
+ style: j,
638
+ frameBorder: "0",
639
+ allowFullScreen: !0,
640
+ ...h
641
+ }
642
+ );
643
+ export {
644
+ pr as default
645
+ };
@@ -0,0 +1,30 @@
1
+ (function(E,R){typeof exports=="object"&&typeof module<"u"?module.exports=R(require("react")):typeof define=="function"&&define.amd?define(["react"],R):(E=typeof globalThis<"u"?globalThis:E||self,E.IframePlugin=R(E.require$$0))})(this,function(E){"use strict";var R={exports:{}},x={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var ee;function we(){if(ee)return x;ee=1;var D=E,_=Symbol.for("react.element"),F=Symbol.for("react.fragment"),b=Object.prototype.hasOwnProperty,$=D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,L={key:!0,ref:!0,__self:!0,__source:!0};function A(m,c,P){var p,h={},T=null,V=null;P!==void 0&&(T=""+P),c.key!==void 0&&(T=""+c.key),c.ref!==void 0&&(V=c.ref);for(p in c)b.call(c,p)&&!L.hasOwnProperty(p)&&(h[p]=c[p]);if(m&&m.defaultProps)for(p in c=m.defaultProps,c)h[p]===void 0&&(h[p]=c[p]);return{$$typeof:_,type:m,key:T,ref:V,props:h,_owner:$.current}}return x.Fragment=F,x.jsx=A,x.jsxs=A,x}var k={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var re;function Ce(){return re||(re=1,process.env.NODE_ENV!=="production"&&function(){var D=E,_=Symbol.for("react.element"),F=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),m=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),te=Symbol.iterator,xe="@@iterator";function ke(e){if(e===null||typeof e!="object")return null;var r=te&&e[te]||e[xe];return typeof r=="function"?r:null}var w=D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function l(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];De("error",e,t)}}function De(e,r,t){{var n=w.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 Fe=!1,Ae=!1,Ie=!1,We=!1,Ye=!1,ne;ne=Symbol.for("react.module.reference");function $e(e){return!!(typeof e=="string"||typeof e=="function"||e===b||e===L||Ye||e===$||e===P||e===p||We||e===V||Fe||Ae||Ie||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===h||e.$$typeof===A||e.$$typeof===m||e.$$typeof===c||e.$$typeof===ne||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 ae(e){return e.displayName||"Context"}function y(e){if(e==null)return null;if(typeof e.tag=="number"&&l("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 F:return"Portal";case L:return"Profiler";case $:return"StrictMode";case P:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case m:var r=e;return ae(r)+".Consumer";case A:var t=e;return ae(t._context)+".Provider";case c:return Le(e,e.render,"ForwardRef");case h:var n=e.displayName||null;return n!==null?n:y(e.type)||"Memo";case T:{var o=e,u=o._payload,i=o._init;try{return y(i(u))}catch{return null}}}return null}var O=Object.assign,I=0,ie,oe,ue,se,fe,le,ce;function de(){}de.__reactDisabledLog=!0;function Ve(){{if(I===0){ie=console.log,oe=console.info,ue=console.warn,se=console.error,fe=console.group,le=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}I++}}function Me(){{if(I--,I===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:ie}),info:O({},e,{value:oe}),warn:O({},e,{value:ue}),error:O({},e,{value:se}),group:O({},e,{value:fe}),groupCollapsed:O({},e,{value:le}),groupEnd:O({},e,{value:ce})})}I<0&&l("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=w.ReactCurrentDispatcher,q;function M(e,r,t){{if(q===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||""}return`
18
+ `+q+e}}var K=!1,U;{var Ue=typeof WeakMap=="function"?WeakMap:Map;U=new Ue}function ve(e,r){if(!e||K)return"";{var t=U.get(e);if(t!==void 0)return t}var n;K=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=J.current,J.current=null,Ve();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(v){n=v}Reflect.construct(e,[],i)}else{try{i.call()}catch(v){n=v}e.call(i.prototype)}}else{try{throw Error()}catch(v){n=v}e()}}catch(v){if(v&&n&&typeof v.stack=="string"){for(var a=v.stack.split(`
19
+ `),d=n.stack.split(`
20
+ `),s=a.length-1,f=d.length-1;s>=1&&f>=0&&a[s]!==d[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==d[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==d[f]){var g=`
21
+ `+a[s].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,g),g}while(s>=1&&f>=0);break}}}finally{K=!1,J.current=u,Me(),Error.prepareStackTrace=o}var j=e?e.displayName||e.name:"",S=j?M(j):"";return typeof e=="function"&&U.set(e,S),S}function Ne(e,r,t){return ve(e,!1)}function Be(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function N(e,r,t){if(e==null)return"";if(typeof e=="function")return ve(e,Be(e));if(typeof e=="string")return M(e);switch(e){case P:return M("Suspense");case p:return M("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Ne(e.render);case h:return N(e.type,r,t);case T:{var n=e,o=n._payload,u=n._init;try{return N(u(o),r,t)}catch{}}}return""}var W=Object.prototype.hasOwnProperty,pe={},ge=w.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}function Je(e,r,t,n,o){{var u=Function.call.bind(W);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){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`.");throw d.name="Invariant Violation",d}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(B(o),l("%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),B(null)),a instanceof Error&&!(a.message in pe)&&(pe[a.message]=!0,B(o),l("Failed %s type: %s",t,a.message),B(null))}}}var qe=Array.isArray;function G(e){return qe(e)}function Ke(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ge(e){try{return ye(e),!1}catch{return!0}}function ye(e){return""+e}function he(e){if(Ge(e))return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(e)),ye(e)}var Y=w.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0},be,Ee,z;z={};function Xe(e){if(W.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(W.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){if(typeof e.ref=="string"&&Y.current&&r&&Y.current.stateNode!==r){var t=y(Y.current.type);z[t]||(l('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',y(Y.current.type),e.ref),z[t]=!0)}}function Qe(e,r){{var t=function(){be||(be=!0,l("%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 er(e,r){{var t=function(){Ee||(Ee=!0,l("%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 rr=function(e,r,t,n,o,u,i){var a={$$typeof:_,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 tr(e,r,t,n,o){{var u,i={},a=null,d=null;t!==void 0&&(he(t),a=""+t),He(r)&&(he(r.key),a=""+r.key),Xe(r)&&(d=r.ref,Ze(r,o));for(u in r)W.call(r,u)&&!ze.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||d){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Qe(i,f),d&&er(i,f)}return rr(e,a,d,o,n,Y.current,i)}}var X=w.ReactCurrentOwner,Re=w.ReactDebugCurrentFrame;function C(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}var H;H=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===_}function _e(){{if(X.current){var e=y(X.current.type);if(e)return`
22
+
23
+ Check the render method of \``+e+"`."}return""}}function nr(e){return""}var me={};function ar(e){{var r=_e();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
+
25
+ Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ar(r);if(me[t])return;me[t]=!0;var n="";e&&e._owner&&e._owner!==X.current&&(n=" It was passed a child from "+y(e._owner.type)+"."),C(e),l('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),C(null)}}function Oe(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];Z(n)&&Te(n,r)}else if(Z(e))e._store&&(e._store.validated=!0);else if(e){var o=ke(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)Z(i.value)&&Te(i.value,r)}}}function ir(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===c||r.$$typeof===h))t=r.propTypes;else return;if(t){var n=y(r);Je(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!H){H=!0;var o=y(r);l("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&l("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function or(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){C(e),l("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),C(null);break}}e.ref!==null&&(C(e),l("Invalid attribute `ref` supplied to `React.Fragment`."),C(null))}}var Se={};function Pe(e,r,t,n,o,u){{var i=$e(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 d=nr();d?a+=d:a+=_e();var s;e===null?s="null":G(e)?s="array":e!==void 0&&e.$$typeof===_?(s="<"+(y(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,l("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 f=tr(e,r,t,o,u);if(f==null)return f;if(i){var g=r.children;if(g!==void 0)if(n)if(G(g)){for(var j=0;j<g.length;j++)Oe(g[j],e);Object.freeze&&Object.freeze(g)}else l("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 Oe(g,e)}if(W.call(r,"key")){var S=y(e),v=Object.keys(r).filter(function(dr){return dr!=="key"}),Q=v.length>0?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}";if(!Se[S+Q]){var cr=v.length>0?"{"+v.join(": ..., ")+": ...}":"{}";l(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,Q,S,cr,S),Se[S+Q]=!0}}return e===b?or(f):ir(f),f}}function ur(e,r,t){return Pe(e,r,t,!0)}function sr(e,r,t){return Pe(e,r,t,!1)}var fr=sr,lr=ur;k.Fragment=b,k.jsx=fr,k.jsxs=lr}()),k}process.env.NODE_ENV==="production"?R.exports=we():R.exports=Ce();var je=R.exports;return({src:D,title:_,style:F,...b})=>je.jsx("iframe",{src:D,title:_,style:F,frameBorder:"0",allowFullScreen:!0,...b})});
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "react-iframe-plugin",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "vite build",
9
+ "lint": "eslint .",
10
+ "preview": "vite preview"
11
+ },
12
+ "dependencies": {
13
+ "react": "^18.3.1",
14
+ "react-dom": "^18.3.1"
15
+ },
16
+ "devDependencies": {
17
+ "@eslint/js": "^9.13.0",
18
+ "@types/react": "^18.3.12",
19
+ "@types/react-dom": "^18.3.1",
20
+ "@vitejs/plugin-react": "^4.3.3",
21
+ "eslint": "^9.13.0",
22
+ "eslint-plugin-react": "^7.37.2",
23
+ "eslint-plugin-react-hooks": "^5.0.0",
24
+ "eslint-plugin-react-refresh": "^0.4.14",
25
+ "globals": "^15.11.0",
26
+ "vite": "^5.4.10"
27
+ },
28
+ "files": [
29
+ "dist"
30
+ ],
31
+ "peerDependencies": {
32
+ "react": "^17.0.0 || ^18.0.0"
33
+ },
34
+ "main": "dist/iframe-plugin.cjs.js",
35
+ "module": "dist/iframe-plugin.es.js",
36
+ "types": "dist/index.d.ts"
37
+ }