@openlv/modal 0.1.2 → 0.1.3

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.
@@ -1,5 +1,5 @@
1
1
  import { ModalView } from './ModalRoot.js';
2
- export declare const Header: (props: {
2
+ export declare const Header: (properties: {
3
3
  title: string;
4
4
  view: ModalView;
5
5
  onClose: () => void;
@@ -5,6 +5,6 @@ export interface ModalRootProps {
5
5
  onCopy?: (uri: string) => void;
6
6
  }
7
7
  export type ModalView = "start" | "settings" | "info";
8
- export declare const ModalRoot: (props: {
8
+ export declare const ModalRoot: (properties: {
9
9
  onClose: () => void;
10
10
  }) => JSX.Element;
@@ -1,3 +1,3 @@
1
- export declare const UnknownState: (props: {
1
+ export declare const UnknownState: (properties: {
2
2
  state: unknown;
3
3
  }) => import("solid-js").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { SettingsScreen } from '../index.js';
2
- export declare const ConnectionPreferences: (props: {
2
+ export declare const ConnectionPreferences: (properties: {
3
3
  onNavigate: (screen: SettingsScreen) => void;
4
4
  }) => import("solid-js").JSX.Element;
@@ -1,12 +1,12 @@
1
1
  export type SettingsScreen = "main" | "signaling" | "transport";
2
- export interface SettingsNavigationRef {
2
+ export interface SettingsNavigationReference {
3
3
  goBack: () => void;
4
4
  isAtRoot: boolean;
5
5
  }
6
6
  export interface ModalSettingsProps {
7
7
  onTitleChange?: (titleKey: string) => void;
8
8
  navigationRef?: {
9
- current: SettingsNavigationRef | null;
9
+ current: SettingsNavigationReference | null;
10
10
  };
11
11
  }
12
- export declare const ModalSettings: (props: ModalSettingsProps) => import("solid-js").JSX.Element;
12
+ export declare const ModalSettings: (properties: ModalSettingsProps) => import("solid-js").JSX.Element;
package/dist/context.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { OpenLVProvider } from '@openlv/provider';
2
2
  import { Component } from 'solid-js';
3
- import { OpenLVModalElementProps } from './element.js';
3
+ import { OpenLVModalElementProperties } from './element.js';
4
4
  import { ThemeConfig } from './theme/types.js';
5
5
  export type ModalContextValue = {
6
6
  provider: OpenLVProvider;
7
7
  themeConfig?: ThemeConfig;
8
8
  };
9
9
  export declare const ModalContext: import('solid-js').Context<ModalContextValue | undefined>;
10
- export declare const ModalProvider: Component<OpenLVModalElementProps>;
10
+ export declare const ModalProvider: Component<OpenLVModalElementProperties>;
11
11
  export declare const useModalContext: () => ModalContextValue;
package/dist/element.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { OpenLVProvider } from '@openlv/provider';
2
2
  import { ThemeConfig } from './theme/types.js';
3
- export type OpenLVModalElementProps = {
3
+ export type OpenLVModalElementProperties = {
4
4
  provider: OpenLVProvider;
5
5
  onClose?: () => void;
6
6
  theme?: ThemeConfig;
@@ -11,7 +11,7 @@ export declare class OpenLVModalElement extends HTMLElement {
11
11
  private readonly parameters;
12
12
  private themeCleanup?;
13
13
  private disposeRender?;
14
- constructor(parameters: OpenLVModalElementProps);
14
+ constructor(parameters: OpenLVModalElementProperties);
15
15
  connectedCallback(): void;
16
16
  disconnectedCallback(): void;
17
17
  private setupThemeListener;
@@ -1,6 +1,6 @@
1
- interface ConnectionFlowProps {
1
+ interface ConnectionFlowProperties {
2
2
  onClose: () => void;
3
3
  onCopy: (uri: string) => void;
4
4
  }
5
- export declare const ConnectionFlow: (props: ConnectionFlowProps) => import("solid-js").JSX.Element;
5
+ export declare const ConnectionFlow: (properties: ConnectionFlowProperties) => import("solid-js").JSX.Element;
6
6
  export {};
@@ -3,6 +3,6 @@
3
3
  * candidates" transport failure, since that one has a concrete user-side
4
4
  * remedy (WebRTC disabled/blocked by the browser, an extension, or a VPN).
5
5
  */
6
- export declare const ErrorScreen: (props: {
6
+ export declare const ErrorScreen: (properties: {
7
7
  onClose: () => void;
8
8
  }) => import("solid-js").JSX.Element;
@@ -1,3 +1,3 @@
1
- export declare const Disconnected: (props: {
1
+ export declare const Disconnected: (properties: {
2
2
  onSettings: () => void;
3
3
  }) => import("solid-js").JSX.Element;