@obvia/fonts 0.0.7 → 0.1.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/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +6 -1
- package/dist/vue.js +1 -1
- package/package.json +2 -2
package/dist/nuxt.d.ts
CHANGED
package/dist/nuxt.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { defineNuxtPlugin } from "nuxt/app";
|
|
2
2
|
import { fonts } from "./vue";
|
|
3
|
-
import "
|
|
3
|
+
import "../fonts/fonts.css";
|
|
4
4
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
5
|
+
// Provide fonts via Nuxt injection system
|
|
6
|
+
// Accessible with: const nuxtApp = useNuxtApp(); nuxtApp.$fonts
|
|
5
7
|
nuxtApp.provide("fonts", fonts);
|
|
8
|
+
// Add fonts to Vue global properties
|
|
9
|
+
// Accessible directly in templates with: $fonts
|
|
10
|
+
nuxtApp.vueApp.config.globalProperties.$fonts = fonts;
|
|
6
11
|
});
|
package/dist/vue.js
CHANGED
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"keywords" : ["obvia","obvia mono","obvia sans","obvia pixel","typeface","fonts","obvia fonts","webfont","open-type","true-type","typography"],
|
|
6
6
|
"license" : "SIL OPEN FONT LICENSE",
|
|
7
7
|
"homepage" : "https://obvia.studio/fonts",
|
|
8
|
-
"version" : "0.0
|
|
8
|
+
"version" : "0.1.0",
|
|
9
9
|
|
|
10
10
|
"author" : {
|
|
11
11
|
"name" : "Selçuk Çukur",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"peerDependencies" : {
|
|
34
34
|
"react" : ">=18.0.0",
|
|
35
35
|
"vue" : ">=3.0.0",
|
|
36
|
-
"nuxt" : ">=
|
|
36
|
+
"nuxt" : ">=4.0.0",
|
|
37
37
|
"next" : ">=13.2.0"
|
|
38
38
|
},
|
|
39
39
|
|