@soton.ac.uk/cape3 0.18.0 → 0.20.0

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,6 @@
1
+ export declare enum CapeEvent {
2
+ ApplicationStart = 0,
3
+ PageView = 1,
4
+ Search = 2,
5
+ Sort = 3
6
+ }
package/dist/cape3.es.js CHANGED
@@ -8341,26 +8341,7 @@ const Hk = /* @__PURE__ */ qe({
8341
8341
  }), BL = (e) => {
8342
8342
  const t = OD(eP);
8343
8343
  return t.use(Qk, e), t;
8344
- };
8345
- var ur = /* @__PURE__ */ ((e) => (e[e.Debug = 3] = "Debug", e[e.Info = 2] = "Info", e[e.Warn = 1] = "Warn", e[e.Error = 0] = "Error", e))(ur || {});
8346
- class tP {
8347
- constructor(t) {
8348
- this.loggingLevel = t;
8349
- }
8350
- debug(t, r) {
8351
- this.loggingLevel >= ur.Debug && console.debug(t, r ?? "");
8352
- }
8353
- info(t, r) {
8354
- this.loggingLevel >= ur.Info && console.info(t, r ?? "");
8355
- }
8356
- warn(t, r) {
8357
- this.loggingLevel >= ur.Warn && console.warn(t, r ?? "");
8358
- }
8359
- error(t, r) {
8360
- this.loggingLevel >= ur.Error && console.error(t, r ?? "");
8361
- }
8362
- }
8363
- const Mn = class Mn {
8344
+ }, Mn = class Mn {
8364
8345
  // register a sink.
8365
8346
  static register(t) {
8366
8347
  Mn.loggers.push(t);
@@ -8384,6 +8365,24 @@ const Mn = class Mn {
8384
8365
  };
8385
8366
  Le(Mn, "loggers", []);
8386
8367
  let Cc = Mn;
8368
+ var ur = /* @__PURE__ */ ((e) => (e[e.Debug = 3] = "Debug", e[e.Info = 2] = "Info", e[e.Warn = 1] = "Warn", e[e.Error = 0] = "Error", e))(ur || {});
8369
+ class tP {
8370
+ constructor(t) {
8371
+ this.loggingLevel = t;
8372
+ }
8373
+ debug(t, r) {
8374
+ this.loggingLevel >= ur.Debug && console.debug(t, r ?? "");
8375
+ }
8376
+ info(t, r) {
8377
+ this.loggingLevel >= ur.Info && console.info(t, r ?? "");
8378
+ }
8379
+ warn(t, r) {
8380
+ this.loggingLevel >= ur.Warn && console.warn(t, r ?? "");
8381
+ }
8382
+ error(t, r) {
8383
+ this.loggingLevel >= ur.Error && console.error(t, r ?? "");
8384
+ }
8385
+ }
8387
8386
  const GL = {
8388
8387
  install: function(e, t) {
8389
8388
  const r = new tP(t.loggingLevel);
@@ -21521,6 +21520,7 @@ export {
21521
21520
  WL as CapeApplicationInsightsLoggingPlugin,
21522
21521
  jL as CapeConsoleAnalyticsPlugin,
21523
21522
  GL as CapeConsoleLoggingPlugin,
21523
+ Un as CapeEvent,
21524
21524
  Cc as CapeLogger,
21525
21525
  Qk as CapePlugin,
21526
21526
  pS as Filter,