@roots/bud-client 2023.3.14 → 2023.3.15

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 (30) hide show
  1. package/lib/hot/client.d.ts.map +1 -1
  2. package/lib/hot/client.js +0 -8
  3. package/lib/hot/components/indicator/indicator.component.d.ts +0 -15
  4. package/lib/hot/components/indicator/indicator.component.d.ts.map +1 -1
  5. package/lib/hot/components/indicator/indicator.component.js +0 -13
  6. package/lib/hot/components/indicator/indicator.controller.d.ts +0 -10
  7. package/lib/hot/components/indicator/indicator.controller.d.ts.map +1 -1
  8. package/lib/hot/components/indicator/indicator.controller.js +0 -8
  9. package/lib/hot/components/indicator/indicator.pulse.d.ts +0 -1
  10. package/lib/hot/components/indicator/indicator.pulse.d.ts.map +1 -1
  11. package/lib/hot/components/indicator/indicator.pulse.js +0 -1
  12. package/lib/hot/components/overlay/overlay.component.d.ts +0 -2
  13. package/lib/hot/components/overlay/overlay.component.d.ts.map +1 -1
  14. package/lib/hot/components/overlay/overlay.controller.d.ts +0 -12
  15. package/lib/hot/components/overlay/overlay.controller.d.ts.map +1 -1
  16. package/lib/hot/components/overlay/overlay.controller.js +0 -10
  17. package/lib/hot/events.d.ts.map +1 -1
  18. package/lib/hot/events.js +0 -2
  19. package/lib/hot/options.d.ts +0 -3
  20. package/lib/hot/options.d.ts.map +1 -1
  21. package/lib/hot/options.js +0 -3
  22. package/package.json +2 -2
  23. package/src/hot/client.ts +0 -8
  24. package/src/hot/components/indicator/indicator.component.ts +0 -15
  25. package/src/hot/components/indicator/indicator.controller.ts +0 -10
  26. package/src/hot/components/indicator/indicator.pulse.ts +0 -1
  27. package/src/hot/components/overlay/overlay.component.ts +0 -2
  28. package/src/hot/components/overlay/overlay.controller.ts +0 -12
  29. package/src/hot/events.ts +0 -2
  30. package/src/hot/options.ts +0 -3
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/hot/client.ts"],"names":[],"mappings":";AASA;;GAEG;AACH,eAAO,MAAM,MAAM,gBACJ,MAAM,cACP,mBAAmB,GAAG,qBA6InC,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/hot/client.ts"],"names":[],"mappings":";AASA;;GAEG;AACH,eAAO,MAAM,MAAM,gBACJ,MAAM,cACP,mBAAmB,GAAG,qBAqInC,CAAA"}
package/lib/hot/client.js CHANGED
@@ -50,8 +50,6 @@ export const client = (queryString, webpackHot) => __awaiter(void 0, void 0, voi
50
50
  };
51
51
  /**
52
52
  * Webpack HMR check handler
53
- *
54
- * @internal
55
53
  */
