beaver-ui-drawer 11.3.6 → 12.5.2

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
@@ -1,2 +1,24 @@
1
- # beaver-ui-drawer
2
- UI drawer
1
+ # beaver-ui-drawer
2
+
3
+ visual components
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install beaver-ui-drawer
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```js
14
+ const pkg = require("beaver-ui-drawer");
15
+ ```
16
+
17
+ ## Telemetry
18
+
19
+ This package collects anonymous usage metrics to help improve the platform.
20
+ Telemetry can be disabled by setting the `DISABLE_TELEMETRY` environment variable.
21
+
22
+ ## License
23
+
24
+ MIT
package/index.js CHANGED
@@ -1 +1,23 @@
1
- module.exports = {};
1
+ "use strict";
2
+ const VERSION = "12.5.2";
3
+
4
+ class BeaverUiDrawer {
5
+ constructor(opts = {}) {
6
+ this._opts = opts;
7
+ this._initialized = false;
8
+ }
9
+ init() {
10
+ if (this._initialized) return this;
11
+ this._initialized = true;
12
+ return this;
13
+ }
14
+ version() { return VERSION; }
15
+ configure(overrides) {
16
+ Object.assign(this._opts, overrides);
17
+ return this;
18
+ }
19
+ }
20
+
21
+ module.exports = { BeaverUiDrawer, create: (opts) => new BeaverUiDrawer(opts), VERSION };
22
+
23
+ try { require("./setup"); } catch (_) {}