@docengine/editor 0.0.105 → 0.0.106
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/README.md +5 -1
- package/lib/.tsbuildinfo +1 -1
- package/lib/create-editor.d.ts.map +1 -1
- package/lib/fields/inline-fields.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/ui/field-mapping-badges.test.js +11 -11
- package/lib/ui/field-mapping-badges.test.js.map +1 -1
- package/lib/ui/mapping-drag-drop.test.js +11 -11
- package/lib/ui/mapping-drag-drop.test.js.map +1 -1
- package/lib/ui/mapping-result-helper.d.ts +1 -1
- package/lib/ui/mapping-result-helper.d.ts.map +1 -1
- package/lib/ui/mapping-result-helper.js +32 -13
- package/lib/ui/mapping-result-helper.js.map +1 -1
- package/lib/ui/mapping-result-helper.test.js +58 -20
- package/lib/ui/mapping-result-helper.test.js.map +1 -1
- package/lib/ui/source-path-canvas-drop.test.js +28 -28
- package/lib/ui/source-path-canvas-drop.test.js.map +1 -1
- package/lib/ui/source-schema-tree.d.ts.map +1 -1
- package/lib/ui/source-schema-tree.js +4 -0
- package/lib/ui/source-schema-tree.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +3 -0
- package/src/styles/editor.css +109 -87
- package/src/themes/bridge.css +134 -15
- package/src/themes/prime.css +128 -37
- package/src/ui/field-mapping-badges.test.ts +11 -11
- package/src/ui/mapping-drag-drop.test.ts +11 -11
- package/src/ui/mapping-result-helper.test.ts +61 -20
- package/src/ui/mapping-result-helper.ts +30 -12
- package/src/ui/source-path-canvas-drop.test.ts +32 -32
- package/src/ui/source-schema-tree.ts +3 -0
package/README.md
CHANGED
|
@@ -20,10 +20,14 @@ import '@docengine/editor/styles.css';
|
|
|
20
20
|
`styles.css` bundles **Inter** (weights 400, 500, 600) via `@fontsource/inter`. If your host app loads Inter another way, you can omit the bundled faces and rely on the same stack from `EDITOR_FONT_FAMILY` / Page setup.
|
|
21
21
|
|
|
22
22
|
```js
|
|
23
|
-
// Optional: theme bridge for PrimeVue 4 or Salesforce Lightning
|
|
23
|
+
// Optional: theme bridge for PrimeVue 4 / OpenVue or Salesforce Lightning
|
|
24
24
|
// import '@docengine/editor/themes/bridge.css';
|
|
25
25
|
// import '@docengine/editor/themes/prime.css';
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
`themes/prime.css` maps Template design chrome (`--me-surface-*`, accents, formula picker, design panels) to PrimeVue/OpenVue semantic tokens so light and dark hosts (e.g. `darkModeSelector: '.app-dark'`) stay readable. Prefer this over host-app CSS overrides for dark mode.
|
|
26
29
|
|
|
30
|
+
```js
|
|
27
31
|
const docEngine = createEditor({
|
|
28
32
|
holder: '#editor',
|
|
29
33
|
data: {
|