glimpse-sdk 0.1.1 → 0.3.0

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/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { Applet, RenderResult } from "./app.js";
1
+ export { Applet } from "./app.js";
2
2
  export {
3
3
  type CallbackEvent,
4
4
  type ChangeEvent,
@@ -11,47 +11,54 @@ export {
11
11
  parseCallbackEvent,
12
12
  parseInitEvent,
13
13
  } from "./events.js";
14
- export { Icon, MenuItem, StatusItem } from "./protocol.js";
14
+ export { Icon, StatusItem } from "./protocol.js";
15
15
  export {
16
- ActionMenu,
17
- ActionMenuItem,
18
- ActionRow,
16
+ ActionItem,
19
17
  type Align,
20
18
  Badge,
21
19
  Box,
22
20
  Button,
21
+ type ButtonVariant,
23
22
  Card,
24
23
  Checkbox,
25
- Collapsible,
26
- CollapsibleItem,
27
24
  Column,
25
+ type ContentFit,
28
26
  Copyable,
29
- DetailGrid,
30
- DetailGridItem,
31
- Dropdown,
32
- DropdownItem,
33
27
  EmptyState,
28
+ Expander,
34
29
  Grid,
35
30
  GridChild,
36
- Header,
37
31
  Hero,
38
- IconWidget,
39
32
  Image,
40
33
  Item,
41
34
  Label,
35
+ LevelBar,
36
+ type LevelBarMode,
37
+ LinkButton,
38
+ ListBox,
39
+ MenuButton,
42
40
  Meter,
41
+ Overlay,
43
42
  type Orientation,
43
+ type PagerAppearance,
44
+ PagerItem,
45
+ PagerStrip,
46
+ Picture,
44
47
  Progress,
48
+ type Properties,
49
+ PropertyList,
45
50
  Row,
46
- Scale,
47
51
  Scroll,
48
52
  Section,
53
+ Select,
54
+ SelectOption,
49
55
  Separator,
56
+ Slider,
50
57
  Spinner,
51
58
  StatusDot,
52
59
  Switch,
53
- Toast,
54
- ToastAction,
60
+ ToggleButton,
61
+ TreeExpander,
55
62
  type TreeNode,
56
63
  type Variant,
57
64
  } from "./widgets.js";
package/src/protocol.ts CHANGED
@@ -46,28 +46,3 @@ export class StatusItem {
46
46
  return payload;
47
47
  }
48
48
  }
49
-
50
- export class MenuItem {
51
- constructor(
52
- public readonly options: {
53
- id: string;
54
- label: string;
55
- visible?: boolean;
56
- enabled?: boolean;
57
- },
58
- ) {}
59
-
60
- toProtocol(): Record<string, unknown> {
61
- const payload: Record<string, unknown> = {
62
- id: this.options.id,
63
- label: this.options.label,
64
- };
65
- if (this.options.visible !== undefined) {
66
- payload.visible = this.options.visible;
67
- }
68
- if (this.options.enabled !== undefined) {
69
- payload.enabled = this.options.enabled;
70
- }
71
- return payload;
72
- }
73
- }