Skip to content

Commit

Permalink
feat: render tooltip and modal to element (#61)
Browse files Browse the repository at this point in the history
* feat: render tooltip and modal to element

* fix: footer buttons
  • Loading branch information
VojtechVidra authored Mar 14, 2024
1 parent 5fedbbc commit 7e1c647
Show file tree
Hide file tree
Showing 7 changed files with 426 additions and 326 deletions.
4 changes: 4 additions & 0 deletions workspaces/js/src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,21 @@ import type {
FlowModalStep,
FlowWaitStep,
WaitStepOptions,
FooterActionItem,
} from "../types";
import { isValidFlow, isValidFlowsOptions, validateFlow, validateFlowsOptions } from "./validation";
import { init as _init } from "./init";

export { renderModalElement, renderTooltipElement, updateTooltip } from "./render";

export * from "./public-methods";
export const init: (options: FlowsOptions) => Promise<void> = _init;
export { isValidFlow, isValidFlowsOptions, validateFlow, validateFlowsOptions };
export type {
Flow,
FlowStep,
FlowSteps,
FooterActionItem,
FlowsOptions,
StartFlowOptions,
TrackingEvent,
Expand Down
326 changes: 0 additions & 326 deletions workspaces/js/src/core/render.tsx

This file was deleted.

3 changes: 3 additions & 0 deletions workspaces/js/src/core/render/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "./render";
export { renderTooltipElement, updateTooltip } from "./render-tooltip";
export { renderModalElement } from "./render-modal";
Loading

0 comments on commit 7e1c647

Please sign in to comment.