56
54
  const check = () => __awaiter(void 0, void 0, void 0, function* () {
57
55
  if (webpackHot.status() === `idle`) {
@@ -70,8 +68,6 @@ export const client = (queryString, webpackHot) => __awaiter(void 0, void 0, voi
70
68
  });
71
69
  /**
72
70
  * Webpack HMR unaccepted module handler
73
- *
74
- * @internal
75
71
  */
76
72
  const onUnacceptedOrDeclined = (info) => {
77
73
  console.warn(`[${options.name}] ${info.type}`, info);
@@ -79,8 +75,6 @@ export const client = (queryString, webpackHot) => __awaiter(void 0, void 0, voi
79
75
  };
80
76
  /**
81
77
  * Webpack HMR error handler
82
- *
83
- * @internal
84
78
  */
85
79
  const onErrored = (error) => {
86
80
  window.bud.controllers.map(controller => controller === null || controller === void 0 ? void 0 : controller.update({
@@ -89,8 +83,6 @@ export const client = (queryString, webpackHot) => __awaiter(void 0, void 0, voi
89
83
  };
90
84
  /**
91
85
  * Webpack HMR update handler
92
- *
93
- * @internal
94
86
  */
95
87
  const update = () => __awaiter(void 0, void 0, void 0, function* () {
96
88
  try {
@@ -1,57 +1,46 @@
1
1
  /// <reference types="node" />
2
2
  /**
3
3
  * Indicator web component
4
- * @public
5
4
  */
6
5
  export declare class Component extends HTMLElement {
7
6
  /**
8
7
  * Has component rendered
9
- * @public
10
8
  */
11
9
  rendered: boolean;
12
10
  /**
13
11
  * Component name
14
- * @public
15
12
  */
16
13
  name: string;
17
14
  /**
18
15
  * Root div querySelector selector
19
- * @public
20
16
  */
21
17
  get selector(): string;
22
18
  /**
23
19
  * Timer
24
- * @public
25
20
  */
26
21
  hideTimeout: NodeJS.Timer;
27
22
  /**
28
23
  * Get accessor: has errors
29
- * @public
30
24
  */
31
25
  get hasErrors(): boolean;
32
26
  /**
33
27
  * Get accessor: has warnings
34
- * @public
35
28
  */
36
29
  get hasWarnings(): boolean;
37
30
  /**
38
31
  * Status indicator colors
39
- * @public
40
32
  */
41
33
  colors: Record<string, [number, number, number, number]>;
42
34
  /**
43
35
  * Class constructor
44
- * @public
45
36
  */
46
37
  constructor();
47
38
  /**
48
39
  * Render status indicator
49
- * @public
50
40
  */
51
41
  renderShadow(): void;
52
42
  /**
53
43
  * Show status indicator
54
- * @public
55
44
  */
56
45
  show(): void;
57
46
  /**
@@ -60,22 +49,18 @@ export declare class Component extends HTMLElement {
60
49
  hide(): void;
61
50
  /**
62
51
  * Status is pending
63
- * @public
64
52
  */
65
53
  onPending(): void;
66
54
  /**
67
55
  * Status is success
68
- * @public
69
56
  */
70
57
  onSuccess(): void;
71
58
  /**
72
59
  * Status is error
73
- * @public
74
60
  */
75
61
  onError(): void;
76
62
  /**
77
63
  * Status is warning
78
- * @public
79
64
  */
80
65
  onWarning(): void;
81
66
  static get observedAttributes(): string[];
@@ -1 +1 @@
1
- {"version":3,"file":"indicator.component.d.ts","sourceRoot":"","sources":["../../../../src/hot/components/indicator/indicator.component.ts"],"names":[],"mappings":";AAEA;;;GAGG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;OAGG;IACI,QAAQ,EAAE,OAAO,CAAA;IAExB;;;OAGG;IACI,IAAI,EAAE,MAAM,CAA2B;IAE9C;;;OAGG;IACH,IAAW,QAAQ,WAElB;IAED;;;OAGG;IACI,WAAW,EAAE,MAAM,CAAC,KAAK,CAAA;IAEhC;;;OAGG;IACH,IAAW,SAAS,IAAI,OAAO,CAE9B;IAED;;;OAGG;IACH,IAAW,WAAW,IAAI,OAAO,CAEhC;IAED;;;OAGG;IACI,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAK9D;IAED;;;OAGG;;IAMH;;;OAGG;IACI,YAAY;IA4CnB;;;OAGG;IACI,IAAI;IAKX;;OAEG;IACI,IAAI;IAMX;;;OAGG;IACI,SAAS;IAYhB;;;OAGG;IACI,SAAS;IAYhB;;;OAGG;IACI,OAAO;IASd;;;OAGG;IACI,SAAS;IAUhB,WAAkB,kBAAkB,aAEnC;IAEM,wBAAwB;CAiBhC"}
1
+ {"version":3,"file":"indicator.component.d.ts","sourceRoot":"","sources":["../../../../src/hot/components/indicator/indicator.component.ts"],"names":[],"mappings":";AAEA;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACI,QAAQ,EAAE,OAAO,CAAA;IAExB;;OAEG;IACI,IAAI,EAAE,MAAM,CAA2B;IAE9C;;OAEG;IACH,IAAW,QAAQ,WAElB;IAED;;OAEG;IACI,WAAW,EAAE,MAAM,CAAC,KAAK,CAAA;IAEhC;;OAEG;IACH,IAAW,SAAS,IAAI,OAAO,CAE9B;IAED;;OAEG;IACH,IAAW,WAAW,IAAI,OAAO,CAEhC;IAED;;OAEG;IACI,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAK9D;IAED;;OAEG;;IAMH;;OAEG;IACI,YAAY;IA4CnB;;OAEG;IACI,IAAI;IAKX;;OAEG;IACI,IAAI;IAMX;;OAEG;IACI,SAAS;IAYhB;;OAEG;IACI,SAAS;IAYhB;;OAEG;IACI,OAAO;IASd;;OAEG;IACI,SAAS;IAUhB,WAAkB,kBAAkB,aAEnC;IAEM,wBAAwB;CAiBhC"}
@@ -1,44 +1,37 @@
1
1
  import { pulse } from './indicator.pulse.js';
2
2
  /**
3
3
  * Indicator web component
4
- * @public
5
4
  */
6
5
  export class Component extends HTMLElement {
7
6
  /**
8
7
  * Root div querySelector selector
9
- * @public
10
8
  */
11
9
  get selector() {
12
10
  return `.${this.name}`;
13
11
  }
14
12
  /**
15
13
  * Get accessor: has errors
16
- * @public
17
14
  */
18
15
  get hasErrors() {
19
16
  return this.getAttribute(`has-errors`) == `true`;
20
17
  }
21
18
  /**
22
19
  * Get accessor: has warnings
23
- * @public
24
20
  */
25
21
  get hasWarnings() {
26
22
  return this.getAttribute(`has-warnings`) == `true`;
27
23
  }
28
24
  /**
29
25
  * Class constructor
30
- * @public
31
26
  */
32
27
  constructor() {
33
28
  super();
34
29
  /**
35
30
  * Component name
36
- * @public
37
31
  */
38
32
  this.name = `bud-activity-indicator`;
39
33
  /**
40
34
  * Status indicator colors
41
- * @public
42
35
  */
43
36
  this.colors = {
44
37
  success: [4, 120, 87, 1],
@@ -50,7 +43,6 @@ export class Component extends HTMLElement {
50
43
  }
51
44
  /**
52
45
  * Render status indicator
53
- * @public
54
46
  */
55
47
  renderShadow() {
56
48
  const container = document.createElement(`div`);
@@ -96,7 +88,6 @@ export class Component extends HTMLElement {
96
88
  }
97
89
  /**
98
90
  * Show status indicator
99
- * @public
100
91
  */
101
92
  show() {
102
93
  this.hideTimeout && clearTimeout(this.hideTimeout);
@@ -112,7 +103,6 @@ export class Component extends HTMLElement {
112
103
  }
113
104
  /**
114
105
  * Status is pending
115
- * @public
116
106
  */
117
107
  onPending() {
118
108
  this.show();
@@ -124,7 +114,6 @@ export class Component extends HTMLElement {
124
114
  }
125
115
  /**
126
116
  * Status is success
127
- * @public
128
117
  */
129
118
  onSuccess() {
130
119
  this.show();
@@ -136,7 +125,6 @@ export class Component extends HTMLElement {
136
125
  }
137
126
  /**
138
127
  * Status is error
139
- * @public
140
128
  */
141
129
  onError() {
142
130
  this.show();
@@ -147,7 +135,6 @@ export class Component extends HTMLElement {
147
135
  }
148
136
  /**
149
137
  * Status is warning
150
- * @public
151
138
  */
152
139
  onWarning() {
153
140
  this.show();
@@ -1,44 +1,34 @@
1
1
  /// <reference types="node" />
2
2
  /**
3
3
  * Activity indicator controller
4
- * @public
5
4
  */
6
5
  export declare class Controller {
7
6
  /**
8
7
  * DOM node
9
- * @public
10
8
  */
11
9
  node: HTMLElement;
12
10
  /**
13
11
  * Active WHM payload
14
- * @public
15
12
  */
16
13
  payload: any;
17
14
  /**
18
15
  * Timer handler
19
- * @public
20
16
  */
21
17
  timer: NodeJS.Timeout;
22
18
  /**
23
19
  * Initialization
24
- * @public
25
20
  */
26
21
  constructor();
27
22
  /**
28
23
  * Append `bud-error` element to the DOM
29
- *
30
- * @public
31
24
  */
32
25
  addNode(): void;
33
26
  /**
34
27
  * Remove `bud-error` element from the DOM (if present)
35
- *
36
- * @public
37
28
  */
38
29
  removeNode(): void;
39
30
  /**
40
31
  * Update activity indicator
41
- * @public
42
32
  */
43
33
  update(payload: Payload): void;
44
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"indicator.controller.d.ts","sourceRoot":"","sources":["../../../../src/hot/components/indicator/indicator.controller.ts"],"names":[],"mappings":";AAAA;;;GAGG;AACH,qBAAa,UAAU;IACrB;;;OAGG;IACI,IAAI,EAAE,WAAW,CAAA;IAExB;;;OAGG;IACI,OAAO,MAAO;IAErB;;;OAGG;IACI,KAAK,EAAE,MAAM,CAAC,OAAO,CAAA;IAE5B;;;OAGG;;IAMH;;;;OAIG;IACI,OAAO;IAUd;;;;OAIG;IACI,UAAU;IAIjB;;;OAGG;IACI,MAAM,CAAC,OAAO,EAAE,OAAO;CAe/B"}
1
+ {"version":3,"file":"indicator.controller.d.ts","sourceRoot":"","sources":["../../../../src/hot/components/indicator/indicator.controller.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,qBAAa,UAAU;IACrB;;OAEG;IACI,IAAI,EAAE,WAAW,CAAA;IAExB;;OAEG;IACI,OAAO,MAAO;IAErB;;OAEG;IACI,KAAK,EAAE,MAAM,CAAC,OAAO,CAAA;IAE5B;;OAEG;;IAMH;;OAEG;IACI,OAAO;IAUd;;OAEG;IACI,UAAU;IAIjB;;OAEG;IACI,MAAM,CAAC,OAAO,EAAE,OAAO;CAe/B"}
@@ -1,16 +1,13 @@
1
1
  /**
2
2
  * Activity indicator controller
3
- * @public
4
3
  */
5
4
  export class Controller {
6
5
  /**
7
6
  * Initialization
8
- * @public
9
7
  */
10
8
  constructor() {
11
9
  /**
12
10
  * Active WHM payload
13
- * @public
14
11
  */
15
12
  this.payload = null;
16
13
  this.node = document.createElement(`bud-activity-indicator`);
@@ -18,8 +15,6 @@ export class Controller {
18
15
  }
19
16
  /**
20
17
  * Append `bud-error` element to the DOM
21
- *
22
- * @public
23
18
  */
24
19
  addNode() {
25
20
  var _a;
@@ -33,8 +28,6 @@ export class Controller {
33
28
  }
34
29
  /**
35
30
  * Remove `bud-error` element from the DOM (if present)
36
- *
37
- * @public
38
31
  */
39
32
  removeNode() {
40
33
  var _a;
@@ -42,7 +35,6 @@ export class Controller {
42
35
  }
43
36
  /**
44
37
  * Update activity indicator
45
- * @public
46
38
  */
47
39
  update(payload) {
48
40
  var _a, _b;
@@ -3,7 +3,6 @@ export interface pulse {
3
3
  }
4
4
  /**
5
5
  * CSS animation for reload indicator
6
- * @public
7
6
  */
8
7
  export declare const pulse: (name: string, color: [number, number, number, number]) => string;
9
8
  //# sourceMappingURL=indicator.pulse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"indicator.pulse.d.ts","sourceRoot":"","sources":["../../../../src/hot/components/indicator/indicator.pulse.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAA;CACxD;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,SACV,MAAM,SACL,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,KACtC,MA+BF,CAAA"}
1
+ {"version":3,"file":"indicator.pulse.d.ts","sourceRoot":"","sources":["../../../../src/hot/components/indicator/indicator.pulse.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAA;CACxD;AAED;;GAEG;AACH,eAAO,MAAM,KAAK,SACV,MAAM,SACL,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,KACtC,MA+BF,CAAA"}
@@ -1,6 +1,5 @@
1
1
  /**
2
2
  * CSS animation for reload indicator
3
- * @public
4
3
  */
5
4
  export const pulse = (name, color) => `
6
5
  .${name} {
@@ -5,8 +5,6 @@ export declare class Component extends HTMLElement {
5
5
  name: string;
6
6
  /**
7
7
  * WHM payload
8
- *
9
- * @public
10
8
  */
11
9
  payload: any;
12
10
  documentBodyStyle: any;
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.component.d.ts","sourceRoot":"","sources":["../../../../src/hot/components/overlay/overlay.component.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACjC,IAAI,EAAE,MAAM,CAAgB;IAEnC;;;;OAIG;IACI,OAAO,EAAE,GAAG,CAAA;IAEZ,iBAAiB,EAAE,GAAG,CAAA;IAE7B,IAAW,OAAO,WAEjB;;IAOM,YAAY,IAAI,IAAI;IA+G3B,WAAkB,kBAAkB,aAEnC;IAEM,wBAAwB;IAsBxB,iBAAiB;CAGzB"}
1
+ {"version":3,"file":"overlay.component.d.ts","sourceRoot":"","sources":["../../../../src/hot/components/overlay/overlay.component.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACjC,IAAI,EAAE,MAAM,CAAgB;IAEnC;;OAEG;IACI,OAAO,EAAE,GAAG,CAAA;IAEZ,iBAAiB,EAAE,GAAG,CAAA;IAE7B,IAAW,OAAO,WAEjB;;IAOM,YAAY,IAAI,IAAI;IA+G3B,WAAkB,kBAAkB,aAEnC;IAEM,wBAAwB;IAsBxB,iBAAiB;CAGzB"}
@@ -1,45 +1,33 @@
1
1
  /**
2
2
  * Overlay controller
3
- * @public
4
3
  */
5
4
  export declare class Controller {
6
5
  /**
7
6
  * Element
8
- * @public
9
7
  */
10
8
  element: HTMLElement;
11
9
  /**
12
10
  * HMR update
13
- * @public
14
11
  */
15
12
  payload: Payload;
16
13
  /**
17
14
  * Formatted error message
18
- * @public
19
15
  */
20
16
  get message(): string;
21
17
  /**
22
18
  * Class constructor
23
- *
24
- * @public
25
19
  */
26
20
  constructor();
27
21
  /**
28
22
  * Append `bud-error` element to the DOM
29
- *
30
- * @public
31
23
  */
32
24
  createError(): void;
33
25
  /**
34
26
  * Remove `bud-error` element from the DOM (if present)
35
- *
36
- * @public
37
27
  */
38
28
  removeError(): void;
39
29
  /**
40
30
  * Update DOM
41
- *
42
- * @public
43
31
  */
44
32
  update(payload: Payload): void;
45
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.controller.d.ts","sourceRoot":"","sources":["../../../../src/hot/components/overlay/overlay.controller.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,qBAAa,UAAU;IACrB;;;OAGG;IACI,OAAO,EAAE,WAAW,CAAA;IAE3B;;;OAGG;IACI,OAAO,EAAE,OAAO,CAAA;IAEvB;;;OAGG;IACH,IAAW,OAAO,IAAI,MAAM,CAS3B;IAED;;;;OAIG;;IAMH;;;;OAIG;IACI,WAAW;IAKlB;;;;OAIG;IACI,WAAW;IAIlB;;;;OAIG;IACI,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;CAWtC"}
1
+ {"version":3,"file":"overlay.controller.d.ts","sourceRoot":"","sources":["../../../../src/hot/components/overlay/overlay.controller.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,qBAAa,UAAU;IACrB;;OAEG;IACI,OAAO,EAAE,WAAW,CAAA;IAE3B;;OAEG;IACI,OAAO,EAAE,OAAO,CAAA;IAEvB;;OAEG;IACH,IAAW,OAAO,IAAI,MAAM,CAS3B;IAED;;OAEG;;IAMH;;OAEG;IACI,WAAW;IAKlB;;OAEG;IACI,WAAW;IAIlB;;OAEG;IACI,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;CAWtC"}
@@ -5,12 +5,10 @@ const ansiPattern = [
5
5
  const stripAnsi = (body) => { var _a, _b; return (_b = (_a = body === null || body === void 0 ? void 0 : body.replace) === null || _a === void 0 ? void 0 : _a.call(body, new RegExp(ansiPattern, `g`), ``)) !== null && _b !== void 0 ? _b : body; };
6
6
  /**
7
7
  * Overlay controller
8
- * @public
9
8
  */
10
9
  export class Controller {
11
10
  /**
12
11
  * Formatted error message
13
- * @public
14
12
  */
15
13
  get message() {
16
14
  var _a;
@@ -27,8 +25,6 @@ export class Controller {
27
25
  }
28
26
  /**
29
27
  * Class constructor
30
- *
31
- * @public
32
28
  */
33
29
  constructor() {
34
30
  this.update = this.update.bind(this);
@@ -36,8 +32,6 @@ export class Controller {
36
32
  }
37
33
  /**
38
34
  * Append `bud-error` element to the DOM
39
- *
40
- * @public
41
35
  */
42
36
  createError() {
43
37
  var _a;
@@ -46,8 +40,6 @@ export class Controller {
46
40
  }
47
41
  /**
48
42
  * Remove `bud-error` element from the DOM (if present)
49
- *
50
- * @public
51
43
  */
52
44
  removeError() {
53
45
  var _a;
@@ -55,8 +47,6 @@ export class Controller {
55
47
  }
56
48
  /**
57
49
  * Update DOM
58
- *
59
- * @public
60
50
  */
61
51
  update(payload) {
62
52
  var _a, _b;
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/hot/events.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,2BACC,MAAM,KAAK,WAAW;kBA4B1B,QAAQ,OAAO,CAAC,GAAG;QAAC,MAAM,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC;QAhBjE;;;;WAIG;mBACe,IAAI,QAAQ,CAAC;iBAWb,QAAQ,OAAO,CAAC,GAAG;YAAC,MAAM,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAC;QAyBjE;;;WAGG;;QAGH;;;WAGG;6BACkD,YAAY;QAiBjE;;;WAGG;8BAC0B,QAAQ,GAAG,IAAI;;;;;;;;;;;;;;;;;IA/C5C;;;;OAIG;kBAEQ,QAAQ,OAAO,CAAC,GAAG;QAAC,MAAM,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC;QA/B1D;;;;WAIG;mBACe,IAAI,QAAQ,CAAC;iBAWb,QAAQ,OAAO,CAAC,GAAG;YAAC,MAAM,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAC;QAyBjE;;;WAGG;;QAGH;;;WAGG;6BACkD,YAAY;QAiBjE;;;WAGG;8BAC0B,QAAQ,GAAG,IAAI;;;;;;;;;;;;;;;;;CAK/C,CAAA"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/hot/events.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,2BACC,MAAM,KAAK,WAAW;kBA0B1B,QAAQ,OAAO,CAAC,GAAG;QAAC,MAAM,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC;QAhBjE;;;;WAIG;mBACe,IAAI,QAAQ,CAAC;iBAWb,QAAQ,OAAO,CAAC,GAAG;YAAC,MAAM,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAC;QAyBjE;;;WAGG;;QAGH;;;WAGG;6BACkD,YAAY;QAiBjE;;;WAGG;8BAC0B,QAAQ,GAAG,IAAI;;;;;;;;;;;;;;;;;IA/C5C;;;;OAIG;kBAEQ,QAAQ,OAAO,CAAC,GAAG;QAAC,MAAM,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC;QA/B1D;;;;WAIG;mBACe,IAAI,QAAQ,CAAC;iBAWb,QAAQ,OAAO,CAAC,GAAG;YAAC,MAAM,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAC;QAyBjE;;;WAGG;;QAGH;;;WAGG;6BACkD,YAAY;QAiBjE;;;WAGG;8BAC0B,QAAQ,GAAG,IAAI;;;;;;;;;;;;;;;;;CAK/C,CAAA"}
package/lib/hot/events.js CHANGED
@@ -15,8 +15,6 @@ export const injectEvents = (eventSource) => {
15
15
  * @remarks
16
16
  * wraps EventSource in a function to allow for
17
17
  * mocking in tests
18
- *
19
- * @public
20
18
  */
21
19
  return class Events extends eventSource {
22
20
  /**
@@ -1,16 +1,13 @@
1
1
  /**
2
2
  * Client options
3
- * @public
4
3
  */
5
4
  declare let data: Options;
6
5
  /**
7
6
  * Get client option
8
- * @public
9
7
  */
10
8
  declare const get: (name?: string, key?: string) => any;
11
9
  /**
12
10
  * Set client data based on URL parameters
13
- * @public
14
11
  */
15
12
  declare const setFromParameters: (query: string) => Options;
16
13
  export { data, get, setFromParameters };
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/hot/options.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,QAAA,IAAI,IAAI,EAAE,OAST,CAAA;AAED;;;GAGG;AACH,QAAA,MAAM,GAAG,UAAW,MAAM,QAAQ,MAAM,QACJ,CAAA;AAEpC;;;GAGG;AACH,QAAA,MAAM,iBAAiB,UAAW,MAAM,KAAG,OAW1C,CAAA;AAED,OAAO,EAAC,IAAI,EAAE,GAAG,EAAE,iBAAiB,EAAC,CAAA"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/hot/options.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,QAAA,IAAI,IAAI,EAAE,OAST,CAAA;AAED;;GAEG;AACH,QAAA,MAAM,GAAG,UAAW,MAAM,QAAQ,MAAM,QACJ,CAAA;AAEpC;;GAEG;AACH,QAAA,MAAM,iBAAiB,UAAW,MAAM,KAAG,OAW1C,CAAA;AAED,OAAO,EAAC,IAAI,EAAE,GAAG,EAAE,iBAAiB,EAAC,CAAA"}
@@ -1,6 +1,5 @@
1
1
  /**
2
2
  * Client options
3
- * @public
4
3
  */
5
4
  let data = {
6
5
  timeout: 2000,
@@ -14,12 +13,10 @@ let data = {
14
13
  };
15
14
  /**
16
15
  * Get client option
17
- * @public
18
16
  */
19
17
  const get = (name, key) => key ? data[name][key] : data[name];
20
18
  /**
21
19
  * Set client data based on URL parameters
22
- * @public
23
20
  */
24
21
  const setFromParameters = (query) => {
25
22
  let parsedParams = {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@roots/bud-client",
3
3
  "description": "Client scripts for @roots/bud",
4
- "version": "2023.3.14",
4
+ "version": "2023.3.15",
5
5
  "homepage": "https://roots.io/bud",
6
6
  "repository": {
7
7
  "type": "git",
@@ -56,7 +56,7 @@
56
56
  }
57
57
  },
58
58
  "devDependencies": {
59
- "@roots/bud": "2023.3.14",
59
+ "@roots/bud": "2023.3.15",
60
60
  "@skypack/package-check": "0.2.2",
61
61
  "@types/node": "18.11.18",
62
62
  "@types/webpack-env": "1.18.0"
package/src/hot/client.ts CHANGED
@@ -54,8 +54,6 @@ export const client = async (
54
54
 
55
55
  /**
56
56
  * Webpack HMR check handler
57
- *
58
- * @internal
59
57
  */
60
58
  const check = async () => {
61
59
  if (webpackHot.status() === `idle`) {
@@ -73,8 +71,6 @@ export const client = async (
73
71
 
74
72
  /**
75
73
  * Webpack HMR unaccepted module handler
76
- *
77
- * @internal
78
74
  */
79
75
  const onUnacceptedOrDeclined = (
80
76
  info: __WebpackModuleApi.HotNotifierInfo,
@@ -85,8 +81,6 @@ export const client = async (
85
81
 
86
82
  /**
87
83
  * Webpack HMR error handler
88
- *
89
- * @internal
90
84
  */
91
85
  const onErrored = (error: any) => {
92
86
  window.bud.controllers.map(controller =>
@@ -98,8 +92,6 @@ export const client = async (
98
92
 
99
93
  /**
100
94
  * Webpack HMR update handler
101
- *
102
- * @internal
103
95
  */
104
96
  const update = async () => {
105
97
  try {
@@ -2,24 +2,20 @@ import {pulse} from './indicator.pulse.js'
2
2
 
3
3
  /**
4
4
  * Indicator web component
5
- * @public
6
5
  */
7
6
  export class Component extends HTMLElement {
8
7
  /**
9
8
  * Has component rendered
10
- * @public
11
9
  */
12
10
  public rendered: boolean
13
11
 
14
12
  /**
15
13
  * Component name
16
- * @public
17
14
  */
18
15
  public name: string = `bud-activity-indicator`
19
16
 
20
17
  /**
21
18
  * Root div querySelector selector
22
- * @public
23
19
  */
24
20
  public get selector() {
25
21
  return `.${this.name}`
@@ -27,13 +23,11 @@ export class Component extends HTMLElement {
27
23
 
28
24
  /**
29
25
  * Timer
30
- * @public
31
26
  */
32
27
  public hideTimeout: NodeJS.Timer
33
28
 
34
29
  /**
35
30
  * Get accessor: has errors
36
- * @public
37
31
  */
38
32
  public get hasErrors(): boolean {
39
33
  return this.getAttribute(`has-errors`) == `true`
@@ -41,7 +35,6 @@ export class Component extends HTMLElement {
41
35
 
42
36
  /**
43
37
  * Get accessor: has warnings
44
- * @public
45
38
  */
46
39
  public get hasWarnings(): boolean {
47
40
  return this.getAttribute(`has-warnings`) == `true`
@@ -49,7 +42,6 @@ export class Component extends HTMLElement {
49
42
 
50
43
  /**
51
44
  * Status indicator colors
52
- * @public
53
45
  */
54
46
  public colors: Record<string, [number, number, number, number]> = {
55
47
  success: [4, 120, 87, 1],
@@ -60,7 +52,6 @@ export class Component extends HTMLElement {
60
52
 
61
53
  /**
62
54
  * Class constructor
63
- * @public
64
55
  */
65
56
  public constructor() {
66
57
  super()
@@ -69,7 +60,6 @@ export class Component extends HTMLElement {
69
60
 
70
61
  /**
71
62
  * Render status indicator
72
- * @public
73
63
  */
74
64
  public renderShadow() {
75
65
  const container = document.createElement(`div`)
@@ -117,7 +107,6 @@ export class Component extends HTMLElement {
117
107
 
118
108
  /**
119
109
  * Show status indicator
120
- * @public
121
110
  */
122
111
  public show() {
123
112
  this.hideTimeout && clearTimeout(this.hideTimeout)
@@ -135,7 +124,6 @@ export class Component extends HTMLElement {
135
124
 
136
125
  /**
137
126
  * Status is pending
138
- * @public
139
127
  */
140
128
  public onPending() {
141
129
  this.show()
@@ -151,7 +139,6 @@ export class Component extends HTMLElement {
151
139
 
152
140
  /**
153
141
  * Status is success
154
- * @public
155
142
  */
156
143
  public onSuccess() {
157
144
  this.show()
@@ -167,7 +154,6 @@ export class Component extends HTMLElement {
167
154
 
168
155
  /**
169
156
  * Status is error
170
- * @public
171
157
  */
172
158
  public onError() {
173
159
  this.show()
@@ -180,7 +166,6 @@ export class Component extends HTMLElement {
180
166
 
181
167
  /**
182
168
  * Status is warning
183
- * @public
184
169
  */
185
170
  public onWarning() {
186
171
  this.show()
@@ -1,29 +1,24 @@
1
1
  /**
2
2
  * Activity indicator controller
3
- * @public
4
3
  */
5
4
  export class Controller {
6
5
  /**
7
6
  * DOM node
8
- * @public
9
7
  */
10
8
  public node: HTMLElement
11
9
 
12
10
  /**
13
11
  * Active WHM payload
14
- * @public
15
12
  */
16
13
  public payload = null
17
14
 
18
15
  /**
19
16
  * Timer handler
20
- * @public
21
17
  */
22
18
  public timer: NodeJS.Timeout
23
19
 
24
20
  /**
25
21
  * Initialization
26
- * @public
27
22
  */
28
23
  public constructor() {
29
24
  this.node = document.createElement(`bud-activity-indicator`)
@@ -32,8 +27,6 @@ export class Controller {
32
27
 
33
28
  /**
34
29
  * Append `bud-error` element to the DOM
35
- *
36
- * @public
37
30
  */
38
31
  public addNode() {
39
32
  if (document.body.querySelector(`bud-activity-indicator`)) {
@@ -47,8 +40,6 @@ export class Controller {
47
40
 
48
41
  /**
49
42
  * Remove `bud-error` element from the DOM (if present)
50
- *
51
- * @public
52
43
  */
53
44
  public removeNode() {
54
45
  document.body.querySelector(`bud-activity-indicator`)?.remove()
@@ -56,7 +47,6 @@ export class Controller {
56
47
 
57
48
  /**
58
49
  * Update activity indicator
59
- * @public
60
50
  */
61
51
  public update(payload: Payload) {
62
52
  this.node.toggleAttribute(
@@ -4,7 +4,6 @@ export interface pulse {
4
4
 
5
5
  /**
6
6
  * CSS animation for reload indicator
7
- * @public
8
7
  */
9
8
  export const pulse = (
10
9
  name: string,
@@ -6,8 +6,6 @@ export class Component extends HTMLElement {
6
6
 
7
7
  /**
8
8
  * WHM payload
9
- *
10
- * @public
11
9
  */
12
10
  public payload: any
13
11
 
@@ -8,24 +8,20 @@ const stripAnsi = (body: string) =>
8
8
 
9
9
  /**
10
10
  * Overlay controller
11
- * @public
12
11
  */
13
12
  export class Controller {
14
13
  /**
15
14
  * Element
16
- * @public
17
15
  */
18
16
  public element: HTMLElement
19
17
 
20
18
  /**
21
19
  * HMR update
22
- * @public
23
20
  */
24
21
  public payload: Payload
25
22
 
26
23
  /**
27
24
  * Formatted error message
28
- * @public
29
25
  */
30
26
  public get message(): string {
31
27
  return this.payload.errors?.reduce((a, c) => {
@@ -40,8 +36,6 @@ export class Controller {
40
36
 
41
37
  /**
42
38
  * Class constructor
43
- *
44
- * @public
45
39
  */
46
40
  public constructor() {
47
41
  this.update = this.update.bind(this)
@@ -50,8 +44,6 @@ export class Controller {
50
44
 
51
45
  /**
52
46
  * Append `bud-error` element to the DOM
53
- *
54
- * @public
55
47
  */
56
48
  public createError() {
57
49
  !document.body.querySelector(`bud-error`) &&
@@ -60,8 +52,6 @@ export class Controller {
60
52
 
61
53
  /**
62
54
  * Remove `bud-error` element from the DOM (if present)
63
- *
64
- * @public
65
55
  */
66
56
  public removeError() {
67
57
  document.body.querySelector(`bud-error`)?.remove()
@@ -69,8 +59,6 @@ export class Controller {
69
59
 
70
60
  /**
71
61
  * Update DOM
72
- *
73
- * @public
74
62
  */
75
63
  public update(payload: Payload): void {
76
64
  this.payload = payload
package/src/hot/events.ts CHANGED
@@ -9,8 +9,6 @@ export const injectEvents = (
9
9
  * @remarks
10
10
  * wraps EventSource in a function to allow for
11
11
  * mocking in tests
12
- *
13
- * @public
14
12
  */
15
13
  return class Events extends eventSource {
16
14
  /**
@@ -1,6 +1,5 @@
1
1
  /**
2
2
  * Client options
3
- * @public
4
3
  */
5
4
  let data: Options = {
6
5
  timeout: 2000,
@@ -15,14 +14,12 @@ let data: Options = {
15
14
 
16
15
  /**
17
16
  * Get client option
18
- * @public
19
17
  */
20
18
  const get = (name?: string, key?: string) =>
21
19
  key ? data[name][key] : data[name]
22
20
 
23
21
  /**
24
22
  * Set client data based on URL parameters
25
- * @public
26
23
  */
27
24
  const setFromParameters = (query: string): Options => {
28
25
  let parsedParams: Partial<Options> = {}