@carbon/element-styles 0.2.2 → 0.2.3-rc.1

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/README.md CHANGED
@@ -343,3 +343,12 @@ Not every element in this library is fully compatible with all major browsers ye
343
343
  ## License
344
344
 
345
345
  Licensed under the [Apache 2.0](./LICENSE) license.
346
+
347
+ ## <picture><source height="20" width="20" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-dark.svg"><source height="20" width="20" media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-light.svg"><img height="20" width="20" alt="IBM Telemetry" src="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-light.svg"></picture> IBM Telemetry
348
+
349
+ This package uses IBM Telemetry to collect de-identified and anonymized metrics
350
+ data. By installing this package as a dependency you are agreeing to telemetry
351
+ collection. To opt out, see
352
+ [Opting out of IBM Telemetry data collection](https://github.com/ibm-telemetry/telemetry-js/tree/main#opting-out-of-ibm-telemetry-data-collection).
353
+ For more information on the data being collected, please see the
354
+ [IBM Telemetry documentation](https://github.com/ibm-telemetry/telemetry-js/tree/main#ibm-telemetry-collection-basics).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/element-styles",
3
3
  "description": "An experimental styling system for native HTML elements, relying on semantic, attribute-focused selectors instead of class names.",
4
- "version": "0.2.2",
4
+ "version": "0.2.3-rc.1",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "sass": "index.scss",
@@ -12,7 +12,8 @@
12
12
  "files": [
13
13
  "index.scss",
14
14
  "scss",
15
- "css"
15
+ "css",
16
+ "telemetry.yml"
16
17
  ],
17
18
  "keywords": [
18
19
  "ibm",
@@ -24,12 +25,16 @@
24
25
  "provenance": true
25
26
  },
26
27
  "scripts": {
28
+ "postinstall": "ibmtelemetry --config=telemetry.yml",
27
29
  "dev": "vite docs",
28
30
  "build": "npm run build:icons && npm run build:prebuilts && npm run build:docs",
29
31
  "build:icons": "node tasks/build-icons.ts",
30
32
  "build:prebuilts": "node tasks/build-prebuilts.ts",
31
33
  "build:docs": "vite build docs"
32
34
  },
35
+ "dependencies": {
36
+ "@ibm/telemetry-js": "^1.11.0"
37
+ },
33
38
  "peerDependencies": {
34
39
  "@carbon/styles": "^1.102.0"
35
40
  },
package/telemetry.yml ADDED
@@ -0,0 +1,10 @@
1
+ # yaml-language-server: $schema=https://unpkg.com/@ibm/telemetry-config-schema@v1/dist/config.schema.json
2
+ version: 1
3
+ projectId: 6b86ee3b-7e36-4879-bc96-a15f0f0b0a25
4
+ endpoint: https://www-api.ibm.com/ibm-telemetry/v1/metrics
5
+ collect:
6
+ npm:
7
+ dependencies: null
8
+ js:
9
+ functions: {}
10
+ tokens: null