@thangdevalone/meet-layout-grid-vue 1.0.3 → 1.0.4
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 +6 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# @meet-layout-grid
|
|
1
|
+
# @thangdevalone/meet-layout-grid-vue
|
|
2
2
|
|
|
3
3
|
Vue 3 integration for meet-layout-grid with Motion animations.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @meet-layout-grid
|
|
8
|
+
npm install @thangdevalone/meet-layout-grid-vue
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
12
12
|
|
|
13
13
|
```vue
|
|
14
14
|
<script setup>
|
|
15
|
-
import { GridContainer, GridItem } from '@meet-layout-grid
|
|
15
|
+
import { GridContainer, GridItem } from '@thangdevalone/meet-layout-grid-vue'
|
|
16
16
|
import { ref } from 'vue'
|
|
17
17
|
|
|
18
18
|
const participants = ref([
|
|
@@ -81,7 +81,7 @@ Animated grid item with motion-v animations.
|
|
|
81
81
|
### `useGridDimensions(ref)`
|
|
82
82
|
|
|
83
83
|
```ts
|
|
84
|
-
import { useGridDimensions } from '@meet-layout-grid
|
|
84
|
+
import { useGridDimensions } from '@thangdevalone/meet-layout-grid-vue'
|
|
85
85
|
import { ref } from 'vue'
|
|
86
86
|
|
|
87
87
|
const containerRef = ref<HTMLElement | null>(null)
|
|
@@ -92,7 +92,7 @@ const dimensions = useGridDimensions(containerRef)
|
|
|
92
92
|
### `useMeetGrid(options)`
|
|
93
93
|
|
|
94
94
|
```ts
|
|
95
|
-
import { useMeetGrid } from '@meet-layout-grid
|
|
95
|
+
import { useMeetGrid } from '@thangdevalone/meet-layout-grid-vue'
|
|
96
96
|
import { computed } from 'vue'
|
|
97
97
|
|
|
98
98
|
const options = computed(() => ({
|
|
@@ -109,7 +109,7 @@ const grid = useMeetGrid(options)
|
|
|
109
109
|
### `useGridItemPosition(grid, index)`
|
|
110
110
|
|
|
111
111
|
```ts
|
|
112
|
-
import { useGridItemPosition } from '@meet-layout-grid
|
|
112
|
+
import { useGridItemPosition } from '@thangdevalone/meet-layout-grid-vue'
|
|
113
113
|
|
|
114
114
|
const { position, dimensions, isMain, isHidden } = useGridItemPosition(grid, 0)
|
|
115
115
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thangdevalone/meet-layout-grid-vue",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Vue 3 integration for meet-layout-grid with Motion animations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@vueuse/core": "^10.7.0",
|
|
45
45
|
"motion-v": "^1.0.0",
|
|
46
|
-
"@thangdevalone/meet-layout-grid-core": "1.0.
|
|
46
|
+
"@thangdevalone/meet-layout-grid-core": "1.0.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"vue": "^3.4.0",
|