@tinacms/app 0.0.11 → 0.0.13

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.
@@ -0,0 +1,620 @@
1
+ function _mergeNamespaces(n, m) {
2
+ m.forEach(function(e) {
3
+ e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
4
+ if (k !== "default" && !(k in n)) {
5
+ var d = Object.getOwnPropertyDescriptor(e, k);
6
+ Object.defineProperty(n, k, d.get ? d : {
7
+ enumerable: true,
8
+ get: function() {
9
+ return e[k];
10
+ }
11
+ });
12
+ }
13
+ });
14
+ });
15
+ return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
16
+ }
17
+ var webfontloader$2 = { exports: {} };
18
+ (function(module) {
19
+ (function() {
20
+ function aa(a, b, c) {
21
+ return a.call.apply(a.bind, arguments);
22
+ }
23
+ function ba(a, b, c) {
24
+ if (!a)
25
+ throw Error();
26
+ if (2 < arguments.length) {
27
+ var d = Array.prototype.slice.call(arguments, 2);
28
+ return function() {
29
+ var c2 = Array.prototype.slice.call(arguments);
30
+ Array.prototype.unshift.apply(c2, d);
31
+ return a.apply(b, c2);
32
+ };
33
+ }
34
+ return function() {
35
+ return a.apply(b, arguments);
36
+ };
37
+ }
38
+ function p(a, b, c) {
39
+ p = Function.prototype.bind && Function.prototype.bind.toString().indexOf("native code") != -1 ? aa : ba;
40
+ return p.apply(null, arguments);
41
+ }
42
+ var q = Date.now || function() {
43
+ return +new Date();
44
+ };
45
+ function ca(a, b) {
46
+ this.a = a;
47
+ this.o = b || a;
48
+ this.c = this.o.document;
49
+ }
50
+ var da = !!window.FontFace;
51
+ function t(a, b, c, d) {
52
+ b = a.c.createElement(b);
53
+ if (c)
54
+ for (var e in c)
55
+ c.hasOwnProperty(e) && (e == "style" ? b.style.cssText = c[e] : b.setAttribute(e, c[e]));
56
+ d && b.appendChild(a.c.createTextNode(d));
57
+ return b;
58
+ }
59
+ function u(a, b, c) {
60
+ a = a.c.getElementsByTagName(b)[0];
61
+ a || (a = document.documentElement);
62
+ a.insertBefore(c, a.lastChild);
63
+ }
64
+ function v(a) {
65
+ a.parentNode && a.parentNode.removeChild(a);
66
+ }
67
+ function w(a, b, c) {
68
+ b = b || [];
69
+ c = c || [];
70
+ for (var d = a.className.split(/\s+/), e = 0; e < b.length; e += 1) {
71
+ for (var f = false, g = 0; g < d.length; g += 1)
72
+ if (b[e] === d[g]) {
73
+ f = true;
74
+ break;
75
+ }
76
+ f || d.push(b[e]);
77
+ }
78
+ b = [];
79
+ for (e = 0; e < d.length; e += 1) {
80
+ f = false;
81
+ for (g = 0; g < c.length; g += 1)
82
+ if (d[e] === c[g]) {
83
+ f = true;
84
+ break;
85
+ }
86
+ f || b.push(d[e]);
87
+ }
88
+ a.className = b.join(" ").replace(/\s+/g, " ").replace(/^\s+|\s+$/, "");
89
+ }
90
+ function y(a, b) {
91
+ for (var c = a.className.split(/\s+/), d = 0, e = c.length; d < e; d++)
92
+ if (c[d] == b)
93
+ return true;
94
+ return false;
95
+ }
96
+ function ea(a) {
97
+ return a.o.location.hostname || a.a.location.hostname;
98
+ }
99
+ function z(a, b, c) {
100
+ function d() {
101
+ m && e && f && (m(g), m = null);
102
+ }
103
+ b = t(a, "link", { rel: "stylesheet", href: b, media: "all" });
104
+ var e = false, f = true, g = null, m = c || null;
105
+ da ? (b.onload = function() {
106
+ e = true;
107
+ d();
108
+ }, b.onerror = function() {
109
+ e = true;
110
+ g = Error("Stylesheet failed to load");
111
+ d();
112
+ }) : setTimeout(function() {
113
+ e = true;
114
+ d();
115
+ }, 0);
116
+ u(a, "head", b);
117
+ }
118
+ function A(a, b, c, d) {
119
+ var e = a.c.getElementsByTagName("head")[0];
120
+ if (e) {
121
+ var f = t(a, "script", { src: b }), g = false;
122
+ f.onload = f.onreadystatechange = function() {
123
+ g || this.readyState && this.readyState != "loaded" && this.readyState != "complete" || (g = true, c && c(null), f.onload = f.onreadystatechange = null, f.parentNode.tagName == "HEAD" && e.removeChild(f));
124
+ };
125
+ e.appendChild(f);
126
+ setTimeout(function() {
127
+ g || (g = true, c && c(Error("Script load timeout")));
128
+ }, d || 5e3);
129
+ return f;
130
+ }
131
+ return null;
132
+ }
133
+ function B() {
134
+ this.a = 0;
135
+ this.c = null;
136
+ }
137
+ function C(a) {
138
+ a.a++;
139
+ return function() {
140
+ a.a--;
141
+ D(a);
142
+ };
143
+ }
144
+ function E(a, b) {
145
+ a.c = b;
146
+ D(a);
147
+ }
148
+ function D(a) {
149
+ a.a == 0 && a.c && (a.c(), a.c = null);
150
+ }
151
+ function F(a) {
152
+ this.a = a || "-";
153
+ }
154
+ F.prototype.c = function(a) {
155
+ for (var b = [], c = 0; c < arguments.length; c++)
156
+ b.push(arguments[c].replace(/[\W_]+/g, "").toLowerCase());
157
+ return b.join(this.a);
158
+ };
159
+ function G(a, b) {
160
+ this.c = a;
161
+ this.f = 4;
162
+ this.a = "n";
163
+ var c = (b || "n4").match(/^([nio])([1-9])$/i);
164
+ c && (this.a = c[1], this.f = parseInt(c[2], 10));
165
+ }
166
+ function fa(a) {
167
+ return H(a) + " " + (a.f + "00") + " 300px " + I(a.c);
168
+ }
169
+ function I(a) {
170
+ var b = [];
171
+ a = a.split(/,\s*/);
172
+ for (var c = 0; c < a.length; c++) {
173
+ var d = a[c].replace(/['"]/g, "");
174
+ d.indexOf(" ") != -1 || /^\d/.test(d) ? b.push("'" + d + "'") : b.push(d);
175
+ }
176
+ return b.join(",");
177
+ }
178
+ function J(a) {
179
+ return a.a + a.f;
180
+ }
181
+ function H(a) {
182
+ var b = "normal";
183
+ a.a === "o" ? b = "oblique" : a.a === "i" && (b = "italic");
184
+ return b;
185
+ }
186
+ function ga(a) {
187
+ var b = 4, c = "n", d = null;
188
+ a && ((d = a.match(/(normal|oblique|italic)/i)) && d[1] && (c = d[1].substr(0, 1).toLowerCase()), (d = a.match(/([1-9]00|normal|bold)/i)) && d[1] && (/bold/i.test(d[1]) ? b = 7 : /[1-9]00/.test(d[1]) && (b = parseInt(d[1].substr(0, 1), 10))));
189
+ return c + b;
190
+ }
191
+ function ha(a, b) {
192
+ this.c = a;
193
+ this.f = a.o.document.documentElement;
194
+ this.h = b;
195
+ this.a = new F("-");
196
+ this.j = b.events !== false;
197
+ this.g = b.classes !== false;
198
+ }
199
+ function ia(a) {
200
+ a.g && w(a.f, [a.a.c("wf", "loading")]);
201
+ K(a, "loading");
202
+ }
203
+ function L(a) {
204
+ if (a.g) {
205
+ var b = y(a.f, a.a.c("wf", "active")), c = [], d = [a.a.c("wf", "loading")];
206
+ b || c.push(a.a.c("wf", "inactive"));
207
+ w(a.f, c, d);
208
+ }
209
+ K(a, "inactive");
210
+ }
211
+ function K(a, b, c) {
212
+ if (a.j && a.h[b])
213
+ if (c)
214
+ a.h[b](c.c, J(c));
215
+ else
216
+ a.h[b]();
217
+ }
218
+ function ja() {
219
+ this.c = {};
220
+ }
221
+ function ka(a, b, c) {
222
+ var d = [], e;
223
+ for (e in b)
224
+ if (b.hasOwnProperty(e)) {
225
+ var f = a.c[e];
226
+ f && d.push(f(b[e], c));
227
+ }
228
+ return d;
229
+ }
230
+ function M(a, b) {
231
+ this.c = a;
232
+ this.f = b;
233
+ this.a = t(this.c, "span", { "aria-hidden": "true" }, this.f);
234
+ }
235
+ function N(a) {
236
+ u(a.c, "body", a.a);
237
+ }
238
+ function O(a) {
239
+ return "display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:" + I(a.c) + ";" + ("font-style:" + H(a) + ";font-weight:" + (a.f + "00") + ";");
240
+ }
241
+ function P(a, b, c, d, e, f) {
242
+ this.g = a;
243
+ this.j = b;
244
+ this.a = d;
245
+ this.c = c;
246
+ this.f = e || 3e3;
247
+ this.h = f || void 0;
248
+ }
249
+ P.prototype.start = function() {
250
+ var a = this.c.o.document, b = this, c = q(), d = new Promise(function(d2, e2) {
251
+ function f2() {
252
+ q() - c >= b.f ? e2() : a.fonts.load(fa(b.a), b.h).then(function(a2) {
253
+ 1 <= a2.length ? d2() : setTimeout(f2, 25);
254
+ }, function() {
255
+ e2();
256
+ });
257
+ }
258
+ f2();
259
+ }), e = null, f = new Promise(function(a2, d2) {
260
+ e = setTimeout(d2, b.f);
261
+ });
262
+ Promise.race([f, d]).then(function() {
263
+ e && (clearTimeout(e), e = null);
264
+ b.g(b.a);
265
+ }, function() {
266
+ b.j(b.a);
267
+ });
268
+ };
269
+ function Q(a, b, c, d, e, f, g) {
270
+ this.v = a;
271
+ this.B = b;
272
+ this.c = c;
273
+ this.a = d;
274
+ this.s = g || "BESbswy";
275
+ this.f = {};
276
+ this.w = e || 3e3;
277
+ this.u = f || null;
278
+ this.m = this.j = this.h = this.g = null;
279
+ this.g = new M(this.c, this.s);
280
+ this.h = new M(this.c, this.s);
281
+ this.j = new M(this.c, this.s);
282
+ this.m = new M(this.c, this.s);
283
+ a = new G(this.a.c + ",serif", J(this.a));
284
+ a = O(a);
285
+ this.g.a.style.cssText = a;
286
+ a = new G(this.a.c + ",sans-serif", J(this.a));
287
+ a = O(a);
288
+ this.h.a.style.cssText = a;
289
+ a = new G("serif", J(this.a));
290
+ a = O(a);
291
+ this.j.a.style.cssText = a;
292
+ a = new G("sans-serif", J(this.a));
293
+ a = O(a);
294
+ this.m.a.style.cssText = a;
295
+ N(this.g);
296
+ N(this.h);
297
+ N(this.j);
298
+ N(this.m);
299
+ }
300
+ var R = { D: "serif", C: "sans-serif" }, S = null;
301
+ function T() {
302
+ if (S === null) {
303
+ var a = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);
304
+ S = !!a && (536 > parseInt(a[1], 10) || parseInt(a[1], 10) === 536 && 11 >= parseInt(a[2], 10));
305
+ }
306
+ return S;
307
+ }
308
+ Q.prototype.start = function() {
309
+ this.f.serif = this.j.a.offsetWidth;
310
+ this.f["sans-serif"] = this.m.a.offsetWidth;
311
+ this.A = q();
312
+ U(this);
313
+ };
314
+ function la(a, b, c) {
315
+ for (var d in R)
316
+ if (R.hasOwnProperty(d) && b === a.f[R[d]] && c === a.f[R[d]])
317
+ return true;
318
+ return false;
319
+ }
320
+ function U(a) {
321
+ var b = a.g.a.offsetWidth, c = a.h.a.offsetWidth, d;
322
+ (d = b === a.f.serif && c === a.f["sans-serif"]) || (d = T() && la(a, b, c));
323
+ d ? q() - a.A >= a.w ? T() && la(a, b, c) && (a.u === null || a.u.hasOwnProperty(a.a.c)) ? V(a, a.v) : V(a, a.B) : ma(a) : V(a, a.v);
324
+ }
325
+ function ma(a) {
326
+ setTimeout(p(function() {
327
+ U(this);
328
+ }, a), 50);
329
+ }
330
+ function V(a, b) {
331
+ setTimeout(p(function() {
332
+ v(this.g.a);
333
+ v(this.h.a);
334
+ v(this.j.a);
335
+ v(this.m.a);
336
+ b(this.a);
337
+ }, a), 0);
338
+ }
339
+ function W(a, b, c) {
340
+ this.c = a;
341
+ this.a = b;
342
+ this.f = 0;
343
+ this.m = this.j = false;
344
+ this.s = c;
345
+ }
346
+ var X = null;
347
+ W.prototype.g = function(a) {
348
+ var b = this.a;
349
+ b.g && w(b.f, [b.a.c("wf", a.c, J(a).toString(), "active")], [b.a.c("wf", a.c, J(a).toString(), "loading"), b.a.c("wf", a.c, J(a).toString(), "inactive")]);
350
+ K(b, "fontactive", a);
351
+ this.m = true;
352
+ na(this);
353
+ };
354
+ W.prototype.h = function(a) {
355
+ var b = this.a;
356
+ if (b.g) {
357
+ var c = y(b.f, b.a.c("wf", a.c, J(a).toString(), "active")), d = [], e = [b.a.c("wf", a.c, J(a).toString(), "loading")];
358
+ c || d.push(b.a.c("wf", a.c, J(a).toString(), "inactive"));
359
+ w(b.f, d, e);
360
+ }
361
+ K(b, "fontinactive", a);
362
+ na(this);
363
+ };
364
+ function na(a) {
365
+ --a.f == 0 && a.j && (a.m ? (a = a.a, a.g && w(a.f, [a.a.c("wf", "active")], [a.a.c("wf", "loading"), a.a.c("wf", "inactive")]), K(a, "active")) : L(a.a));
366
+ }
367
+ function oa(a) {
368
+ this.j = a;
369
+ this.a = new ja();
370
+ this.h = 0;
371
+ this.f = this.g = true;
372
+ }
373
+ oa.prototype.load = function(a) {
374
+ this.c = new ca(this.j, a.context || this.j);
375
+ this.g = a.events !== false;
376
+ this.f = a.classes !== false;
377
+ pa(this, new ha(this.c, a), a);
378
+ };
379
+ function qa(a, b, c, d, e) {
380
+ var f = --a.h == 0;
381
+ (a.f || a.g) && setTimeout(function() {
382
+ var a2 = e || null, m = d || null || {};
383
+ if (c.length === 0 && f)
384
+ L(b.a);
385
+ else {
386
+ b.f += c.length;
387
+ f && (b.j = f);
388
+ var h, l = [];
389
+ for (h = 0; h < c.length; h++) {
390
+ var k = c[h], n = m[k.c], r = b.a, x = k;
391
+ r.g && w(r.f, [r.a.c("wf", x.c, J(x).toString(), "loading")]);
392
+ K(r, "fontloading", x);
393
+ r = null;
394
+ if (X === null)
395
+ if (window.FontFace) {
396
+ var x = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), xa = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);
397
+ X = x ? 42 < parseInt(x[1], 10) : xa ? false : true;
398
+ } else
399
+ X = false;
400
+ X ? r = new P(p(b.g, b), p(b.h, b), b.c, k, b.s, n) : r = new Q(p(b.g, b), p(b.h, b), b.c, k, b.s, a2, n);
401
+ l.push(r);
402
+ }
403
+ for (h = 0; h < l.length; h++)
404
+ l[h].start();
405
+ }
406
+ }, 0);
407
+ }
408
+ function pa(a, b, c) {
409
+ var d = [], e = c.timeout;
410
+ ia(b);
411
+ var d = ka(a.a, c, a.c), f = new W(a.c, b, e);
412
+ a.h = d.length;
413
+ b = 0;
414
+ for (c = d.length; b < c; b++)
415
+ d[b].load(function(b2, d2, c2) {
416
+ qa(a, f, b2, d2, c2);
417
+ });
418
+ }
419
+ function ra(a, b) {
420
+ this.c = a;
421
+ this.a = b;
422
+ }
423
+ ra.prototype.load = function(a) {
424
+ function b() {
425
+ if (f["__mti_fntLst" + d]) {
426
+ var c2 = f["__mti_fntLst" + d](), e2 = [], h;
427
+ if (c2)
428
+ for (var l = 0; l < c2.length; l++) {
429
+ var k = c2[l].fontfamily;
430
+ c2[l].fontStyle != void 0 && c2[l].fontWeight != void 0 ? (h = c2[l].fontStyle + c2[l].fontWeight, e2.push(new G(k, h))) : e2.push(new G(k));
431
+ }
432
+ a(e2);
433
+ } else
434
+ setTimeout(function() {
435
+ b();
436
+ }, 50);
437
+ }
438
+ var c = this, d = c.a.projectId, e = c.a.version;
439
+ if (d) {
440
+ var f = c.c.o;
441
+ A(this.c, (c.a.api || "https://fast.fonts.net/jsapi") + "/" + d + ".js" + (e ? "?v=" + e : ""), function(e2) {
442
+ e2 ? a([]) : (f["__MonotypeConfiguration__" + d] = function() {
443
+ return c.a;
444
+ }, b());
445
+ }).id = "__MonotypeAPIScript__" + d;
446
+ } else
447
+ a([]);
448
+ };
449
+ function sa(a, b) {
450
+ this.c = a;
451
+ this.a = b;
452
+ }
453
+ sa.prototype.load = function(a) {
454
+ var b, c, d = this.a.urls || [], e = this.a.families || [], f = this.a.testStrings || {}, g = new B();
455
+ b = 0;
456
+ for (c = d.length; b < c; b++)
457
+ z(this.c, d[b], C(g));
458
+ var m = [];
459
+ b = 0;
460
+ for (c = e.length; b < c; b++)
461
+ if (d = e[b].split(":"), d[1])
462
+ for (var h = d[1].split(","), l = 0; l < h.length; l += 1)
463
+ m.push(new G(d[0], h[l]));
464
+ else
465
+ m.push(new G(d[0]));
466
+ E(g, function() {
467
+ a(m, f);
468
+ });
469
+ };
470
+ function ta(a, b) {
471
+ a ? this.c = a : this.c = ua;
472
+ this.a = [];
473
+ this.f = [];
474
+ this.g = b || "";
475
+ }
476
+ var ua = "https://fonts.googleapis.com/css";
477
+ function va(a, b) {
478
+ for (var c = b.length, d = 0; d < c; d++) {
479
+ var e = b[d].split(":");
480
+ e.length == 3 && a.f.push(e.pop());
481
+ var f = "";
482
+ e.length == 2 && e[1] != "" && (f = ":");
483
+ a.a.push(e.join(f));
484
+ }
485
+ }
486
+ function wa(a) {
487
+ if (a.a.length == 0)
488
+ throw Error("No fonts to load!");
489
+ if (a.c.indexOf("kit=") != -1)
490
+ return a.c;
491
+ for (var b = a.a.length, c = [], d = 0; d < b; d++)
492
+ c.push(a.a[d].replace(/ /g, "+"));
493
+ b = a.c + "?family=" + c.join("%7C");
494
+ 0 < a.f.length && (b += "&subset=" + a.f.join(","));
495
+ 0 < a.g.length && (b += "&text=" + encodeURIComponent(a.g));
496
+ return b;
497
+ }
498
+ function ya(a) {
499
+ this.f = a;
500
+ this.a = [];
501
+ this.c = {};
502
+ }
503
+ var za = { latin: "BESbswy", "latin-ext": "\xE7\xF6\xFC\u011F\u015F", cyrillic: "\u0439\u044F\u0416", greek: "\u03B1\u03B2\u03A3", khmer: "\u1780\u1781\u1782", Hanuman: "\u1780\u1781\u1782" }, Aa = { thin: "1", extralight: "2", "extra-light": "2", ultralight: "2", "ultra-light": "2", light: "3", regular: "4", book: "4", medium: "5", "semi-bold": "6", semibold: "6", "demi-bold": "6", demibold: "6", bold: "7", "extra-bold": "8", extrabold: "8", "ultra-bold": "8", ultrabold: "8", black: "9", heavy: "9", l: "3", r: "4", b: "7" }, Ba = { i: "i", italic: "i", n: "n", normal: "n" }, Ca = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;
504
+ function Da(a) {
505
+ for (var b = a.f.length, c = 0; c < b; c++) {
506
+ var d = a.f[c].split(":"), e = d[0].replace(/\+/g, " "), f = ["n4"];
507
+ if (2 <= d.length) {
508
+ var g;
509
+ var m = d[1];
510
+ g = [];
511
+ if (m)
512
+ for (var m = m.split(","), h = m.length, l = 0; l < h; l++) {
513
+ var k;
514
+ k = m[l];
515
+ if (k.match(/^[\w-]+$/)) {
516
+ var n = Ca.exec(k.toLowerCase());
517
+ if (n == null)
518
+ k = "";
519
+ else {
520
+ k = n[2];
521
+ k = k == null || k == "" ? "n" : Ba[k];
522
+ n = n[1];
523
+ if (n == null || n == "")
524
+ n = "4";
525
+ else
526
+ var r = Aa[n], n = r ? r : isNaN(n) ? "4" : n.substr(0, 1);
527
+ k = [k, n].join("");
528
+ }
529
+ } else
530
+ k = "";
531
+ k && g.push(k);
532
+ }
533
+ 0 < g.length && (f = g);
534
+ d.length == 3 && (d = d[2], g = [], d = d ? d.split(",") : g, 0 < d.length && (d = za[d[0]]) && (a.c[e] = d));
535
+ }
536
+ a.c[e] || (d = za[e]) && (a.c[e] = d);
537
+ for (d = 0; d < f.length; d += 1)
538
+ a.a.push(new G(e, f[d]));
539
+ }
540
+ }
541
+ function Ea(a, b) {
542
+ this.c = a;
543
+ this.a = b;
544
+ }
545
+ var Fa = { Arimo: true, Cousine: true, Tinos: true };
546
+ Ea.prototype.load = function(a) {
547
+ var b = new B(), c = this.c, d = new ta(this.a.api, this.a.text), e = this.a.families;
548
+ va(d, e);
549
+ var f = new ya(e);
550
+ Da(f);
551
+ z(c, wa(d), C(b));
552
+ E(b, function() {
553
+ a(f.a, f.c, Fa);
554
+ });
555
+ };
556
+ function Ga(a, b) {
557
+ this.c = a;
558
+ this.a = b;
559
+ }
560
+ Ga.prototype.load = function(a) {
561
+ var b = this.a.id, c = this.c.o;
562
+ b ? A(this.c, (this.a.api || "https://use.typekit.net") + "/" + b + ".js", function(b2) {
563
+ if (b2)
564
+ a([]);
565
+ else if (c.Typekit && c.Typekit.config && c.Typekit.config.fn) {
566
+ b2 = c.Typekit.config.fn;
567
+ for (var e = [], f = 0; f < b2.length; f += 2)
568
+ for (var g = b2[f], m = b2[f + 1], h = 0; h < m.length; h++)
569
+ e.push(new G(g, m[h]));
570
+ try {
571
+ c.Typekit.load({ events: false, classes: false, async: true });
572
+ } catch (l) {
573
+ }
574
+ a(e);
575
+ }
576
+ }, 2e3) : a([]);
577
+ };
578
+ function Ha(a, b) {
579
+ this.c = a;
580
+ this.f = b;
581
+ this.a = [];
582
+ }
583
+ Ha.prototype.load = function(a) {
584
+ var b = this.f.id, c = this.c.o, d = this;
585
+ b ? (c.__webfontfontdeckmodule__ || (c.__webfontfontdeckmodule__ = {}), c.__webfontfontdeckmodule__[b] = function(b2, c2) {
586
+ for (var g = 0, m = c2.fonts.length; g < m; ++g) {
587
+ var h = c2.fonts[g];
588
+ d.a.push(new G(h.name, ga("font-weight:" + h.weight + ";font-style:" + h.style)));
589
+ }
590
+ a(d.a);
591
+ }, A(this.c, (this.f.api || "https://f.fontdeck.com/s/css/js/") + ea(this.c) + "/" + b + ".js", function(b2) {
592
+ b2 && a([]);
593
+ })) : a([]);
594
+ };
595
+ var Y = new oa(window);
596
+ Y.a.c.custom = function(a, b) {
597
+ return new sa(b, a);
598
+ };
599
+ Y.a.c.fontdeck = function(a, b) {
600
+ return new Ha(b, a);
601
+ };
602
+ Y.a.c.monotype = function(a, b) {
603
+ return new ra(b, a);
604
+ };
605
+ Y.a.c.typekit = function(a, b) {
606
+ return new Ga(b, a);
607
+ };
608
+ Y.a.c.google = function(a, b) {
609
+ return new Ea(b, a);
610
+ };
611
+ var Z = { load: p(Y.load, Y) };
612
+ module.exports ? module.exports = Z : (window.WebFont = Z, window.WebFontConfig && Y.load(window.WebFontConfig));
613
+ })();
614
+ })(webfontloader$2);
615
+ var webfontloader = webfontloader$2.exports;
616
+ var webfontloader$1 = /* @__PURE__ */ _mergeNamespaces({
617
+ __proto__: null,
618
+ "default": webfontloader
619
+ }, [webfontloader$2.exports]);
620
+ export { webfontloader$1 as w };
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "../src/index"
1
+ export declare const viteBuild: (args: any) => any
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/tina.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>TinaCMS</title>
8
+ </head>
9
+
10
+ <!-- if development -->
11
+ <script type="module">
12
+ import RefreshRuntime from 'http://localhost:5173/@react-refresh'
13
+ RefreshRuntime.injectIntoGlobalHook(window)
14
+ window.$RefreshReg$ = () => {}
15
+ window.$RefreshSig$ = () => (type) => type
16
+ window.__vite_plugin_react_preamble_installed__ = true
17
+ </script>
18
+ <script type="module" src="http://localhost:5173/@vite/client"></script>
19
+ <script
20
+ type="module"
21
+ src="http://localhost:5173/INSERT_OUTPUT_FOLDER_NAME/assets/out.es.js"
22
+ ></script>
23
+ <body class="tina-tailwind">
24
+ <div id="root"></div>
25
+ </body>
26
+ </html>
@@ -8,6 +8,6 @@
8
8
  </head>
9
9
  <body class="tina-tailwind">
10
10
  <div id="root"></div>
11
- <script type="module" src="/src/main.tsx"></script>
11
+ <script type="module" src="/assets/out.es.js"></script>
12
12
  </body>
13
13
  </html>