Skip to content

Commit

Permalink
force merge declarations, release 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
smastrom committed Jul 11, 2023
1 parent c6bafd0 commit 4f849b4
Show file tree
Hide file tree
Showing 20 changed files with 128 additions and 294 deletions.
1 change: 0 additions & 1 deletion demo/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default defineConfig({
'@/core': resolve(__dirname, '../packages/notivue/core'),
'@/Notivue': resolve(__dirname, '../packages/notivue/Notivue'),
'@/Notifications': resolve(__dirname, '../packages/notivue/Notifications'),
'@/types': resolve(__dirname, '../packages/notivue/types.ts'),
},
},
plugins: [vue()],
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.4",
"version": "1.0.5",
"private": true,
"packageManager": "pnpm@8.6.3",
"engines": {
Expand All @@ -24,7 +24,7 @@
"pretty-quick": "^3.1.3",
"rimraf": "^4.4.1",
"typescript": "^4.9.5",
"vite": "^4.4.1",
"vite": "^4.4.3",
"vue": "^3.3.4",
"vue-tsc": "^1.8.4"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/Notifications/Notifications.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Classes as Cx } from './constants'
import { filledIcons } from './icons'
import { lightTheme } from './themes'
import type { NotivueIcons, NotivueSlot, NotivueTheme } from '@/types'
import type { NotivueIcons, NotivueSlot, NotivueTheme } from 'notivue'
const props = withDefaults(
defineProps<{
Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/Notifications/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import InfoOutlineIcon from './InfoOutlineIcon.vue'
import PromiseIcon from './PromiseIcon.vue'
import CloseIcon from './CloseIcon.vue'

import type { NotivueIcons } from '@/types'
import type { NotivueIcons } from 'notivue'

export const svgProps: SVGAttributes = {
xmlns: 'http://www.w3.org/2000/svg',
Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/Notifications/themes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { NotivueTheme } from '@/types'
import type { NotivueTheme } from 'notivue'

const layout: NotivueTheme = {
'--nv-width': '350px',
Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/Notivue/Notivue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { useRepositioning } from './composables/useRepositioning'
import { useVisibilityChange } from './composables/useVisibilityChange'
import { getSlotContext } from './utils'
import { NotivueSlot } from '@/types'
import { NotivueSlot } from 'notivue'
defineProps<{
class?: string
Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/Notivue/composables/useNotivueStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { computed, type CSSProperties } from 'vue'
import { useNotivue } from '@/core/useStore'
import { useReducedMotion } from './useReducedMotion'

import type { NotivueElements } from '@/types'
import type { NotivueElements } from 'notivue'

/**
* The follwing styles are not defined in a CSS file because
Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/Notivue/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { StoreItem, NotivueSlot, HiddenInternalItemData } from '@/types'
import type { StoreItem, NotivueSlot, HiddenInternalItemData } from 'notivue'

export const hiddenInternalKeys: (keyof HiddenInternalItemData)[] = [
'timeoutId',
Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/core/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { toShallowRefs, mergeDeep } from './utils'

import { CLASS_PREFIX as CX } from './constants'

import type { NotivueConfigRequired, NotivueConfig } from '@/types'
import type { NotivueConfigRequired, NotivueConfig } from 'notivue'

export const defaultConfig: NotivueConfigRequired = {
pauseOnHover: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/core/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NotificationType as NTypeU } from '@/types'
import { NotificationType as NTypeU } from 'notivue'

export const FIXED_TIMEOUT_INCREMENT = 1200

Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/core/createPush.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NotificationTypeKeys as NKeys } from './constants'
import { createStore } from './createStore'

import type { NotificationType, Push, PushOptions } from '@/types'
import type { NotificationType, Push, PushOptions } from 'notivue'

export function createPush(items: ReturnType<typeof createStore>['items']): Push {
let createCount = 0
Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/core/createStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import type {
NotivueConfig,
UserPushOptionsWithInternals,
Obj,
} from '@/types'
} from 'notivue'

export const storeInjectionKey = Symbol('') as InjectionKey<ReturnType<typeof createStore>>

Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/core/notivue.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createStore, storeInjectionKey } from './createStore'

import type { App, Plugin } from 'vue'
import type { NotivueConfig } from '@/types'
import type { NotivueConfig } from 'notivue'

export const notivue = {
install(app: App, config: NotivueConfig = {}) {
Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/core/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {
NotificationOptions,
UserPushOptionsWithInternals,
NotificationOptionsField,
} from '@/types'
} from 'notivue'

export const success: NotificationOptions = {
title: '',
Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/core/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { shallowRef, type Ref } from 'vue'

import type { DeepPartial } from '@/types'
import type { DeepPartial } from 'notivue'

export const isSSR = typeof window === 'undefined'

Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ export {
} from '@/Notifications/themes'
export { filledIcons, outlinedIcons } from '@/Notifications/icons'

export * from '@/types'
export * from './types'
8 changes: 5 additions & 3 deletions packages/notivue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "notivue",
"version": "1.0.4",
"version": "1.0.5",
"private": false,
"description": "Fully-featured toast notification system for Vue and Nuxt.",
"keywords": [
Expand Down Expand Up @@ -45,8 +45,10 @@
"dev": "pnpm --C \"../../demo\" run dev",
"preinstall": "npx only-allow pnpm",
"prebuild": "cp ../../README.md .",
"build": "rimraf dist && vue-tsc && vite build && pnpm run build:css",
"build": "rimraf dist && vue-tsc && vite build && pnpm run build:css && pnpm run build:types",
"build:css": "esbuild ./Notifications/notifications.css ./core/animations.css --bundle --outdir=dist --minify --target=chrome58,edge16,firefox57,node12,safari11 --log-level=error",
"build:types": "cat dist/types.d.ts >> dist/index.d.ts",
"postbuild": "pnpm pack",
"test": "cypress run --component --browser chrome",
"test:gui": "cypress open --component --browser chrome"
},
Expand All @@ -63,7 +65,7 @@
"rimraf": "^4.4.1",
"typescript": "^4.9.5",
"vite": "^4.4.1",
"vite-plugin-dts": "^2.3.0",
"vite-plugin-dts": "^3.2.0",
"vue": "^3.3.4",
"vue-tsc": "^1.8.4"
}
Expand Down
1 change: 1 addition & 0 deletions packages/notivue/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"lib": ["ESNext", "DOM"],
"skipLibCheck": true,
"noEmit": true,
"rootDir": ".",
"baseUrl": ".",
"paths": {
"@/core/*": ["core/*"],
Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default defineConfig({
resolve: {
alias: {
'@/core': resolve(__dirname, './core'),
'@/types': resolve(__dirname, './types.ts'),
'@/Notivue': resolve(__dirname, './Notivue'),
'@/Notifications': resolve(__dirname, './Notifications'),
notivue: resolve(__dirname, './index.ts'),
Expand Down Expand Up @@ -40,5 +39,6 @@ export default defineConfig({
],
},
},
// @ts-ignore
plugins: [dts({ staticImport: true, insertTypesEntry: true }), vue()],
})
Loading

0 comments on commit 4f849b4

Please sign in to comment.