@harvard-lts/mirador-citation-plugin 0.0.3 → 0.0.4
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/es/index.js +228 -285
- package/package.json +3 -3
package/dist/es/index.js
CHANGED
|
@@ -34,6 +34,9 @@ import LayersIcon from '@material-ui/icons/LayersSharp';
|
|
|
34
34
|
import SearchIcon from '@material-ui/icons/SearchSharp';
|
|
35
35
|
import CanvasIndexIcon from 'mirador/dist/es/src/components/icons/CanvasIndexIcon';
|
|
36
36
|
|
|
37
|
+
function _OverloadYield(e, d) {
|
|
38
|
+
this.v = e, this.k = d;
|
|
39
|
+
}
|
|
37
40
|
function _assertThisInitialized(e) {
|
|
38
41
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
39
42
|
return e;
|
|
@@ -139,306 +142,178 @@ function _possibleConstructorReturn(t, e) {
|
|
|
139
142
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
140
143
|
return _assertThisInitialized(t);
|
|
141
144
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
145
|
+
function _regenerator() {
|
|
146
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
147
|
+
var e,
|
|
148
|
+
t,
|
|
149
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
150
|
+
n = r.iterator || "@@iterator",
|
|
151
|
+
o = r.toStringTag || "@@toStringTag";
|
|
152
|
+
function i(r, n, o, i) {
|
|
153
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
154
|
+
u = Object.create(c.prototype);
|
|
155
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
156
|
+
var i,
|
|
157
|
+
c,
|
|
158
|
+
u,
|
|
159
|
+
f = 0,
|
|
160
|
+
p = o || [],
|
|
161
|
+
y = !1,
|
|
162
|
+
G = {
|
|
163
|
+
p: 0,
|
|
164
|
+
n: 0,
|
|
165
|
+
v: e,
|
|
166
|
+
a: d,
|
|
167
|
+
f: d.bind(e, 4),
|
|
168
|
+
d: function (t, r) {
|
|
169
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
function d(r, n) {
|
|
173
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
174
|
+
var o,
|
|
175
|
+
i = p[t],
|
|
176
|
+
d = G.p,
|
|
177
|
+
l = i[2];
|
|
178
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
179
|
+
}
|
|
180
|
+
if (o || r > 1) return a;
|
|
181
|
+
throw y = !0, n;
|
|
182
|
+
}
|
|
183
|
+
return function (o, p, l) {
|
|
184
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
185
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
186
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
187
|
+
try {
|
|
188
|
+
if (f = 2, i) {
|
|
189
|
+
if (c || (o = "next"), t = i[o]) {
|
|
190
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
191
|
+
if (!t.done) return t;
|
|
192
|
+
u = t.value, c < 2 && (c = 0);
|
|
193
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
194
|
+
i = e;
|
|
195
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
196
|
+
} catch (t) {
|
|
197
|
+
i = e, c = 1, u = t;
|
|
198
|
+
} finally {
|
|
199
|
+
f = 1;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
return {
|
|
203
|
+
value: t,
|
|
204
|
+
done: y
|
|
205
|
+
};
|
|
190
206
|
};
|
|
191
|
-
}
|
|
207
|
+
}(r, o, i), !0), u;
|
|
192
208
|
}
|
|
193
|
-
|
|
194
|
-
var h = "suspendedStart",
|
|
195
|
-
l = "suspendedYield",
|
|
196
|
-
f = "executing",
|
|
197
|
-
s = "completed",
|
|
198
|
-
y = {};
|
|
209
|
+
var a = {};
|
|
199
210
|
function Generator() {}
|
|
200
211
|
function GeneratorFunction() {}
|
|
201
212
|
function GeneratorFunctionPrototype() {}
|
|
202
|
-
|
|
203
|
-
|
|
213
|
+
t = Object.getPrototypeOf;
|
|
214
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
215
|
+
return this;
|
|
216
|
+
}), t),
|
|
217
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
218
|
+
function f(e) {
|
|
219
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
220
|
+
}
|
|
221
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
204
222
|
return this;
|
|
223
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
224
|
+
return "[object Generator]";
|
|
225
|
+
}), (_regenerator = function () {
|
|
226
|
+
return {
|
|
227
|
+
w: i,
|
|
228
|
+
m: f
|
|
229
|
+
};
|
|
230
|
+
})();
|
|
231
|
+
}
|
|
232
|
+
function _regeneratorAsync(n, e, r, t, o) {
|
|
233
|
+
var a = _regeneratorAsyncGen(n, e, r, t, o);
|
|
234
|
+
return a.next().then(function (n) {
|
|
235
|
+
return n.done ? n.value : a.next();
|
|
205
236
|
});
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
237
|
+
}
|
|
238
|
+
function _regeneratorAsyncGen(r, e, t, o, n) {
|
|
239
|
+
return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise);
|
|
240
|
+
}
|
|
241
|
+
function _regeneratorAsyncIterator(t, e) {
|
|
242
|
+
function n(r, o, i, f) {
|
|
243
|
+
try {
|
|
244
|
+
var c = t[r](o),
|
|
245
|
+
u = c.value;
|
|
246
|
+
return u instanceof _OverloadYield ? e.resolve(u.v).then(function (t) {
|
|
247
|
+
n("next", t, i, f);
|
|
248
|
+
}, function (t) {
|
|
249
|
+
n("throw", t, i, f);
|
|
250
|
+
}) : e.resolve(u).then(function (t) {
|
|
251
|
+
c.value = t, i(c);
|
|
252
|
+
}, function (t) {
|
|
253
|
+
return n("throw", t, i, f);
|
|
214
254
|
});
|
|
215
|
-
})
|
|
255
|
+
} catch (t) {
|
|
256
|
+
f(t);
|
|
257
|
+
}
|
|
216
258
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}, function (t) {
|
|
226
|
-
invoke("throw", t, i, a);
|
|
227
|
-
}) : e.resolve(h).then(function (t) {
|
|
228
|
-
u.value = t, i(u);
|
|
229
|
-
}, function (t) {
|
|
230
|
-
return invoke("throw", t, i, a);
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
a(c.arg);
|
|
259
|
+
var r;
|
|
260
|
+
this.next || (_regeneratorDefine(_regeneratorAsyncIterator.prototype), _regeneratorDefine(_regeneratorAsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () {
|
|
261
|
+
return this;
|
|
262
|
+
})), _regeneratorDefine(this, "_invoke", function (t, o, i) {
|
|
263
|
+
function f() {
|
|
264
|
+
return new e(function (e, r) {
|
|
265
|
+
n(t, i, e, r);
|
|
266
|
+
});
|
|
234
267
|
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
});
|
|
268
|
+
return r = r ? r.then(f, f) : f();
|
|
269
|
+
}, !0);
|
|
270
|
+
}
|
|
271
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
272
|
+
var i = Object.defineProperty;
|
|
273
|
+
try {
|
|
274
|
+
i({}, "", {});
|
|
275
|
+
} catch (e) {
|
|
276
|
+
i = 0;
|
|
246
277
|
}
|
|
247
|
-
function
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
278
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
279
|
+
function o(r, n) {
|
|
280
|
+
_regeneratorDefine(e, r, function (e) {
|
|
281
|
+
return this._invoke(r, n, e);
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
r ? i ? i(e, r, {
|
|
285
|
+
value: n,
|
|
286
|
+
enumerable: !t,
|
|
287
|
+
configurable: !t,
|
|
288
|
+
writable: !t
|
|
289
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
290
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
291
|
+
}
|
|
292
|
+
function _regeneratorKeys(e) {
|
|
293
|
+
var n = Object(e),
|
|
294
|
+
r = [];
|
|
295
|
+
for (var t in n) r.unshift(t);
|
|
296
|
+
return function e() {
|
|
297
|
+
for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e;
|
|
298
|
+
return e.done = !0, e;
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
function _regeneratorValues(e) {
|
|
302
|
+
if (null != e) {
|
|
303
|
+
var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
|
|
304
|
+
r = 0;
|
|
305
|
+
if (t) return t.call(e);
|
|
306
|
+
if ("function" == typeof e.next) return e;
|
|
307
|
+
if (!isNaN(e.length)) return {
|
|
308
|
+
next: function () {
|
|
309
|
+
return e && r >= e.length && (e = void 0), {
|
|
310
|
+
value: e && e[r++],
|
|
311
|
+
done: !e
|
|
256
312
|
};
|
|
257
313
|
}
|
|
258
|
-
for (n.method = i, n.arg = a;;) {
|
|
259
|
-
var c = n.delegate;
|
|
260
|
-
if (c) {
|
|
261
|
-
var u = maybeInvokeDelegate(c, n);
|
|
262
|
-
if (u) {
|
|
263
|
-
if (u === y) continue;
|
|
264
|
-
return u;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
268
|
-
if (o === h) throw o = s, n.arg;
|
|
269
|
-
n.dispatchException(n.arg);
|
|
270
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
271
|
-
o = f;
|
|
272
|
-
var p = tryCatch(e, r, n);
|
|
273
|
-
if ("normal" === p.type) {
|
|
274
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
275
|
-
return {
|
|
276
|
-
value: p.arg,
|
|
277
|
-
done: n.done
|
|
278
|
-
};
|
|
279
|
-
}
|
|
280
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
function maybeInvokeDelegate(e, r) {
|
|
285
|
-
var n = r.method,
|
|
286
|
-
o = e.iterator[n];
|
|
287
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
288
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
289
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
290
|
-
var a = i.arg;
|
|
291
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
292
|
-
}
|
|
293
|
-
function pushTryEntry(t) {
|
|
294
|
-
var e = {
|
|
295
|
-
tryLoc: t[0]
|
|
296
314
|
};
|
|
297
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
298
|
-
}
|
|
299
|
-
function resetTryEntry(t) {
|
|
300
|
-
var e = t.completion || {};
|
|
301
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
302
|
-
}
|
|
303
|
-
function Context(t) {
|
|
304
|
-
this.tryEntries = [{
|
|
305
|
-
tryLoc: "root"
|
|
306
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
307
|
-
}
|
|
308
|
-
function values(e) {
|
|
309
|
-
if (e || "" === e) {
|
|
310
|
-
var r = e[a];
|
|
311
|
-
if (r) return r.call(e);
|
|
312
|
-
if ("function" == typeof e.next) return e;
|
|
313
|
-
if (!isNaN(e.length)) {
|
|
314
|
-
var o = -1,
|
|
315
|
-
i = function next() {
|
|
316
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
317
|
-
return next.value = t, next.done = !0, next;
|
|
318
|
-
};
|
|
319
|
-
return i.next = i;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
323
315
|
}
|
|
324
|
-
|
|
325
|
-
value: GeneratorFunctionPrototype,
|
|
326
|
-
configurable: !0
|
|
327
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
328
|
-
value: GeneratorFunction,
|
|
329
|
-
configurable: !0
|
|
330
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
331
|
-
var e = "function" == typeof t && t.constructor;
|
|
332
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
333
|
-
}, e.mark = function (t) {
|
|
334
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
335
|
-
}, e.awrap = function (t) {
|
|
336
|
-
return {
|
|
337
|
-
__await: t
|
|
338
|
-
};
|
|
339
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
340
|
-
return this;
|
|
341
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
342
|
-
void 0 === i && (i = Promise);
|
|
343
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
344
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
345
|
-
return t.done ? t.value : a.next();
|
|
346
|
-
});
|
|
347
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
348
|
-
return this;
|
|
349
|
-
}), define(g, "toString", function () {
|
|
350
|
-
return "[object Generator]";
|
|
351
|
-
}), e.keys = function (t) {
|
|
352
|
-
var e = Object(t),
|
|
353
|
-
r = [];
|
|
354
|
-
for (var n in e) r.push(n);
|
|
355
|
-
return r.reverse(), function next() {
|
|
356
|
-
for (; r.length;) {
|
|
357
|
-
var t = r.pop();
|
|
358
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
359
|
-
}
|
|
360
|
-
return next.done = !0, next;
|
|
361
|
-
};
|
|
362
|
-
}, e.values = values, Context.prototype = {
|
|
363
|
-
constructor: Context,
|
|
364
|
-
reset: function (e) {
|
|
365
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
366
|
-
},
|
|
367
|
-
stop: function () {
|
|
368
|
-
this.done = !0;
|
|
369
|
-
var t = this.tryEntries[0].completion;
|
|
370
|
-
if ("throw" === t.type) throw t.arg;
|
|
371
|
-
return this.rval;
|
|
372
|
-
},
|
|
373
|
-
dispatchException: function (e) {
|
|
374
|
-
if (this.done) throw e;
|
|
375
|
-
var r = this;
|
|
376
|
-
function handle(n, o) {
|
|
377
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
378
|
-
}
|
|
379
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
380
|
-
var i = this.tryEntries[o],
|
|
381
|
-
a = i.completion;
|
|
382
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
383
|
-
if (i.tryLoc <= this.prev) {
|
|
384
|
-
var c = n.call(i, "catchLoc"),
|
|
385
|
-
u = n.call(i, "finallyLoc");
|
|
386
|
-
if (c && u) {
|
|
387
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
388
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
389
|
-
} else if (c) {
|
|
390
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
391
|
-
} else {
|
|
392
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
393
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
abrupt: function (t, e) {
|
|
399
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
400
|
-
var o = this.tryEntries[r];
|
|
401
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
402
|
-
var i = o;
|
|
403
|
-
break;
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
407
|
-
var a = i ? i.completion : {};
|
|
408
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
409
|
-
},
|
|
410
|
-
complete: function (t, e) {
|
|
411
|
-
if ("throw" === t.type) throw t.arg;
|
|
412
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
413
|
-
},
|
|
414
|
-
finish: function (t) {
|
|
415
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
416
|
-
var r = this.tryEntries[e];
|
|
417
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
418
|
-
}
|
|
419
|
-
},
|
|
420
|
-
catch: function (t) {
|
|
421
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
422
|
-
var r = this.tryEntries[e];
|
|
423
|
-
if (r.tryLoc === t) {
|
|
424
|
-
var n = r.completion;
|
|
425
|
-
if ("throw" === n.type) {
|
|
426
|
-
var o = n.arg;
|
|
427
|
-
resetTryEntry(r);
|
|
428
|
-
}
|
|
429
|
-
return o;
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
throw Error("illegal catch attempt");
|
|
433
|
-
},
|
|
434
|
-
delegateYield: function (e, r, n) {
|
|
435
|
-
return this.delegate = {
|
|
436
|
-
iterator: values(e),
|
|
437
|
-
resultName: r,
|
|
438
|
-
nextLoc: n
|
|
439
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
440
|
-
}
|
|
441
|
-
}, e;
|
|
316
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
442
317
|
}
|
|
443
318
|
function _setPrototypeOf(t, e) {
|
|
444
319
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -459,6 +334,74 @@ function _toPropertyKey(t) {
|
|
|
459
334
|
var i = _toPrimitive(t, "string");
|
|
460
335
|
return "symbol" == typeof i ? i : i + "";
|
|
461
336
|
}
|
|
337
|
+
function _regeneratorRuntime() {
|
|
338
|
+
|
|
339
|
+
var r = _regenerator(),
|
|
340
|
+
e = r.m(_regeneratorRuntime),
|
|
341
|
+
t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
|
|
342
|
+
function n(r) {
|
|
343
|
+
var e = "function" == typeof r && r.constructor;
|
|
344
|
+
return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name));
|
|
345
|
+
}
|
|
346
|
+
var o = {
|
|
347
|
+
throw: 1,
|
|
348
|
+
return: 2,
|
|
349
|
+
break: 3,
|
|
350
|
+
continue: 3
|
|
351
|
+
};
|
|
352
|
+
function a(r) {
|
|
353
|
+
var e, t;
|
|
354
|
+
return function (n) {
|
|
355
|
+
e || (e = {
|
|
356
|
+
stop: function () {
|
|
357
|
+
return t(n.a, 2);
|
|
358
|
+
},
|
|
359
|
+
catch: function () {
|
|
360
|
+
return n.v;
|
|
361
|
+
},
|
|
362
|
+
abrupt: function (r, e) {
|
|
363
|
+
return t(n.a, o[r], e);
|
|
364
|
+
},
|
|
365
|
+
delegateYield: function (r, o, a) {
|
|
366
|
+
return e.resultName = o, t(n.d, _regeneratorValues(r), a);
|
|
367
|
+
},
|
|
368
|
+
finish: function (r) {
|
|
369
|
+
return t(n.f, r);
|
|
370
|
+
}
|
|
371
|
+
}, t = function (r, t, o) {
|
|
372
|
+
n.p = e.prev, n.n = e.next;
|
|
373
|
+
try {
|
|
374
|
+
return r(t, o);
|
|
375
|
+
} finally {
|
|
376
|
+
e.next = n.n;
|
|
377
|
+
}
|
|
378
|
+
}), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n;
|
|
379
|
+
try {
|
|
380
|
+
return r.call(this, e);
|
|
381
|
+
} finally {
|
|
382
|
+
n.p = e.prev, n.n = e.next;
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
return (_regeneratorRuntime = function () {
|
|
387
|
+
return {
|
|
388
|
+
wrap: function (e, t, n, o) {
|
|
389
|
+
return r.w(a(e), t, n, o && o.reverse());
|
|
390
|
+
},
|
|
391
|
+
isGeneratorFunction: n,
|
|
392
|
+
mark: r.m,
|
|
393
|
+
awrap: function (r, e) {
|
|
394
|
+
return new _OverloadYield(r, e);
|
|
395
|
+
},
|
|
396
|
+
AsyncIterator: _regeneratorAsyncIterator,
|
|
397
|
+
async: function (r, e, t, o, u) {
|
|
398
|
+
return (n(e) ? _regeneratorAsyncGen : _regeneratorAsync)(a(r), e, t, o, u);
|
|
399
|
+
},
|
|
400
|
+
keys: _regeneratorKeys,
|
|
401
|
+
values: _regeneratorValues
|
|
402
|
+
};
|
|
403
|
+
})();
|
|
404
|
+
}
|
|
462
405
|
|
|
463
406
|
/**
|
|
464
407
|
*/
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-component"
|
|
7
7
|
],
|
|
8
|
-
"version": "0.0.
|
|
8
|
+
"version": "0.0.4",
|
|
9
9
|
"description": "A Mirador 3 plugin for displaying Harvard-specific citations.",
|
|
10
10
|
"module": "dist/es/index.js",
|
|
11
11
|
"files": [
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@testing-library/react": "^12.0.0",
|
|
35
35
|
"babel-jest": "^29.7.0",
|
|
36
36
|
"babel-loader": "^9.1.2",
|
|
37
|
-
"jest": "^
|
|
38
|
-
"jest-environment-jsdom": "^
|
|
37
|
+
"jest": "^30.0.2",
|
|
38
|
+
"jest-environment-jsdom": "^30.0.2",
|
|
39
39
|
"mirador": "^3.4.3",
|
|
40
40
|
"npm-run-all": "^4.1.5",
|
|
41
41
|
"rollup": "^3.29.5",
|