@molecule/app-webhook-inspector-svelte 1.1.1 → 1.1.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.
package/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-11-21T12:47:48.847Z
6
+ Generated: 2026-11-25T19:02:23.407Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-webhook-inspector-svelte
@@ -128,7 +128,7 @@ Peer dependencies:
128
128
  - `@molecule/app-i18n` ^1.0.1
129
129
  - `@molecule/app-svelte` ^3.5.0
130
130
  - `@molecule/app-ui` ^1.4.0
131
- - `@molecule/app-ui-svelte` ^1.1.0
131
+ - `@molecule/app-ui-svelte` ^1.6.0
132
132
  - `svelte` ^5.0.0
133
133
 
134
134
  ### Runtime Dependencies
@@ -10,8 +10,8 @@
10
10
  import { useTranslation } from '@molecule/app-svelte'
11
11
  import type { ColorVariant } from '@molecule/app-ui'
12
12
  import { getClassMap } from '@molecule/app-ui'
13
+ import { reactStyle } from '@molecule/app-ui-svelte'
13
14
 
14
- import { reactStyle } from './style.js'
15
15
  import type { WebhookDelivery, WebhookInspectorProps } from './types.js'
16
16
 
17
17
  let { deliveries, onRetry, onSelect, selectedId, className }: WebhookInspectorProps = $props()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-webhook-inspector-svelte",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Webhook delivery log row with request/response JSON panels, status, and retry",
5
5
  "homepage": "https://www.molecule.dev/packages/app-webhook-inspector-svelte",
6
6
  "type": "module",
@@ -51,16 +51,16 @@
51
51
  "@molecule/app-i18n": "^1.0.1",
52
52
  "@molecule/app-svelte": "^3.5.0",
53
53
  "@molecule/app-ui": "^1.4.0",
54
- "@molecule/app-ui-svelte": "^1.1.0",
54
+ "@molecule/app-ui-svelte": "^1.6.0",
55
55
  "svelte": "^5.0.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@molecule/app-framework-conformance": "0.0.0",
59
- "@molecule/app-i18n": "1.2.2",
59
+ "@molecule/app-i18n": "1.3.0",
60
60
  "@molecule/app-icons": "1.0.4",
61
- "@molecule/app-svelte": "3.13.0",
62
- "@molecule/app-ui": "1.5.0",
63
- "@molecule/app-ui-svelte": "1.4.1",
61
+ "@molecule/app-svelte": "3.16.0",
62
+ "@molecule/app-ui": "1.13.0",
63
+ "@molecule/app-ui-svelte": "1.9.0",
64
64
  "@sveltejs/package": "3.0.2",
65
65
  "@sveltejs/vite-plugin-svelte": "7.1.2",
66
66
  "@types/node": "26.6.5",
package/dist/style.d.ts DELETED
@@ -1,26 +0,0 @@
1
- /**
2
- * Inline style application for this package's components: a Svelte action that
3
- * applies a React-shaped style object the way react-dom does, so the
4
- * declarations land on the element through the CSSOM exactly as React's runtime
5
- * leaves them (jsdom and browsers serialize the attribute the same way for
6
- * every framework that assigns properties instead of writing the attribute
7
- * string).
8
- *
9
- * @module
10
- */
11
- /** A React-shaped inline style object (camelCase keys, string values). */
12
- export type CSSStyle = Record<string, string | number | undefined | null | false>;
13
- /**
14
- * Svelte action applying a React-shaped style object to an element the way
15
- * React does: every entry is assigned through the CSSOM property setter (in
16
- * object order, values serialized as strings), and keys removed by a
17
- * re-render are cleared too.
18
- *
19
- * @param node - The element to style.
20
- * @param style - The style object (may be undefined).
21
- * @returns The action with an update that re-applies on prop changes.
22
- */
23
- export declare function reactStyle(node: HTMLElement, style: CSSStyle | undefined): {
24
- update: (next: CSSStyle | undefined) => void;
25
- };
26
- //# sourceMappingURL=style.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../src/style.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,0EAA0E;AAC1E,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,KAAK,CAAC,CAAA;AAUjF;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,QAAQ,GAAG,SAAS,GAC1B;IAAE,MAAM,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,KAAK,IAAI,CAAA;CAAE,CAuBlD"}
package/dist/style.js DELETED
@@ -1,52 +0,0 @@
1
- /**
2
- * Inline style application for this package's components: a Svelte action that
3
- * applies a React-shaped style object the way react-dom does, so the
4
- * declarations land on the element through the CSSOM exactly as React's runtime
5
- * leaves them (jsdom and browsers serialize the attribute the same way for
6
- * every framework that assigns properties instead of writing the attribute
7
- * string).
8
- *
9
- * @module
10
- */
11
- /**
12
- * Turns a camelCase CSS property name into its kebab-case DOM spelling.
13
- *
14
- * @param name - The camelCase property (`borderRadius`).
15
- * @returns The kebab-case property (`border-radius`).
16
- */
17
- const kebab = (name) => name.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`);
18
- /**
19
- * Svelte action applying a React-shaped style object to an element the way
20
- * React does: every entry is assigned through the CSSOM property setter (in
21
- * object order, values serialized as strings), and keys removed by a
22
- * re-render are cleared too.
23
- *
24
- * @param node - The element to style.
25
- * @param style - The style object (may be undefined).
26
- * @returns The action with an update that re-applies on prop changes.
27
- */
28
- export function reactStyle(node, style) {
29
- const applied = new Set();
30
- const apply = (next) => {
31
- const removed = new Set(applied);
32
- if (next) {
33
- for (const [key, value] of Object.entries(next)) {
34
- removed.delete(key);
35
- const text = value === undefined || value === null || value === false || value === ''
36
- ? ''
37
- : String(value).trim();
38
- node.style.setProperty(kebab(key), text);
39
- if (text)
40
- applied.add(key);
41
- else
42
- applied.delete(key);
43
- }
44
- }
45
- for (const key of removed) {
46
- node.style.setProperty(kebab(key), '');
47
- applied.delete(key);
48
- }
49
- };
50
- apply(style);
51
- return { update: apply };
52
- }