@agnos-ui/svelte-bootstrap 0.6.0-next.2 → 0.6.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.
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type {PaginationContext, PaginationNumberContext, PaginationProps} from './pagination.gen';
2
+ import type {PaginationApi, PaginationContext, PaginationNumberContext, PaginationProps} from './pagination.gen';
3
3
  import {createPagination} from './pagination.gen';
4
4
  import {Slot} from '@agnos-ui/svelte-headless/slot';
5
5
  import {callWidgetFactory} from '../../config';
@@ -26,6 +26,7 @@
26
26
  },
27
27
  },
28
28
  });
29
+ export const api: PaginationApi = widget.api;
29
30
  </script>
30
31
 
31
32
  {#snippet structure(props: PaginationContext)}
@@ -1,4 +1,6 @@
1
- import type { PaginationProps } from './pagination.gen';
2
- declare const Pagination: import("svelte").Component<Partial<PaginationProps>, {}, "page">;
1
+ import type { PaginationApi, PaginationProps } from './pagination.gen';
2
+ declare const Pagination: import("svelte").Component<Partial<PaginationProps>, {
3
+ api: PaginationApi;
4
+ }, "page">;
3
5
  type Pagination = ReturnType<typeof Pagination>;
4
6
  export default Pagination;
@@ -2,7 +2,7 @@
2
2
  import {ssrAttributes as __AgnosUISveltePreprocess__ssrAttributes, classDirective as __AgnosUISveltePreprocess__classDirective} from '@agnos-ui/svelte-headless/utils/directive';
3
3
  import {BROWSER as __AgnosUISveltePreprocess__BROWSER} from 'esm-env';
4
4
 
5
- import type {RatingProps, StarContext} from './rating.gen';
5
+ import type {RatingApi, RatingProps, StarContext} from './rating.gen';
6
6
  import {createRating} from './rating.gen';
7
7
  import {callWidgetFactory} from '../../config';
8
8
  import {Slot} from '@agnos-ui/svelte-headless/slot';
@@ -12,6 +12,7 @@ import {BROWSER as __AgnosUISveltePreprocess__BROWSER} from 'esm-env';
12
12
  const {
13
13
  state,
14
14
  directives: {containerDirective, starDirective},
15
+ api: ratingApi,
15
16
  } = callWidgetFactory({
16
17
  factory: createRating,
17
18
  widgetName: 'rating',
@@ -26,6 +27,7 @@ import {BROWSER as __AgnosUISveltePreprocess__BROWSER} from 'esm-env';
26
27
  },
27
28
  },
28
29
  });
30
+ export const api: RatingApi = ratingApi;
29
31
  </script>
30
32
 
31
33
  {#snippet star({fill}: StarContext)}
@@ -1,4 +1,6 @@
1
- import type { RatingProps } from './rating.gen';
2
- declare const Rating: import("svelte").Component<Partial<RatingProps>, {}, "rating">;
1
+ import type { RatingApi, RatingProps } from './rating.gen';
2
+ declare const Rating: import("svelte").Component<Partial<RatingProps>, {
3
+ api: RatingApi;
4
+ }, "rating">;
3
5
  type Rating = ReturnType<typeof Rating>;
4
6
  export default Rating;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agnos-ui/svelte-bootstrap",
3
3
  "description": "Bootstrap-based component library for Svelte.",
4
- "version": "0.6.0-next.2",
4
+ "version": "0.6.0",
5
5
  "type": "module",
6
6
  "main": "./index.js",
7
7
  "module": "./index.js",
@@ -49,8 +49,8 @@
49
49
  }
50
50
  },
51
51
  "dependencies": {
52
- "@agnos-ui/core-bootstrap": "0.6.0-next.2",
53
- "@agnos-ui/svelte-headless": "0.6.0-next.2"
52
+ "@agnos-ui/core-bootstrap": "0.6.0",
53
+ "@agnos-ui/svelte-headless": "0.6.0"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@amadeus-it-group/tansu": "^1.0.0",