vista-core-js 0.0.3 → 0.0.5
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 +1 -1
- package/src/client.tsx +1 -1
- package/src/entry-server.tsx +1 -1
- package/src/image/get-img-props.ts +2 -2
- package/src/image/image-loader.ts +1 -1
- package/src/image/index.tsx +3 -3
- package/src/plugin.ts +1 -1
package/package.json
CHANGED
package/src/client.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React, { useState, useEffect, ErrorInfo } from 'react';
|
|
3
3
|
import ReactDOM from 'react-dom/client';
|
|
4
4
|
import { RouterProvider, useRouter } from './router.js';
|
|
5
|
-
import { ErrorOverlay } from './ErrorOverlay';
|
|
5
|
+
import { ErrorOverlay } from './ErrorOverlay.js';
|
|
6
6
|
|
|
7
7
|
// --- Error Management ---
|
|
8
8
|
|
package/src/entry-server.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ReactDOMServer, { renderToPipeableStream } from 'react-dom/server';
|
|
3
|
-
import { RouterProvider } from './router';
|
|
3
|
+
import { RouterProvider } from './router.js';
|
|
4
4
|
import App from './app.js';
|
|
5
5
|
import { loadRoute, loadRootLayout } from './router-loader.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { ImageConfigComplete, imageConfigDefault } from './image-config';
|
|
3
|
-
import { ImageLoader } from './image-loader';
|
|
2
|
+
import { ImageConfigComplete, imageConfigDefault } from './image-config.js';
|
|
3
|
+
import { ImageLoader } from './image-loader.js';
|
|
4
4
|
|
|
5
5
|
export type ImageProps = React.ImgHTMLAttributes<HTMLImageElement> & {
|
|
6
6
|
src: string;
|
package/src/image/index.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import { getImgProps, ImageProps } from './get-img-props';
|
|
4
|
-
import { imageConfigDefault } from './image-config';
|
|
5
|
-
import { defaultLoader } from './image-loader';
|
|
3
|
+
import { getImgProps, ImageProps } from './get-img-props.js';
|
|
4
|
+
import { imageConfigDefault } from './image-config.js';
|
|
5
|
+
import { defaultLoader } from './image-loader.js';
|
|
6
6
|
|
|
7
7
|
export const Image = forwardRef<HTMLImageElement, ImageProps>((props, ref) => {
|
|
8
8
|
// In a real implementation, we might consume config from a Context Provider
|
package/src/plugin.ts
CHANGED
|
@@ -3,7 +3,7 @@ import path from 'path';
|
|
|
3
3
|
import { fileURLToPath } from 'url';
|
|
4
4
|
|
|
5
5
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
6
|
-
const clientPath = path.resolve(__dirname, './client.
|
|
6
|
+
const clientPath = path.resolve(__dirname, './client.js'); // Resolves to dist/client.js
|
|
7
7
|
|
|
8
8
|
export interface VistaPluginOptions {
|
|
9
9
|
logo?: string;
|