@owlmeans/mui-panel 0.1.18-rc.3 → 0.1.18-rc.31

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 (53) hide show
  1. package/README.md +13 -89
  2. package/agent-meta/manifest.json +16 -0
  3. package/agent-meta/skills/mui-panel/SKILL.md +157 -0
  4. package/build/auth/context.d.ts.map +1 -1
  5. package/build/auth/context.js +0 -1
  6. package/build/auth/context.js.map +1 -1
  7. package/build/auth/entrypoints.d.ts +10 -0
  8. package/build/auth/entrypoints.d.ts.map +1 -0
  9. package/build/auth/entrypoints.js +4 -0
  10. package/build/auth/entrypoints.js.map +1 -0
  11. package/build/auth/exports.d.ts +3 -3
  12. package/build/auth/exports.d.ts.map +1 -1
  13. package/build/auth/exports.js +3 -3
  14. package/build/auth/exports.js.map +1 -1
  15. package/build/auth/plugins/basic-ed25519.js +3 -3
  16. package/build/auth/plugins/basic-ed25519.js.map +1 -1
  17. package/build/auth/plugins/re-captcha.js +2 -2
  18. package/build/auth/plugins/re-captcha.js.map +1 -1
  19. package/build/components/link.js +2 -2
  20. package/build/components/link.js.map +1 -1
  21. package/build/entrypoints.d.ts +8 -0
  22. package/build/entrypoints.d.ts.map +1 -0
  23. package/build/entrypoints.js +4 -0
  24. package/build/entrypoints.js.map +1 -0
  25. package/build/exports.d.ts +3 -4
  26. package/build/exports.d.ts.map +1 -1
  27. package/build/exports.js +3 -4
  28. package/build/exports.js.map +1 -1
  29. package/build/index.d.ts +1 -1
  30. package/build/index.d.ts.map +1 -1
  31. package/build/index.js +1 -1
  32. package/build/index.js.map +1 -1
  33. package/package.json +32 -32
  34. package/src/auth/context.ts +0 -2
  35. package/src/auth/entrypoints.ts +5 -0
  36. package/src/auth/exports.ts +3 -3
  37. package/src/auth/plugins/basic-ed25519.tsx +3 -3
  38. package/src/auth/plugins/re-captcha.tsx +2 -2
  39. package/src/components/link.tsx +2 -2
  40. package/src/entrypoints.ts +5 -0
  41. package/src/exports.ts +3 -4
  42. package/src/index.ts +1 -1
  43. package/build/.gitkeep +0 -0
  44. package/build/auth/modules.d.ts +0 -2
  45. package/build/auth/modules.d.ts.map +0 -1
  46. package/build/auth/modules.js +0 -4
  47. package/build/auth/modules.js.map +0 -1
  48. package/build/modules.d.ts +0 -2
  49. package/build/modules.d.ts.map +0 -1
  50. package/build/modules.js +0 -4
  51. package/build/modules.js.map +0 -1
  52. package/src/auth/modules.ts +0 -5
  53. package/src/modules.ts +0 -5
package/README.md CHANGED
@@ -1,96 +1,20 @@
1
1
  # @owlmeans/mui-panel
2
2
 
3
- MUI + React Router base for OwlMeans web apps — `makeContext`, panel/form components, and hand-picked re-exports for app-side modules.
3
+ Legacy MUI browser shell and panel components. New browser work uses `@owlmeans/web-panel`; existing
4
+ MUI applications bind shared protocol declarations locally with `bindAll()` and `bindScreen()`.
4
5
 
5
- ## Overview
6
+ <!-- owlmeans:agent-guidance:start -->
7
+ ## Agent guidance
6
8
 
7
- - `makeContext(cfg)` / `useContext()` — base web context with API config middleware and flow service wired in
8
- - `render(context, theme?, opts?)` — entry-point renderer that wraps the app with MUI theme and i18n
9
- - `modules` — base module declarations for auth panel screens
10
- - Components and form primitives in `./components`
11
- - Re-exports from sibling packages: `module`, `route`, `frontend`, `handler`, `elevate`, `useNavigate`, `useI18nApp`, `HOME`, `BASE`, `ROOT`, `GUEST`, `flow`, `configureFlows`, `CAUTHEN_FLOW_ENTER`, `Dispatcher`, `appendWebAuthService`, `addWebService`, etc.
12
- - Inherits all `@owlmeans/client-panel` exports (`ClientForm`, `InputCtrl`, `ActionCtrl`, …)
9
+ This package ships embedded agent skills under `agent-meta/`. After installing your
10
+ `@owlmeans/*` packages, run the OwlMeans agent-skills installer to place them into
11
+ your project's skill store (`.agents/skills/`):
13
12
 
