@niagads/common 0.1.0-alpha.0 → 0.1.4-alpha.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.
- package/dist/index.d.ts +2 -5
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FallbackProps } from 'react-error-boundary';
|
|
3
|
-
import exportFromJson from 'export-from-json';
|
|
4
3
|
|
|
5
4
|
declare const COLOR_BLIND_FRIENDLY_PALETTES: {
|
|
6
5
|
PuBlRd: string[];
|
|
@@ -19,8 +18,6 @@ declare function safeHtml<P>(str: string, props?: P, Component?: React.Component
|
|
|
19
18
|
declare function safeHtml<P>(str: string, props?: P, Component?: React.FunctionComponent<P>): JSX.Element;
|
|
20
19
|
declare function safeHtml<P>(str: string, props?: P, Component?: string): JSX.Element;
|
|
21
20
|
|
|
22
|
-
declare const EXPORT_FILE_FORMATS: string[];
|
|
23
|
-
type FileFormat = Exclude<keyof typeof exportFromJson.types, "css" | "html">;
|
|
24
21
|
type BasicType = string | number | boolean;
|
|
25
22
|
type NAString = "NA" | "N/A" | "NULL" | "." | "" | "na" | "n/a" | "null";
|
|
26
23
|
type Modify<T, R> = Omit<T, keyof R> & R;
|
|
@@ -48,5 +45,5 @@ declare const toExponential: (value: string | number, precision?: number) => str
|
|
|
48
45
|
declare const toTitleCase: (value: string) => string;
|
|
49
46
|
declare function jsonSyntaxHighlight(json: any): any;
|
|
50
47
|
|
|
51
|
-
export { COLOR_BLIND_FRIENDLY_PALETTES,
|
|
52
|
-
export type { BasicType, Color, Expand, ExpandRecursively,
|
|
48
|
+
export { COLOR_BLIND_FRIENDLY_PALETTES, _deepCopy, _get, _hasOwnProperty, _isJSON, _isNA, _isNull, _isObject, errorFallback, jsonSyntaxHighlight, safeHtml, toExponential, toFixedWithoutZeros, toTitleCase };
|
|
49
|
+
export type { BasicType, Color, Expand, ExpandRecursively, Modify, NAString, TypeMapper };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{COLOR_BLIND_FRIENDLY_PALETTES}from"./colors.js";export{errorFallback}from"./errors.js";export{safeHtml}from"./formatters.js";export{
|
|
1
|
+
export{COLOR_BLIND_FRIENDLY_PALETTES}from"./colors.js";export{errorFallback}from"./errors.js";export{safeHtml}from"./formatters.js";export{_deepCopy,_get,_hasOwnProperty,_isJSON,_isNA,_isNull,_isObject,jsonSyntaxHighlight,toExponential,toFixedWithoutZeros,toTitleCase}from"./utils.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@niagads/common",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4-alpha.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "rollup -c"
|
|
6
6
|
},
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "311bf881d2c281c93ec98c78ef0e68aca2260214"
|
|
31
31
|
}
|