@use-kona/editor 0.1.0-rc.2 → 0.1.0-rc.4

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.
@@ -1,2 +1 @@
1
- import '../../css.d.ts';
2
1
  export declare const ExampleEditor: () => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import "../../css.d.ts";
3
2
  import { DndProvider } from "react-dnd";
4
3
  import { HTML5Backend } from "react-dnd-html5-backend";
5
4
  import { KonaEditor } from "../editor.js";
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@use-kona/editor",
3
- "version": "0.1.0-rc.2",
3
+ "version": "0.1.0-rc.4",
4
4
  "type": "module",
5
5
  "exports": {
6
- ".": "./src/index.ts"
6
+ ".": "./src/index.ts",
7
+ "./css.d.ts": "./css.d.ts"
7
8
  },
8
9
  "main": "./dist/editor.js",
9
10
  "types": "./dist/index.d.ts",
package/src/css.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ /**
2
+ * TypeScript declaration for CSS modules
3
+ * Allows TypeScript to understand imports of CSS module files
4
+ */
5
+
6
+ declare module '*.module.css' {
7
+ const classes: { [key: string]: string };
8
+ export default classes;
9
+ }
10
+
11
+ declare module '*.css' {
12
+ const css: { [key: string]: string };
13
+ export default css;
14
+ }
@@ -1,4 +1,3 @@
1
- import '../../css.d.ts';
2
1
  import { DndProvider } from 'react-dnd';
3
2
  import { HTML5Backend } from 'react-dnd-html5-backend';
4
3
  import type { CustomElement } from '../../types';