@bridgebrew/plugin-manager 0.0.1 → 0.0.2

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,4 +1,4 @@
1
- import { HarnessProfiles } from '@bridge/plugin-manager/harness-profiles';
1
+ import { HarnessProfiles } from './screen/harness-profiles.tsx';
2
2
  // The Settings screen (AD-26, research-027 P5, P17), opened on a node (the sidebar's gear for the node shown, a node's
3
3
  // or the workspace's menu): `/<workspace>/<node>/settings`; still a utility when a plugin opens it so (Sessions). Laid
4
4
  // out like the Plugins screen: a sidebar with a search ("@modified" keeps the values set at the level shown) listing the
@@ -9,7 +9,7 @@ import { HarnessProfiles } from '@bridge/plugin-manager/harness-profiles';
9
9
  // there; P13; a workspace's own fields, `x-bridge-level`, read and written on Workspace whatever the tab). A field
10
10
  // `x-bridge-settings-of` stands for the workspace-level fields of the `_host` plugin chosen in a sibling (the look's window
11
11
  // manager, research-028 CAP-6): their rows, under the choice, from `_host`'s schemas, unset ones showing Bridge's. Each field a
12
- // row generated from its JSON Schema (`@bridge/plugin-manager/row`): "Section: Name", its origin line, description,
12
+ // row generated from its JSON Schema (`./screen/settings-row.tsx`): "Section: Name", its origin line, description,
13
13
  // control (a checkbox labelled by the description, a select, an input, a colour, swatches, an image uploaded to the
14
14
  // workspace's Bridge, or a form for objects and arrays, with "Edit in JSON" as an escape hatch), a left accent bar when set at this level, and a gear menu (Reset
15
15
  // Setting, Copy Setting ID, Copy Setting as JSON). A change commits the whole value once it validates against the schema
@@ -97,20 +97,20 @@ import {
97
97
  setOn,
98
98
  DEFAULT_ORIGIN,
99
99
  type Schema,
100
- } from '@bridge/plugin-manager/fields';
101
- import { runSettingsAction } from '@bridge/plugin-manager/action';
102
- import type { FormContext, Path } from '@bridge/plugin-manager/form';
100
+ } from './screen/settings-fields.ts';
101
+ import { runSettingsAction } from './screen/settings-action.ts';
102
+ import type { FormContext, Path } from './screen/settings-form.tsx';
103
103
  import {
104
104
  domainOf,
105
105
  domains,
106
106
  nameOf,
107
107
  needsSetup,
108
108
  type PluginItem,
109
- } from '@bridge/plugin-manager/model';
110
- import { PluginsScreen } from '@bridge/plugin-manager/plugins';
111
- import { updatesMark, type Catalog } from '@bridge/plugin-manager/marketplace-model';
112
- import { SettingRow as Row, domId } from '@bridge/plugin-manager/row';
113
- import { SettingsPageOutlet, SettingsPageRenderer } from '@bridge/plugin-manager/settings-page';
109
+ } from './screen/plugins-model.ts';
110
+ import { PluginsScreen } from './screen/plugins.tsx';
111
+ import { updatesMark, type Catalog } from './screen/marketplace-model.ts';
112
+ import { SettingRow as Row, domId } from './screen/settings-row.tsx';
113
+ import { SettingsPageOutlet, SettingsPageRenderer } from './screen/settings-page.tsx';
114
114
 
115
115
  export const name = 'plugin-manager';
116
116
  export const inject = ['slots', 'workspace', 'nodes', 'shell', 'hostStatus', 'sidebar'];
@@ -1342,7 +1342,7 @@ export function Settings({
1342
1342
  return routeChoicesOf(root, plugin, route).map(({ value }) => value);
1343
1343
  };
1344
1344
 
1345
- /** What a section's visual fields draw with (@bridge/plugin-manager/form): its values, its images (`x-bridge-image`,
1345
+ /** What a section's visual fields draw with (./screen/settings-form.tsx): its values, its images (`x-bridge-image`,
1346
1346
  * each served and uploaded by root `root`'s Bridge, `/_bridge/workspaces/<root>/<route>`: the page's own origin, on a
1347
1347
  * joined Bridge too), and the workspace shown. */
1348
1348
  const formOf = (