frame.image 1.5.0 → 1.6.0

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.
Binary file
@@ -0,0 +1,3 @@
1
+ declare const _default: string;
2
+ export default _default;
3
+ export declare const rodenstockLogoPath: string;
package/assets/logo.js ADDED
@@ -0,0 +1,5 @@
1
+ // Direct export of the GIF file path for other packages
2
+ export default './R-Logo-schwarzaufweissq.gif';
3
+
4
+ // Named export for convenience
5
+ export const rodenstockLogoPath = './R-Logo-schwarzaufweissq.gif';
@@ -1 +1 @@
1
- {"version":3,"file":"ScaleInput.d.ts","sourceRoot":"","sources":["../src/ScaleInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,wBAAgB,UAAU,CAAC,KAAK,EAAE;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC5D,2CA+CA"}
1
+ {"version":3,"file":"ScaleInput.d.ts","sourceRoot":"","sources":["../src/ScaleInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,wBAAgB,UAAU,CAAC,KAAK,EAAE;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC5D,2CA8CA"}
@@ -20,5 +20,5 @@ export function ScaleInput(props) {
20
20
  borderRadius: '4px',
21
21
  fontSize: '14px',
22
22
  boxSizing: 'border-box',
23
- }, placeholder: `Enter scale ${props.title.toLowerCase()} (e.g., 1.5)`, autoFocus: true, disabled: props.disabled ?? false })] }));
23
+ }, placeholder: `Enter scale ${props.title.toLowerCase()} (e.g., 1.5)`, disabled: props.disabled ?? false })] }));
24
24
  }
package/package.json CHANGED
@@ -1,13 +1,24 @@
1
1
  {
2
2
  "name": "frame.image",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "A React component for drawing a frame on a canvas element.",
5
5
  "license": "MIT",
6
6
  "author": "Christian.Todd@rodenstock.com",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
9
+ "types": "dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/index.js",
13
+ "types": "./dist/index.d.ts"
14
+ },
15
+ "./assets/R-Logo-schwarzaufweissq.gif": "./assets/R-Logo-schwarzaufweissq.gif",
16
+ "./assets/*": "./assets/*",
17
+ "./logo": "./assets/R-Logo-schwarzaufweissq.gif"
18
+ },
9
19
  "files": [
10
20
  "dist/",
21
+ "assets/",
11
22
  "README.md"
12
23
  ],
13
24
  "scripts": {
@@ -19,31 +30,36 @@
19
30
  "lint": "eslint .",
20
31
  "preview": "vite preview"
21
32
  },
33
+ "peerDependencies": {
34
+ "react": ">=18.0.0",
35
+ "react-dom": ">=18.0.0",
36
+ "@mui/material": ">=7.0.0"
37
+ },
22
38
  "dependencies": {
23
39
  "@emotion/react": "^11.14.0",
24
40
  "@emotion/styled": "^11.14.1",
25
- "@mui/material": "^7.3.5",
26
41
  "frame.akima": "^2.0.1",
27
42
  "frame.nidek": "^1.1.4",
28
43
  "frame.statemachine": "^1.1.4",
29
- "react": "^18.3.1",
30
- "react-dom": "^18.3.1",
31
44
  "react-error-boundary": "^6.0.0",
32
- "react-robot": "^1.2.0",
33
- "vitest": "^4.0.14"
45
+ "react-robot": "^1.2.1"
34
46
  },
35
47
  "devDependencies": {
36
48
  "@eslint/js": "^9.39.1",
49
+ "@mui/material": "^7.3.6",
37
50
  "@types/react": "^18.0.0",
38
51
  "@types/react-dom": "^18.0.0",
39
- "@vitejs/plugin-react": "^5.1.1",
52
+ "@vitejs/plugin-react": "^5.1.2",
40
53
  "eslint": "^9.39.1",
41
54
  "eslint-plugin-react-hooks": "^7.0.1",
42
55
  "eslint-plugin-react-refresh": "^0.4.24",
43
56
  "globals": "^16.5.0",
44
- "typedoc": "^0.28.14",
57
+ "react": "^18.3.1",
58
+ "react-dom": "^18.3.1",
59
+ "typedoc": "^0.28.15",
45
60
  "typescript": "~5.9.3",
46
- "typescript-eslint": "^8.48.0",
47
- "vite": "^7.2.4"
61
+ "typescript-eslint": "^8.49.0",
62
+ "vite": "^7.2.7",
63
+ "vitest": "^4.0.15"
48
64
  }
49
65
  }