@ixo/editor 3.0.0-beta.4 → 3.0.0-beta.6

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.mjs CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  useCreateCollaborativeIxoEditor,
35
35
  useCreateIxoEditor,
36
36
  validateCapabilityChain
37
- } from "./chunk-36GMPLM6.mjs";
37
+ } from "./chunk-2BRSTS6Q.mjs";
38
38
 
39
39
  // src/index.ts
40
40
  import { cloneDocument } from "@ixo/matrix-crdt";
@@ -42,7 +42,7 @@ import {
42
42
  useNodeRuntime,
43
43
  usePanel,
44
44
  usePanelStore
45
- } from "../chunk-36GMPLM6.mjs";
45
+ } from "../chunk-2BRSTS6Q.mjs";
46
46
  export {
47
47
  ApiRequestBlockSpec,
48
48
  AuthorizationTab,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "3.0.0-beta.4",
3
+ "version": "3.0.0-beta.6",
4
4
  "description": "A custom BlockNote editor wrapper for IXO team",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
package/style-core.css CHANGED
@@ -45,7 +45,7 @@
45
45
  --bn-colors-tooltip-background: #f0f0f0;
46
46
  --bn-colors-tooltip-text: #1a1a1a;
47
47
  --bn-colors-hovered-background: #2a2a2a;
48
- --bn-colors-selected-background: #3a3a3a;
48
+ --bn-colors-selected-background: color-mix(in srgb, var(--mantine-color-neutralColor-7) 30%, transparent);
49
49
  --bn-colors-border: #3a3a3a;
50
50
  --bn-colors-side-menu: #999999;
51
51
  --bn-colors-highlight-colors-blue: #60a5fa;
@@ -208,6 +208,11 @@
208
208
  /* Selection styles */
209
209
  .ixo-editor ::selection {
210
210
  background-color: var(--bn-colors-selected-background);
211
+ color: var(--bn-colors-editor-text);
212
+ }
213
+
214
+ .ixo-editor--theme-dark ::selection {
215
+ background-color: color-mix(in srgb, var(--mantine-color-neutralColor-7) 30%, transparent) !important;
211
216
  }
212
217
 
213
218
  /* Scrollbar styles */
package/style-mantine.css CHANGED
@@ -142,7 +142,7 @@
142
142
  --bn-colors-tooltip-background: #f0f0f0;
143
143
  --bn-colors-tooltip-text: #1a1a1a;
144
144
  --bn-colors-hovered-background: #2a2a2a;
145
- --bn-colors-selected-background: #3a3a3a;
145
+ --bn-colors-selected-background: color-mix(in srgb, var(--mantine-color-neutralColor-7) 30%, transparent);
146
146
  --bn-colors-border: #3a3a3a;
147
147
  --bn-colors-side-menu: #999999;
148
148
  --bn-colors-highlight-colors-blue: #60a5fa;
@@ -305,6 +305,11 @@
305
305
  /* Selection styles */
306
306
  .ixo-editor ::selection {
307
307
  background-color: var(--bn-colors-selected-background);
308
+ color: var(--bn-colors-editor-text);
309
+ }
310
+
311
+ .ixo-editor--theme-dark ::selection {
312
+ background-color: color-mix(in srgb, var(--mantine-color-neutralColor-7) 30%, transparent) !important;
308
313
  }
309
314
 
310
315
  /* Scrollbar styles */
package/style.css CHANGED
@@ -142,7 +142,7 @@
142
142
  --bn-colors-tooltip-background: #f0f0f0;
143
143
  --bn-colors-tooltip-text: #1a1a1a;
144
144
  --bn-colors-hovered-background: #2a2a2a;
145
- --bn-colors-selected-background: #3a3a3a;
145
+ --bn-colors-selected-background: color-mix(in srgb, var(--mantine-color-neutralColor-7) 30%, transparent);
146
146
  --bn-colors-border: #3a3a3a;
147
147
  --bn-colors-side-menu: #999999;
148
148
  --bn-colors-highlight-colors-blue: #60a5fa;
@@ -305,6 +305,11 @@
305
305
  /* Selection styles */
306
306
  .ixo-editor ::selection {
307
307
  background-color: var(--bn-colors-selected-background);
308
+ color: var(--bn-colors-editor-text);
309
+ }
310
+
311
+ .ixo-editor--theme-dark ::selection {
312
+ background-color: color-mix(in srgb, var(--mantine-color-neutralColor-7) 30%, transparent) !important;
308
313
  }
309
314
 
310
315
  /* Scrollbar styles */