@epigraph/epigraph-std-lib 0.0.2 → 0.0.3

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/README.md CHANGED
@@ -8,4 +8,5 @@ Standard library to be used across multiple web components developed and maintai
8
8
  |---|---|
9
9
  | [three](https://threejs.org/) | ![three version](https://img.shields.io/badge/three-0.149.0-green) |
10
10
  | [model-viewer](https://modelviewer.dev/) | ![@google/model-viewer version](https://img.shields.io/badge/model--viewer-3.0.2-green) |
11
+ | [@epigraph/epigraph-analytics](https://www.npmjs.com/package/@epigraph/epigraph-analytics) |![@epigraph/epigraph-analytics version](https://img.shields.io/badge/epigraph--analytics-0.2.6-green)|
11
12
  | [qr-creator](https://www.npmjs.com/package/qr-creator) |![qr-creator version](https://img.shields.io/badge/qr--creator-1.0.0-green)|
@@ -0,0 +1,19 @@
1
+ type ILoggerDetails = string | boolean | object | Array<string> | Array<boolean> | HTMLElement;
2
+ /**
3
+ * Temporary class to use instead of console.log so it's
4
+ * easy to migrate int he future.
5
+ */
6
+ declare class EpigraphLogger {
7
+ context: string;
8
+ /**
9
+ * @param {string} [context="EPIGRAPH-LOGGER"] Used to categorise each message within
10
+ * the console.
11
+ * @example,CORE, UI
12
+ */
13
+ constructor(context: string);
14
+ log(title?: string, details?: ILoggerDetails): void;
15
+ warn(title?: string, details?: ILoggerDetails): void;
16
+ error(title?: string, details?: ILoggerDetails): void;
17
+ table(title?: string, details?: ILoggerDetails): void;
18
+ }
19
+ export { EpigraphLogger };
@@ -0,0 +1,6 @@
1
+ export * from "three";
2
+ export * as ModelViewer from "@google/model-viewer";
3
+ export * from "./EpigraphLogger/epigraph-logger";
4
+ export * from "qr-creator";
5
+ export * as ThreeWebGLCompatibility from "three/examples/jsm/capabilities/WebGL";
6
+ export * from "@epigraph/epigraph-analytics";