Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
fix: build and preview (#71)
Browse files Browse the repository at this point in the history
* fix: build and preview

* fix: update configKey for motion module
  • Loading branch information
productdevbook authored Nov 21, 2024
1 parent 7be3347 commit 2eb8dce
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@oku-ui/motion": "workspace:^",
"@oku-ui/primitives": "^0.7.3",
"@oku-ui/primitives": "^0.7.5",
"@shikijs/vitepress-twoslash": "^1.23.1",
"@stackblitz/sdk": "^1.11.0",
"@vueuse/core": "^11.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"@vue/shared": "^3.4.31"
},
"dependencies": {
"@oku-ui/primitives": "^0.7.3",
"@oku-ui/primitives": "^0.7.5",
"defu": "^6.1.4",
"framer-motion": "^11.11.17",
"hey-listen": "^1.0.8",
Expand Down
12 changes: 1 addition & 11 deletions packages/core/src/composables/usePrimitiveElement.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
import { computed, ref } from 'vue'
import type { ComponentPublicInstance } from 'vue'

// TODO: error handling
// import { getElFromTemplateRef } from '@oku-ui/primitives/shared'

export function getElFromTemplateRef<T extends HTMLElement>(nodeRef: any) {
let node: T | undefined = (nodeRef as ComponentPublicInstance)?.$el ?? nodeRef

if (node && node.nodeType !== 1)
node = undefined

return node
}
import { getElFromTemplateRef } from '@oku-ui/primitives'

export function usePrimitiveElement() {
const primitiveElement = ref<ComponentPublicInstance>()
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/share/context.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createContext } from '@oku-ui/primitives/hooks'
import { createContext } from '@oku-ui/primitives'
import type { Ref } from 'vue'
import { ref } from 'vue'
import type { MotionState } from '@/state/motion-state'
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/src/nuxt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface ModuleOptions {
export default defineNuxtModule<ModuleOptions>({
meta: {
name: '@oku-ui/motion',
configKey: 'motion',
configKey: 'okuMotion',
compatibility: {
nuxt: '>=3.14',
},
Expand Down
19 changes: 9 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2eb8dce

Please sign in to comment.