@epigraph/epigraph-std-lib 0.0.2 → 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/README.md +1 -0
- package/dist/EpigraphLogger/epigraph-logger.d.ts +19 -0
- package/dist/Index.d.ts +6 -0
- package/dist/epigraph-std-lib.js +10257 -8878
- package/package.json +19 -12
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/) |  |
|
|
10
10
|
| [model-viewer](https://modelviewer.dev/) |  |
|
|
11
|
+
| [@epigraph/epigraph-analytics](https://www.npmjs.com/package/@epigraph/epigraph-analytics) ||
|
|
11
12
|
| [qr-creator](https://www.npmjs.com/package/qr-creator) ||
|
|
@@ -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 };
|
package/dist/Index.d.ts
ADDED
|
@@ -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";
|