@niagads/common 0.1.0-alpha.0 → 0.1.3-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 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, EXPORT_FILE_FORMATS, _deepCopy, _get, _hasOwnProperty, _isJSON, _isNA, _isNull, _isObject, errorFallback, jsonSyntaxHighlight, safeHtml, toExponential, toFixedWithoutZeros, toTitleCase };
52
- export type { BasicType, Color, Expand, ExpandRecursively, FileFormat, Modify, NAString, TypeMapper };
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{EXPORT_FILE_FORMATS}from"./types.js";export{_deepCopy,_get,_hasOwnProperty,_isJSON,_isNA,_isNull,_isObject,jsonSyntaxHighlight,toExponential,toFixedWithoutZeros,toTitleCase}from"./utils.js";
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.0-alpha.0",
3
+ "version": "0.1.3-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": "04716c1ab2339cea7b5e3fda42a638c2b6fd2098"
30
+ "gitHead": "a9126552bd6d94b142af28489457398d6c048c36"
31
31
  }