@bottlebooks/valid-values 2.0.1 → 2.1.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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.1.0](https://github.com/bottlebooks/bottlebooks/compare/@bottlebooks/valid-values@2.0.1...@bottlebooks/valid-values@2.1.0) (2023-01-30)
7
+
8
+ ### Features
9
+
10
+ - export Locale ([b9e9a99](https://github.com/bottlebooks/bottlebooks/commit/b9e9a998ca3034807f29c062377481487fea5ecc))
11
+
6
12
  ## [2.0.1](https://github.com/bottlebooks/bottlebooks/compare/@bottlebooks/valid-values@2.0.0...@bottlebooks/valid-values@2.0.1) (2023-01-26)
7
13
 
8
14
  ### Bug Fixes
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
+ import { allLocaleData } from './locales/locales.js';
1
2
  export { translate } from './core/translate';
2
3
  export * from './validValues';
3
4
  export declare const allSupportedLocales: string[];
5
+ export declare type Locale = keyof typeof allLocaleData;
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,cAAc,eAAe,CAAC;AAC9B,eAAO,MAAM,mBAAmB,UAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,cAAc,eAAe,CAAC;AAC9B,eAAO,MAAM,mBAAmB,UAA6B,CAAC;AAE9D,oBAAY,MAAM,GAAG,MAAM,OAAO,aAAa,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { allMessages } from '../../locales/locales.js';
2
2
  import { ValidValueDefinition } from '../types/ValidValueDefinition';
3
- declare type Locale = keyof typeof allMessages;
3
+ export declare type Locale = keyof typeof allMessages;
4
4
  export default function createValidValues<ValidValue extends ValidValueDefinition = ValidValueDefinition>(values: Record<string, ValidValue>): {
5
5
  list: ({
6
6
  /** The value identifier. */
@@ -25,5 +25,4 @@ export default function createValidValues<ValidValue extends ValidValueDefinitio
25
25
  };
26
26
  };
27
27
  };
28
- export {};
29
28
  //# sourceMappingURL=createValidValues.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createValidValues.d.ts","sourceRoot":"","sources":["../../../src/validValues/utils/createValidValues.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAKrE,aAAK,MAAM,GAAG,MAAM,OAAO,WAAW,CAAC;AAEvC,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,UAAU,SAAS,oBAAoB,GAAG,oBAAoB,EAC9D,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;;QA4B9B,4BAA4B;;;QAG5B,qDAAqD;4BAxB5B,MAAM;QA0B/B,0DAA0D;4BACvC,MAAM,EAAE;;;;;YAN3B,4BAA4B;;;YAG5B,qDAAqD;gCAxB5B,MAAM;YA0B/B,0DAA0D;gCACvC,MAAM,EAAE;;;;EA4BhC"}
1
+ {"version":3,"file":"createValidValues.d.ts","sourceRoot":"","sources":["../../../src/validValues/utils/createValidValues.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAKrE,oBAAY,MAAM,GAAG,MAAM,OAAO,WAAW,CAAC;AAE9C,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,UAAU,SAAS,oBAAoB,GAAG,oBAAoB,EAC9D,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;;QA4B9B,4BAA4B;;;QAG5B,qDAAqD;4BAxB5B,MAAM;QA0B/B,0DAA0D;4BACvC,MAAM,EAAE;;;;;YAN3B,4BAA4B;;;YAG5B,qDAAqD;gCAxB5B,MAAM;YA0B/B,0DAA0D;gCACvC,MAAM,EAAE;;;;EA4BhC"}
package/lingui.config.ts CHANGED
@@ -36,6 +36,10 @@ const config = {
36
36
  },
37
37
  ],
38
38
  format: 'po',
39
+ formatOptions: {
40
+ origins: true,
41
+ lineNumbers: false,
42
+ },
39
43
  compileNamespace: 'ts',
40
44
  sourceLocale: 'en',
41
45
  fallbackLocales: {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@bottlebooks/valid-values",
3
3
  "description": "The Bottlebooks lookup values, defined globally.",
4
4
  "private": false,
5
- "version": "2.0.1",
5
+ "version": "2.1.0",
6
6
  "type": "commonjs",
7
7
  "main": "dist/index.js",
8
8
  "scripts": {
@@ -32,5 +32,5 @@
32
32
  "@babel/core": "^7.15.5",
33
33
  "@lingui/core": "3.14.0"
34
34
  },
35
- "gitHead": "1f06441e816dbac439bd78631d10bb5e233d388c"
35
+ "gitHead": "e2bedccb70473b855e4485a371d79a53e1e98765"
36
36
  }
package/src/index.ts CHANGED
@@ -4,3 +4,5 @@ export { translate } from './core/translate';
4
4
  // This enables tree-shaking
5
5
  export * from './validValues';
6
6
  export const allSupportedLocales = Object.keys(allLocaleData);
7
+
8
+ export type Locale = keyof typeof allLocaleData;