@nuxtjs/prismic 3.3.0 → 3.3.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/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/90726dd4-ebfb-46c1-9125-67d088c2862d.json +1 -0
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/package.json +1 -1
- package/src/module.ts +2 -2
- package/dist/client/_nuxt/builds/meta/b4ff1650-3078-42bf-9480-8e22df1ac51e.json +0 -1
package/dist/client/200.html
CHANGED
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
<link rel="prefetch" as="script" crossorigin href="/__prismic-client/_nuxt/CpxYXSTt.js">
|
|
12
12
|
<script type="module" src="/__prismic-client/_nuxt/DCUMl-h9.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
|
|
13
13
|
</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4,"once":5},{},false,{},{},["Set"]]</script>
|
|
14
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__prismic-client",buildId:"
|
|
14
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__prismic-client",buildId:"90726dd4-ebfb-46c1-9125-67d088c2862d",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
<link rel="prefetch" as="script" crossorigin href="/__prismic-client/_nuxt/CpxYXSTt.js">
|
|
12
12
|
<script type="module" src="/__prismic-client/_nuxt/DCUMl-h9.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
|
|
13
13
|
</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4,"once":5},{},false,{},{},["Set"]]</script>
|
|
14
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__prismic-client",buildId:"
|
|
14
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__prismic-client",buildId:"90726dd4-ebfb-46c1-9125-67d088c2862d",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"90726dd4-ebfb-46c1-9125-67d088c2862d","timestamp":1718375458202}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"90726dd4-ebfb-46c1-9125-67d088c2862d","timestamp":1718375458202,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
package/dist/client/index.html
CHANGED
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
<link rel="prefetch" as="script" crossorigin href="/__prismic-client/_nuxt/CpxYXSTt.js">
|
|
12
12
|
<script type="module" src="/__prismic-client/_nuxt/DCUMl-h9.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
|
|
13
13
|
</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4,"once":5},{},false,{},{},["Set"]]</script>
|
|
14
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__prismic-client",buildId:"
|
|
14
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__prismic-client",buildId:"90726dd4-ebfb-46c1-9125-67d088c2862d",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -252,9 +252,9 @@ const module = defineNuxtModule({
|
|
|
252
252
|
try {
|
|
253
253
|
if (existsSync(configPath)) {
|
|
254
254
|
const config = JSON.parse(await readFile(configPath, "utf-8"));
|
|
255
|
-
if (config && "
|
|
255
|
+
if (config && "libraries" in config && Array.isArray(config.libraries)) {
|
|
256
256
|
configs.push(JSON.stringify({
|
|
257
|
-
files: config.
|
|
257
|
+
files: config.libraries.map((library) => `${library.replace("./", "")}/**/index.vue`),
|
|
258
258
|
rules: {
|
|
259
259
|
"vue/multi-word-component-names": "off"
|
|
260
260
|
}
|
package/package.json
CHANGED
package/src/module.ts
CHANGED
|
@@ -211,9 +211,9 @@ export default defineNuxtModule<PrismicModuleOptions>({
|
|
|
211
211
|
if (existsSync(configPath)) {
|
|
212
212
|
const config = JSON.parse(await readFile(configPath, 'utf-8'))
|
|
213
213
|
|
|
214
|
-
if (config && '
|
|
214
|
+
if (config && 'libraries' in config && Array.isArray(config.libraries)) {
|
|
215
215
|
configs.push(JSON.stringify({
|
|
216
|
-
files: config.
|
|
216
|
+
files: config.libraries.map((library: string) => `${library.replace('./', '')}/**/index.vue`),
|
|
217
217
|
rules: {
|
|
218
218
|
'vue/multi-word-component-names': 'off',
|
|
219
219
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"b4ff1650-3078-42bf-9480-8e22df1ac51e","timestamp":1718288290899,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|