@jobber/formatters 0.0.4-pre.18 → 0.2.1-pre.193

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 ADDED
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: Formatters
3
+ menu: Changelog
4
+ ---
5
+
6
+ # @jobber/formatters: Change Log
7
+
8
+ All notable changes to this project will be documented in this file.
9
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
10
+
11
+ # [0.2.0](https://github.com/GetJobber/atlantis/compare/@jobber/formatters@0.1.0...@jobber/formatters@0.2.0) (2021-07-06)
12
+
13
+
14
+ ### Features
15
+
16
+ * **hooks:** add useCollectionQuery and useIsMounted [JOB-32207] ([#561](https://github.com/GetJobber/atlantis/issues/561)) ([8efccf8](https://github.com/GetJobber/atlantis/commit/8efccf8398f6e1d9278248ca4ec40327d11f9782)), closes [#562](https://github.com/GetJobber/atlantis/issues/562) [#575](https://github.com/GetJobber/atlantis/issues/575) [#565](https://github.com/GetJobber/atlantis/issues/565)
17
+
18
+
19
+
20
+
21
+
22
+ # [0.1.0](https://github.com/GetJobber/atlantis/compare/@jobber/formatters@0.0.4...@jobber/formatters@0.1.0) (2021-02-01)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * Build css types on save ([#255](https://github.com/GetJobber/atlantis/issues/255)) ([91862b0](https://github.com/GetJobber/atlantis/commit/91862b007a006c42a22d39389639c0598efc19c5))
28
+
29
+
30
+ ### Features
31
+
32
+ * **components:** add action buttons to Page component ([#248](https://github.com/GetJobber/atlantis/issues/248)) ([a69a008](https://github.com/GetJobber/atlantis/commit/a69a0089bd66652a617140d9d5fc312d9060cb07))
package/README.md CHANGED
@@ -1,3 +1,9 @@
1
+ ---
2
+ name: Formatters
3
+ menu: Packages
4
+ route: /packages/formatters
5
+ ---
6
+
1
7
  # 🔱 Formatters
2
8
 
3
9
  ---
package/dist/config.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { CurrencyType } from "./CurrencyType";
2
+ export declare type ErrorNotifierFunction = (message: string, error: unknown) => void;
2
3
  interface AtlantisConfig {
3
4
  readonly defaultCurrency?: CurrencyType;
5
+ readonly errorNotifier?: ErrorNotifierFunction;
4
6
  }
5
7
  interface AtlantisEnv {
6
8
  readonly config?: AtlantisConfig;
@@ -12,6 +14,7 @@ declare global {
12
14
  }
13
15
  interface Configuration {
14
16
  readonly defaultCurrency: CurrencyType;
17
+ readonly errorNotifier: ErrorNotifierFunction;
15
18
  }
16
19
  export declare const config: Configuration;
17
20
  export {};
package/dist/config.js CHANGED
@@ -11,6 +11,9 @@ var __assign = (this && this.__assign) || function () {
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.config = void 0;
14
15
  var global_1 = require("./global");
15
16
  var configOverrides = (global_1.global.ATLANTIS_ENV || {}).config || {};
16
- exports.config = Object.freeze(__assign({ defaultCurrency: "USD" }, configOverrides));
17
+ exports.config = Object.freeze(__assign({ defaultCurrency: "USD", errorNotifier: function (message, error) {
18
+ console.error(message, error);
19
+ } }, configOverrides));
package/dist/currency.js CHANGED
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.formatCurrency = void 0;
3
4
  var config_1 = require("./config");
4
5
  function formatCurrency(amount, currency) {
5
6
  if (currency === void 0) { currency = config_1.config.defaultCurrency; }
7
+ // This is a change
6
8
  return amount.toLocaleString("en", {
7
9
  style: "currency",
8
10
  currency: currency,
package/dist/global.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.global = void 0;
3
4
  function getGlobal() {
4
5
  if (typeof window !== "undefined") {
5
6
  return window;
package/dist/index.js CHANGED
@@ -1,7 +1,15 @@
1
1
  "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
11
+ };
5
12
  Object.defineProperty(exports, "__esModule", { value: true });
6
- __export(require("./currency"));
7
- __export(require("./config"));
13
+ __exportStar(require("./currency"), exports);
14
+ __exportStar(require("./CurrencyType"), exports);
15
+ __exportStar(require("./config"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/formatters",
3
- "version": "0.0.4-pre.18+d94ea4d",
3
+ "version": "0.2.1-pre.193+bad3e09",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "dist/*"
14
14
  ],
15
15
  "devDependencies": {
16
- "typescript": "^3.4.5"
16
+ "typescript": "^3.8.3"
17
17
  },
18
- "gitHead": "d94ea4df5ac15de106626714dc14a523dac21490"
18
+ "gitHead": "bad3e09cb9040dde6682244739df001deaa80820"
19
19
  }