@owlmeans/web-wl 0.1.18-rc.11 → 0.1.18-rc.13

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 CHANGED
@@ -1,11 +1,11 @@
1
1
  # @owlmeans/web-wl
2
2
 
3
- Web whitelabel — service factory, module declarations, and React components for managing whitelabel content in browser apps.
3
+ Web whitelabel — service factory, entrypoint declarations, and React components for managing whitelabel content in browser apps.
4
4
 
5
5
  ## Overview
6
6
 
7
7
  - `makeWlService(alias?)` — web-side whitelabel service factory
8
- - `wlModules` (exported as `modules`) — web-side whitelabel module declarations
8
+ - `entrypoints` — web-side whitelabel entrypoint declarations
9
9
  - Components for displaying whitelabel content
10
10
  - `DEFAULT_ALIAS` — `'wl-web-serivce'`
11
11
 
@@ -17,13 +17,13 @@ bun add @owlmeans/web-wl
17
17
 
18
18
  ## Usage
19
19
 
20
- Register the service and module declarations:
20
+ Register the service and entrypoint declarations:
21
21
 
22
22
  ```typescript
23
- import { makeWlService, modules as wlModules } from '@owlmeans/web-wl'
23
+ import { makeWlService, entrypoints as wlEntrypoints } from '@owlmeans/web-wl'
24
24
 
25
25
  context.registerService(makeWlService())
26
- const modules = [...baseModules, ...wlModules, ...appModules]
26
+ const entrypoints = [...baseEntrypoints, ...wlEntrypoints, ...appEntrypoints]
27
27
  ```
28
28
 
29
29
  Downstream variants (e.g., `@owlmeans/web-wl-manager`) extend this with manager-store helpers like `setupWlManagerStore<C, T>(context)`.
@@ -34,9 +34,9 @@ Downstream variants (e.g., `@owlmeans/web-wl-manager`) extend this with manager-
34
34
 
35
35
  Creates the web whitelabel service. `alias` defaults to `DEFAULT_ALIAS` (`'wl-web-serivce'`).
36
36
 
37
- ### `modules`
37
+ ### `entrypoints`
38
38
 
39
- Array of web-side module declarations for whitelabel content (re-exported as `wlModules` in downstream variants).
39
+ Array of web-side entrypoint declarations for whitelabel content.
40
40
 
41
41
  ### Components
42
42
 
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@owlmeans/web-wl",
4
- "version": "0.1.18-rc.11",
5
- "generatedAt": "2026-09-01T12:04:42.797Z",
4
+ "version": "0.1.18-rc.13",
5
+ "generatedAt": "2026-09-01T16:49:00.429Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/web-wl
9
9
 
10
10
  **Layer:** Web (React)
11
- **Install:** `"@owlmeans/web-wl": "^0.1.18-rc.11"` in `dependencies`
11
+ **Install:** `"@owlmeans/web-wl": "^0.1.18-rc.13"` in `dependencies`
12
12
 
13
13
  ## Key Exports
14
14
 
@@ -0,0 +1,3 @@
1
+ import type { ClientEntrypoint } from '@owlmeans/client-entrypoint';
2
+ export declare const entrypoints: ClientEntrypoint<unknown>[];
3
+ //# sourceMappingURL=entrypoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAKnE,eAAO,MAAM,WAAW,EAAoB,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { elevate } from '@owlmeans/client-entrypoint';
2
+ import { WL_PROVIDE, entrypoints as wlEntrypoints } from '@owlmeans/wled';
3
+ elevate(wlEntrypoints, WL_PROVIDE);
4
+ export const entrypoints = wlEntrypoints;
5
+ //# sourceMappingURL=entrypoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAErD,OAAO,EAAE,UAAU,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEzE,OAAO,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAElC,MAAM,CAAC,MAAM,WAAW,GAAG,aAA4C,CAAA"}
package/build/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export type * from './types.js';
2
2
  export * from './consts.js';
3
- export * from './modules.js';
3
+ export * from './entrypoints.js';
4
4
  export * from './service.js';
5
5
  export * from './components/index.js';
6
6
  //# 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,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,mBAAmB,YAAY,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA"}
package/build/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from './consts.js';
2
- export * from './modules.js';
2
+ export * from './entrypoints.js';
3
3
  export * from './service.js';
4
4
  export * from './components/index.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkC,YAAY,EAAE,MAAM,YAAY,CAAA;AAK9E,eAAO,MAAM,aAAa,WAAW,MAAM,KAAmB,YAqB7D,CAAA"}
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkC,YAAY,EAAE,MAAM,YAAY,CAAA;AAK9E,eAAO,MAAM,aAAa,GAAI,QAAO,MAAsB,KAAG,YAqB7D,CAAA"}
package/build/service.js CHANGED
@@ -10,7 +10,7 @@ export const makeWlService = (alias = DEFAULT_ALIAS) => {
10
10
  }
