@thisway/next
Advanced tools
Comparing version 0.15.0 to 0.15.1
@@ -1,1 +0,1 @@ | ||
export { SvelteComponentTyped as default } from 'svelte'; | ||
export { SvelteComponent as default } from 'svelte'; |
@@ -1,1 +0,1 @@ | ||
export { SvelteComponentTyped as default } from 'svelte'; | ||
export { SvelteComponent as default } from 'svelte'; |
@@ -1,1 +0,1 @@ | ||
export { SvelteComponentTyped as default } from 'svelte'; | ||
export { SvelteComponent as default } from 'svelte'; |
@@ -1,1 +0,1 @@ | ||
export { SvelteComponentTyped as default } from 'svelte'; | ||
export { SvelteComponent as default } from 'svelte'; |
@@ -1,1 +0,1 @@ | ||
export { SvelteComponentTyped as default } from 'svelte'; | ||
export { SvelteComponent as default } from 'svelte'; |
@@ -1,1 +0,1 @@ | ||
export { SvelteComponentTyped as default } from 'svelte'; | ||
export { SvelteComponent as default } from 'svelte'; |
@@ -1,6 +0,6 @@ | ||
import type { HighlightOptionsWithDefaultValues, ComputedPlacement, IForeignViewContext, ITourDelegate, NoElement, PopoverOptionsWithDefaultValues, Rect, Step, ThemeOptions, TourOptions } from '@thisway/base'; | ||
import type { Size } from '@thisway/utils'; | ||
import type { Readable, Writable } from 'svelte/store'; | ||
import type { HighlightRect } from './overlay.utils'; | ||
import type { Tour } from './tour'; | ||
import { HighlightOptionsWithDefaultValues, ComputedPlacement, IForeignViewContext, ITourDelegate, NoElement, PopoverOptionsWithDefaultValues, Rect, Step, ThemeOptions, TourOptions } from '@thisway/base'; | ||
import { Size } from '@thisway/utils'; | ||
import { Readable, Writable } from 'svelte/store'; | ||
import { HighlightRect } from './overlay.utils'; | ||
import { Tour } from './tour'; | ||
export type ContextType<T> = symbol & { | ||
@@ -7,0 +7,0 @@ readonly phantomData: T; |
@@ -1,8 +0,8 @@ | ||
import { type ComputedPlacement, type ITourDelegate, type NoElement, type Rect } from '@thisway/base'; | ||
import { type Size } from '@thisway/utils'; | ||
import { type Readable } from 'svelte/store'; | ||
import type { IStepOptionsContext, RenderState } from './context'; | ||
import { ComputedPlacement, ITourDelegate, NoElement, Rect } from '@thisway/base'; | ||
import { Size } from '@thisway/utils'; | ||
import { Readable } from 'svelte/store'; | ||
import { IStepOptionsContext, RenderState } from './context'; | ||
export declare function observeElement(renderState$: Readable<RenderState>, popoverSize$: Readable<Size>, delegate: ITourDelegate, stepOptionsContext: IStepOptionsContext, updatePositionSignal$: Readable<number>): { | ||
elementBounding$: Readable<NoElement | Rect | undefined>; | ||
placement$: import("svelte/store").Writable<ComputedPlacement | undefined>; | ||
placement$: import('svelte/store').Writable<ComputedPlacement | undefined>; | ||
}; |
@@ -1,5 +0,5 @@ | ||
import { type ITourDelegate, type NoElement, type Rect } from '@thisway/base'; | ||
import { type Readable } from 'svelte/store'; | ||
import { type IStepOptionsContext } from './context'; | ||
import type { HighlightRect } from './overlay.utils'; | ||
import { ITourDelegate, NoElement, Rect } from '@thisway/base'; | ||
import { Readable } from 'svelte/store'; | ||
import { IStepOptionsContext } from './context'; | ||
import { HighlightRect } from './overlay.utils'; | ||
export declare function getHighlightBounding(bounding$: Readable<Rect | NoElement | undefined>, delegate: ITourDelegate, stepOptionsContext: IStepOptionsContext): Readable<HighlightRect>; |
@@ -1,2 +0,2 @@ | ||
import type { TourAction } from '@thisway/base'; | ||
import { TourAction } from '@thisway/base'; | ||
export declare function defaultKeydownAction(event: KeyboardEvent): TourAction | undefined; |
@@ -1,4 +0,4 @@ | ||
import type { Orientation, Rect } from '@thisway/base'; | ||
import type { Size } from '@thisway/utils'; | ||
import { Orientation, Rect } from '@thisway/base'; | ||
import { Size } from '@thisway/utils'; | ||
export declare function tryGetOrientation(preferredOrientation: Orientation | undefined, elementRect: Rect, popoverRect: Size, offsetX: number, offsetY: number, viewport: Size): Orientation | undefined; | ||
export declare function getOrientation(...arguments_: Parameters<typeof tryGetOrientation>): Orientation; |
@@ -1,3 +0,3 @@ | ||
import { type Size, type Transform } from '@thisway/utils'; | ||
import type { HighlightOptionsWithDefaultValues } from '@thisway/base'; | ||
import { Size, Transform } from '@thisway/utils'; | ||
import { HighlightOptionsWithDefaultValues } from '@thisway/base'; | ||
export interface HighlightOffsetOptions extends Pick<HighlightOptionsWithDefaultValues, 'padding'> { | ||
@@ -4,0 +4,0 @@ showBorder?: boolean; |
@@ -1,4 +0,4 @@ | ||
import type { Alignment, ComputedPlacement, ITourDelegate, NoElement, Orientation, Point, PopoverPosition, PopoverPositionParsed, Rect } from '@thisway/base'; | ||
import { type Size, type Transform } from '@thisway/utils'; | ||
import { type IStepOptionsContext, type RenderState } from './context'; | ||
import { Alignment, ComputedPlacement, ITourDelegate, NoElement, Orientation, Point, PopoverPosition, PopoverPositionParsed, Rect } from '@thisway/base'; | ||
import { Size, Transform } from '@thisway/utils'; | ||
import { IStepOptionsContext, RenderState } from './context'; | ||
export declare const parsePlacement: (position: PopoverPosition | PopoverPositionParsed | string | undefined) => PopoverPositionParsed; | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import type { CommonOptions, IStepsStore, PopoverOptions } from '@thisway/base'; | ||
import { type Readable } from 'svelte/store'; | ||
import { CommonOptions, IStepsStore, PopoverOptions } from '@thisway/base'; | ||
import { Readable } from 'svelte/store'; | ||
export type MergeStepOptionSource = CommonOptions<PopoverOptions>; | ||
@@ -9,3 +9,3 @@ export declare const mergeStepOption: <K extends keyof MergeStepOptionSource, D extends NonNullable<MergeStepOptionSource[K]>, R extends D>(defaultValues: D, optionsValueRaw: MergeStepOptionSource[K], stepValueRaw: MergeStepOptionSource[K]) => R; | ||
showPopover?: boolean | undefined; | ||
position?: (import("@thisway/base").PopoverPosition | import("@thisway/base").PopoverPositionParsed) | undefined; | ||
position?: (import('@thisway/base').PopoverPosition | import('@thisway/base').PopoverPositionParsed) | undefined; | ||
animateClass?: string | undefined; | ||
@@ -24,3 +24,3 @@ showProgress?: boolean | undefined; | ||
export declare const getHighlightOptions: () => Readable<{ | ||
clickMask?: import("@thisway/base").ClickMaskAction | undefined; | ||
clickMask?: import('@thisway/base').ClickMaskAction | undefined; | ||
showMask: boolean; | ||
@@ -33,3 +33,3 @@ showBorder: boolean; | ||
}>; | ||
export declare const getTheme: () => Readable<Required<import("@thisway/base").ThemeOptions>>; | ||
export declare const getNextStep: (store: IStepsStore, index$: Readable<number | undefined>) => Readable<import("@thisway/base").Step | undefined>; | ||
export declare const getTheme: () => Readable<Required<import('@thisway/base').ThemeOptions>>; | ||
export declare const getNextStep: (store: IStepsStore, index$: Readable<number | undefined>) => Readable<import('@thisway/base').Step | undefined>; |
@@ -1,2 +0,2 @@ | ||
import type { IStepsStore, ITourController, MaybeStepId, Step, StepIdType } from '@thisway/base'; | ||
import { IStepsStore, ITourController, MaybeStepId, Step, StepIdType } from '@thisway/base'; | ||
export interface GetActiveStepReturnValue<T extends Step = Step> { | ||
@@ -3,0 +3,0 @@ step: T | undefined; |
@@ -1,3 +0,3 @@ | ||
import type { IStepsStore, Step, StepIdType } from '@thisway/base'; | ||
import { IStepsStore, Step, StepIdType } from '@thisway/base'; | ||
export declare function findStepIndex([steps, id]: [Step[], StepIdType | null | undefined]): number | undefined; | ||
export declare const createStepsStore: <T extends Step = Step>(initialSteps: T[], defaultActive: StepIdType | null | undefined) => IStepsStore<T>; |
@@ -1,2 +0,2 @@ | ||
import type { Action } from 'svelte/action'; | ||
import { Action } from 'svelte/action'; | ||
export declare const styleObject: Action<HTMLElement, Partial<CSSStyleDeclaration>>; |
@@ -1,4 +0,4 @@ | ||
import { type ComponentSlots, type IStepsStore, type ITourDelegate, NoElement, type Step, type StepInit, type ThisOptions, type TourOptions } from '@thisway/base'; | ||
import type { Component } from 'svelte'; | ||
import { type Readable } from 'svelte/store'; | ||
import { ComponentSlots, IStepsStore, ITourDelegate, NoElement, Step, StepInit, ThisOptions, TourOptions } from '@thisway/base'; | ||
import { Component } from 'svelte'; | ||
import { Readable } from 'svelte/store'; | ||
import { Tour } from './tour'; | ||
@@ -5,0 +5,0 @@ export declare class ThisWayDefaultDelegate<T extends Step = Step, Options extends TourOptions = TourOptions> implements ITourDelegate<T> { |
@@ -1,4 +0,4 @@ | ||
import { type IStepsStore, type ITourDelegate, type Step, type TourAction, type TourOptions } from '@thisway/base'; | ||
import { type Readable, type Unsubscriber } from 'svelte/store'; | ||
import { type ITourContexts, type RenderState } from './context'; | ||
import { IStepsStore, ITourDelegate, Step, TourAction, TourOptions } from '@thisway/base'; | ||
import { Readable, Unsubscriber } from 'svelte/store'; | ||
import { ITourContexts, RenderState } from './context'; | ||
import { StepsController } from './steps.controller'; | ||
@@ -8,3 +8,3 @@ export declare class Tour<T extends Step = Step> extends StepsController<T> { | ||
protected readonly delegate: ITourDelegate<T>; | ||
protected readonly updatePositionSignal$: import("svelte/store").Writable<number>; | ||
protected readonly updatePositionSignal$: import('svelte/store').Writable<number>; | ||
protected readonly renderState$: Readable<RenderState>; | ||
@@ -11,0 +11,0 @@ protected readonly container: HTMLElement; |
/** | ||
* https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform#matrix | ||
*/ | ||
export declare const NOOP_TRANSFORM$: import("svelte/store").Readable<readonly [number, number, number, number, number, number]>; | ||
export declare const NOOP_TRANSFORM$: import('svelte/store').Readable<readonly [number, number, number, number, number, number]>; |
@@ -1,3 +0,3 @@ | ||
import type { ITourDelegate } from '@thisway/base'; | ||
import type { Size } from '@thisway/utils'; | ||
import { ITourDelegate } from '@thisway/base'; | ||
import { Size } from '@thisway/utils'; | ||
export declare function getContainer(delegate: ITourDelegate): HTMLElement; | ||
@@ -4,0 +4,0 @@ export declare const getViewportSize: (delegate: ITourDelegate) => Size; |
{ | ||
"name": "@thisway/next", | ||
"version": "0.15.0", | ||
"version": "0.15.1", | ||
"type": "module", | ||
@@ -19,4 +19,8 @@ "sideEffects": false, | ||
"types": "./index.d.ts" | ||
}, | ||
"./style.css": { | ||
"require": "./style.css", | ||
"import": "./style.css" | ||
} | ||
} | ||
} |
140065