@stoplight/elements 9.0.22 → 9.0.24

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.
Files changed (2) hide show
  1. package/README.md +24 -0
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -12,8 +12,32 @@ Visit our **[Documentation](https://meta.stoplight.io/docs/elements)** for getti
12
12
 
13
13
  Elements is developed and maintained by [Stoplight](https://stoplight.io).
14
14
 
15
+ ## Anonymized analytics
16
+
17
+ Elements uses [Scarf](https://scarf.sh/) to
18
+ collect [anonymized installation analytics](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-what-information-does-scarf-js-send-about-me).
19
+ These analytics help support the maintainers of this library and ONLY run during installation.
20
+ To [opt out](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-how-can-i-opt-out-of-analytics),
21
+ you can set the `scarfSettings.enabled` field to `false` in your project's `package.json`:
22
+
23
+ ```
24
+ // package.json
25
+ {
26
+ // ...
27
+ "scarfSettings": {
28
+ "enabled": false
29
+ }
30
+ // ...
31
+ }
32
+ ```
33
+
34
+ Alternatively, you can set the environment variable `SCARF_ANALYTICS` to `false` as part of the environment that
35
+ installs your npm packages, e.g., `SCARF_ANALYTICS=false npm install`.
36
+
15
37
  ## License
16
38
 
17
39
  Licensed under the Apache 2.0 License, Copyright © 2020-present Stoplight.
18
40
 
19
41
  See [LICENSE](LICENSE) for more information.
42
+
43
+ <img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=b694b779-b187-40da-90ff-362f918454f5&page=README.md" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoplight/elements",
3
- "version": "9.0.22",
3
+ "version": "9.0.24",
4
4
  "description": "UI components for composing beautiful developer documentation.",
5
5
  "keywords": [],
6
6
  "main": "./index.js",
@@ -26,7 +26,8 @@
26
26
  "react-dom": ">=16.8"
27
27
  },
28
28
  "dependencies": {
29
- "@stoplight/elements-core": "~9.0.22",
29
+ "@scarf/scarf": "^1.4.0",
30
+ "@stoplight/elements-core": "~9.0.24",
30
31
  "@stoplight/http-spec": "^7.1.0",
31
32
  "@stoplight/json": "^3.18.1",
32
33
  "@stoplight/mosaic": "^1.53.5",