@omniviewdev/runtime 0.14.0 → 0.16.0

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.
Files changed (34) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.js +160 -219
  3. package/dist/bindings/events/index.d.ts +4 -0
  4. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/index.d.ts +1 -1
  5. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/models.d.ts +18 -0
  6. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/servicewrapper.d.ts +1 -0
  7. package/dist/bindings/github.com/omniviewdev/omniview/backend/window/index.d.ts +1 -1
  8. package/dist/bindings/github.com/omniviewdev/omniview/backend/window/models.d.ts +19 -1
  9. package/dist/bindings/github.com/omniviewdev/omniview/backend/window/service.d.ts +16 -0
  10. package/dist/bindings/github.com/omniviewdev/omniview/internal/profiling/index.d.ts +0 -1
  11. package/dist/bindings/github.com/omniviewdev/omniview/internal/profiling/servicewrapper.d.ts +2 -2
  12. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/profiling/index.d.ts +1 -0
  13. package/dist/context/settings/index.d.ts +1 -0
  14. package/dist/context/settings/settingsWindow.d.ts +4 -0
  15. package/dist/context/windows/activePageNavigator.d.ts +2 -3
  16. package/dist/index.cjs +3 -3
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.js +400 -381
  19. package/dist/models-B8VGD21U.cjs +1 -0
  20. package/dist/models-BJZVpONm.cjs +1 -0
  21. package/dist/models-BlxGoC2X.js +1463 -0
  22. package/dist/{models-BJgLAHwq.js → models-ddVn9pLv.js} +79 -284
  23. package/dist/models.cjs +1 -1
  24. package/dist/models.js +33 -33
  25. package/dist/service-DKddH-QF.cjs +1 -0
  26. package/dist/service-lcq0B7wi.js +739 -0
  27. package/dist/settingsEditors.d.ts +35 -0
  28. package/package.json +1 -1
  29. package/dist/models-BTzXdmUY.js +0 -1240
  30. package/dist/models-BhsFYb70.cjs +0 -1
  31. package/dist/models-NYvUa5Yc.cjs +0 -1
  32. package/dist/servicewrapper-B-DdHGSp.cjs +0 -1
  33. package/dist/servicewrapper-Bl98xvmZ.js +0 -639
  34. /package/dist/bindings/github.com/omniviewdev/{omniview/internal → plugin-sdk/pkg}/profiling/models.d.ts +0 -0
@@ -0,0 +1,35 @@
1
+ import { ComponentType } from 'react';
2
+ import { Setting } from './models';
3
+ export declare const SETTINGS_EDITOR_EXTENSION_POINT_ID = "omniview/settings/editor";
4
+ /** Metadata for one authorized field. Stored values and defaults are never exposed here. */
5
+ export type SettingsEditorMetadata = Pick<Setting, 'id' | 'label' | 'description' | 'type' | 'options' | 'fileSelection' | 'sensitive' | 'requiresRestart'>;
6
+ /** Host owns drafts, validation, save/reset, labels and focus. Editors only propose values. */
7
+ export type SettingsEditorProps = {
8
+ settingId: string;
9
+ setting: SettingsEditorMetadata;
10
+ value: unknown;
11
+ dirty: boolean;
12
+ disabled?: boolean;
13
+ validation?: {
14
+ valid: boolean;
15
+ message: string;
16
+ };
17
+ inputId: string;
18
+ labelledBy: string;
19
+ describedBy: string;
20
+ onChange: (value: unknown) => void;
21
+ /** Attach to the editable control; detach with null when that control unmounts. */
22
+ registerFocusTarget?: (element: HTMLElement | null) => void;
23
+ };
24
+ /**
25
+ * Export through extensionRegistrations at omniview/settings/editor, with this object
26
+ * as registration.value. settingId is opaque (including dots), and can name only
27
+ * an existing field owned by the loading plugin. Registration.plugin is ignored.
28
+ * One editor per plugin/field is allowed; ambiguity or failures use the generic field.
29
+ * No settings rows are created by a contribution. No save or commit API is exposed.
30
+ */
31
+ export type SettingsEditorV1 = {
32
+ schemaVersion: 1;
33
+ settingId: string;
34
+ editor: ComponentType<SettingsEditorProps>;
35
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Omniview",
3
3
  "license": "AGPL-3.0-only",
4
4
  "name": "@omniviewdev/runtime",
5
- "version": "0.14.0",
5
+ "version": "0.16.0",
6
6
  "description": "Runtime shared library for Omniview",
7
7
  "sideEffects": false,
8
8
  "type": "module",