twd-js 0.2.0 → 0.3.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.
@@ -0,0 +1,7 @@
1
+ interface BaseIconProps {
2
+ className: string;
3
+ children: React.ReactNode;
4
+ dataTestId: string;
5
+ }
6
+ declare const BaseIcon: ({ className, children, dataTestId }: BaseIconProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default BaseIcon;
@@ -1 +1,5 @@
1
- export declare const TWDSidebar: () => import("react/jsx-runtime").JSX.Element;
1
+ interface TWDSidebarProps {
2
+ open: boolean;
3
+ }
4
+ export declare const TWDSidebar: ({ open }: TWDSidebarProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -1 +1,2 @@
1
1
  export declare const waitForElement: (fn: () => HTMLElement | null, timeout?: number, interval?: number) => Promise<HTMLElement>;
2
+ export declare const wait: (time: number) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twd-js",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Test While Developing (TWD) - in-browser testing",
5
5
  "main": "./dist/twd.umd.js",
6
6
  "module": "./dist/twd.es.js",
@@ -1,11 +0,0 @@
1
- /**
2
- * Simulates typing text into an input or textarea element, character by character,
3
- * dispatching keydown, keypress, input, and keyup events for each character.
4
- * This more closely mimics real user input and works with React's state updates.
5
- *
6
- * @param el The input or textarea element
7
- * @param text The text to type
8
- * @returns The input element after typing
9
- */
10
- declare const simulateType: (el: HTMLInputElement | HTMLTextAreaElement, text: string) => HTMLInputElement | HTMLTextAreaElement;
11
- export { simulateType };