@obvia/fonts 0.0.8 → 0.1.1
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 +4 -4
- package/dist/nuxt.js +6 -1
- package/dist/vue.d.ts +2 -2
- package/dist/vue.js +1 -1
- package/package.json +1 -1
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { fonts } from "./vue"
|
|
2
2
|
|
|
3
|
-
declare module "
|
|
3
|
+
declare module "#app" {
|
|
4
4
|
interface NuxtApp {
|
|
5
|
-
$fonts:
|
|
5
|
+
$fonts: typeof fonts
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
declare module "vue" {
|
|
10
10
|
interface ComponentCustomProperties {
|
|
11
|
-
$fonts:
|
|
11
|
+
$fonts: typeof fonts
|
|
12
12
|
}
|
|
13
13
|
}
|
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.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { fonts } from "./vue"
|
|
2
2
|
|
|
3
3
|
declare module "@vue/runtime-core" {
|
|
4
4
|
interface ComponentCustomProperties {
|
|
@@ -28,6 +28,6 @@ declare module "@vue/runtime-core" {
|
|
|
28
28
|
* </template>
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
|
-
$fonts:
|
|
31
|
+
$fonts: typeof fonts
|
|
32
32
|
}
|
|
33
33
|
}
|
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.
|
|
8
|
+
"version" : "0.1.1",
|
|
9
9
|
|
|
10
10
|
"author" : {
|
|
11
11
|
"name" : "Selçuk Çukur",
|