@inshapardaz/likhari-react 0.1.7 → 0.1.8

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,5 +1,4 @@
1
1
  import { type MantineThemeOverride } from '@mantine/core';
2
- import '@mantine/core/styles.css';
3
2
  import './editor.css';
4
3
  export interface EditorThemeProviderProps {
5
4
  theme?: MantineThemeOverride;
@@ -1 +1 @@
1
- {"version":3,"file":"EditorThemeProvider.d.ts","sourceRoot":"","sources":["../../src/theme/EditorThemeProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,0BAA0B,CAAC;AAIlC,OAAO,cAAc,CAAC;AAsBtB,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC/B;iFAC6E;IAC7E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,EAAE,wBAAwB,+BA+C1H"}
1
+ {"version":3,"file":"EditorThemeProvider.d.ts","sourceRoot":"","sources":["../../src/theme/EditorThemeProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAO3E,OAAO,cAAc,CAAC;AAsBtB,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC/B;iFAC6E;IAC7E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,EAAE,wBAAwB,+BA+C1H"}
@@ -1,7 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from 'react';
3
3
  import { MantineProvider } from '@mantine/core';
4
- import '@mantine/core/styles.css';
4
+ // Mantine is a peer dependency (docs/mantine-headless-theming.md §4 rule 1):
5
+ // the host imports '@mantine/core/styles.css' itself, once, in its own entry
6
+ // point, so it controls load order. This package must not import it itself.
5
7
  import { buildThemeCss } from '@inshapardaz/likhari-core';
6
8
  import { defaultMantineTheme } from './mantineTheme.js';
7
9
  import { generateAccentCssVars, generateAccentShades } from './accentColor.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inshapardaz/likhari-react",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "React implementation of the Likhari editor, built on @lexical/react.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -16,6 +16,7 @@
16
16
  "development": "./src/index.ts",
17
17
  "import": "./dist/index.js"
18
18
  },
19
+ "./styles.css": "./dist/theme/editor.css",
19
20
  "./package.json": "./package.json"
20
21
  },
21
22
  "files": [
@@ -40,13 +41,17 @@
40
41
  "@lexical/utils": "^0.20.0",
41
42
  "@inshapardaz/likhari-converters": "^0.1.0",
42
43
  "@inshapardaz/likhari-core": "^0.1.0",
43
- "@mantine/core": "^9.6.3",
44
- "@mantine/hooks": "^9.6.3",
45
44
  "@tabler/icons-react": "^3.46.0",
46
45
  "lexical": "^0.20.0"
47
46
  },
48
47
  "peerDependencies": {
48
+ "@mantine/core": "^9.6.3",
49
+ "@mantine/hooks": "^9.6.3",
49
50
  "react": "^19.2.0",
50
51
  "react-dom": "^19.2.0"
52
+ },
53
+ "devDependencies": {
54
+ "@mantine/core": "^9.6.3",
55
+ "@mantine/hooks": "^9.6.3"
51
56
  }
52
57
  }