1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
Daniel Neto 2025-07-10 12:49:02 -03:00
parent 47f2df41f5
commit 24c0191104
2754 changed files with 152589 additions and 1339109 deletions

3
node_modules/intro.js/README.md generated vendored
View file

@ -84,6 +84,9 @@ Now you can run this command to minify all static resources:
## Support/Discussion
- [Stackoverflow](http://stackoverflow.com/questions/tagged/intro.js)
## Usage Trends
- [Usage Trends of Product Walkthrough Libraries](https://npm-compare.com/intro.js,@reactour/tour,driver.js,vue-tour)
## License
### Commercial license

8
node_modules/intro.js/intro.js generated vendored

File diff suppressed because one or more lines are too long

2
node_modules/intro.js/intro.js.map generated vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
node_modules/intro.js/introjs.css generated vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

20
node_modules/intro.js/package.json generated vendored
View file

@ -1,6 +1,6 @@
{
"name": "intro.js",
"version": "7.2.0",
"version": "8.3.1",
"description": "User Onboarding and Product Walkthrough Library",
"keywords": [
"onboarding",
@ -22,16 +22,17 @@
"types": "src/index.d.ts",
"scripts": {
"prettier": "prettier --write '(src|tests)/**/*.(js|ts|json|html)' '!tests/cypress/setup/dist'",
"test": "run-p test:prettier test:jest test:jshint",
"cypress:updatesnapshots": "start-server-and-test dev http://localhost:10001/dist/intro.js 'docker run -it -v $PWD:/e2e -w /e2e --entrypoint=cypress cypress/included:cypress-13.17.0-node-22.13.0-chrome-131.0.6778.264-1-ff-134.0-edge-131.0.2903.112-1 run --env visualRegressionType=base'",
"test": "run-p test:prettier test:jest",
"test:prettier": "prettier --check '(src|tests)/**/*.(js|ts|json|html)' '!tests/cypress/setup/dist'",
"test:watch": "jest --watch",
"test:jest": "jest --coverage --silent --ci --coverage --coverageReporters=\"text\" --coverageReporters=\"text-summary\"",
"test:jshint": "jshint ./src --verbose && jshint ./tests --verbose",
"test:cypress": "npm run build && cp -r ./dist ./tests/cypress/setup && cd ./tests && cypress run --env type=actual",
"test:cypress": "start-server-and-test dev http://localhost:10001/dist/intro.js 'docker run -it -v $PWD:/e2e -w /e2e --entrypoint=cypress cypress/included:cypress-13.17.0-node-22.13.0-chrome-131.0.6778.264-1-ff-134.0-edge-131.0.2903.112-1 run --env visualRegressionType=regression || cypress run --env visualRegressionType=regression'",
"release": "./bin/release.sh || true",
"prebuild": "rimraf ./dist",
"build": "rollup -c",
"build:watch": "rollup -c -w"
"build:watch": "rollup -c -w",
"dev": "npm run build:watch -- --configPlugin serve"
},
"devDependencies": {
"@babel/core": "^7.12.3",
@ -46,14 +47,13 @@
"autoprefixer": "^9.0.0",
"babel-jest": "^29.2.2",
"core-js": "^3.6.5",
"cypress": "^12.8.1",
"cypress-real-events": "^1.7.6",
"cypress-visual-regression": "^2.1.1",
"cypress": "^13.12.0",
"cypress-real-events": "^1.13.0",
"cypress-visual-regression": "^5.2.1",
"eslint": "^8.0.1",
"jest": "^29.5.0",
"jest-extended": "^3.2.4",
"jsdom": "^21.1.1",
"jshint": "^2.12.0",
"lerna-changelog": "^2.1.0",
"minify": "^9.1.0",
"node-sass": "^8.0.0",
@ -72,7 +72,9 @@
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-progress": "^1.1.2",
"rollup-plugin-serve": "^1.1.1",
"rollup-plugin-terser": "^7.0.2",
"start-server-and-test": "^2.0.4",
"ts-jest": "^29.1.1",
"tslib": "^2.6.0",
"typescript": "^5.1.6"

View file

@ -1,26 +0,0 @@
import { IntroJs } from "../intro";
/**
* DOMEvent Handles all DOM events
*
* methods:
*
* on - add event handler
* off - remove event
*/
declare class DOMEvent {
private readonly events_key;
/**
* Gets a unique ID for an event listener
*/
private _id;
/**
* Adds event listener
*/
on(obj: EventTarget, type: string, listener: (context: IntroJs | EventTarget, e: Event) => void | undefined | string | Promise<string | void>, context: IntroJs, useCapture: boolean): void;
/**
* Removes event listener
*/
off(obj: EventTarget, type: string, listener: (context: IntroJs | EventTarget, e: Event) => void | undefined | string | Promise<string | void>, context: IntroJs, useCapture: boolean): void;
}
declare const _default: DOMEvent;
export default _default;

View file

@ -1,7 +0,0 @@
import { IntroJs } from "../intro";
/**
* Add overlay layer to the page
*
* @api private
*/
export default function addOverlayLayer(intro: IntroJs, targetElm: HTMLElement): boolean;

View file

@ -1,13 +0,0 @@
import { IntroJs } from "../intro";
/**
* Set the "Don't show again" state
*
* @api private
*/
export declare function setDontShowAgain(intro: IntroJs, dontShowAgain: boolean): void;
/**
* Get the "Don't show again" state from cookies
*
* @api private
*/
export declare function getDontShowAgain(intro: IntroJs): boolean;

View file

@ -1,8 +0,0 @@
import { IntroJs } from "../intro";
/**
* Exit from intro
*
* @api private
* @param {Boolean} force - Setting to `true` will skip the result of beforeExit callback
*/
export default function exitIntro(intro: IntroJs, targetElement: HTMLElement, force?: boolean): Promise<void>;

View file

@ -1,8 +0,0 @@
import { IntroJs } from "../intro";
import { IntroStep } from "./steps";
/**
* Finds all Intro steps from the data-* attributes and the options.steps array
*
* @api private
*/
export default function fetchIntroSteps(intro: IntroJs, targetElm: HTMLElement): IntroStep[];

View file

@ -1,81 +0,0 @@
import { HintPosition } from "./steps";
import { IntroJs } from "../intro";
/**
* Get a queryselector within the hint wrapper
*/
export declare function hintQuerySelectorAll(selector: string): HTMLElement[];
/**
* Hide a hint
*
* @api private
*/
export declare function hideHint(intro: IntroJs, stepId: number): Promise<void>;
/**
* Hide all hints
*
* @api private
*/
export declare function hideHints(intro: IntroJs): Promise<void>;
/**
* Show all hints
*
* @api private
*/
export declare function showHints(intro: IntroJs): Promise<void>;
/**
* Show a hint
*
* @api private
*/
export declare function showHint(stepId: number): void;
/**
* Removes all hint elements on the page
* Useful when you want to destroy the elements and add them again (e.g. a modal or popup)
*
* @api private
*/
export declare function removeHints(intro: IntroJs): void;
/**
* Remove one single hint element from the page
* Useful when you want to destroy the element and add them again (e.g. a modal or popup)
* Use removeHints if you want to remove all elements.
*
* @api private
*/
export declare function removeHint(stepId: number): void;
/**
* Add all available hints to the page
*
* @api private
*/
export declare function addHints(intro: IntroJs): Promise<void>;
/**
* Aligns hint position
*
* @api private
*/
export declare function alignHintPosition(position: HintPosition, hintElement: HTMLElement, targetElement?: HTMLElement): void;
/**
* Triggers when user clicks on the hint element
*
* @api private
*/
export declare function showHintDialog(intro: IntroJs, stepId: number): Promise<void>;
/**
* Removes open hint (tooltip hint)
*
* @api private
*/
export declare function removeHintTooltip(): string | undefined;
/**
* Start parsing hint items
*
* @api private
*/
export declare function populateHints(intro: IntroJs, targetElm: HTMLElement): Promise<boolean>;
/**
* Re-aligns all hint elements
*
* @api private
*/
export declare function reAlignHints(intro: IntroJs): void;

View file

@ -1,7 +0,0 @@
import { IntroJs } from "../intro";
/**
* Initiate a new introduction/guide from an element in the page
*
* @api private
*/
export default function introForElement(intro: IntroJs, targetElm: HTMLElement): Promise<Boolean>;

View file

@ -1,2 +0,0 @@
import { IntroJs } from "../intro";
export default function onResize(intro: IntroJs): void;

View file

@ -1,8 +0,0 @@
import { HintStep, IntroStep } from "./steps";
import { IntroJs } from "../intro";
/**
* Render tooltip box in the page
*
* @api private
*/
export default function placeTooltip(intro: IntroJs, currentStep: IntroStep | HintStep, tooltipLayer: HTMLElement, arrowLayer: HTMLElement, hintMode?: boolean): void;

View file

@ -1,6 +0,0 @@
import { IntroJs } from "../intro";
/**
* Update placement of the intro objects on the screen
* @api private
*/
export default function refresh(intro: IntroJs, refreshSteps?: boolean): IntroJs | undefined;

View file

@ -1,6 +0,0 @@
/**
* To remove all show element(s)
*
* @api private
*/
export default function removeShowElement(): void;

View file

@ -1,8 +0,0 @@
import { IntroJs } from "../intro";
import { HintStep, IntroStep } from "./steps";
/**
* Update the position of the helper layer on the screen
*
* @api private
*/
export default function setHelperLayerPosition(intro: IntroJs, step: IntroStep | HintStep, helperLayer: HTMLElement): void;

View file

@ -1,18 +0,0 @@
import { IntroStep } from "./steps";
import { IntroJs } from "../intro";
/**
* Deletes and recreates the bullets layer
* @private
*/
export declare function _recreateBullets(intro: IntroJs, targetElement: IntroStep): void;
/**
* Updates an existing progress bar variables
* @private
*/
export declare function _updateProgressBar(oldReferenceLayer: HTMLElement, currentStep: number, introItemsLength: number): void;
/**
* Show an element on the page
*
* @api private
*/
export default function _showElement(intro: IntroJs, targetElement: IntroStep): Promise<void>;

View file

@ -1,48 +0,0 @@
import { IntroJs } from "../intro";
export type ScrollTo = "off" | "element" | "tooltip";
export type TooltipPosition = "floating" | "top" | "bottom" | "left" | "right" | "top-right-aligned" | "top-left-aligned" | "top-middle-aligned" | "bottom-right-aligned" | "bottom-left-aligned" | "bottom-middle-aligned";
export type HintPosition = "top-left" | "top-right" | "top-middle" | "bottom-left" | "bottom-right" | "bottom-middle" | "middle-left" | "middle-right" | "middle-middle";
export type IntroStep = {
step: number;
title: string;
intro: string;
tooltipClass?: string;
highlightClass?: string;
element?: HTMLElement | string | null;
position: TooltipPosition;
scrollTo: ScrollTo;
disableInteraction?: boolean;
};
export type HintStep = {
element?: HTMLElement | string | null;
tooltipClass?: string;
position: TooltipPosition;
hint?: string;
hintTargetElement?: HTMLElement;
hintAnimation?: boolean;
hintPosition: HintPosition;
};
/**
* Go to specific step of introduction
*
* @api private
*/
export declare function goToStep(intro: IntroJs, step: number): Promise<void>;
/**
* Go to the specific step of introduction with the explicit [data-step] number
*
* @api private
*/
export declare function goToStepNumber(intro: IntroJs, step: number): Promise<void>;
/**
* Go to next step on intro
*
* @api private
*/
export declare function nextStep(intro: IntroJs): Promise<boolean>;
/**
* Go to previous step on intro
*
* @api private
*/
export declare function previousStep(intro: IntroJs): Promise<boolean>;

51
node_modules/intro.js/src/index.d.ts generated vendored
View file

@ -1,27 +1,40 @@
import { IntroJs } from "./intro";
import { Hint } from "./packages/hint";
import { Tour } from "./packages/tour";
declare class LegacyIntroJs extends Tour {
/**
* @deprecated introJs().addHints() is deprecated, please use introJs.hint().addHints() instead
* @param args
*/
addHints(..._: any[]): void;
/**
* @deprecated introJs().addHint() is deprecated, please use introJs.hint.addHint() instead
* @param args
*/
addHint(..._: any[]): void;
/**
* @deprecated introJs().removeHints() is deprecated, please use introJs.hint.hideHints() instead
* @param args
*/
removeHints(..._: any[]): void;
}
/**
* Create a new IntroJS instance
*
* @param targetElm Optional target element to start the tour/hint on
* @returns
* Intro.js module
*/
declare const introJs: {
(targetElm?: string | HTMLElement): IntroJs;
(elementOrSelector?: string | HTMLElement): LegacyIntroJs;
/**
* Current IntroJs version
*
* @property version
* @type String
* Create a new Intro.js Tour instance
* @param elementOrSelector Optional target element to start the Tour on
*/
tour(elementOrSelector?: string | HTMLElement): Tour;
/**
* Create a new Intro.js Hint instance
* @param elementOrSelector Optional target element to start the Hint on
*/
hint(elementOrSelector?: string | HTMLElement): Hint;
/**
* Current Intro.js version
*/
version: string;
/**
* key-val object helper for introJs instances
*
* @property instances
* @type Object
*/
instances: {
[key: number]: IntroJs;
};
};
export default introJs;

1
node_modules/intro.js/src/index.test.d.ts generated vendored Normal file
View file

@ -0,0 +1 @@
export {};

71
node_modules/intro.js/src/intro.d.ts generated vendored
View file

@ -1,71 +0,0 @@
import { HintStep, IntroStep } from "./core/steps";
import { Options } from "./option";
type introBeforeChangeCallback = (this: IntroJs, targetElement: HTMLElement, currentStep: number, direction: "backward" | "forward") => Promise<boolean> | boolean;
type introChangeCallback = (this: IntroJs, targetElement: HTMLElement) => void | Promise<void>;
type introAfterChangeCallback = (this: IntroJs, targetElement: HTMLElement) => void | Promise<void>;
type introCompleteCallback = (this: IntroJs, currentStep: number, reason: "skip" | "end" | "done") => void | Promise<void>;
type introStartCallback = (this: IntroJs, targetElement: HTMLElement) => void | Promise<void>;
type introExitCallback = (this: IntroJs) => void | Promise<void>;
type introSkipCallback = (this: IntroJs, currentStep: number) => void | Promise<void>;
type introBeforeExitCallback = (this: IntroJs, targetElement: HTMLElement) => boolean | Promise<boolean>;
type hintsAddedCallback = (this: IntroJs) => void | Promise<void>;
type hintClickCallback = (this: IntroJs, hintElement: HTMLElement, item: HintStep, stepId: number) => void | Promise<void>;
type hintCloseCallback = (this: IntroJs, stepId: number) => void | Promise<void>;
export declare class IntroJs {
_currentStep: number;
_currentStepNumber: number | undefined;
_direction: "forward" | "backward";
_targetElement: HTMLElement;
_introItems: IntroStep[];
_hintItems: HintStep[];
_options: Options;
_introBeforeChangeCallback?: introBeforeChangeCallback;
_introChangeCallback?: introChangeCallback;
_introAfterChangeCallback?: introAfterChangeCallback;
_introCompleteCallback?: introCompleteCallback;
_introStartCallback?: introStartCallback;
_introExitCallback?: introExitCallback;
_introSkipCallback?: introSkipCallback;
_introBeforeExitCallback?: introBeforeExitCallback;
_hintsAddedCallback?: hintsAddedCallback;
_hintClickCallback?: hintClickCallback;
_hintCloseCallback?: hintCloseCallback;
_lastShowElementTimer: number;
_hintsAutoRefreshFunction: (...args: any[]) => void;
constructor(targetElement: HTMLElement);
isActive(): boolean;
clone(): IntroJs;
setOption<K extends keyof Options>(key: K, value: Options[K]): this;
setOptions(partialOptions: Partial<Options>): this;
start(): Promise<this>;
goToStep(step: number): Promise<this>;
addStep(step: Partial<IntroStep>): this;
addSteps(steps: Partial<IntroStep>[]): this;
goToStepNumber(step: number): Promise<this>;
nextStep(): Promise<this>;
previousStep(): Promise<this>;
currentStep(): number;
exit(force: boolean): Promise<this>;
refresh(refreshSteps?: boolean): this;
setDontShowAgain(dontShowAgain: boolean): this;
onbeforechange(providedCallback: introBeforeChangeCallback): this;
onchange(providedCallback: introChangeCallback): this;
onafterchange(providedCallback: introAfterChangeCallback): this;
oncomplete(providedCallback: introCompleteCallback): this;
onhintsadded(providedCallback: hintsAddedCallback): this;
onhintclick(providedCallback: hintClickCallback): this;
onhintclose(providedCallback: hintCloseCallback): this;
onstart(providedCallback: introStartCallback): this;
onexit(providedCallback: introExitCallback): this;
onskip(providedCallback: introSkipCallback): this;
onbeforeexit(providedCallback: introBeforeExitCallback): this;
addHints(): Promise<this>;
hideHint(stepId: number): Promise<this>;
hideHints(): Promise<this>;
showHint(stepId: number): this;
showHints(): Promise<this>;
removeHints(): this;
removeHint(stepId: number): this;
showHintDialog(stepId: number): Promise<this>;
}
export {};

View file

@ -1,47 +1,2 @@
import { HintPosition, HintStep, IntroStep, ScrollTo, TooltipPosition } from "./core/steps";
export interface Options {
steps: Partial<IntroStep>[];
hints: Partial<HintStep>[];
isActive: boolean;
nextLabel: string;
prevLabel: string;
skipLabel: string;
doneLabel: string;
hidePrev: boolean;
hideNext: boolean;
nextToDone: boolean;
tooltipPosition: string;
tooltipClass: string;
group: string;
highlightClass: string;
exitOnEsc: boolean;
exitOnOverlayClick: boolean;
showStepNumbers: boolean;
stepNumbersOfLabel: string;
keyboardNavigation: boolean;
showButtons: boolean;
showBullets: boolean;
showProgress: boolean;
scrollToElement: boolean;
scrollTo: ScrollTo;
scrollPadding: number;
overlayOpacity: number;
autoPosition: boolean;
positionPrecedence: TooltipPosition[];
disableInteraction: boolean;
dontShowAgain: boolean;
dontShowAgainLabel: string;
dontShowAgainCookie: string;
dontShowAgainCookieDays: number;
helperElementPadding: number;
hintPosition: HintPosition;
hintButtonLabel: string;
hintShowButton: boolean;
hintAutoRefreshInterval: number;
hintAnimation: boolean;
buttonClass: string;
progressBarAdditionalClass: boolean;
}
export declare function getDefaultOptions(): Options;
export declare function setOption<K extends keyof Options>(options: Options, key: K, value: Options[K]): Options;
export declare function setOptions(options: Options, partialOptions: Partial<Options>): Options;
export declare function setOption<T, K extends keyof T>(options: T, key: K, value: T[K]): T;
export declare function setOptions<T>(options: T, partialOptions: Partial<T>): T;

1
node_modules/intro.js/src/option.test.d.ts generated vendored Normal file
View file

@ -0,0 +1 @@
export {};

225
node_modules/intro.js/src/packages/dom/index.d.ts generated vendored Normal file
View file

@ -0,0 +1,225 @@
/**
* A TypeScript and modified version of the VanJS project.
* Credits: https://github.com/vanjs-org/van & https://github.com/ge3224/van-ts
*/
/**
* A type representing primitive JavaScript types.
*/
export type Primitive = string | number | boolean | bigint;
/**
* A type representing a property value which can be a primitive, a function,
* or null.
*/
export type PropValue = Primitive | (<T>(e: T) => void) | null;
/**
* A type representing valid child DOM values.
*/
export type ValidChildDomValue = Primitive | Node | null | undefined;
/**
* A type representing functions that generate DOM values.
*/
export type BindingFunc = ((dom?: Node) => ValidChildDomValue) | ((dom?: Element) => Element);
/**
* A type representing various possible child DOM values.
*/
export type ChildDom = ValidChildDomValue | StateView<Primitive | null | undefined> | BindingFunc | readonly ChildDom[];
type Binding = {
f: BindingFunc;
_dom: HTMLElement | null | undefined;
};
type Listener<T> = {
f: BindingFunc;
s: State<T>;
_dom?: HTMLElement | null | undefined;
};
/**
* Interface representing a state object with various properties and bindings.
*/
export interface State<T> {
val: T | undefined;
readonly oldVal: T | undefined;
rawVal: T | undefined;
_oldVal: T | undefined;
_bindings: Array<Binding>;
_listeners: Array<Listener<T>>;
}
/**
* A type representing a read-only view of a `State` object.
*/
export type StateView<T> = Readonly<State<T>>;
/**
* A type representing a value that can be either a `State` object or a direct
* value of type `T`.
*/
export type Val<T> = State<T> | T;
/**
* A type representing a property value, a state view of a property value, or a
* function returning a property value.
*/
export type PropValueOrDerived = PropValue | StateView<PropValue> | (() => PropValue);
/**
* A type representing partial props with known keys for a specific
* element type.
*/
export type Props = Record<string, PropValueOrDerived> & {
class?: PropValueOrDerived;
};
export type PropsWithKnownKeys<ElementType> = Partial<{
[K in keyof ElementType]: PropValueOrDerived;
}>;
/**
* Represents a function type that constructs a tagged result using provided
* properties and children.
*/
export type TagFunc<Result> = (first?: (Props & PropsWithKnownKeys<Result>) | ChildDom, ...rest: readonly ChildDom[]) => Result;
/**
* Represents a function type for creating a namespace-specific collection of
* tag functions.
*
* @param {string} namespaceURI
* - The URI of the namespace for which the tag functions are being created.
*
* @returns {Readonly<Record<string, TagFunc<Element>>>}
* - A readonly record of string keys to TagFunc<Element> functions,
* representing the collection of tag functions within the specified
* namespace.
*/
export type NamespaceFunction = (namespaceURI: string) => Readonly<Record<string, TagFunc<Element>>>;
/**
* Represents a type for a collection of tag functions.
*
* This type includes:
* - A readonly record of string keys to TagFunc<Element> functions, enabling
* the creation of generic HTML elements.
* - Specific tag functions for each HTML element type as defined in
* HTMLElementTagNameMap, with the return type corresponding to the specific
* type of the HTML element (e.g., HTMLDivElement for 'div',
* HTMLAnchorElement for 'a').
*
* Usage of this type allows for type-safe creation of HTML elements with
* specific properties and child elements.
*/
export type Tags = Readonly<Record<string, TagFunc<Element>>> & {
[K in keyof HTMLElementTagNameMap]: TagFunc<HTMLElementTagNameMap[K]>;
};
declare const _default: {
add: (dom: Element, ...children: readonly ChildDom[]) => Element;
tags: Readonly<Record<string, TagFunc<Element>>> & {
a: TagFunc<HTMLAnchorElement>;
abbr: TagFunc<HTMLElement>;
address: TagFunc<HTMLElement>;
area: TagFunc<HTMLAreaElement>;
article: TagFunc<HTMLElement>;
aside: TagFunc<HTMLElement>;
audio: TagFunc<HTMLAudioElement>;
b: TagFunc<HTMLElement>;
base: TagFunc<HTMLBaseElement>;
bdi: TagFunc<HTMLElement>;
bdo: TagFunc<HTMLElement>;
blockquote: TagFunc<HTMLQuoteElement>;
body: TagFunc<HTMLBodyElement>;
br: TagFunc<HTMLBRElement>;
button: TagFunc<HTMLButtonElement>;
canvas: TagFunc<HTMLCanvasElement>;
caption: TagFunc<HTMLTableCaptionElement>;
cite: TagFunc<HTMLElement>;
code: TagFunc<HTMLElement>;
col: TagFunc<HTMLTableColElement>;
colgroup: TagFunc<HTMLTableColElement>;
data: TagFunc<HTMLDataElement>;
datalist: TagFunc<HTMLDataListElement>;
dd: TagFunc<HTMLElement>;
del: TagFunc<HTMLModElement>;
details: TagFunc<HTMLDetailsElement>;
dfn: TagFunc<HTMLElement>;
dialog: TagFunc<HTMLDialogElement>;
div: TagFunc<HTMLDivElement>;
dl: TagFunc<HTMLDListElement>;
dt: TagFunc<HTMLElement>;
em: TagFunc<HTMLElement>;
embed: TagFunc<HTMLEmbedElement>;
fieldset: TagFunc<HTMLFieldSetElement>;
figcaption: TagFunc<HTMLElement>;
figure: TagFunc<HTMLElement>;
footer: TagFunc<HTMLElement>;
form: TagFunc<HTMLFormElement>;
h1: TagFunc<HTMLHeadingElement>;
h2: TagFunc<HTMLHeadingElement>;
h3: TagFunc<HTMLHeadingElement>;
h4: TagFunc<HTMLHeadingElement>;
h5: TagFunc<HTMLHeadingElement>;
h6: TagFunc<HTMLHeadingElement>;
head: TagFunc<HTMLHeadElement>;
header: TagFunc<HTMLElement>;
hgroup: TagFunc<HTMLElement>;
hr: TagFunc<HTMLHRElement>;
html: TagFunc<HTMLHtmlElement>;
i: TagFunc<HTMLElement>;
iframe: TagFunc<HTMLIFrameElement>;
img: TagFunc<HTMLImageElement>;
input: TagFunc<HTMLInputElement>;
ins: TagFunc<HTMLModElement>;
kbd: TagFunc<HTMLElement>;
label: TagFunc<HTMLLabelElement>;
legend: TagFunc<HTMLLegendElement>;
li: TagFunc<HTMLLIElement>;
link: TagFunc<HTMLLinkElement>;
main: TagFunc<HTMLElement>;
map: TagFunc<HTMLMapElement>;
mark: TagFunc<HTMLElement>;
menu: TagFunc<HTMLMenuElement>;
meta: TagFunc<HTMLMetaElement>;
meter: TagFunc<HTMLMeterElement>;
nav: TagFunc<HTMLElement>;
noscript: TagFunc<HTMLElement>;
object: TagFunc<HTMLObjectElement>;
ol: TagFunc<HTMLOListElement>;
optgroup: TagFunc<HTMLOptGroupElement>;
option: TagFunc<HTMLOptionElement>;
output: TagFunc<HTMLOutputElement>;
p: TagFunc<HTMLParagraphElement>;
picture: TagFunc<HTMLPictureElement>;
pre: TagFunc<HTMLPreElement>;
progress: TagFunc<HTMLProgressElement>;
q: TagFunc<HTMLQuoteElement>;
rp: TagFunc<HTMLElement>;
rt: TagFunc<HTMLElement>;
ruby: TagFunc<HTMLElement>;
s: TagFunc<HTMLElement>;
samp: TagFunc<HTMLElement>;
script: TagFunc<HTMLScriptElement>;
search: TagFunc<HTMLElement>;
section: TagFunc<HTMLElement>;
select: TagFunc<HTMLSelectElement>;
slot: TagFunc<HTMLSlotElement>;
small: TagFunc<HTMLElement>;
source: TagFunc<HTMLSourceElement>;
span: TagFunc<HTMLSpanElement>;
strong: TagFunc<HTMLElement>;
style: TagFunc<HTMLStyleElement>;
sub: TagFunc<HTMLElement>;
summary: TagFunc<HTMLElement>;
sup: TagFunc<HTMLElement>;
table: TagFunc<HTMLTableElement>;
tbody: TagFunc<HTMLTableSectionElement>;
td: TagFunc<HTMLTableCellElement>;
template: TagFunc<HTMLTemplateElement>;
textarea: TagFunc<HTMLTextAreaElement>;
tfoot: TagFunc<HTMLTableSectionElement>;
th: TagFunc<HTMLTableCellElement>;
thead: TagFunc<HTMLTableSectionElement>;
time: TagFunc<HTMLTimeElement>;
title: TagFunc<HTMLTitleElement>;
tr: TagFunc<HTMLTableRowElement>;
track: TagFunc<HTMLTrackElement>;
u: TagFunc<HTMLElement>;
ul: TagFunc<HTMLUListElement>;
var: TagFunc<HTMLElement>;
video: TagFunc<HTMLVideoElement>;
wbr: TagFunc<HTMLElement>;
} & NamespaceFunction;
state: <T>(initVal?: T | undefined) => State<T>;
derive: <T_1>(f: () => T_1, s?: State<T_1> | undefined, dom?: ChildDom) => State<T_1>;
hydrate: <T_2 extends Node>(dom: T_2, updateFn: (dom: T_2) => T_2 | null | undefined) => void | T_2;
};
export default _default;

View file

@ -0,0 +1 @@
export {};

12
node_modules/intro.js/src/packages/hint/className.d.ts generated vendored Normal file
View file

@ -0,0 +1,12 @@
export declare const hintsClassName = "introjs-hints";
export declare const hintClassName = "introjs-hint";
export declare const arrowClassName = "introjs-arrow";
export declare const tooltipClassName = "introjs-tooltip";
export declare const hideHintClassName = "introjs-hidehint";
export declare const tooltipReferenceLayerClassName = "introjs-tooltipReferenceLayer";
export declare const tooltipTextClassName = "introjs-tooltiptext";
export declare const hintReferenceClassName = "introjs-hintReference";
export declare const hintNoAnimationClassName = "introjs-hint-no-anim";
export declare const fixedHintClassName = "introjs-fixedhint";
export declare const hintDotClassName = "introjs-hint-dot";
export declare const hintPulseClassName = "introjs-hint-pulse";

View file

@ -0,0 +1,9 @@
import { State } from "../../dom";
import { HintItem } from "../hintItem";
export type HintProps = {
index: number;
hintItem: HintItem;
refreshesSignal: State<number>;
onClick: (e: any) => void;
};
export declare const HintIcon: ({ index, hintItem, onClick, refreshesSignal, }: HintProps) => HTMLAnchorElement;

View file

@ -0,0 +1,12 @@
import { TooltipProps } from "../../tooltip/tooltip";
import { HintItem } from "../hintItem";
export type HintTooltipProps = Omit<TooltipProps, "hintMode" | "element" | "position"> & {
hintItem: HintItem;
closeButtonEnabled: boolean;
closeButtonOnClick: (hintItem: HintItem) => void;
closeButtonLabel: string;
closeButtonClassName: string;
className?: string;
renderAsHtml?: boolean;
};
export declare const HintTooltip: ({ hintItem, closeButtonEnabled, closeButtonOnClick, closeButtonLabel, closeButtonClassName, className, renderAsHtml, ...props }: HintTooltipProps) => HTMLDivElement;

View file

@ -0,0 +1 @@
export {};

View file

@ -0,0 +1,5 @@
import { Hint } from "../hint";
export type HintsRootProps = {
hint: Hint;
};
export declare const HintsRoot: ({ hint }: HintsRootProps) => HTMLDivElement;

View file

@ -0,0 +1,8 @@
import { State } from "../../dom";
import { HintTooltipProps } from "./HintTooltip";
export type ReferenceLayerProps = HintTooltipProps & {
activeHintSignal: State<number | undefined>;
targetElement: HTMLElement;
helperElementPadding: number;
};
export declare const ReferenceLayer: ({ activeHintSignal, targetElement, helperElementPadding, ...props }: ReferenceLayerProps) => () => HTMLDivElement | null;

View file

@ -0,0 +1,4 @@
export declare const dataHintAttribute = "data-hint";
export declare const dataStepAttribute = "data-step";
export declare const dataHintPositionAttribute = "data-hint-position";
export declare const dataTooltipClassAttribute = "data-tooltip-class";

14
node_modules/intro.js/src/packages/hint/hide.d.ts generated vendored Normal file
View file

@ -0,0 +1,14 @@
import { Hint } from "./hint";
import { HintItem } from "./hintItem";
/**
* Hide a hint
*
* @api private
*/
export declare function hideHint(hint: Hint, hintItem: HintItem): Promise<void>;
/**
* Hide all hints
*
* @api private
*/
export declare function hideHints(hint: Hint): Promise<void>;

190
node_modules/intro.js/src/packages/hint/hint.d.ts generated vendored Normal file
View file

@ -0,0 +1,190 @@
import { Package } from "../package";
import { HintOptions } from "./option";
import { HintItem } from "./hintItem";
type hintsAddedCallback = (this: Hint) => void | Promise<void>;
type hintClickCallback = (this: Hint, item: HintItem) => void | Promise<void>;
type hintCloseCallback = (this: Hint, item: HintItem) => void | Promise<void>;
export declare class Hint implements Package<HintOptions> {
private _root;
private _hints;
private readonly _targetElement;
private _options;
private _activeHintSignal;
private _refreshesSignal;
private readonly callbacks;
private _hintsAutoRefreshFunction?;
private _windowClickFunction?;
/**
* Create a new Hint instance
* @param elementOrSelector Optional target element or CSS query to start the Hint on
* @param options Optional Hint options
*/
constructor(elementOrSelector?: string | HTMLElement, options?: Partial<HintOptions>);
/**
* Get the callback function for the provided callback name
* @param callbackName The name of the callback
*/
callback<K extends keyof typeof this.callbacks>(callbackName: K): (typeof this.callbacks)[K] | undefined;
/**
* Get the target element for the Hint
*/
getTargetElement(): HTMLElement;
/**
* Get the Hint items
*/
getHints(): HintItem[];
/**
* Get the Hint item for the provided step ID
* @param stepId The step ID
*/
getHint(stepId: number): HintItem | undefined;
/**
* Set the Hint items
* @param hints The Hint items
*/
setHints(hints: HintItem[]): this;
/**
* Add a Hint item
* @param hint The Hint item
*/
addHint(hint: HintItem): this;
/**
* Get the active hint signal
* This is meant to be used internally by the Hint package
*/
getActiveHintSignal(): import("../dom").State<number | undefined>;
/**
* Returns the underlying state of the refreshes
* This is an internal method and should not be used outside of the package.
*/
getRefreshesSignal(): import("../dom").State<number>;
/**
* Returns true if the hints are rendered
*/
isRendered(): boolean;
private createRoot;
private recreateRoot;
/**
* Render hints on the page
*/
render(): Promise<this>;
/**
* Enable closing the dialog when the user clicks outside the hint
*/
enableCloseDialogOnWindowClick(): void;
/**
* Disable closing the dialog when the user clicks outside the hint
*/
disableCloseDialogOnWindowClick(): void;
/**
* @deprecated renderHints() is deprecated, please use render() instead
*/
addHints(): Promise<this>;
/**
* Hide a specific hint on the page
* @param stepId The hint step ID
*/
hideHint(stepId: number): Promise<this>;
/**
* Hide all hints on the page
*/
hideHints(): Promise<this>;
/**
* Show a specific hint on the page
* @param stepId The hint step ID
*/
showHint(stepId: number): this;
/**
* Show all hints on the page
*/
showHints(): Promise<this>;
/**
* Destroys and removes all hint elements on the page
* Useful when you want to destroy the elements and add them again (e.g. a modal or popup)
*/
destroy(): this;
/**
* @deprecated removeHints() is deprecated, please use destroy() instead
*/
removeHints(): this;
/**
* Remove one single hint element from the page
* Useful when you want to destroy the element and add them again (e.g. a modal or popup)
* Use removeHints if you want to remove all elements.
*
* @param stepId The hint step ID
*/
removeHint(stepId: number): this;
/**
* Show hint dialog for a specific hint
* @param stepId The hint step ID
*/
showHintDialog(stepId: number): Promise<this | undefined>;
/**
* Hide hint dialog from the page
*/
hideHintDialog(): this;
/**
* Refresh the hints on the page
*/
refresh(): this;
/**
* Enable hint auto refresh on page scroll and resize for hints
*/
enableHintAutoRefresh(): this;
/**
* Disable hint auto refresh on page scroll and resize for hints
*/
disableHintAutoRefresh(): this;
/**
* Get specific Hint option
* @param key The option key
*/
getOption<K extends keyof HintOptions>(key: K): HintOptions[K];
/**
* Set Hint options
* @param partialOptions Hint options
*/
setOptions(partialOptions: Partial<HintOptions>): this;
/**
* Set specific Hint option
* @param key Option key
* @param value Option value
*/
setOption<K extends keyof HintOptions>(key: K, value: HintOptions[K]): this;
/**
* Clone the Hint instance
*/
clone(): ThisType<this>;
/**
* Returns true if the Hint is active
*/
isActive(): boolean;
onHintsAdded(providedCallback: hintsAddedCallback): this;
/**
* @deprecated onhintsadded is deprecated, please use onHintsAdded instead
* @param providedCallback callback function
*/
onhintsadded(providedCallback: hintsAddedCallback): void;
/**
* Callback for when hint items are clicked
* @param providedCallback callback function
*/
onHintClick(providedCallback: hintClickCallback): this;
/**
* @deprecated onhintclick is deprecated, please use onHintClick instead
* @param providedCallback
*/
onhintclick(providedCallback: hintClickCallback): void;
/**
* Callback for when hint items are closed
* @param providedCallback callback function
*/
onHintClose(providedCallback: hintCloseCallback): this;
/**
* @deprecated onhintclose is deprecated, please use onHintClose instead
* @param providedCallback
*/
onhintclose(providedCallback: hintCloseCallback): void;
}
export {};

15
node_modules/intro.js/src/packages/hint/hintItem.d.ts generated vendored Normal file
View file

@ -0,0 +1,15 @@
import { TooltipPosition } from "../../packages/tooltip";
import { Hint } from "./hint";
import { State } from "../dom";
export type HintPosition = "top-left" | "top-right" | "top-middle" | "bottom-left" | "bottom-right" | "bottom-middle" | "middle-left" | "middle-right" | "middle-middle";
export type HintItem = {
element?: HTMLElement | string | null;
tooltipClass?: string;
position: TooltipPosition;
hint?: string;
hintTooltipElement?: HTMLElement;
hintAnimation?: boolean;
hintPosition: HintPosition;
isActive?: State<boolean>;
};
export declare const fetchHintItems: (hint: Hint) => boolean;

1
node_modules/intro.js/src/packages/hint/index.d.ts generated vendored Normal file
View file

@ -0,0 +1 @@
export { Hint } from "./hint";

19
node_modules/intro.js/src/packages/hint/option.d.ts generated vendored Normal file
View file

@ -0,0 +1,19 @@
import { TooltipPosition } from "../../packages/tooltip";
import { HintItem, HintPosition } from "./hintItem";
export interface HintOptions {
hints: Partial<HintItem>[];
isActive: boolean;
tooltipPosition: string;
tooltipClass: string;
hintPosition: HintPosition;
hintButtonLabel: string;
hintShowButton: boolean;
hintAutoRefreshInterval: number;
hintAnimation: boolean;
buttonClass: string;
helperElementPadding: number;
autoPosition: boolean;
positionPrecedence: TooltipPosition[];
tooltipRenderAsHtml?: boolean;
}
export declare function getDefaultHintOptions(): HintOptions;

View file

@ -0,0 +1,7 @@
import { HintPosition } from "./hintItem";
/**
* Aligns hint position
*
* @api private
*/
export declare const alignHintPosition: (position: HintPosition, hintElement: HTMLElement, targetElement?: HTMLElement) => void;

14
node_modules/intro.js/src/packages/hint/show.d.ts generated vendored Normal file
View file

@ -0,0 +1,14 @@
import { Hint } from "./hint";
import { HintItem } from "./hintItem";
/**
* Show all hints
*
* @api private
*/
export declare function showHints(hint: Hint): Promise<void>;
/**
* Show a hint
*
* @api private
*/
export declare function showHint(hintItem: HintItem): void;

10
node_modules/intro.js/src/packages/package.d.ts generated vendored Normal file
View file

@ -0,0 +1,10 @@
/**
* Generic package interface.
*/
export interface Package<TOption> {
getOption<K extends keyof TOption>(key: K): TOption[K];
setOptions(partialOptions: Partial<TOption>): this;
setOption<K extends keyof TOption>(key: K, value: TOption[K]): this;
clone(): ThisType<this>;
isActive(): boolean;
}

View file

@ -0,0 +1 @@
export { TooltipPosition } from "./tooltipPosition";

View file

@ -0,0 +1,19 @@
import { ChildDom, State } from "../dom";
import { TooltipPosition } from "./tooltipPosition";
export declare const TooltipArrow: (props: {
tooltipPosition: State<TooltipPosition>;
tooltipBottomOverflow: State<boolean>;
}) => HTMLDivElement;
export type TooltipProps = {
position: TooltipPosition;
element: HTMLElement;
refreshes: State<number>;
hintMode: boolean;
showStepNumbers: boolean;
transitionDuration?: number;
autoPosition: boolean;
positionPrecedence: TooltipPosition[];
onClick?: (e: any) => void;
className?: string;
};
export declare const Tooltip: ({ position: initialPosition, element, refreshes, hintMode, showStepNumbers, transitionDuration, positionPrecedence, className, autoPosition, onClick, }: TooltipProps, children?: ChildDom[]) => HTMLDivElement;

View file

@ -0,0 +1 @@
export {};

View file

@ -0,0 +1,6 @@
export type tooltipContentProps = {
text: string;
className: string;
tooltipRenderAsHtml?: boolean;
};
export declare const TooltipContent: ({ text, tooltipRenderAsHtml, className, }: tooltipContentProps) => HTMLDivElement;

View file

@ -0,0 +1 @@
export {};

View file

@ -0,0 +1,10 @@
import { Offset } from "../../util/getOffset";
export type TooltipPosition = "floating" | "top" | "bottom" | "left" | "right" | "top-right-aligned" | "top-left-aligned" | "top-middle-aligned" | "bottom-right-aligned" | "bottom-left-aligned" | "bottom-middle-aligned";
/**
* Determines the position of the tooltip based on the position precedence and availability
* of screen space.
*/
export declare function determineAutoPosition(positionPrecedence: TooltipPosition[], targetOffset: Offset, tooltipWidth: number, tooltipHeight: number, desiredTooltipPosition: TooltipPosition, windowSize: {
width: number;
height: number;
}): TooltipPosition;

View file

@ -0,0 +1 @@
export {};

10
node_modules/intro.js/src/packages/tour/callback.d.ts generated vendored Normal file
View file

@ -0,0 +1,10 @@
import { Tour } from "./tour";
export type introBeforeChangeCallback = (this: Tour, targetElement: HTMLElement, currentStep: number, direction: "backward" | "forward") => Promise<boolean> | boolean;
export type introChangeCallback = (this: Tour, targetElement: HTMLElement) => void | Promise<void>;
export type introAfterChangeCallback = (this: Tour, targetElement: HTMLElement) => void | Promise<void>;
export type introCompleteCallback = (this: Tour, currentStep: number, reason: "skip" | "end" | "done") => void | Promise<void>;
export type introStartCallback = (this: Tour, targetElement: HTMLElement) => void | Promise<void>;
export type introExitCallback = (this: Tour) => void | Promise<void>;
export type introSkipCallback = (this: Tour, currentStep: number) => void | Promise<void>;
export type introBeforeExitCallback = (this: Tour, targetElement: HTMLElement) => boolean | Promise<boolean>;
export type hintsAddedCallback = (this: Tour) => void | Promise<void>;

View file

@ -0,0 +1,26 @@
export declare const overlayClassName = "introjs-overlay";
export declare const disableInteractionClassName = "introjs-disableInteraction";
export declare const bulletsClassName = "introjs-bullets";
export declare const progressClassName = "introjs-progress";
export declare const progressBarClassName = "introjs-progressbar";
export declare const helperLayerClassName = "introjs-helperLayer";
export declare const tooltipReferenceLayerClassName = "introjs-tooltipReferenceLayer";
export declare const helperNumberLayerClassName = "introjs-helperNumberLayer";
export declare const tooltipClassName = "introjs-tooltip";
export declare const tooltipHeaderClassName = "introjs-tooltip-header";
export declare const tooltipTextClassName = "introjs-tooltiptext";
export declare const tooltipTitleClassName = "introjs-tooltip-title";
export declare const tooltipButtonsClassName = "introjs-tooltipbuttons";
export declare const arrowClassName = "introjs-arrow";
export declare const skipButtonClassName = "introjs-skipbutton";
export declare const previousButtonClassName = "introjs-prevbutton";
export declare const nextButtonClassName = "introjs-nextbutton";
export declare const doneButtonClassName = "introjs-donebutton";
export declare const dontShowAgainClassName = "introjs-dontShowAgain";
export declare const hiddenButtonClassName = "introjs-hidden";
export declare const disabledButtonClassName = "introjs-disabled";
export declare const fullButtonClassName = "introjs-fullbutton";
export declare const activeClassName = "active";
export declare const fixedTooltipClassName = "introjs-fixedTooltip";
export declare const floatingElementClassName = "introjsFloatingElement";
export declare const showElementClassName = "introjs-showElement";

View file

@ -0,0 +1,10 @@
import { State } from "../../dom";
import { TourStep } from "../steps";
export type HelperLayerProps = {
currentStep: State<number | undefined>;
steps: TourStep[];
refreshes: State<number>;
targetElement: HTMLElement;
helperElementPadding: number;
};
export declare const DisableInteraction: ({ currentStep, steps, refreshes, targetElement, helperElementPadding, }: HelperLayerProps) => () => HTMLDivElement | null;

View file

@ -0,0 +1,5 @@
import { State } from "../../dom";
export type FloatingElementProps = {
currentStep: State<number | undefined>;
};
export declare const FloatingElement: ({ currentStep }: FloatingElementProps) => HTMLDivElement;

View file

@ -0,0 +1,12 @@
import { State } from "../../dom";
import { TourStep } from "../steps";
export type HelperLayerProps = {
currentStep: State<number | undefined>;
steps: TourStep[];
refreshes: State<number>;
targetElement: HTMLElement;
tourHighlightClass: string;
overlayOpacity: number;
helperLayerPadding: number;
};
export declare const HelperLayer: ({ currentStep, steps, refreshes, targetElement, tourHighlightClass, overlayOpacity, helperLayerPadding, }: HelperLayerProps) => HTMLDivElement;

View file

@ -0,0 +1,6 @@
import { Tour } from "../tour";
export type OverlayLayerProps = {
exitOnOverlayClick: boolean;
onExitTour: () => Promise<Tour>;
};
export declare const OverlayLayer: ({ exitOnOverlayClick, onExitTour, }: OverlayLayerProps) => HTMLDivElement;

View file

@ -0,0 +1,6 @@
import { TourTooltipProps } from "./TourTooltip";
export type ReferenceLayerProps = TourTooltipProps & {
targetElement: HTMLElement;
helperElementPadding: number;
};
export declare const ReferenceLayer: ({ targetElement, helperElementPadding, ...props }: ReferenceLayerProps) => HTMLDivElement;

View file

@ -0,0 +1,5 @@
import { Tour } from "../tour";
export type TourRootProps = {
tour: Tour;
};
export declare const TourRoot: ({ tour }: TourRootProps) => HTMLDivElement;

View file

@ -0,0 +1 @@
export {};

View file

@ -0,0 +1,32 @@
import { type TooltipProps } from "../../tooltip/tooltip";
import { TourStep } from "../steps";
export type TourTooltipProps = Omit<TooltipProps, "hintMode" | "position" | "element"> & {
step: TourStep;
steps: TourStep[];
currentStep: number;
bullets: boolean;
onBulletClick: (stepNumber: number) => void;
buttons: boolean;
nextLabel: string;
onNextClick: (e: any) => void;
prevLabel: string;
onPrevClick: (e: any) => void;
skipLabel: string;
onSkipClick: (e: any) => void;
buttonClass: string;
nextToDone: boolean;
doneLabel: string;
hideNext: boolean;
hidePrev: boolean;
progress: boolean;
progressBarAdditionalClass: string;
stepNumbers: boolean;
stepNumbersOfLabel: string;
scrollToElement: boolean;
scrollPadding: number;
dontShowAgain: boolean;
dontShowAgainLabel: string;
renderAsHtml?: boolean;
onDontShowAgainChange: (checked: boolean) => void;
};
export declare const TourTooltip: ({ step, currentStep, steps, onBulletClick, bullets, buttons, nextLabel, onNextClick, prevLabel, onPrevClick, skipLabel, onSkipClick, buttonClass, nextToDone, doneLabel, hideNext, hidePrev, progress, progressBarAdditionalClass, stepNumbers, stepNumbersOfLabel, scrollToElement, scrollPadding, dontShowAgain, onDontShowAgainChange, dontShowAgainLabel, renderAsHtml, ...props }: TourTooltipProps) => HTMLDivElement;

View file

@ -0,0 +1,10 @@
export declare const dataStepNumberAttribute = "data-step-number";
export declare const dataIntroAttribute = "data-intro";
export declare const dataStepAttribute = "data-step";
export declare const dataIntroGroupAttribute = "data-intro-group";
export declare const dataDisableInteraction = "data-disable-interaction";
export declare const dataTitleAttribute = "data-title";
export declare const dataTooltipClass = "data-tooltip-class";
export declare const dataHighlightClass = "data-highlight-class";
export declare const dataPosition = "data-position";
export declare const dataScrollTo = "data-scroll-to";

View file

@ -0,0 +1,12 @@
/**
* Set the "Don't show again" state
*
* @api private
*/
export declare function setDontShowAgain(dontShowAgain: boolean, cookieName: string, cookieDays: number): void;
/**
* Get the "Don't show again" state from cookies
*
* @api private
*/
export declare function getDontShowAgain(cookieName: string): boolean;

View file

@ -0,0 +1 @@
export {};

View file

@ -0,0 +1,8 @@
import { Tour } from "./tour";
/**
* Exit from intro
*
* @api private
* @param {Boolean} force - Setting to `true` will skip the result of beforeExit callback
*/
export default function exitIntro(tour: Tour, force?: boolean): Promise<boolean>;

View file

@ -0,0 +1 @@
export {};

1
node_modules/intro.js/src/packages/tour/index.d.ts generated vendored Normal file
View file

@ -0,0 +1 @@
export { Tour } from "./tour";

6
node_modules/intro.js/src/packages/tour/mock.d.ts generated vendored Normal file
View file

@ -0,0 +1,6 @@
import { TourStep } from "./steps";
import { Tour } from "./tour";
export declare const appendMockSteps: (targetElement?: HTMLElement) => HTMLElement[];
export declare const getMockPartialSteps: () => Partial<TourStep>[];
export declare const getMockSteps: () => TourStep[];
export declare const getMockTour: (targetElement?: HTMLElement) => Tour;

View file

@ -1,4 +1,4 @@
import { IntroJs } from "../intro";
import { Tour } from "./tour";
/**
* on keyCode:
* https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
@ -14,4 +14,4 @@ import { IntroJs } from "../intro";
* (3) e.keyCode
* https://github.com/jquery/jquery/blob/a6b0705294d336ae2f63f7276de0da1195495363/src/event.js#L638
*/
export default function onKeyDown(intro: IntroJs, e: KeyboardEvent): Promise<void>;
export default function onKeyDown(tour: Tour, e: KeyboardEvent): Promise<void>;

41
node_modules/intro.js/src/packages/tour/option.d.ts generated vendored Normal file
View file

@ -0,0 +1,41 @@
import { TooltipPosition } from "../../packages/tooltip";
import { TourStep, ScrollTo } from "./steps";
export interface TourOptions {
steps: Partial<TourStep>[];
isActive: boolean;
nextLabel: string;
prevLabel: string;
skipLabel: string;
doneLabel: string;
hidePrev: boolean;
hideNext: boolean;
nextToDone: boolean;
tooltipPosition: TooltipPosition;
tooltipClass: string;
group: string;
highlightClass: string;
exitOnEsc: boolean;
exitOnOverlayClick: boolean;
showStepNumbers: boolean;
stepNumbersOfLabel: string;
keyboardNavigation: boolean;
showButtons: boolean;
showBullets: boolean;
showProgress: boolean;
scrollToElement: boolean;
scrollTo: ScrollTo;
scrollPadding: number;
overlayOpacity: number;
autoPosition: boolean;
positionPrecedence: TooltipPosition[];
disableInteraction: boolean;
dontShowAgain: boolean;
dontShowAgainLabel: string;
dontShowAgainCookie: string;
dontShowAgainCookieDays: number;
helperElementPadding: number;
buttonClass: string;
progressBarAdditionalClass: string;
tooltipRenderAsHtml?: boolean;
}
export declare function getDefaultTourOptions(): TourOptions;

View file

@ -0,0 +1,6 @@
import { TourStep } from "./steps";
/**
* Sets the position of the element relative to the TourStep
* @api private
*/
export declare const setPositionRelativeToStep: (relativeElement: HTMLElement, element: HTMLElement, step: TourStep, padding: number) => void;

View file

@ -0,0 +1 @@
export {};

View file

@ -0,0 +1,14 @@
import { TourStep } from "./steps";
import { Tour } from "./tour";
/**
* Show an element on the page
*
* @api private
*/
export declare function showElement(tour: Tour, step: TourStep): Promise<void>;
/**
* To remove all show element(s)
*
* @api private
*/
export declare function removeShowElement(): void;

7
node_modules/intro.js/src/packages/tour/start.d.ts generated vendored Normal file
View file

@ -0,0 +1,7 @@
import { Tour } from "./tour";
/**
* Initiate a new tour the page
*
* @api private
*/
export declare const start: (tour: Tour) => Promise<Boolean>;

View file

@ -0,0 +1 @@
export {};

32
node_modules/intro.js/src/packages/tour/steps.d.ts generated vendored Normal file
View file

@ -0,0 +1,32 @@
import { TooltipPosition } from "../../packages/tooltip";
import { Tour } from "./tour";
export type ScrollTo = "off" | "element" | "tooltip";
export type TourStep = {
step: number;
title: string;
intro: string;
tooltipClass?: string;
highlightClass?: string;
element?: Element | HTMLElement | string | null;
position: TooltipPosition;
scrollTo: ScrollTo;
disableInteraction?: boolean;
};
/**
* Go to next step on intro
*
* @api private
*/
export declare function nextStep(tour: Tour): Promise<boolean>;
/**
* Go to previous step on intro
*
* @api private
*/
export declare function previousStep(tour: Tour): Promise<boolean>;
/**
* Finds all Intro steps from the data-* attributes and the options.steps array
*
* @api private
*/
export declare const fetchSteps: (tour: Tour) => TourStep[];

View file

@ -0,0 +1 @@
export {};

274
node_modules/intro.js/src/packages/tour/tour.d.ts generated vendored Normal file
View file

@ -0,0 +1,274 @@
import { TourStep } from "./steps";
import { Package } from "../package";
import { introAfterChangeCallback, introBeforeChangeCallback, introBeforeExitCallback, introChangeCallback, introCompleteCallback, introExitCallback, introSkipCallback, introStartCallback } from "./callback";
import { TourOptions } from "./option";
/**
* Intro.js Tour class
*/
export declare class Tour implements Package<TourOptions> {
private _steps;
private _currentStepSignal;
private _refreshesSignal;
private _root;
private _direction;
private readonly _targetElement;
private _options;
private _floatingElement;
private readonly callbacks;
private _keyboardNavigationHandler?;
private _refreshOnResizeHandler?;
/**
* Create a new Tour instance
* @param elementOrSelector Optional target element or CSS query to start the Tour on
* @param options Optional Tour options
*/
constructor(elementOrSelector?: string | HTMLElement, options?: Partial<TourOptions>);
/**
* Get a specific callback function
* @param callbackName callback name
*/
callback<K extends keyof typeof this.callbacks>(callbackName: K): (typeof this.callbacks)[K] | undefined;
/**
* Go to a specific step of the tour
* @param step step number
*/
goToStep(step: number): Promise<this>;
/**
* Go to a specific step of the tour with the explicit [data-step] number
* @param stepNumber [data-step] value of the step
*/
goToStepNumber(stepNumber: number): Promise<this>;
/**
* Add a step to the tour options.
* This method should be used in conjunction with the `start()` method.
* @param step step to add
*/
addStep(step: Partial<TourStep>): this;
/**
* Add multiple steps to the tour options.
* This method should be used in conjunction with the `start()` method.
* @param steps steps to add
*/
addSteps(steps: Partial<TourStep>[]): this;
/**
* Set the steps of the tour
* @param steps steps to set
*/
setSteps(steps: TourStep[]): this;
/**
* Get all available steps of the tour
*/
getSteps(): TourStep[];
/**
* Get a specific step of the tour
* @param {number} step step number
*/
getStep(step: number): TourStep;
/**
* Returns the underlying state of the current step
* This is an internal method and should not be used outside of the package.
*/
getCurrentStepSignal(): import("../dom").State<number | undefined>;
/**
* Returns the underlying state of the refreshes
* This is an internal method and should not be used outside of the package.
*/
getRefreshesSignal(): import("../dom").State<number>;
/**
* Get the current step of the tour
*/
getCurrentStep(): number | undefined;
/**
* @deprecated `currentStep()` is deprecated, please use `getCurrentStep()` instead.
*/
currentStep(): number | undefined;
resetCurrentStep(): void;
/**
* Set the current step of the tour and the direction of the tour
* @param step
*/
setCurrentStep(step: number): this;
/**
* Increment the current step of the tour (does not start the tour step, must be called in conjunction with `nextStep`)
*/
incrementCurrentStep(): this;
/**
* Decrement the current step of the tour (does not start the tour step, must be in conjunction with `previousStep`)
*/
decrementCurrentStep(): this;
/**
* Get the direction of the tour (forward or backward)
*/
getDirection(): "backward" | "forward";
/**
* Go to the next step of the tour
*/
nextStep(): Promise<this>;
/**
* Go to the previous step of the tour
*/
previousStep(): Promise<this>;
/**
* Check if the current step is the last step
*/
isEnd(): boolean;
/**
* Check if the current step is the last step of the tour
*/
isLastStep(): boolean;
/**
* Get the target element of the tour
*/
getTargetElement(): HTMLElement;
/**
* Set the options for the tour
* @param partialOptions key/value pair of options
*/
setOptions(partialOptions: Partial<TourOptions>): this;
/**
* Set a specific option for the tour
* @param key option key
* @param value option value
*/
setOption<K extends keyof TourOptions>(key: K, value: TourOptions[K]): this;
/**
* Get a specific option for the tour
* @param key option key
*/
getOption<K extends keyof TourOptions>(key: K): TourOptions[K];
/**
* Clone the current tour instance
*/
clone(): ThisType<this>;
/**
* Returns true if the tour instance is active
*/
isActive(): boolean;
/**
* Returns true if the tour has started
*/
hasStarted(): boolean;
/**
* Set the `dontShowAgain` option for the tour so that the tour does not show twice to the same user
* This is a persistent option that is stored in the browser's cookies
*
* @param dontShowAgain boolean value to set the `dontShowAgain` option
*/
setDontShowAgain(dontShowAgain: boolean): this;
/**
* Enable keyboard navigation for the tour
*/
enableKeyboardNavigation(): this;
/**
* Disable keyboard navigation for the tour
*/
disableKeyboardNavigation(): this;
/**
* Enable refresh on window resize for the tour
*/
enableRefreshOnResize(): void;
/**
* Disable refresh on window resize for the tour
*/
disableRefreshOnResize(): void;
/**
* Append the floating element to the target element.
* Floating element is a helper element that is used when the step does not have a target element.
* For internal use only.
*/
appendFloatingElement(): Element;
/**
* Create the root element for the tour
*/
private createRoot;
/**
* Deletes the root element and recreates it
*/
private recreateRoot;
/**
* Starts the tour and shows the first step
*/
start(): Promise<this>;
/**
* Exit the tour
* @param {boolean} force whether to force exit the tour
*/
exit(force?: boolean): Promise<this>;
/**
* Refresh the tour
* @param {boolean} refreshSteps whether to refresh the tour steps
*/
refresh(refreshSteps?: boolean): this;
/**
* @deprecated onbeforechange is deprecated, please use onBeforeChange instead.
*/
onbeforechange(callback: introBeforeChangeCallback): this;
/**
* Add a callback to be called before the tour changes steps
* @param {Function} callback callback function to be called
*/
onBeforeChange(callback: introBeforeChangeCallback): this;
/**
* @deprecated onchange is deprecated, please use onChange instead.
*/
onchange(callback: introChangeCallback): void;
/**
* Add a callback to be called when the tour changes steps
* @param {Function} callback callback function to be called
*/
onChange(callback: introChangeCallback): this;
/**
* @deprecated onafterchange is deprecated, please use onAfterChange instead.
*/
onafterchange(callback: introAfterChangeCallback): void;
/**
* Add a callback to be called after the tour changes steps
* @param {Function} callback callback function to be called
*/
onAfterChange(callback: introAfterChangeCallback): this;
/**
* @deprecated oncomplete is deprecated, please use onComplete instead.
*/
oncomplete(callback: introCompleteCallback): this;
/**
* Add a callback to be called when the tour is completed
* @param {Function} callback callback function to be called
*/
onComplete(callback: introCompleteCallback): this;
/**
* @deprecated onstart is deprecated, please use onStart instead.
*/
onstart(callback: introStartCallback): this;
/**
* Add a callback to be called when the tour is started
* @param {Function} callback callback function to be called
*/
onStart(callback: introStartCallback): this;
/**
* @deprecated onexit is deprecated, please use onExit instead.
*/
onexit(callback: introExitCallback): this;
/**
* Add a callback to be called when the tour is exited
* @param {Function} callback callback function to be called
*/
onExit(callback: introExitCallback): this;
/**
* @deprecated onskip is deprecated, please use onSkip instead.
*/
onskip(callback: introSkipCallback): this;
/**
* Add a callback to be called when the tour is skipped
* @param {Function} callback callback function to be called
*/
onSkip(callback: introSkipCallback): this;
/**
* @deprecated onbeforeexit is deprecated, please use onBeforeExit instead.
*/
onbeforeexit(callback: introBeforeExitCallback): this;
/**
* Add a callback to be called before the tour is exited
* @param {Function} callback callback function to be called
*/
onBeforeExit(callback: introBeforeExitCallback): this;
}

View file

@ -0,0 +1 @@
export {};

27
node_modules/intro.js/src/util/DOMEvent.d.ts generated vendored Normal file
View file

@ -0,0 +1,27 @@
/**
* DOMEvent Handles all DOM events
*
* methods:
*
* on - add event handler
* off - remove event
*/
interface Events {
keydown: KeyboardEvent;
resize: Event;
scroll: Event;
click: MouseEvent;
}
type Listener<T> = (e: T) => void | undefined | string | Promise<string | void>;
declare class DOMEvent {
/**
* Adds event listener
*/
on<T extends keyof Events>(obj: EventTarget, type: T, listener: Listener<Events[T]>, useCapture: boolean): void;
/**
* Removes event listener
*/
off<T extends keyof Events>(obj: EventTarget, type: T, listener: Listener<Events[T]>, useCapture: boolean): void;
}
declare const _default: DOMEvent;
export default _default;

View file

@ -1,5 +0,0 @@
/**
* Append a class to an element
* @api private
*/
export default function addClass(element: HTMLElement, className: string): void;

View file

@ -1,4 +0,0 @@
/**
* Appends `element` to `parentElement`
*/
export default function appendChild(parentElement: HTMLElement, element: HTMLElement, animate?: boolean): void;

View file

@ -1,16 +0,0 @@
/**
* Set tooltip right so it doesn't go off the left side of the window
*
* @return boolean true, if tooltipLayerStyleRight is ok. false, otherwise.
*/
export default function checkLeft(targetOffset: {
top: number;
left: number;
width: number;
height: number;
}, tooltipLayerStyleRight: number, tooltipOffset: {
top: number;
left: number;
width: number;
height: number;
}, tooltipLayer: HTMLElement): boolean;

View file

@ -1,19 +0,0 @@
/**
* Set tooltip left so it doesn't go off the right side of the window
*
* @return boolean true, if tooltipLayerStyleLeft is ok. false, otherwise.
*/
export default function checkRight(targetOffset: {
top: number;
left: number;
width: number;
height: number;
}, tooltipLayerStyleLeft: number, tooltipOffset: {
top: number;
left: number;
width: number;
height: number;
}, windowSize: {
width: number;
height: number;
}, tooltipLayer: HTMLElement): boolean;

17
node_modules/intro.js/src/util/className.d.ts generated vendored Normal file
View file

@ -0,0 +1,17 @@
/**
* Append CSS classes to an element
* @api private
*/
export declare const addClass: (element: HTMLElement | SVGElement, ...classNames: string[]) => void;
/**
* Set CSS classes to an element
* @param element element to set class
* @param classNames list of class names
*/
export declare const setClass: (element: HTMLElement | SVGElement, ...classNames: string[]) => void;
/**
* Remove a class from an element
*
* @api private
*/
export declare const removeClass: (element: HTMLElement | SVGElement, classNameRegex: RegExp | string) => void;

1
node_modules/intro.js/src/util/clssName.test.d.ts generated vendored Normal file
View file

@ -0,0 +1 @@
export {};

4
node_modules/intro.js/src/util/containerElement.d.ts generated vendored Normal file
View file

@ -0,0 +1,4 @@
/**
* Given an element or a selector, tries to find the appropriate container element.
*/
export declare const getContainerElement: (elementOrSelector?: string | HTMLElement) => HTMLElement;

View file

@ -0,0 +1 @@
export {};

1
node_modules/intro.js/src/util/cookie.test.d.ts generated vendored Normal file
View file

@ -0,0 +1 @@
export {};

View file

@ -1,6 +0,0 @@
/**
* Create a DOM element with various attributes
*/
export default function _createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, attrs?: {
[key: string]: string | Function;
}): HTMLElementTagNameMap[K];

View file

@ -0,0 +1 @@
export {};

View file

@ -1,13 +1,20 @@
export type Offset = {
width: number;
height: number;
left: number;
right: number;
top: number;
bottom: number;
absoluteTop: number;
absoluteLeft: number;
absoluteRight: number;
absoluteBottom: number;
};
/**
* Get an element position on the page relative to another element (or body)
* Get an element position on the page relative to another element (or body) including scroll offset
* Thanks to `meouw`: http://stackoverflow.com/a/442474/375966
*
* @api private
* @returns Element's position info
*/
export default function getOffset(element: HTMLElement, relativeEl?: HTMLElement): {
width: number;
height: number;
left: number;
top: number;
};
export default function getOffset(element: HTMLElement, relativeEl?: HTMLElement): Offset;

1
node_modules/intro.js/src/util/getOffset.test.d.ts generated vendored Normal file
View file

@ -0,0 +1 @@
export {};

1
node_modules/intro.js/src/util/isFunction.test.d.ts generated vendored Normal file
View file

@ -0,0 +1 @@
export {};

11
node_modules/intro.js/src/util/positionRelativeTo.d.ts generated vendored Normal file
View file

@ -0,0 +1,11 @@
export declare const getPositionRelativeTo: (relativeElement: HTMLElement, element: HTMLElement, targetElement: HTMLElement, padding: number) => {
width: string;
height: string;
top: string;
left: string;
} | undefined;
/**
* Sets the position of the element relative to the target element
* @api private
*/
export declare const setPositionRelativeTo: (relativeElement: HTMLElement, element: HTMLElement, targetElement: HTMLElement, padding: number) => void;

View file

@ -0,0 +1 @@
export {};

Some files were not shown because too many files have changed in this diff Show more