@refrakt-md/nuxt 0.12.0 → 0.14.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/module.d.ts.map +1 -1
- package/dist/module.js +4 -2
- package/dist/module.js.map +1 -1
- package/package.json +5 -5
package/dist/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";AAOA,wBAuCG"}
|
package/dist/module.js
CHANGED
|
@@ -2,6 +2,7 @@ import { defineNuxtModule } from 'nuxt/kit';
|
|
|
2
2
|
import { resolve } from 'node:path';
|
|
3
3
|
import { CORE_PACKAGES } from '@refrakt-md/transform';
|
|
4
4
|
import { loadRefraktConfig, resolveSite } from '@refrakt-md/transform/node';
|
|
5
|
+
import { getThemePackage } from '@refrakt-md/types';
|
|
5
6
|
export default defineNuxtModule({
|
|
6
7
|
meta: {
|
|
7
8
|
name: '@refrakt-md/nuxt',
|
|
@@ -13,12 +14,13 @@ export default defineNuxtModule({
|
|
|
13
14
|
setup(options, nuxt) {
|
|
14
15
|
const refraktConfig = loadRefraktConfig(options.configPath);
|
|
15
16
|
const { site } = resolveSite(refraktConfig, options.site);
|
|
17
|
+
const themePackage = getThemePackage(site.theme);
|
|
16
18
|
// Add packages to transpile list
|
|
17
19
|
const transpile = [
|
|
18
20
|
...CORE_PACKAGES,
|
|
19
21
|
'@refrakt-md/nuxt',
|
|
20
|
-
|
|
21
|
-
`${
|
|
22
|
+
themePackage,
|
|
23
|
+
`${themePackage}/nuxt`,
|
|
22
24
|
...(site.plugins ?? []),
|
|
23
25
|
];
|
|
24
26
|
nuxt.options.build.transpile.push(...transpile);
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,eAAe,gBAAgB,CAAqB;IACnD,IAAI,EAAE;QACL,IAAI,EAAE,kBAAkB;QACxB,SAAS,EAAE,SAAS;KACpB;IACD,QAAQ,EAAE;QACT,UAAU,EAAE,uBAAuB;KACnC;IACD,KAAK,CAAC,OAA2B,EAAE,IAAS;QAC3C,MAAM,aAAa,GAAG,iBAAiB,CAAC,OAAO,CAAC,UAAW,CAAC,CAAC;QAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,WAAW,CAAC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;QAC1D,MAAM,YAAY,GAAG,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEjD,iCAAiC;QACjC,MAAM,SAAS,GAAG;YACjB,GAAG,aAAa;YAChB,kBAAkB;YAClB,YAAY;YACZ,GAAG,YAAY,OAAO;YACtB,GAAG,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC;SACvB,CAAC;QACF,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;QAEhD,yEAAyE;QACzE,MAAM,mBAAmB,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,eAAe,CAAC;QAC7E,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,eAAe,GAAG,CAAC,GAAW,EAAE,EAAE,CAClE,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAEnF,kCAAkC;QAClC,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAClE,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,EAAE,MAAc,EAAE,YAAoB,EAAE,EAAE;YACzE,IAAI,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBAClC,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;gBAC5D,IAAI,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;oBACpC,MAAM,IAAI,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;gBAC5C,CAAC;YACF,CAAC;QACF,CAAC,CAAC,CAAC;IACJ,CAAC;CACD,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refrakt-md/nuxt",
|
|
3
3
|
"description": "Nuxt module for refrakt.md — render Markdoc runes in Nuxt projects",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.14.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"build": "tsc"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@refrakt-md/behaviors": "0.
|
|
37
|
-
"@refrakt-md/content": "0.
|
|
38
|
-
"@refrakt-md/transform": "0.
|
|
39
|
-
"@refrakt-md/types": "0.
|
|
36
|
+
"@refrakt-md/behaviors": "0.14.1",
|
|
37
|
+
"@refrakt-md/content": "0.14.1",
|
|
38
|
+
"@refrakt-md/transform": "0.14.1",
|
|
39
|
+
"@refrakt-md/types": "0.14.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"nuxt": "^3.0.0",
|