@mtngtools/frame-vue 0.0.8-experimental.0 → 0.0.9-experimental.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/README.md CHANGED
@@ -3,12 +3,23 @@
3
3
  > [!WARNING]
4
4
  > This package is currently **experimental** and in early development. APIs are subject to frequent breaking changes.
5
5
 
6
- Vue.js component and composable library for mtngTOOLS. Built for use in Nuxt apps via a Nuxt module (to be added).
6
+ Vue.js component and composable library for mtngTOOLS. Built for use in Nuxt apps via a Nuxt module.
7
7
 
8
- ## Contents
8
+ ## Components
9
9
 
10
- - **Components** Vue 3 SFCs (Composition API). Sample: `SampleGreeting`.
11
- - **Composables** Shared logic. Sample: `useCounter`.
10
+ | Component | Description |
11
+ | --- | --- |
12
+ | [`LiveFrame`](./src/components/live/LiveFrame) | Full-screen wrapper for live video players with responsive layout support. |
13
+ | [`SidePanelFrame`](./src/components/live/SidePanelFrame) | Wrapper for controlling and displaying side panel content. |
14
+ | [`SidePanelHeader`](./src/components/live/SidePanelHeader) | Standardized header component for the side panel. |
15
+ | [`SidePanelButtonGroup`](./src/components/live/SidePanelButtonGroup) | Control group for managing panel selection buttons. |
16
+ | [`SidePanelControlButton`](./src/components/live/SidePanelControlButton) | Interactive button for switching side panel states. |
17
+
18
+ ## Composables
19
+
20
+ | Composable | Description |
21
+ | --- | --- |
22
+ | [`useSimpleLoggedIn`](./src/composables/useSimpleLoggedIn) | Shared reactive state for basic mobile/web "logged in" status. |
12
23
 
13
24
  ## Usage
14
25
 
@@ -19,11 +30,10 @@ pnpm add @mtngtools/frame-vue vue
19
30
  ```
20
31
 
21
32
  ```ts
22
- import { SampleGreeting, useCounter } from '@mtngtools/frame-vue';
33
+ import { LiveFrame } from '@mtngtools/frame-vue';
34
+ import { useSimpleLoggedIn } from '@mtngtools/frame-vue/composables';
23
35
  ```
24
36
 
25
- In a Nuxt app, a Nuxt module can register these for auto-import (module to be created separately).
26
-
27
37
  ## Requirements
28
38
 
29
39
  - Vue >= 3.5.0
@@ -0,0 +1,2 @@
1
+ export * from './components/index'
2
+ export {}
@@ -0,0 +1,2 @@
1
+ import { a as SidePanelControlButton_default, i as SidePanelButtonGroup_default, n as SidePanelFrame_default, r as SidePanelHeader_default, t as LiveFrame_default } from "./live-C38-eFWG.js";
2
+ export { LiveFrame_default as LiveFrame, SidePanelButtonGroup_default as SidePanelButtonGroup, SidePanelControlButton_default as SidePanelControlButton, SidePanelFrame_default as SidePanelFrame, SidePanelHeader_default as SidePanelHeader };
@@ -0,0 +1,2 @@
1
+ export * from './useSimpleLoggedIn';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './composables/index'
2
+ export {}
@@ -0,0 +1,17 @@
1
+ import { ref } from "vue";
2
+ var loggedIn = ref(!1);
3
+ function useSimpleLoggedIn() {
4
+ return {
5
+ loggedIn,
6
+ setToLoggedIn: () => {
7
+ loggedIn.value = !0;
8
+ },
9
+ setToLoggedOut: () => {
10
+ loggedIn.value = !1;
11
+ },
12
+ toggleLoggedIn: () => {
13
+ loggedIn.value = !loggedIn.value;
14
+ }
15
+ };
16
+ }
17
+ export { useSimpleLoggedIn };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './components';
2
+ export * from './composables';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}