@rightkit/document-core 0.1.0 → 0.1.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
- Ask 1: the host bridge (`state/tauriBridge`), diagnostics (`state/diagnostics`) and platform modules are the single copy the document editors import. Hosts delete their own copies. Host-facing changes a host must adopt:
|
|
6
|
+
- Browser-QA build switch is `VITE_RIGHTKIT_BROWSER_QA=1` (was the host-named variable). A host QA build sets this variable; without it the QA fixtures are dropped.
|
|
7
|
+
- `parseViewRightError` is now `parseHostError`.
|
|
8
|
+
- The file-association field `viewrightIsPreferred` is now `hostIsPreferred`.
|
|
9
|
+
- Diagnostics allowlist adds `pdf-editor:viewer-load`.
|
|
10
|
+
- Ask 2 and 3 are in `@rightkit/markdown-editor` 0.1.1; ask 4 pins are in `@rightkit/docx-editor` 0.1.1 and `@rightkit/html-editor` 0.1.1.
|
|
11
|
+
- The accent preset `blue` reads its name from `hostAppName()` when displayed, so `setHostAppName()` at startup takes effect.
|
|
12
|
+
- Wording fix in the toolbar primitives comment; no behaviour change.
|
|
13
|
+
|
|
3
14
|
## 0.1.0
|
|
4
15
|
|
|
5
16
|
- First release. Shared base for the document editors: platform bridge, settings, state, PDF helpers and the format registry.
|
|
@@ -4,7 +4,7 @@ import { createPortal } from "react-dom";
|
|
|
4
4
|
import { createShortcutRegistry } from "@rightkit/react-shell";
|
|
5
5
|
import { isMac } from "../platform.js";
|
|
6
6
|
import { floatingPanelStyle, moveIndex, typeaheadMatch, useDismiss, } from "@rightkit/platform-ui/headless";
|
|
7
|
-
// Native
|
|
7
|
+
// Native host app toolbar/menu primitives — square, copper-on-theme, compact app UI.
|
|
8
8
|
// Zero eigenpal UI. Every interactive element uses onMouseDown + preventDefault so clicking
|
|
9
9
|
// a control never steals the document selection before the command bridge formats it.
|
|
10
10
|
const focusSafe = (fn) => (e) => {
|
package/dist/settings/themes.js
CHANGED
|
@@ -114,7 +114,15 @@ export const BASE_THEME_IDS = [
|
|
|
114
114
|
];
|
|
115
115
|
/** Each choice owns a dark- and light-body value so the same intent remains readable. */
|
|
116
116
|
export const ACCENT_PRESETS = [
|
|
117
|
-
|
|
117
|
+
// A getter: the name reads hostAppName() when displayed, not at import, so setHostAppName() at host startup takes effect.
|
|
118
|
+
{
|
|
119
|
+
id: "blue",
|
|
120
|
+
get name() {
|
|
121
|
+
return `${hostAppName()} blue`;
|
|
122
|
+
},
|
|
123
|
+
dark: "#3FA3DE",
|
|
124
|
+
light: "#0C6AA5",
|
|
125
|
+
},
|
|
118
126
|
{ id: "copper", name: "Copper", dark: "#C46A3D", light: "#9D5530" },
|
|
119
127
|
{ id: "iris", name: "Iris", dark: "#A78BFA", light: "#6D4BC3" },
|
|
120
128
|
{ id: "amber", name: "Amber", dark: "#E0A458", light: "#87570E" },
|
package/package.json
CHANGED