14
- ## Installation
15
-
16
- ```bash
17
- bun add @owlmeans/mui-panel
18
- ```
19
-
20
- ## Usage
21
-
22
- Build the app context on top of `web-panel`:
23
-
24
- ```typescript
25
- import {
26
- useContext as useBasicContext,
27
- makeContext as makeBasicContext
28
- } from '@owlmeans/mui-panel'
29
- import { appendOidcGuard } from '@owlmeans/mui-oidc-rp'
30
-
31
- export const makeContext = <C extends Config, T extends Context<C>>(cfg: C): T => {
32
- const context = makeBasicContext<C, T>(cfg) as T
33
- appendOidcGuard<C, T>(context)
34
- context.makeContext = makeContext as typeof context.makeContext
35
- return context
36
- }
37
-
38
- export const useContext = useBasicContext
39
- ```
40
-
41
- Compose your modules over the base set:
42
-
43
- ```typescript
44
- import { modules as baseModules } from '@owlmeans/mui-panel'
45
-
46
- export const modules = [...baseModules, ...appModules]
47
- ```
48
-
49
- Use the re-exported helpers in screens:
50
-
51
- ```typescript
52
- import { HOME, useI18nApp, useNavigate } from '@owlmeans/mui-panel'
53
-
54
- const t = useI18nApp('manager-web')
55
- const navigate = useNavigate()
56
- ```
57
-
58
- Render the app:
59
-
60
- ```typescript
61
- import { render } from '@owlmeans/mui-panel'
62
- import { theme } from './theme'
63
-
64
- render(context, theme)
13
+ ```sh
14
+ npx @owlmeans/agent-skills@^0.1.18-rc.16
65
15
  ```
66
16
 
67
- ## API
68
-
69
- ### `makeContext<C, T>(cfg): T`
70
-
71
- Creates a web context: registers `apiConfigMiddleware`, the flow service, and adds `context.flow()` accessor.
72
-
73
- ### `useContext<C, T>(): T`
74
-
75
- React hook returning the current context.
76
-
77
- ### `render<C, T>(context, theme?, opts?)`
78
-
79
- Mounts the React tree using the configured theme and i18n detector.
80
-
81
- ### `modules`
82
-
83
- Base module declarations for auth panel screens.
84
-
85
- ### Re-exports
86
-
87
- Cherry-picked APIs from `@owlmeans/client`, `@owlmeans/client-context`, `@owlmeans/client-module`, `@owlmeans/client-route`, `@owlmeans/client-config`, `@owlmeans/client-auth`, `@owlmeans/client-i18n`, `@owlmeans/web-client`, `@owlmeans/web-flow`, `@owlmeans/route`, `@owlmeans/module`, `@owlmeans/auth`, `@owlmeans/i18n`, `@owlmeans/flow`, `@owlmeans/config`, `@owlmeans/context`. See `src/exports.ts` for the full list.
88
-
89
- Plus full re-export of [`@owlmeans/client-panel`](../client-panel).
90
-
91
- ## Related Packages
92
-
93
- - [`@owlmeans/web-client`](../web-client) — provides `render` and the underlying web context
94
- - [`@owlmeans/client-panel`](../client-panel) — cross-platform form/panel primitives re-exported here
95
- - [`@owlmeans/web-flow`](../web-flow) — flow service registered by `makeContext`
96
- - [`@owlmeans/mui-oidc-rp`](../mui-oidc-rp) — typically chained on top of this `makeContext`
17
+ The embedded files are version-matched to this package release. Do not edit them
18
+ directly — they are regenerated on each publish. To contribute guidance edits,
19
+ open a PR against the source monorepo.
20
+ <!-- owlmeans:agent-guidance:end -->
@@ -0,0 +1,16 @@
1
+ {
2
+ "schemaVersion": 2,
3
+ "package": "@owlmeans/mui-panel",
4
+ "version": "0.1.18-rc.31",
5
+ "generatedAt": "2026-09-12T12:32:46.382Z",
6
+ "canonicalRepo": "https://github.com/owlmeans/common",
7
+ "entries": [
8
+ {
9
+ "kind": "skill",
10
+ "name": "mui-panel",
11
+ "category": "package-specific",
12
+ "file": "skills/mui-panel/SKILL.md",
13
+ "canonicalPath": ".agents/skills/mui-panel/SKILL.md"
14
+ }
15
+ ]
16
+ }
@@ -0,0 +1,157 @@
1
+ ---
2
+ name: mui-panel
3
+ description: "How to use @owlmeans/mui-panel — the LEGACY MUI v7 browser layer: makeContext, the render() entry point with the MUI ThemeProvider, the Block/Text/Link/Status/Form components and the auth-only subpaths. Superseded by @owlmeans/web-panel for new work. Auto-invoked when maintaining an app that already imports mui-panel or deciding how to migrate one off it."
4
+ user-invocable: false
5
+ ---
6
+ <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
7
+
8
+ # @owlmeans/mui-panel
9
+
10
+ **Layer:** Web (React)
11
+ **Install:** `"@owlmeans/mui-panel": "^0.1.18-rc.31"` in `dependencies`
12
+
13
+ ## This is the legacy UI layer
14
+
15
+ **`@owlmeans/web-panel` is the current browser panel family — shadcn/Radix over Tailwind — and
16
+ every new application uses it.** This package is the MUI v7 predecessor, kept for the applications
17
+ that already run on it. Do not start a new app here, do not add a screen family here, and do not
18
+ port a shadcn component back into it.
19
+
20
+ What that means in practice:
21
+
22
+ | Concern | Legacy (this package) | Current |
23
+ |---|---|---|
24
+ | Context factory | `makeContext` here | `makeContext` in `@owlmeans/web-panel` |
25
+ | Rendering | `render(context, theme?, opts?)` — MUI `ThemeProvider` + `CssBaseline` | `render(context, opts?)` in `@owlmeans/web-panel` — mounts `PanelApp`, which carries the i18n context |
26
+ | Layout / navigation | `Layout` — a bare `Box`; navigation is the app's own | `NavLayout` / `TopNav` / `SideNav` / `Footer` |
27
+ | Theme | an MUI `Theme` object passed to `render` | CSS tokens and the `.dark` class |
28
+ | OIDC sign-in | `@owlmeans/mui-oidc-rp` | `@owlmeans/web-oidc-rp`, or `@owlmeans/client-iam` for one-call wiring |
29
+ | Styling props | `styles?: SxProps` on `Block`, `Text`, `Link` and `Form` only | `className` / `style` merged through `cn` |
30
+
31
+ Both families sit on the same `@owlmeans/client-panel` primitives and the same entrypoint model, so
32
+ a migration is component-by-component rather than a rewrite: the context factory, the entrypoint
33
+ declarations and the form model all survive it.
34
+
35
+ ## Key Exports
36
+
37
+ | Export | Description |
38
+ |--------|-------------|
39
+ | `makeContext<C, T>(cfg)` | The browser context: registers `apiConfigMiddleware`, appends the flow service, and adds the `context.flow()` accessor |
40
+ | `useContext<C, T>()` | The current context, from React |
41
+ | `render(context, theme?, opts?)` | Mounts the tree inside `PanelApp` — MUI `ThemeProvider`, `CssBaseline` and the i18n context, with the browser language detector installed |
42
+ | `PanelApp` | That wrapper on its own, for a host that mounts the tree itself |
43
+ | `entrypoints` | The base declaration list — `@owlmeans/web-client`'s plus `@owlmeans/api-config-client`'s |
44
+ | `Block` | A `Card` panel with optional `Actions`, carrying a `PanelContext` for i18n |
45
+ | `Text` / `Link` | `Typography` and an anchor whose `href` is the entrypoint's own `url()` answer |
46
+ | `Status` | An `Alert` that resolves a `ResilientError` to a translated message |
47
+ | `Form` | `react-hook-form` + AJV (`ajvResolver`, `coerceTypes`, `ajv-formats`) over a `Grid`; `decorate` adds the `Card`, the root-error `Status` and the submit action — see the gotcha below |
48
+ | `TextInput` | The `TextField` field control. `label` / `placeholder` / `hint` are resolved from the form namespace **only when passed boolean `true`** — see the gotcha below |
49
+ | `Button` / `SubmitButton` | Buttons with the loader spinner and the three-tier label lookup |
50
+ | `ButtonSelector` | A `ButtonGroup` acting as a single-choice control |
51
+ | `ImageUploader` | `@owlmeans/web-client`'s uploader in a `Paper` drop target with a preview |
52
+ | `Layout` | A bare `Box` — this family ships no navigation shell |
53
+ | `scalingToStyles(h, v, theme)` | `BlockScaling` → `SxProps`, the sizing every panel here shares |
54
+ | `useBreakPoint()` | The current MUI breakpoint name — `xs`/`sm`/`md`/`lg`/`xl`, or `unknown` when none matches |
55
+ | `useMapBreakpoint(map, def?, breakpoint?)` | The `map` entry for the current breakpoint (or for the `breakpoint` passed), falling back to `def`. It **throws a `SyntaxError`** when neither yields a value, so give it a `def` or cover every breakpoint |
56
+ | Re-exports | Protocol binding helpers (`bind`, `bindAll`, `bindScreen`), `handler`, route and frontend helpers, navigation/state/config APIs, authentication exports and theme integration. Use shared protocol references for typed entrypoint calls. |
57
+ | Re-export of `@owlmeans/client-panel` | The whole cross-platform panel surface — `ClientForm`, `PanelContext`, `usePanelI18n`, `useFormRef`, `BlockScaling`, … |
58
+
59
+ ## Subpath Exports
60
+
61
+ - `./auth` — a **separate, smaller** context factory for an auth-only surface: it builds a client
62
+ context directly (`extractPrimaryHost`, `appendWebDbService`, `appendWebRouter`,
63
+ `apiConfigMiddleware`, `appendFlowService`) instead of the full web-client one, plus its own
64
+ re-export set and the authentication UI plugins.
65
+ - `./auth/entrypoints` — the auth-manager declarations plus the API-config ones.
66
+
67
+ Importing `./auth` registers the authentication renderers by side effect:
68
+ `AuthenticationType.BasicEd25519`, `ReCaptcha` and `WalletConsumer` get their MUI renderers pushed
69
+ into the shared plugin registry of `@owlmeans/client-auth/manager`. That registry is a module
70
+ singleton, so **importing both this package's plugins and another family's replaces the renderers
71
+ rather than combining them** — one UI family per bundle.
72
+
73
+ ## Wiring
74
+
75
+ ```typescript
76
+ import { makeContext as makeBasicContext } from '@owlmeans/mui-panel'
77
+ import { appendOidcGuard } from '@owlmeans/mui-oidc-rp'
78
+
79
+ export const makeContext = <C extends Config, T extends Context<C>>(cfg: C): T => {
80
+ const context = makeBasicContext<C, T>(cfg) as T
81
+ appendOidcGuard<C, T>(context)
82
+ return context
83
+ }
84
+ ```
85
+
86
+ **A context is created once per process, by one factory.** An app factory calls the factory of the
87
+ layer below it, applies idempotent `append*(context)` mixins, and returns that same context.
88
+ Nothing is stored for re-creation, and every service, resource and entrypoint binds to exactly the
89
+ one context it was appended to.
90
+
91
+ Compose the entrypoints over the base set, then render with the app's theme:
92
+
93
+ ```typescript
94
+ import { entrypoints as baseEntrypoints, render } from '@owlmeans/mui-panel'
95
+
96
+ export const entrypoints = [...baseEntrypoints, ...appEntrypoints]
97
+
98
+ render(context, theme)
99
+ ```
100
+
101
+ `render` builds a default MUI theme when none is passed, so an app with no branding still gets a
102
+ consistent surface. `PanelApp` memoises the theme on identity — hand it a stable object, not a
103
+ `createTheme(...)` call inside the render body, or every render rebuilds the whole theme.
104
+
105
+ ## Gotchas
106
+
107
+ - **MUI is a peer, not a dependency.** `@mui/material`, `@mui/icons-material`, `@emotion/react`,
108
+ `@emotion/styled`, `react`, `react-dom`, `react-hook-form` and `ajv` are all supplied by the app,
109
+ at v7 for the MUI packages. A second copy of `@mui/material` in the tree gives two theme contexts
110
+ and components that read the wrong one.
111
+ - **`Link` takes the screen on a prop named `module`, not `entrypoint`.** `LinkProps` declares
112
+ `module?: string | RegisteredEntrypoint` — the context-bound protocol registration used by the
113
+ tree say entrypoint. There is no `entrypoint` prop, and a `Link` given none renders an anchor with
114
+ no `href`. Its default label key is `modules.<alias>`, from the same legacy family.
115
+ - **`Link` resolves its `href` asynchronously.** It asks the entrypoint for its own URL, so the
116
+ anchor has no `href` for the first paint and settles once the URL is known — never key a test or
117
+ a layout on the attribute being present synchronously. Address a screen by alias; `src` is the
118
+ escape hatch for a literal URL, and `open` opens a new tab.
119
+ - **`TextInput` resolves copy from a boolean, and DISCARDS a string.** `label`, `placeholder` and
120
+ `hint` are typed `string | boolean`, but only `true` does anything: it looks up `<name>.label` /
121
+ `<name>.placeholder` / `<name>.hint` in the form namespace. Any other value — a literal string
122
+ included — is replaced with `undefined`. So `<TextInput label="Email" />` compiles and renders no
123
+ label at all. Put the wording in the form's translation bundle and pass `label`.
124
+ (`@owlmeans/web-panel`'s `TextInput` honours a string; do not carry the habit either way.)
125
+ - **`Form` renders a bare `Grid` unless `decorate` is set.** With `decorate={true}` it wraps the
126
+ fields in a `Card`, surfaces the root error through `Status`, and renders a `SubmitButton` in
127
+ `CardActions` when `onSubmit` is given. Without it there is no card, no root-error surface and no
128
+ submit button — the caller renders its own action. `styles` is applied only on the decorated
129
+ `Card`; the scaling from `horizontal`/`vertical` lands on the `Grid` otherwise.
130
+ - **`Form` validates through AJV, and the schema is the source of the defaults.** Given
131
+ `validation` and no `defaults`, the initial values come from `schemaToFormDefault`. Its AJV
132
+ instance coerces types, so a numeric field arrives as a number rather than the input's string.
133
+ - **Label lookup in `Button` is three-tier** — panel namespace, then the app namespace's `buttons`
134
+ section, then `client-panel`'s. Pass `i18n: { suppress: true }` to render a literal label instead.
135
+ - **`Status` rewrites `:` to `.` in an error message** before looking it up, so a marshalled
136
+ `ResilientError` resolves as `<type>.<message>` in the translation tree. A key written with a
137
+ colon never matches.
138
+ - This family has **no navigation shell**. `Layout` is a `Box`; a menu, header and footer are the
139
+ app's own MUI code. That is the largest single gap against `@owlmeans/web-panel`, and the reason
140
+ a migration usually starts by adopting `NavLayout`.
141
+
142
+ ## Depends On
143
+
144
+ - `@owlmeans/web-client`, `@owlmeans/client-panel`, `@owlmeans/client-i18n`, `@owlmeans/web-router`,
145
+ `@owlmeans/web-flow`, `@owlmeans/web-db`, `@owlmeans/client-auth`, `@owlmeans/api-config-client`
146
+ - Peers (app-provided): `@mui/material` v7, `@mui/icons-material` v7, `@emotion/react`,
147
+ `@emotion/styled`, `react`, `react-dom`, `react-hook-form`, `ajv`
148
+ - `ajv-formats` is imported at module scope by `Form` but is declared in no dependency section of
149
+ the manifest, which lists `ajv` alone. An install that does not otherwise pull it in fails at
150
+ import time, so declare `ajv-formats` next to `ajv` in the consuming application.
151
+
152
+ ## Related
153
+
154
+ - `web-panel` — **the current panel family**; read it for anything new
155
+ - `mui-oidc-rp` — the OIDC relying party of this same legacy family
156
+ - `client-panel` — the cross-platform primitives both families are written against
157
+ - `shadcn-web` — how the current family is built, and the MUI→shadcn component mapping
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/auth/context.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,IAAI,MAAM,EAAE,UAAU,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACtF,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAIlD,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,KAAG,CAc5E,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,SAAS,GAAG,SAAS,EAAE,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,OAAK,CAC9E,CAAA"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/auth/context.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,IAAI,MAAM,EAAE,UAAU,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACtF,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAIlD,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,KAAG,CAY5E,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,SAAS,GAAG,SAAS,EAAE,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,OAAK,CAC9E,CAAA"}
@@ -12,7 +12,6 @@ export const makeContext = (cfg) => {
12
12
  context.registerMiddleware(apiConfigMiddleware);
13
13
  appendFlowService(context);
14
14
  context.flow = () => context.service('flow');
15
- context.makeContext = makeContext;
16
15
  return context;
17
16
  };
18
17
  export const useContext = () => useCtx();
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/auth/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,UAAU,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAG/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAyC,GAAM,EAAK,EAAE;IAC/E,MAAM,OAAO,GAAG,iBAAiB,CAAC,GAAG,CAAM,CAAA;IAC3C,kBAAkB,CAAO,OAAO,CAAC,CAAA;IAEjC,kBAAkB,CAAO,OAAO,CAAC,CAAA;IACjC,eAAe,CAAO,OAAO,CAAC,CAAA;IAC9B,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IAE/C,iBAAiB,CAAO,OAAO,CAAC,CAAC;IAChC,OAA4C,CAAC,IAAI,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;IAElF,OAAO,CAAC,WAAW,GAAG,WAAyC,CAAA;IAE/D,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,GAAgF,EAAE,CAC1G,MAAM,EAAkB,CAAA"}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/auth/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,UAAU,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAG/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAyC,GAAM,EAAK,EAAE;IAC/E,MAAM,OAAO,GAAG,iBAAiB,CAAC,GAAG,CAAM,CAAA;IAC3C,kBAAkB,CAAO,OAAO,CAAC,CAAA;IAEjC,kBAAkB,CAAO,OAAO,CAAC,CAAA;IACjC,eAAe,CAAO,OAAO,CAAC,CAAA;IAC9B,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IAE/C,iBAAiB,CAAO,OAAO,CAAC,CAAC;IAChC,OAA4C,CAAC,IAAI,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;IAElF,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,GAAgF,EAAE,CAC1G,MAAM,EAAkB,CAAA"}
@@ -0,0 +1,10 @@
1
+ export declare const entrypoints: (import("@owlmeans/client-entrypoint").ClientProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").OpenRequest, import("@owlmeans/entrypoint").OpenValue>> | import("@owlmeans/client-entrypoint").ClientProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<{
2
+ body: import("@owlmeans/auth").AllowanceRequest;
3
+ }, import("@owlmeans/auth").AllowanceResponse>> | import("@owlmeans/client-entrypoint").ClientProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<{
4
+ body: import("@owlmeans/auth").AuthCredentials;
5
+ }, import("@owlmeans/auth").AuthToken>> | import("@owlmeans/client-entrypoint").ClientProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<{
6
+ query: Partial<import("@owlmeans/auth").AuthToken>;
7
+ }, undefined>> | import("@owlmeans/client-entrypoint").ClientProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<{
8
+ query: import("@owlmeans/auth").AuthToken;
9
+ }, undefined>>)[];
10
+ //# sourceMappingURL=entrypoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../../src/auth/entrypoints.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;;;;;iBAAuC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { entrypoints as authBindings } from '@owlmeans/client-auth/manager/entrypoints';
2
+ import { entrypoints as configBindings } from '@owlmeans/api-config-client';
3
+ export const entrypoints = [...authBindings, ...configBindings];
4
+ //# sourceMappingURL=entrypoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../../src/auth/entrypoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,2CAA2C,CAAA;AACvF,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAE3E,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAG,YAAY,EAAE,GAAG,cAAc,CAAC,CAAA"}
@@ -1,11 +1,11 @@
1
- export { handler, useModule, useValue, useNavigate } from '@owlmeans/client';
1
+ export { handler, useEntrypoint, useValue, useNavigate } from '@owlmeans/client';
2
2
  export type { Navigator } from '@owlmeans/client';
3
3
  export { config } from '@owlmeans/client-context';
4
4
  export { service } from '@owlmeans/config';
5
- export { guard, parent, EntrypointOutcome, clone } from '@owlmeans/entrypoint';
5
+ export { EntrypointOutcome } from '@owlmeans/entrypoint';
6
6
  export type { AbstractRequest } from '@owlmeans/entrypoint';
7
7
  export { addWebService } from '@owlmeans/client-config';
8
- export { entrypoint, elevate, provideRequest, stab } from '@owlmeans/client-entrypoint';
8
+ export { bind, bindAll, bindScreen, provideRequest, stab } from '@owlmeans/client-entrypoint';
9
9
  export type { ClientEntrypoint as Module, ClientRequest as Request } from '@owlmeans/client-entrypoint';
10
10
  export { route as croute } from '@owlmeans/client-route';
11
11
  export { route, frontend, RouteMethod } from '@owlmeans/route';
@@ -1 +1 @@
1
- {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../src/auth/exports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC5E,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC9E,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AACvF,YAAY,EAAE,gBAAgB,IAAI,MAAM,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,6BAA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,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA"}
@@ -1,9 +1,9 @@
1
- export { handler, useModule, useValue, useNavigate } from '@owlmeans/client';
1
+ export { handler, useEntrypoint, useValue, useNavigate } from '@owlmeans/client';
2
2
  export { config } from '@owlmeans/client-context';
3
3
  export { service } from '@owlmeans/config';
4
- export { guard, parent, EntrypointOutcome, clone } from '@owlmeans/entrypoint';
4
+ export { EntrypointOutcome } from '@owlmeans/entrypoint';
5
5
  export { addWebService } from '@owlmeans/client-config';
6
- export { entrypoint, elevate, provideRequest, stab } from '@owlmeans/client-entrypoint';
6
+ export { bind, bindAll, bindScreen, provideRequest, stab } from '@owlmeans/client-entrypoint';
7
7
  export { route as croute } from '@owlmeans/client-route';
8
8
  export { route, frontend, RouteMethod } from '@owlmeans/route';
9
9
  export { DEFAULT_ALIAS as DAUTH_GUARD } from '@owlmeans/client-auth';
@@ -1 +1 @@
1
- {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../src/auth/exports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE5E,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAE9E,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAEvF,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE9D,OAAO,EAAE,aAAa,IAAI,WAAW,EAA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CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEpE,cAAc,6BAA6B,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAEnC,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAG/D,OAAO,EAAE,aAAa,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAEnE,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAC7E,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA"}
@@ -22,15 +22,15 @@ export const Ed22519BasicAuthUIPlugin = ({ type, stage, control }) => {
22
22
  };
23
23
  const createSubmit = (context, control) => async (data) => {
24
24
  const token = await control.authenticate({
25
- entityId: data.entityId,
25
+ entitySlug: data.entityId,
26
26
  userId: data.address,
27
27
  credential: data.privateKey
28
28
  });
29
29
  if (token.token === '') {
30
30
  return;
31
31
  }
32
- const [url] = await context.module(DISPATCHER)
33
- .call({ query: token });
32
+ const url = await context.entrypoint(DISPATCHER)
33
+ .url({ query: token });
34
34
  control.setStage?.(control.stage = AuthenticationStage.Authenticated);
35
35
  // Give some time - that is really not cenessary - actually we need
36
36
  // to do it on the layout finished its stuff.
@@ -1 +1 @@
1
- {"version":3,"file":"basic-ed25519.js","sourceRoot":"","sources":["../../../src/auth/plugins/basic-ed25519.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,kCAAkC,IAAI,MAAM,EAAE,MAAM,qCAAqC,CAAA;AAClG,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChE,OAAO,EAAE,IAAI,EA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AAE,EAAE,CAAC;QACvB,OAAM;IACR,CAAC;IAED,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,UAAU,CAAwC,UAAU,CAAC;SACpF,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAA;IAExB,OAAO,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,GAAG,mBAAmB,CAAC,aAAa,CAAC,CAAA;IACrE,oEAAoE;IACpE,6CAA6C;IAC7C,+FAA+F;IAC/F,UAAU,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,EAAE,GAAG,CAAC,CAAA;AACnD,CAAC,CAAA"}
@@ -40,8 +40,8 @@ const createFinish = (context, control) => async (token) => {
40
40
  console.timeLog('empty token');
41
41
  return;
42
42
  }
43
- const [url] = await context.module(DISPATCHER)
44
- .call({ query: authToken });
43
+ const url = await context.entrypoint(DISPATCHER)
44
+ .url({ query: authToken });
45
45
  control.setStage?.(control.stage = AuthenticationStage.Authenticated);
46
46
  // Give some time - that is really not cenessary - actually we need
47
47
  // to do it on the layout finished its stuff.
@@ -1 +1 @@
1
- {"version":3,"file":"re-captcha.js","sourceRoot":"","sources":["../../../src/auth/plugins/re-captcha.tsx"],"names":[],"mappings":";AAEA,OAAO,cAAc,MAAM,8BAA8B,CAAA;AACzD,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAC9G,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAClD,OAAO,SAAS,MAAM,wBAAwB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,0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KAAK,IAAC,SAAS,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,EAAC,UAAU,EAAC,QAAQ,aAClE,OAAO,EAAE,EACT,OAAO,IAAI,KAAC,cAAc,IAAC,EAAE,EAAE,YAAY,GAAI,IAC1C,GACK,CAAA;AACjB,CAAC,CAAA;AAED,MAAM,YAAY,GAAG,CAAC,OAAmB,EAAE,OAA8B,EAAE,EAAE,CAAC,KAAK,EAAE,KAAoB,EAAE,EAAE;IAC3G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,kBAAkB,CAAC,kBAAkB,CAAC,CAAA;IAClD,CAAC;IACD,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,YAAY,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAA;IAErF,IAAI,SAAS,CAAC,KAAK,KAAK,EAAE,EAAE,CAAC;QAC3B,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;QAC9B,OAAM;IACR,CAAC;IACD,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,UAAU,CAA8B,UAAU,CAAC;SAC1E,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAA;IAE5B,OAAO,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,GAAG,mBAAmB,CAAC,aAAa,CAAC,CAAA;IAErE,oEAAoE;IACpE,6CAA6C;IAC7C,+FAA+F;IAC/F,UAAU,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,EAAE,GAAG,CAAC,CAAA;AACnD,CAAC,CAAA"}
@@ -11,8 +11,8 @@ export const Link = ({ src, module, name, variant, children, center, open, style
11
11
  return src;
12
12
  }
13
13
  if (module != null) {
14
- module = typeof module === 'string' ? context.module(module) : module;
15
- const [url] = await module.call();
14
+ module = typeof module === 'string' ? context.entrypoint(module) : module;
15
+ const url = await module.url();
16
16
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AAO,CAAC,UAAU,CAA2B,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAA;YACnG,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,GAAG,EAAE,CAAA;YAE9B,OAAO,GAAG,CAAA;QACZ,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAA;IAEjB,MAAM,KAAK,GAAG,IAAI,IAAI,IAAI;QACxB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACT,CAAC,CAAC,QAAQ,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI;YAClC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,OAAO,MAAM,IAAI,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAA;IACnF,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAA;IAC1C,OAAO,KAAC,OAAO,IAAC,IAAI,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAwC,EACxG,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,GAAG,MAAM,EAAE,YAAG,KAAK,IAAI,QAAQ,GAAW,CAAA;AAC9F,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ export declare const entrypoints: (import("@owlmeans/client-entrypoint").ClientProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").OpenRequest, import("@owlmeans/entrypoint").OpenValue>> | import("@owlmeans/client-entrypoint").ClientProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<{
2
+ query: import("@owlmeans/auth").AuthToken;
3
+ }, undefined>> | import("@owlmeans/client-entrypoint").ClientProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<{
4
+ query: import("@owlmeans/auth-common").SurrogateQuery;
5
+ }, undefined>> | import("@owlmeans/client-entrypoint").ClientProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<{
6
+ body: import("@owlmeans/auth").AuthToken;
7
+ }, import("@owlmeans/auth").AuthToken>>)[];
8
+ //# sourceMappingURL=entrypoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;;;0CAA4C,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { entrypoints as webClientBindings } from '@owlmeans/web-client';
2
+ import { entrypoints as configBindings } from '@owlmeans/api-config-client';
3
+ export const entrypoints = [...webClientBindings, ...configBindings];
4
+ //# sourceMappingURL=entrypoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,IAAI,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACvE,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAE3E,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAG,iBAAiB,EAAE,GAAG,cAAc,CAAC,CAAA"}
@@ -1,13 +1,12 @@
1
- export { handler, useNavigate, useValue, useModule } from '@owlmeans/client';
1
+ export { handler, useNavigate, useValue, useEntrypoint } from '@owlmeans/client';
2
2
  export { config } from '@owlmeans/client-context';
3
3
  export { service } from '@owlmeans/config';
4
- export { guard, parent } from '@owlmeans/entrypoint';
5
4
  export { addWebService } from '@owlmeans/client-config';
6
- export { entrypoint, elevate, provideRequest, stab } from '@owlmeans/client-entrypoint';
5
+ export { bind, bindAll, bindScreen, provideRequest, stab } from '@owlmeans/client-entrypoint';
7
6
  export type { ClientEntrypoint as Module } from '@owlmeans/client-entrypoint';
8
7
  export { route as croute } from '@owlmeans/client-route';
9
8
  export { route, frontend } from '@owlmeans/route';
10
- export { DEFAULT_ALIAS as DAUTH_GUARD, setupExternalAuthentication } from '@owlmeans/client-auth';
9
+ export { DEFAULT_ALIAS as DAUTH_GUARD, bindExternalAuthentication } from '@owlmeans/client-auth';
11
10
  export { AppType, HOME, ROOT, BASE, GUEST } from '@owlmeans/context';
12
11
  export { DISPATCHER, CAUTHEN_FLOW_ENTER } from '@owlmeans/auth';
13
12
  export type { AuthToken } from '@owlmeans/auth';
@@ -1 +1 @@
1
- {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../src/exports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AACvF,YAAY,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,6BAA6B,CAAA;AAC7E,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,aAAa,IAAI,WAAW,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAA;AAEjG,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEpE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,g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AAEpE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAC/D,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnG,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACvE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACtF,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA"}
package/build/exports.js CHANGED
@@ -1,12 +1,11 @@
1
- export { handler, useNavigate, useValue, useModule } from '@owlmeans/client';
1
+ export { handler, useNavigate, useValue, useEntrypoint } from '@owlmeans/client';
2
2
  export { config } from '@owlmeans/client-context';
3
3
  export { service } from '@owlmeans/config';
4
- export { guard, parent } from '@owlmeans/entrypoint';
5
4
  export { addWebService } from '@owlmeans/client-config';
6
- export { entrypoint, elevate, provideRequest, stab } from '@owlmeans/client-entrypoint';
5
+ export { bind, bindAll, bindScreen, provideRequest, stab } from '@owlmeans/client-entrypoint';
7
6
  export { route as croute } from '@owlmeans/client-route';
8
7
  export { route, frontend } from '@owlmeans/route';
9
- export { DEFAULT_ALIAS as DAUTH_GUARD, setupExternalAuthentication } from '@owlmeans/client-auth';
8
+ export { DEFAULT_ALIAS as DAUTH_GUARD, bindExternalAuthentication } from '@owlmeans/client-auth';
10
9
  export { AppType, HOME, ROOT, BASE, GUEST } from '@owlmeans/context';
11
10
  export { DISPATCHER, CAUTHEN_FLOW_ENTER } from '@owlmeans/auth';
12
11
  export { composePrefix, useI18n, useI18nApp, useI18nLib, useLanguage } from '@owlmeans/client-i18n';
@@ -1 +1 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":"exports.js","sourceRoot":"","sources":["../src/exports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAE7F,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,aAAa,IAAI,WAAW,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAA;AAEhG,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEpE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAG/D,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnG,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACvE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACtF,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA"}
package/build/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export type * from './types.js';
2
2
  export * from './main.js';
3
3
  export * from './exports.js';
4
4
  export * from './context.js';
5
- export * from './modules.js';
5
+ export * from './entrypoints.js';
6
6
  export * from './components/index.js';
7
7
  export * from '@owlmeans/client-panel';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,mBAAmB,YAAY,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA;AAErC,cAAc,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,mBAAmB,YAAY,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,uBAAuB,CAAA;AAErC,cAAc,wBAAwB,CAAA"}
package/build/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export * from './main.js';
2
2
  export * from './exports.js';
3
3
  export * from './context.js';
4
- export * from './modules.js';
4
+ export * from './entrypoints.js';
5
5
  export * from './components/index.js';
6
6
  export * from '@owlmeans/client-panel';
7
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA;AAErC,cAAc,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,uBAAuB,CAAA;AAErC,cAAc,wBAAwB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/mui-panel",
3
- "version": "0.1.18-rc.3",
3
+ "version": "0.1.18-rc.31",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -27,40 +27,40 @@
27
27
  "module": "./build/auth/index.js",
28
28
  "types": "./build/auth/index.d.ts"
29
29
  },
30
- "./auth/modules": {
31
- "import": "./build/auth/modules.js",
32
- "require": "./build/auth/modules.js",
33
- "default": "./build/auth/modules.js",
34
- "module": "./build/auth/modules.js",
35
- "types": "./build/auth/modules.d.ts"
30
+ "./auth/entrypoints": {
31
+ "import": "./build/auth/entrypoints.js",
32
+ "require": "./build/auth/entrypoints.js",
33
+ "default": "./build/auth/entrypoints.js",
34
+ "module": "./build/auth/entrypoints.js",
35
+ "types": "./build/auth/entrypoints.d.ts"
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
39
  "@hookform/resolvers": "^5.2.2",
40
- "@owlmeans/api-config-client": "^0.1.18-rc.3",
41
- "@owlmeans/auth": "^0.1.18-rc.3",
42
- "@owlmeans/auth-common": "^0.1.18-rc.3",
43
- "@owlmeans/basic-envelope": "^0.1.18-rc.3",
44
- "@owlmeans/client": "^0.1.18-rc.3",
45
- "@owlmeans/client-auth": "^0.1.18-rc.3",
46
- "@owlmeans/client-config": "^0.1.18-rc.3",
47
- "@owlmeans/client-context": "^0.1.18-rc.3",
48
- "@owlmeans/client-flow": "^0.1.18-rc.3",
49
- "@owlmeans/client-i18n": "^0.1.18-rc.3",
50
- "@owlmeans/client-entrypoint": "^0.1.18-rc.3",
51
- "@owlmeans/client-panel": "^0.1.18-rc.3",
52
- "@owlmeans/client-route": "^0.1.18-rc.3",
53
- "@owlmeans/config": "^0.1.18-rc.3",
54
- "@owlmeans/context": "^0.1.18-rc.3",
55
- "@owlmeans/error": "^0.1.18-rc.3",
56
- "@owlmeans/flow": "^0.1.18-rc.3",
57
- "@owlmeans/i18n": "^0.1.18-rc.3",
58
- "@owlmeans/entrypoint": "^0.1.18-rc.3",
59
- "@owlmeans/route": "^0.1.18-rc.3",
60
- "@owlmeans/web-client": "^0.1.18-rc.3",
61
- "@owlmeans/web-db": "^0.1.18-rc.3",
62
- "@owlmeans/web-flow": "^0.1.18-rc.3",
63
- "@owlmeans/web-router": "^0.1.18-rc.3",
40
+ "@owlmeans/api-config-client": "^0.1.18-rc.17",
41
+ "@owlmeans/auth": "^0.1.18-rc.13",
42
+ "@owlmeans/auth-common": "^0.1.18-rc.17",
43
+ "@owlmeans/basic-envelope": "^0.1.18-rc.16",
44
+ "@owlmeans/client": "^0.1.18-rc.20",
45
+ "@owlmeans/client-auth": "^0.1.18-rc.24",
46
+ "@owlmeans/client-config": "^0.1.18-rc.16",
47
+ "@owlmeans/client-context": "^0.1.18-rc.17",
48
+ "@owlmeans/client-flow": "^0.1.18-rc.21",
49
+ "@owlmeans/client-i18n": "^0.1.18-rc.19",
50
+ "@owlmeans/client-entrypoint": "^0.1.18-rc.17",
51
+ "@owlmeans/client-panel": "^0.1.18-rc.27",
52
+ "@owlmeans/client-route": "^0.1.18-rc.17",
53
+ "@owlmeans/config": "^0.1.18-rc.16",
54
+ "@owlmeans/context": "^0.1.18-rc.12",
55
+ "@owlmeans/error": "^0.1.18-rc.12",
56
+ "@owlmeans/flow": "^0.1.18-rc.18",
57
+ "@owlmeans/i18n": "^0.1.18-rc.12",
58
+ "@owlmeans/entrypoint": "^0.1.18-rc.15",
59
+ "@owlmeans/route": "^0.1.18-rc.13",
60
+ "@owlmeans/web-client": "^0.1.18-rc.28",
61
+ "@owlmeans/web-db": "^0.1.18-rc.18",
62
+ "@owlmeans/web-flow": "^0.1.18-rc.21",
63
+ "@owlmeans/web-router": "^0.1.18-rc.18",
64
64
  "i18next-browser-languagedetector": "^8.0.0",
65
65
  "qrcode.react": "^4.2.0",
66
66
  "react-google-recaptcha": "^3.1.0"
@@ -77,7 +77,7 @@
77
77
  },
78
78
  "devDependencies": {
79
79
  "@owlmeans/dep-config": "workspace:*",
80
- "@owlmeans/test-ui": "^0.1.18-rc.3",
80
+ "@owlmeans/test-ui": "^0.1.18-rc.19",
81
81
  "@emotion/react": "^11.14.0",
82
82
  "@emotion/styled": "^11.14.0",
83
83
  "@mui/icons-material": "^7.3.2",
@@ -18,8 +18,6 @@ export const makeContext = <C extends Config, T extends Context<C>>(cfg: C): T =
18
18
  appendFlowService<C, T>(context);
19
19
  (context as unknown as AppContext<AppConfig>).flow = () => context.service('flow')
20
20
 
21
- context.makeContext = makeContext as typeof context.makeContext
22
-
23
21
  return context
24
22
  }
25
23
 
@@ -0,0 +1,5 @@
1
+
2
+ import { entrypoints as authBindings } from '@owlmeans/client-auth/manager/entrypoints'
3
+ import { entrypoints as configBindings } from '@owlmeans/api-config-client'
4
+
5
+ export const entrypoints = [...authBindings, ...configBindings]
@@ -1,12 +1,12 @@
1
1
 
2
- export { handler, useModule, useValue, useNavigate } from '@owlmeans/client'
2
+ export { handler, useEntrypoint, useValue, useNavigate } from '@owlmeans/client'
3
3
  export type { Navigator } from '@owlmeans/client'
4
4
  export { config } from '@owlmeans/client-context'
5
5
  export { service } from '@owlmeans/config'
6
- export { guard, parent, EntrypointOutcome, clone } from '@owlmeans/entrypoint'
6
+ export { EntrypointOutcome } from '@owlmeans/entrypoint'
7
7
  export type { AbstractRequest } from '@owlmeans/entrypoint'
8
8
  export { addWebService } from '@owlmeans/client-config'
9
- export { entrypoint, elevate, provideRequest, stab } from '@owlmeans/client-entrypoint'
9
+ export { bind, bindAll, bindScreen, provideRequest, stab } from '@owlmeans/client-entrypoint'
10
10
  export type { ClientEntrypoint as Module, ClientRequest as Request } from '@owlmeans/client-entrypoint'
11
11
  export { route as croute } from '@owlmeans/client-route'
12
12
  export { route, frontend, RouteMethod } from '@owlmeans/route'
@@ -37,7 +37,7 @@ export const Ed22519BasicAuthUIPlugin: AuthenticationRenderer = ({ type, stage,
37
37
 
38
38
  const createSubmit = (context: AppContext, control: AuthenticationControl) => async (data: FormData) => {
39
39
  const token = await control.authenticate({
40
- entityId: data.entityId,
40
+ entitySlug: data.entityId,
41
41
  userId: data.address,
42
42
  credential: data.privateKey
43
43
  })
@@ -46,8 +46,8 @@ const createSubmit = (context: AppContext, control: AuthenticationControl) => as
46
46
  return
47
47
  }
48
48
 
49
- const [url] = await context.module<ClientEntrypoint<string, AuthRequest>>(DISPATCHER)
50
- .call({ query: token })
49
+ const url = await context.entrypoint<ClientEntrypoint<string, AuthRequest>>(DISPATCHER)
50
+ .url({ query: token })
51
51
 
52
52
  control.setStage?.(control.stage = AuthenticationStage.Authenticated)
53
53
  // Give some time - that is really not cenessary - actually we need
@@ -61,8 +61,8 @@ const createFinish = (context: AppContext, control: AuthenticationControl) => as
61
61
  console.timeLog('empty token')
62
62
  return
63
63
  }
64
- const [url] = await context.module<Module<string, AuthRequest>>(DISPATCHER)
65
- .call({ query: authToken })
64
+ const url = await context.entrypoint<Module<string, AuthRequest>>(DISPATCHER)
65
+ .url({ query: authToken })
66
66
 
67
67
  control.setStage?.(control.stage = AuthenticationStage.Authenticated)
68
68
 
@@ -16,8 +16,8 @@ export const Link: FC<LinkProps> = ({ src, module, name, variant, children, cent
16
16
  return src
17
17
  }
18
18
  if (module != null) {
19
- module = typeof module === 'string' ? context.module<ClientEntrypoint<string>>(module) : module
20
- const [url] = await module.call<string>()
19
+ module = typeof module === 'string' ? context.entrypoint<ClientEntrypoint<string>>(module) : module
20
+ const url = await module.url()
21
21
 
22
22
  return url
23
23
  }
@@ -0,0 +1,5 @@
1
+
2
+ import { entrypoints as webClientBindings } from '@owlmeans/web-client'
3
+ import { entrypoints as configBindings } from '@owlmeans/api-config-client'
4
+
5
+ export const entrypoints = [...webClientBindings, ...configBindings]
package/src/exports.ts CHANGED
@@ -1,14 +1,13 @@
1
1
 
2
- export { handler, useNavigate, useValue, useModule } from '@owlmeans/client'
2
+ export { handler, useNavigate, useValue, useEntrypoint } from '@owlmeans/client'
3
3
  export { config } from '@owlmeans/client-context'
4
4
  export { service } from '@owlmeans/config'
5
- export { guard, parent } from '@owlmeans/entrypoint'
6
5
  export { addWebService } from '@owlmeans/client-config'
7
- export { entrypoint, elevate, provideRequest, stab } from '@owlmeans/client-entrypoint'
6
+ export { bind, bindAll, bindScreen, provideRequest, stab } from '@owlmeans/client-entrypoint'
8
7
  export type { ClientEntrypoint as Module } from '@owlmeans/client-entrypoint'
9
8
  export { route as croute } from '@owlmeans/client-route'
10
9
  export { route, frontend } from '@owlmeans/route'
11
- export { DEFAULT_ALIAS as DAUTH_GUARD, setupExternalAuthentication } from '@owlmeans/client-auth'
10
+ export { DEFAULT_ALIAS as DAUTH_GUARD, bindExternalAuthentication } from '@owlmeans/client-auth'
12
11
 
13
12
  export { AppType, HOME, ROOT, BASE, GUEST } from '@owlmeans/context'
14
13
 
package/src/index.ts CHANGED
@@ -3,7 +3,7 @@ export type * from './types.js'
3
3
  export * from './main.js'
4
4
  export * from './exports.js'
5
5
  export * from './context.js'
6
- export * from './modules.js'
6
+ export * from './entrypoints.js'
7
7
  export * from './components/index.js'
8
8
 
9
9
  export * from '@owlmeans/client-panel'
package/build/.gitkeep DELETED
File without changes
@@ -1,2 +0,0 @@
1
- export declare const modules: import("@owlmeans/entrypoint").CommonEntrypoint[];
2
- //# sourceMappingURL=modules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../src/auth/modules.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO,mDAAuB,CAAA"}
@@ -1,4 +0,0 @@
1
- import { modules as list } from '@owlmeans/client-auth/manager/modules';
2
- import { modules as config } from '@owlmeans/api-config-client';
3
- export const modules = [...list, ...config];
4
- //# sourceMappingURL=modules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.js","sourceRoot":"","sources":["../../src/auth/modules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,6BAA6B,CAAA;AAE/D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const modules: (import("@owlmeans/client-entrypoint").ClientEntrypoint<{}, import("@owlmeans/client-entrypoint").ClientRequest<{}>> | import("@owlmeans/entrypoint").CommonEntrypoint)[];
2
- //# sourceMappingURL=modules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO,2KAAuB,CAAA"}
package/build/modules.js DELETED
@@ -1,4 +0,0 @@
1
- import { modules as list } from '@owlmeans/web-client';
2
- import { modules as config } from '@owlmeans/api-config-client';
3
- export const modules = [...list, ...config];
4
- //# sourceMappingURL=modules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.js","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,6BAA6B,CAAA;AAE/D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC,CAAA"}
@@ -1,5 +0,0 @@
1
-
2
- import { modules as list } from '@owlmeans/client-auth/manager/modules'
3
- import { modules as config } from '@owlmeans/api-config-client'
4
-
5
- export const modules = [...list, ...config]
package/src/modules.ts DELETED
@@ -1,5 +0,0 @@
1
-
2
- import { modules as list } from '@owlmeans/web-client'
3
- import { modules as config } from '@owlmeans/api-config-client'
4
-
5
- export const modules = [...list, ...config]