Sign In

@aspicio/react

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aspicio/react - npm Package Compare versions

Comparing version
0.12.0
to
0.13.0
+3
-1
dist/index.d.mts

@@ -1,2 +0,2 @@

import { AspicioTheme, aspicioTokens } from "@aspicio/elements";
import { AspicioTheme, AspicioThemeMode, aspicioTokens } from "@aspicio/elements";
import * as React from "react";

@@ -75,2 +75,4 @@ import { CSSProperties, ReactElement } from "react";

theme?: AspicioTheme;
/** Which palette the theme uses. Defaults to dark (REACT-11). */
themeMode?: AspicioThemeMode;
}

@@ -77,0 +79,0 @@ /**

@@ -56,3 +56,3 @@ import { AspicioEmbed as AspicioEmbed$1, AspicioLayerPanel as AspicioLayerPanel$1, AspicioPreview as AspicioPreview$1, aspicioTokens } from "@aspicio/elements";

*/
const AspicioEmbed = forwardRef(function AspicioEmbed({ panel = "left", panelClassName: _panelClassName, panelStyle, theme = "aspicio", src, srcUrl, options, className, style, onLoaded, onError, onViewer, onHoverLayer, showDownload = true, shortcuts = false }, ref) {
const AspicioEmbed = forwardRef(function AspicioEmbed({ panel = "left", panelClassName: _panelClassName, panelStyle, theme = "aspicio", themeMode = "dark", src, srcUrl, options, className, style, onLoaded, onError, onViewer, onHoverLayer, showDownload = true, shortcuts = false }, ref) {
const [viewer, setViewer] = useState(null);

@@ -96,2 +96,3 @@ useImperativeHandle(ref, () => viewer, [viewer]);

theme,
"theme-mode": themeMode,
panelStyle: panelStyleCssom,

@@ -98,0 +99,0 @@ noDownload: !showDownload,

{
"name": "@aspicio/react",
"version": "0.12.0",
"version": "0.13.0",
"description": "React bindings for the Aspicio DXF and PDF viewer.",

@@ -38,4 +38,4 @@ "homepage": "https://github.com/frontsail-ai/aspicio/tree/master/packages/react#readme",

"dependencies": {
"@aspicio/core": "^0.12.0",
"@aspicio/elements": "^0.12.0",
"@aspicio/core": "^0.13.0",
"@aspicio/elements": "^0.13.0",
"@lit/react": "^1.0.8"

@@ -45,8 +45,8 @@ },

"@testing-library/react": "^16.3.0",
"@types/react": "^19.1.0",
"@types/react-dom": "^19.1.0",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.4",
"@typescript/native-preview": "^7.0.0-dev.20260707.2",
"happy-dom": "^20.0.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"happy-dom": "^20.11.2",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"typescript": "^7.0.2",

@@ -53,0 +53,0 @@ "vite-plus": "0.2.4"