Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
chadyred committed Dec 4, 2024
1 parent 9ae419e commit d00d876
Show file tree
Hide file tree
Showing 15 changed files with 1,540 additions and 1,642 deletions.
4 changes: 2 additions & 2 deletions src/LiveComponent/assets/dist/Component/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { BackendInterface } from '../Backend/Backend';
import ValueStore from './ValueStore';
import type BackendRequest from '../Backend/BackendRequest';
import BackendResponse from '../Backend/BackendResponse';
import type { ElementDriver } from './ElementDriver';
import ValueStore from './ValueStore';
import type { PluginInterface } from './plugins/PluginInterface';
import BackendResponse from '../Backend/BackendResponse';
type MaybePromise<T = void> = T | Promise<T>;
export type ComponentHooks = {
connect: (component: Component) => MaybePromise;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { PluginInterface } from './PluginInterface';
import type Component from '../index';
import type { PluginInterface } from './PluginInterface';
export default class implements PluginInterface {
private intersectionObserver;
attachToComponent(component: Component): void;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type Directive } from '../../Directive/directives_parser';
import type BackendRequest from '../../Backend/BackendRequest';
import type Component from '../../Component';
import { type Directive } from '../../Directive/directives_parser';
import type { PluginInterface } from './PluginInterface';
interface ElementLoadingDirectives {
element: HTMLElement | SVGElement;
Expand Down
2 changes: 1 addition & 1 deletion src/LiveComponent/assets/dist/HookManager.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ComponentHookName, ComponentHookCallback } from './Component';
import type { ComponentHookCallback, ComponentHookName } from './Component';
export default class {
private hooks;
register<T extends string | ComponentHookName = ComponentHookName>(hookName: T, callback: ComponentHookCallback<T>): void;
Expand Down
2 changes: 1 addition & 1 deletion src/LiveComponent/assets/dist/dom_utils.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type Component from './Component';
import type ValueStore from './Component/ValueStore';
import { type Directive } from './Directive/directives_parser';
import type Component from './Component';
export declare function getValueFromElement(element: HTMLElement, valueStore: ValueStore): string | string[] | null | boolean;
export declare function setValueOnElement(element: HTMLElement, value: any): void;
export declare function getAllModelDirectiveFromElements(element: HTMLElement): Directive[];
Expand Down
2 changes: 1 addition & 1 deletion src/LiveComponent/assets/dist/live_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Controller } from '@hotwired/stimulus';
import Component from './Component';
import { type BackendInterface } from './Backend/Backend';
import Component from './Component';
export { Component };
export { getComponent } from './ComponentRegistry';
export interface LiveEvent extends CustomEvent {
Expand Down
Loading

0 comments on commit d00d876

Please sign in to comment.