@eupoiese/excali-glass 1.0.0 → 1.0.1
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/dist/index.js +1 -0
- package/dist/index.mjs +4 -2
- package/package.json +3 -3
- package/dist/src/index.d.ts +0 -10
- package/dist/src/index.d.ts.map +0 -1
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
// src/index.tsx
|
|
2
|
-
import { Excalidraw
|
|
4
|
+
import { Excalidraw } from "@excalidraw/excalidraw";
|
|
3
5
|
import "@excalidraw/excalidraw/index.css";
|
|
4
6
|
|
|
5
7
|
// #style-inject:#style-inject
|
|
@@ -34,7 +36,7 @@ var ExcaliGlass = ({
|
|
|
34
36
|
customClassName = "",
|
|
35
37
|
...props
|
|
36
38
|
}) => {
|
|
37
|
-
return /* @__PURE__ */ jsx("div", { className: `excaliglass-wrapper ${customClassName}`, children: /* @__PURE__ */ jsx(
|
|
39
|
+
return /* @__PURE__ */ jsx("div", { className: `excaliglass-wrapper ${customClassName}`, children: /* @__PURE__ */ jsx(Excalidraw, { ...props }) });
|
|
38
40
|
};
|
|
39
41
|
var index_default = ExcaliGlass;
|
|
40
42
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eupoiese/excali-glass",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "CSS to make excalidraw glassier",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "tsup
|
|
12
|
+
"build": "tsup && tsc --emitDeclarationOnly --outDir dist",
|
|
13
13
|
"prepublishOnly": "npm run build",
|
|
14
14
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
15
15
|
},
|
|
@@ -29,4 +29,4 @@
|
|
|
29
29
|
"tsup": "^8.5.1",
|
|
30
30
|
"typescript": "^7.0.2"
|
|
31
31
|
}
|
|
32
|
-
}
|
|
32
|
+
}
|
package/dist/src/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ExcalidrawProps } from "@excalidraw/excalidraw/types";
|
|
3
|
-
import "@excalidraw/excalidraw/index.css";
|
|
4
|
-
import "./styles/custom-ui.css";
|
|
5
|
-
export interface ExcaliGlassProps extends ExcalidrawProps {
|
|
6
|
-
customClassName?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const ExcaliGlass: React.FC<ExcaliGlassProps>;
|
|
9
|
-
export default ExcaliGlass;
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAG/D,OAAO,kCAAkC,CAAC;AAC1C,OAAO,wBAAwB,CAAC;AAGhC,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACrD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CASlD,CAAC;eAEa,WAAW"}
|