@skyux/icons 6.2.4 → 6.3.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
@@ -1,3 +1,7 @@
1
+ # 6.3.0 (2023-09-19)
2
+
3
+ - Added a `VERSION` object to the public exports API. [#59](https://github.com/blackbaud/skyux-icons/pull/59)
4
+
1
5
  # 6.2.4 (2023-09-14)
2
6
 
3
7
  - Restored table icon [#58](https://github.com/blackbaud/skyux-icons/pull/58)
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './module/__get-icon-manifest';
2
2
  export * from './module/icon-manifest';
3
3
  export * from './module/icon-manifest-glyph';
4
+ export { VERSION } from './module/version';
package/index.js CHANGED
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.VERSION = void 0;
17
18
  __exportStar(require("./module/__get-icon-manifest"), exports);
18
19
  __exportStar(require("./module/icon-manifest"), exports);
19
20
  __exportStar(require("./module/icon-manifest-glyph"), exports);
21
+ var version_1 = require("./module/version");
22
+ Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return version_1.VERSION; } });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare class Version {
5
+ readonly full: string;
6
+ readonly major: string;
7
+ readonly minor: string;
8
+ readonly patch: string;
9
+ constructor(full: string);
10
+ }
11
+ /**
12
+ * Represents the version of @skyux/icons.
13
+ */
14
+ export declare const VERSION: Version;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // Taken from Angular's version.ts file.
3
+ // See: https://github.com/angular/angular/blob/16.2.x/packages/core/src/version.ts
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.VERSION = exports.Version = void 0;
6
+ /**
7
+ * @internal
8
+ */
9
+ class Version {
10
+ constructor(full) {
11
+ this.full = full;
12
+ this.major = full.split('.')[0];
13
+ this.minor = full.split('.')[1];
14
+ this.patch = full.split('.').slice(2).join('.');
15
+ }
16
+ }
17
+ exports.Version = Version;
18
+ /**
19
+ * Represents the version of @skyux/icons.
20
+ */
21
+ exports.VERSION = new Version('6.3.0');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/icons",
3
- "version": "6.2.4",
3
+ "version": "6.3.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "description": "A glyph font and stylesheet for displaying SKY UX icons.",