@monkeyplus/flow 6.0.100 → 6.0.102

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkeyplus/flow",
3
- "version": "6.0.100",
3
+ "version": "6.0.102",
4
4
  "description": "@monkeyplus/flow package-first runtime with Vite, Nitro, Vue and a workspace playground.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -108,7 +108,17 @@ async function renderBody(page) {
108
108
  params: page.params,
109
109
  path: page.pathname
110
110
  };
111
- const imageUtils = getFlowImageRuntimeUtils();
111
+ let nitroImagesConfig;
112
+ try {
113
+ const pkg = "#internal/nitro";
114
+ const nitro = await import(
115
+ /* @vite-ignore */
116
+ pkg
117
+ );
118
+ nitroImagesConfig = nitro.useRuntimeConfig?.()?.flow?.images;
119
+ } catch (e) {
120
+ }
121
+ const imageUtils = getFlowImageRuntimeUtils(nitroImagesConfig);
112
122
  const utils = {
113
123
  getLocale() {
114
124
  return page.locale;
@@ -1,4 +1,4 @@
1
- import { useRuntimeConfig } from "#imports";
1
+ import { useRuntimeConfig } from "#internal/nitro";
2
2
  export default function(nitroApp) {
3
3
  if (typeof globalThis.useRuntimeConfig !== "function") {
4
4
  globalThis.useRuntimeConfig = useRuntimeConfig;
@@ -149,6 +149,7 @@ export default defineComponent({
149
149
  if (options.value.lazy && !props.sync && !imgAttrs.loading) {
150
150
  imgAttrs.loading = "lazy";
151
151
  }
152
+ console.log("imgAttrs.....", imgAttrs);
152
153
  const children = [];
153
154
  if (fallbackSource) {
154
155
  children.push(h("source", {
Binary file