@odx/icons 4.0.0-rc.7 → 4.0.0-rc.8

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.
@@ -0,0 +1,3 @@
1
+ import { type AssetLoaderOptions } from '@odx/assets-utils';
2
+ export default function (set: string, options?: AssetLoaderOptions): Promise<void>;
3
+ //# sourceMappingURL=loader.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { loadAssets } from '@odx/assets-utils';
2
+ export default function (set, options) {
3
+ return loadAssets('@odx/icons@next', set, options);
4
+ }
package/dist/src/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { OdxAssetElement } from '@odx/assets-utils';
1
+ import { OdxAssetElement, registerAssetElement } from '@odx/assets-utils';
2
2
  export class OdxIconElement extends OdxAssetElement {
3
3
  static assetAttributes = [
4
4
  { name: 'color', values: ['currentColor'], attributes: ['fill', 'stroke'] },
@@ -6,4 +6,4 @@ export class OdxIconElement extends OdxAssetElement {
6
6
  namespace = 'odx-icon';
7
7
  defaultSet = 'core';
8
8
  }
9
- customElements.define('odx-icon', OdxIconElement);
9
+ registerAssetElement('odx-icon', OdxIconElement);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@odx/icons",
3
3
  "description": "A library of icon assets for ODX",
4
- "version": "4.0.0-rc.7",
4
+ "version": "4.0.0-rc.8",
5
5
  "author": "Drägerwerk AG & Co.KGaA",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "homepage": "https://odx.draeger.com",
@@ -9,12 +9,12 @@
9
9
  "type": "module",
10
10
  "scripts": {
11
11
  "build": "tsc --build",
12
- "dev": "turbo watch build",
12
+ "dev": "tsc --build --watch",
13
13
  "lint": "biome lint .",
14
14
  "generate-assets": "npx generate-assets && biome check --write --no-errors-on-unmatched --files-ignore-unknown=true"
15
15
  },
16
16
  "dependencies": {
17
- "@odx/assets-utils": "^1.0.0-rc.6"
17
+ "@odx/assets-utils": "^1.0.0-rc.8"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@odx/assets-cli": "*",
@@ -26,12 +26,17 @@
26
26
  "import": "./dist/src/main.js",
27
27
  "types": "./dist/src/main.d.ts"
28
28
  },
29
+ "./loader": {
30
+ "import": "./dist/src/loader.js",
31
+ "types": "./dist/src/loader.d.ts"
32
+ },
29
33
  "./*": {
30
34
  "import": "./dist/generated/*.js",
31
35
  "types": "./dist/generated/*.d.ts"
32
36
  }
33
37
  },
34
38
  "publishConfig": {
35
- "access": "public"
39
+ "access": "public",
40
+ "tag": "next"
36
41
  }
37
42
  }