@agnos-ui/svelte-headless 0.4.0-next.1 → 0.4.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.
package/config.d.ts CHANGED
@@ -37,6 +37,6 @@ export declare const widgetsConfigFactory: <Config extends {
37
37
  patchChangedProps: W["patch"];
38
38
  };
39
39
  };
40
- export declare const widgetsDefaultConfigKey: symbol, createWidgetsDefaultConfig: CreateWidgetsDefaultConfig<WidgetsConfig>, getContextWidgetConfig: <N extends string | number | symbol>(widgetName: N) => ReadableSignal<any>, callWidgetFactory: <W extends Widget>({ factory, widgetName, $$slots, defaultConfig, events, $$props, }: WidgetFactoryInput<WidgetsConfig, W>) => W & {
40
+ export declare const widgetsDefaultConfigKey: symbol, createWidgetsDefaultConfig: CreateWidgetsDefaultConfig<WidgetsConfig>, getContextWidgetConfig: <N extends string | number | symbol>(widgetName: N) => ReadableSignal<Partial<WidgetsConfig> | undefined>, callWidgetFactory: <W extends Widget>({ factory, widgetName, $$slots, defaultConfig, events, $$props, }: WidgetFactoryInput<WidgetsConfig, W>) => W & {
41
41
  patchChangedProps: W["patch"];
42
42
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agnos-ui/svelte-headless",
3
3
  "description": "Headless widget library for Svelte.",
4
- "version": "0.4.0-next.1",
4
+ "version": "0.4.0",
5
5
  "type": "module",
6
6
  "main": "./index.js",
7
7
  "module": "./index.js",
@@ -49,7 +49,7 @@
49
49
  }
50
50
  },
51
51
  "dependencies": {
52
- "@agnos-ui/core": "0.4.0-next.1"
52
+ "@agnos-ui/core": "0.4.0"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@amadeus-it-group/tansu": "^1.0.0",
package/utils/widget.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { ReadableSignal } from '@amadeus-it-group/tansu';
2
- import type { SlotContent, SlotSvelteComponent, SlotsPresent, WidgetFactory, WidgetProps } from '../types';
2
+ import type { SlotContent, SlotSvelteComponent, SlotsPresent, Widget, WidgetFactory, WidgetProps } from '../types';
3
3
  /**
4
4
  * Call a widget factory using provided configs.
5
5
  *
@@ -20,7 +20,7 @@ export declare const callWidgetFactoryWithConfig: <W extends Widget>({ factory,
20
20
  events?: Pick<WidgetProps<W>, keyof WidgetProps<W> & `on${string}Change`>;
21
21
  $$props: Partial<WidgetProps<W>>;
22
22
  }) => W & {
23
- patchChangedProps: W['patch'];
23
+ patchChangedProps: W["patch"];
24
24
  };
25
25
  /**
26
26
  * A type guard checking if a provided slot content is a Svelte component.