@destyler/carousel 0.3.0 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.d.mts +8 -8
  2. package/package.json +7 -7
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { AnyEventObject, ContextRef, Machine, XSend, XState } from "@destyler/xstate";
2
2
  import { CommonProperties, DirectionProperty, NormalizeProps, Orientation, OrientationProperty, PropTypes, RequiredBy } from "@destyler/types";
3
3
  //#region src/anatomy.d.ts
4
- export declare const anatomy: any;
4
+ export declare const anatomy: import("@destyler/anatomy").AnatomyInstance<"root" | "itemGroup" | "item" | "control" | "nextTrigger" | "prevTrigger" | "indicatorGroup" | "indicator" | "autoplayTrigger">;
5
5
  //#endregion
6
6
  //#region src/types.d.ts
7
7
  interface PageChangeDetails {
@@ -241,14 +241,14 @@ interface MachineApi<T extends PropTypes = PropTypes> {
241
241
  export declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): MachineApi<T>;
242
242
  //#endregion
243
243
  //#region src/machine.d.ts
244
- export declare function machine(userContext: UserDefinedContext): any;
244
+ export declare function machine(userContext: UserDefinedContext): import("@destyler/xstate").Machine<MachineContext, MachineState, import("@destyler/xstate").AnyEventObject>;
245
245
  //#endregion
246
246
  //#region src/props.d.ts
247
- export declare const props: any;
248
- export declare const splitProps: any;
249
- export declare const indicatorProps: any;
250
- export declare const splitIndicatorProps: any;
251
- export declare const itemProps: any;
252
- export declare const splitItemProps: any;
247
+ export declare const props: ("autoplay" | "id" | "ids" | "translations" | "slidesPerPage" | "slidesPerMove" | "allowMouseDrag" | "loop" | "page" | "defaultPage" | "spacing" | "padding" | "onPageChange" | "inViewThreshold" | "snapType" | "slideCount" | "onDragStatusChange" | "onAutoplayStatusChange" | "dir" | "getRootNode" | "orientation")[];
248
+ export declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "autoplay" | "id" | "ids" | "translations" | "slidesPerPage" | "slidesPerMove" | "allowMouseDrag" | "loop" | "page" | "defaultPage" | "spacing" | "padding" | "onPageChange" | "inViewThreshold" | "snapType" | "slideCount" | "onDragStatusChange" | "onAutoplayStatusChange" | "dir" | "getRootNode" | "orientation">];
249
+ export declare const indicatorProps: (keyof IndicatorProps)[];
250
+ export declare const splitIndicatorProps: <Props extends IndicatorProps>(props: Props) => [IndicatorProps, Omit<Props, keyof IndicatorProps>];
251
+ export declare const itemProps: (keyof ItemProps)[];
252
+ export declare const splitItemProps: <Props extends ItemProps>(props: Props) => [ItemProps, Omit<Props, keyof ItemProps>];
253
253
  //#endregion
254
254
  export type { MachineApi as Api, AutoplayStatusDetails, UserDefinedContext as Context, DragStatusDetails, ElementIds, IndicatorProps, IntlTranslations, ItemProps, MachineState, Orientation, PageChangeDetails, Service, State };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@destyler/carousel",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.3.2",
5
5
  "description": "an interactive slideshow component for cycling through elements.",
6
6
  "author": "Elone Hoo <elonehoo@gmail.com>",
7
7
  "license": "MIT",
@@ -25,12 +25,12 @@
25
25
  "node": ">=22.22.3"
26
26
  },
27
27
  "dependencies": {
28
- "@destyler/anatomy": "0.3.0",
29
- "@destyler/dom": "0.3.0",
30
- "@destyler/scroll-snap": "0.3.0",
31
- "@destyler/types": "0.3.0",
32
- "@destyler/utils": "0.3.0",
33
- "@destyler/xstate": "0.3.0"
28
+ "@destyler/anatomy": "0.3.2",
29
+ "@destyler/dom": "0.3.2",
30
+ "@destyler/scroll-snap": "0.3.2",
31
+ "@destyler/types": "0.3.2",
32
+ "@destyler/utils": "0.3.2",
33
+ "@destyler/xstate": "0.3.2"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"