11
11
  const context = service.assertCtx();
12
12
  const module = context.entrypoint(WL_PROVIDE);
13
- const [wlSet] = await module.call({ params: { entity: entityId } });
13
+ const wlSet = await module.call({ params: { entity: entityId } });
14
14
  return cache[entityId] = wlSet;
15
15
  },
16
16
  extract: (key, set) => set[key]
@@ -1 +1 @@
1
- {"version":3,"file":"service.js","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAG3C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAK,GAAW,aAAa,EAAgB,EAAE;IAC3E,MAAM,KAAK,GAA0C,EAAE,CAAA;IAEvD,MAAM,OAAO,GAAiB,aAAa,CAAe,KAAK,EAAE;QAC/D,IAAI,EAAE,KAAK,EAAC,QAAQ,EAAC,EAAE;YACrB,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;gBAC5B,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAA;YACxB,CAAC;YAED,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,EAAmB,CAAA;YAEpD,MAAM,MAAM,GAAG,OAAO,CAAC,UAAU,CAAkC,UAAU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E,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;KAChC,CAAC,CAAA;IAEF,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/web-wl",
3
- "version": "0.1.18-rc.11",
3
+ "version": "0.1.18-rc.13",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -21,10 +21,10 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@owlmeans/client": "^0.1.18-rc.11",
25
- "@owlmeans/client-entrypoint": "^0.1.18-rc.9",
26
- "@owlmeans/context": "^0.1.18-rc.6",
27
- "@owlmeans/wled": "^0.1.18-rc.8"
24
+ "@owlmeans/client": "^0.1.18-rc.14",
25
+ "@owlmeans/client-entrypoint": "^0.1.18-rc.11",
26
+ "@owlmeans/context": "^0.1.18-rc.7",
27
+ "@owlmeans/wled": "^0.1.18-rc.9"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "react": "*"
@@ -0,0 +1,8 @@
1
+
2
+ import { elevate } from '@owlmeans/client-entrypoint'
3
+ import type { ClientEntrypoint } from '@owlmeans/client-entrypoint'
4
+ import { WL_PROVIDE, entrypoints as wlEntrypoints } from '@owlmeans/wled'
5
+
6
+ elevate(wlEntrypoints, WL_PROVIDE)
7
+
8
+ export const entrypoints = wlEntrypoints as ClientEntrypoint<unknown>[]
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  export type * from './types.js'
3
3
  export * from './consts.js'
4
- export * from './modules.js'
4
+ export * from './entrypoints.js'
5
5
  export * from './service.js'
6
6
  export * from './components/index.js'
7
7
 
package/src/service.ts CHANGED
@@ -17,7 +17,7 @@ export const makeWlService = (alias: string = DEFAULT_ALIAS): WlWebService => {
17
17
  const context = service.assertCtx<Config, Context>()
18
18
 
19
19
  const module = context.entrypoint<ClientEntrypoint<ProvidedWLSet>>(WL_PROVIDE)
20
- const [wlSet] = await module.call({ params: { entity: entityId } })
20
+ const wlSet = await module.call({ params: { entity: entityId } })
21
21
 
22
22
  return cache[entityId] = wlSet as ProvidedWLSet<any>
23
23
  },
@@ -1,3 +0,0 @@
1
- import type { ClientEntrypoint } from '@owlmeans/client-entrypoint';
2
- export declare const modules: ClientEntrypoint<unknown>[];
3
- //# sourceMappingURL=modules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAKnE,eAAO,MAAM,OAAO,EAAgB,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAA"}
package/build/modules.js DELETED
@@ -1,5 +0,0 @@
1
- import { elevate } from '@owlmeans/client-entrypoint';
2
- import { WL_PROVIDE, modules as wlModules } from '@owlmeans/wled';
3
- elevate(wlModules, WL_PROVIDE);
4
- export const modules = wlModules;
5
- //# sourceMappingURL=modules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.js","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAErD,OAAO,EAAE,UAAU,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAEjE,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC,CAAA;AAE9B,MAAM,CAAC,MAAM,OAAO,GAAG,SAAwC,CAAA"}
package/src/modules.ts DELETED
@@ -1,8 +0,0 @@
1
-
2
- import { elevate } from '@owlmeans/client-entrypoint'
3
- import type { ClientEntrypoint } from '@owlmeans/client-entrypoint'
4
- import { WL_PROVIDE, modules as wlModules } from '@owlmeans/wled'
5
-
6
- elevate(wlModules, WL_PROVIDE)
7
-
8
- export const modules = wlModules as ClientEntrypoint<unknown>[]