@reekon-tools/boldr-utils 1.17.1 → 1.17.2

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.
@@ -1,7 +1,7 @@
1
1
  export type ExportCategory = 'defaultGroup' | 'groups' | 'forms';
2
2
  export type ExportObjectType = 'calculators' | 'files' | 'photos' | 'cad' | 'labels' | 'notes';
3
3
  export type ExportMeasurementFilter = 'all' | 'complete' | 'incomplete';
4
- export type ExportImageFormat = 'hyperlink' | 'none';
4
+ export type ExportImageFormat = 'hyperlink' | 'embedded' | 'none';
5
5
  export type ExportMeasurementDataField = 'measurement' | 'label' | 'notes' | 'isComplete' | 'completedBy' | 'completedAt' | 'createdAt' | 'createdBy';
6
6
  export type ExportConfig = {
7
7
  categories: ExportCategory[];
@@ -46,7 +46,7 @@ export const EXPORT_EVERYTHING_CONFIG = {
46
46
  const isCategory = (v) => typeof v === 'string' && ALL_EXPORT_CATEGORIES.includes(v);
47
47
  const isObjectType = (v) => typeof v === 'string' && ALL_EXPORT_OBJECT_TYPES.includes(v);
48
48
  const isMeasurementFilter = (v) => v === 'all' || v === 'complete' || v === 'incomplete';
49
- const isImageFormat = (v) => v === 'hyperlink' || v === 'none';
49
+ const isImageFormat = (v) => v === 'hyperlink' || v === 'embedded' || v === 'none';
50
50
  const isMeasurementDataField = (v) => typeof v === 'string' &&
51
51
  ALL_EXPORT_MEASUREMENT_DATA_FIELDS.includes(v);
52
52
  // Tolerant reader for the raw user-doc field. Missing/invalid fields fall
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reekon-tools/boldr-utils",
3
- "version": "1.17.1",
3
+ "version": "1.17.2",
4
4
  "description": "Shared utilities for formulas and measurement conversion used in Reekon apps",
5
5
  "author": "REEKON Tools",
6
6
  "license": "MIT",