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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vista-core-js",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
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
 
@@ -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;
@@ -1,5 +1,5 @@
1
1
 
2
- import { ImageConfig } from './image-config';
2
+ import { ImageConfig } from './image-config.js';
3
3
 
4
4
  export type ImageLoaderProps = {
5
5
  src: string;
@@ -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.tsx'); // Resolves to src/client.tsx
6
+ const clientPath = path.resolve(__dirname, './client.js'); // Resolves to dist/client.js
7
7
 
8
8
  export interface VistaPluginOptions {
9
9
  logo?: string;