@apollo-elements/mixins
Advanced tools
Comparing version 4.1.0 to 4.1.1-next.0
@@ -5,3 +5,2 @@ import { ApolloClient, InMemoryCache, } from '@apollo/client/core'; | ||
import { ApolloQueryMixin } from './apollo-query-mixin'; | ||
import { assertType } from '@apollo-elements/test'; | ||
class QE extends ApolloQueryMixin(HTMLElement) { | ||
@@ -31,23 +30,2 @@ } | ||
}); | ||
const client = window.__APOLLO_CLIENT__; | ||
import * as FAST from '@apollo-elements/fast'; | ||
class TypeCheckFAST extends ApolloClientMixin(client, FAST.ApolloQuery) { | ||
check() { | ||
assertType(this); | ||
assertType(this); | ||
assertType(this); | ||
assertType(this.data); | ||
assertType(this.variables); | ||
} | ||
} | ||
import * as Gluon from '@apollo-elements/gluon'; | ||
class TypeCheckGluon extends ApolloClientMixin(client, Gluon.ApolloQuery) { | ||
check() { | ||
assertType(this); | ||
assertType(this); | ||
assertType(this); | ||
assertType(this.data); | ||
assertType(this.variables); | ||
} | ||
} | ||
//# sourceMappingURL=apollo-client-mixin.test.js.map |
@@ -1,5 +0,5 @@ | ||
import type { Constructor, MaybeTDN, MaybeVariables } from '@apollo-elements/core/types'; | ||
import type { Constructor, VariablesOf } from '@apollo-elements/core/types'; | ||
import type { ApolloElementElement, ControllerHost } from '@apollo-elements/core'; | ||
declare type MixinInstance<B extends Constructor<HTMLElement>> = B & { | ||
new <D extends MaybeTDN = MaybeTDN, V = MaybeVariables<D>>(): ControllerHost & ApolloElementElement<D, V>; | ||
new <D = unknown, V = VariablesOf<D>>(): ControllerHost & ApolloElementElement<D, V>; | ||
documentType: 'document' | 'mutation' | 'query' | 'subscription'; | ||
@@ -6,0 +6,0 @@ observedAttributes?: string[]; |
import { __decorate } from "tslib"; | ||
import { ControllerHostMixin } from './controller-host-mixin.js'; | ||
import { ControllerHostMixin } from './controller-host-mixin'; | ||
import { controlled } from '@apollo-elements/core/decorators'; | ||
@@ -4,0 +4,0 @@ import { ApolloElementEvent } from '@apollo-elements/core/events'; |
@@ -1,5 +0,5 @@ | ||
import type { Constructor, ControllerHost, MaybeTDN, MaybeVariables } from '@apollo-elements/core/types'; | ||
import type { Constructor, ControllerHost, VariablesOf } from '@apollo-elements/core/types'; | ||
import type { ApolloMutationElement } from '@apollo-elements/core/types'; | ||
declare type MixinInstance<B extends Constructor> = B & { | ||
new <D extends MaybeTDN = MaybeTDN, V = MaybeVariables<D>>(): ControllerHost & InstanceType<B> & ApolloMutationElement<D, V>; | ||
new <D, V = VariablesOf<D>>(): ControllerHost & InstanceType<B> & ApolloMutationElement<D, V>; | ||
documentType: 'mutation'; | ||
@@ -6,0 +6,0 @@ observedAttributes?: string[]; |
import { __decorate } from "tslib"; | ||
import { dedupeMixin } from '@open-wc/dedupe-mixin'; | ||
import { ApolloElementMixin } from './apollo-element-mixin.js'; | ||
import { ApolloElementMixin } from './apollo-element-mixin'; | ||
import { controlled } from '@apollo-elements/core/decorators'; | ||
@@ -5,0 +5,0 @@ import { ApolloMutationController } from '@apollo-elements/core/apollo-mutation-controller'; |
@@ -20,5 +20,7 @@ import type { TypedDocumentNode } from '@apollo/client/core'; | ||
readonly offsetWidth: number; | ||
outerText: string; | ||
spellcheck: boolean; | ||
title: string; | ||
translate: boolean; | ||
attachInternals(): ElementInternals; | ||
click(): void; | ||
@@ -43,2 +45,3 @@ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void; | ||
readonly ownerDocument: Document; | ||
readonly part: DOMTokenList; | ||
readonly prefix: string | null; | ||
@@ -55,3 +58,3 @@ readonly scrollHeight: number; | ||
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null; | ||
closest<E extends Element = Element>(selector: string): E | null; | ||
closest<E extends Element = Element>(selectors: string): E | null; | ||
getAttribute(qualifiedName: string): string | null; | ||
@@ -70,3 +73,3 @@ getAttributeNS(namespace: string | null, localName: string): string | null; | ||
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>; | ||
getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf<Element>; | ||
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>; | ||
hasAttribute(qualifiedName: string): boolean; | ||
@@ -76,7 +79,6 @@ hasAttributeNS(namespace: string | null, localName: string): boolean; | ||
hasPointerCapture(pointerId: number): boolean; | ||
insertAdjacentElement(position: InsertPosition, insertedElement: Element): Element | null; | ||
insertAdjacentHTML(where: InsertPosition, html: string): void; | ||
insertAdjacentText(where: InsertPosition, text: string): void; | ||
insertAdjacentElement(where: InsertPosition, element: Element): Element | null; | ||
insertAdjacentHTML(position: InsertPosition, text: string): void; | ||
insertAdjacentText(where: InsertPosition, data: string): void; | ||
matches(selectors: string): boolean; | ||
msGetRegionContent(): any; | ||
releasePointerCapture(pointerId: number): void; | ||
@@ -112,6 +114,6 @@ removeAttribute(qualifiedName: string): void; | ||
readonly parentElement: HTMLElement | null; | ||
readonly parentNode: (Node & ParentNode) | null; | ||
readonly parentNode: ParentNode | null; | ||
readonly previousSibling: ChildNode | null; | ||
textContent: string | null; | ||
appendChild<T extends Node>(newChild: T): T; | ||
appendChild<T extends Node>(node: T): T; | ||
cloneNode(deep?: boolean | undefined): Node; | ||
@@ -122,3 +124,3 @@ compareDocumentPosition(other: Node): number; | ||
hasChildNodes(): boolean; | ||
insertBefore<T_1 extends Node>(newChild: T_1, refChild: Node | null): T_1; | ||
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1; | ||
isDefaultNamespace(namespace: string | null): boolean; | ||
@@ -130,4 +132,4 @@ isEqualNode(otherNode: Node | null): boolean; | ||
normalize(): void; | ||
removeChild<T_2 extends Node>(oldChild: T_2): T_2; | ||
replaceChild<T_3 extends Node>(newChild: Node, oldChild: T_3): T_3; | ||
removeChild<T_2 extends Node>(child: T_2): T_2; | ||
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3; | ||
readonly ATTRIBUTE_NODE: number; | ||
@@ -152,4 +154,40 @@ readonly CDATA_SECTION_NODE: number; | ||
dispatchEvent(event: Event): boolean; | ||
ariaAtomic: string; | ||
ariaAutoComplete: string; | ||
ariaBusy: string; | ||
ariaChecked: string; | ||
ariaColCount: string; | ||
ariaColIndex: string; | ||
ariaColSpan: string; | ||
ariaCurrent: string; | ||
ariaDisabled: string; | ||
ariaExpanded: string; | ||
ariaHasPopup: string; | ||
ariaHidden: string; | ||
ariaKeyShortcuts: string; | ||
ariaLabel: string; | ||
ariaLevel: string; | ||
ariaLive: string; | ||
ariaModal: string; | ||
ariaMultiLine: string; | ||
ariaMultiSelectable: string; | ||
ariaOrientation: string; | ||
ariaPlaceholder: string; | ||
ariaPosInSet: string; | ||
ariaPressed: string; | ||
ariaReadOnly: string; | ||
ariaRequired: string; | ||
ariaRoleDescription: string; | ||
ariaRowCount: string; | ||
ariaRowIndex: string; | ||
ariaRowSpan: string; | ||
ariaSelected: string; | ||
ariaSetSize: string; | ||
ariaSort: string; | ||
ariaValueMax: string; | ||
ariaValueMin: string; | ||
ariaValueNow: string; | ||
ariaValueText: string; | ||
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation; | ||
getAnimations(): Animation[]; | ||
getAnimations(options?: GetAnimationsOptions | undefined): Animation[]; | ||
after(...nodes: (string | Node)[]): void; | ||
@@ -174,2 +212,3 @@ before(...nodes: (string | Node)[]): void; | ||
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>; | ||
replaceChildren(...nodes: (string | Node)[]): void; | ||
readonly assignedSlot: HTMLSlotElement | null; | ||
@@ -191,3 +230,2 @@ oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null; | ||
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; | ||
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
@@ -204,3 +242,2 @@ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; | ||
ondragexit: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; | ||
@@ -215,2 +252,3 @@ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; | ||
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; | ||
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null; | ||
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; | ||
@@ -250,3 +288,2 @@ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null; | ||
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
@@ -258,3 +295,3 @@ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onsubmit: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null; | ||
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
@@ -273,2 +310,6 @@ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null; | ||
@@ -283,3 +324,3 @@ autofocus: boolean; | ||
} & { | ||
new <D_1 extends I.MaybeTDN = I.MaybeTDN, V_1 = I.MaybeVariables<D_1>>(): I.ControllerHost & { | ||
new <D_1, V_1 = I.VariablesOf<D_1>>(): I.ControllerHost & { | ||
hi?: "hi" | undefined; | ||
@@ -299,5 +340,7 @@ accessKey: string; | ||
readonly offsetWidth: number; | ||
outerText: string; | ||
spellcheck: boolean; | ||
title: string; | ||
translate: boolean; | ||
attachInternals(): ElementInternals; | ||
click(): void; | ||
@@ -322,2 +365,3 @@ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void; | ||
readonly ownerDocument: Document; | ||
readonly part: DOMTokenList; | ||
readonly prefix: string | null; | ||
@@ -334,3 +378,3 @@ readonly scrollHeight: number; | ||
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null; | ||
closest<E extends Element = Element>(selector: string): E | null; | ||
closest<E extends Element = Element>(selectors: string): E | null; | ||
getAttribute(qualifiedName: string): string | null; | ||
@@ -349,3 +393,3 @@ getAttributeNS(namespace: string | null, localName: string): string | null; | ||
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>; | ||
getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf<Element>; | ||
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>; | ||
hasAttribute(qualifiedName: string): boolean; | ||
@@ -355,7 +399,6 @@ hasAttributeNS(namespace: string | null, localName: string): boolean; | ||
hasPointerCapture(pointerId: number): boolean; | ||
insertAdjacentElement(position: InsertPosition, insertedElement: Element): Element | null; | ||
insertAdjacentHTML(where: InsertPosition, html: string): void; | ||
insertAdjacentText(where: InsertPosition, text: string): void; | ||
insertAdjacentElement(where: InsertPosition, element: Element): Element | null; | ||
insertAdjacentHTML(position: InsertPosition, text: string): void; | ||
insertAdjacentText(where: InsertPosition, data: string): void; | ||
matches(selectors: string): boolean; | ||
msGetRegionContent(): any; | ||
releasePointerCapture(pointerId: number): void; | ||
@@ -391,6 +434,6 @@ removeAttribute(qualifiedName: string): void; | ||
readonly parentElement: HTMLElement | null; | ||
readonly parentNode: (Node & ParentNode) | null; | ||
readonly parentNode: ParentNode | null; | ||
readonly previousSibling: ChildNode | null; | ||
textContent: string | null; | ||
appendChild<T extends Node>(newChild: T): T; | ||
appendChild<T extends Node>(node: T): T; | ||
cloneNode(deep?: boolean | undefined): Node; | ||
@@ -401,3 +444,3 @@ compareDocumentPosition(other: Node): number; | ||
hasChildNodes(): boolean; | ||
insertBefore<T_1 extends Node>(newChild: T_1, refChild: Node | null): T_1; | ||
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1; | ||
isDefaultNamespace(namespace: string | null): boolean; | ||
@@ -409,4 +452,4 @@ isEqualNode(otherNode: Node | null): boolean; | ||
normalize(): void; | ||
removeChild<T_2 extends Node>(oldChild: T_2): T_2; | ||
replaceChild<T_3 extends Node>(newChild: Node, oldChild: T_3): T_3; | ||
removeChild<T_2 extends Node>(child: T_2): T_2; | ||
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3; | ||
readonly ATTRIBUTE_NODE: number; | ||
@@ -431,4 +474,40 @@ readonly CDATA_SECTION_NODE: number; | ||
dispatchEvent(event: Event): boolean; | ||
ariaAtomic: string; | ||
ariaAutoComplete: string; | ||
ariaBusy: string; | ||
ariaChecked: string; | ||
ariaColCount: string; | ||
ariaColIndex: string; | ||
ariaColSpan: string; | ||
ariaCurrent: string; | ||
ariaDisabled: string; | ||
ariaExpanded: string; | ||
ariaHasPopup: string; | ||
ariaHidden: string; | ||
ariaKeyShortcuts: string; | ||
ariaLabel: string; | ||
ariaLevel: string; | ||
ariaLive: string; | ||
ariaModal: string; | ||
ariaMultiLine: string; | ||
ariaMultiSelectable: string; | ||
ariaOrientation: string; | ||
ariaPlaceholder: string; | ||
ariaPosInSet: string; | ||
ariaPressed: string; | ||
ariaReadOnly: string; | ||
ariaRequired: string; | ||
ariaRoleDescription: string; | ||
ariaRowCount: string; | ||
ariaRowIndex: string; | ||
ariaRowSpan: string; | ||
ariaSelected: string; | ||
ariaSetSize: string; | ||
ariaSort: string; | ||
ariaValueMax: string; | ||
ariaValueMin: string; | ||
ariaValueNow: string; | ||
ariaValueText: string; | ||
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation; | ||
getAnimations(): Animation[]; | ||
getAnimations(options?: GetAnimationsOptions | undefined): Animation[]; | ||
after(...nodes: (string | Node)[]): void; | ||
@@ -453,2 +532,3 @@ before(...nodes: (string | Node)[]): void; | ||
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>; | ||
replaceChildren(...nodes: (string | Node)[]): void; | ||
readonly assignedSlot: HTMLSlotElement | null; | ||
@@ -470,3 +550,2 @@ oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null; | ||
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; | ||
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
@@ -483,3 +562,2 @@ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; | ||
ondragexit: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; | ||
@@ -494,2 +572,3 @@ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; | ||
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; | ||
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null; | ||
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; | ||
@@ -529,3 +608,2 @@ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null; | ||
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
@@ -537,3 +615,3 @@ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onsubmit: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null; | ||
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
@@ -552,2 +630,6 @@ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null; | ||
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null; | ||
@@ -567,3 +649,3 @@ autofocus: boolean; | ||
*/ | ||
declare class TestableApolloMutation<D extends I.MaybeTDN = I.MaybeTDN, V = I.MaybeVariables<D>> extends TestableApolloMutation_base<D, V> implements TestableElement { | ||
declare class TestableApolloMutation<D = unknown, V = I.VariablesOf<D>> extends TestableApolloMutation_base<D, V> implements TestableElement { | ||
shadowRoot: ShadowRoot; | ||
@@ -570,0 +652,0 @@ static get template(): HTMLTemplateElement; |
@@ -1,5 +0,5 @@ | ||
import type { Constructor, MaybeTDN, MaybeVariables } from '@apollo-elements/core/types'; | ||
import type { Constructor, VariablesOf } from '@apollo-elements/core/types'; | ||
import type { ApolloQueryElement } from '@apollo-elements/core/types'; | ||
declare type MixinInstance<B extends Constructor> = B & { | ||
new <D extends MaybeTDN = MaybeTDN, V = MaybeVariables<D>>(...a: any[]): InstanceType<B> & ApolloQueryElement<D, V>; | ||
new <D, V = VariablesOf<D>>(...a: any[]): InstanceType<B> & ApolloQueryElement<D, V>; | ||
documentType: 'query'; | ||
@@ -6,0 +6,0 @@ }; |
import { __decorate } from "tslib"; | ||
import { NetworkStatus } from '@apollo/client/core'; | ||
import { ApolloElementMixin } from './apollo-element-mixin.js'; | ||
import { ApolloElementMixin } from './apollo-element-mixin'; | ||
import { dedupeMixin } from '@open-wc/dedupe-mixin'; | ||
@@ -5,0 +5,0 @@ import { controlled } from '@apollo-elements/core/decorators'; |
@@ -16,3 +16,3 @@ import type * as I from '@apollo-elements/core/types'; | ||
} & { | ||
new <D extends I.MaybeTDN = I.MaybeTDN, V = I.MaybeVariables<D>>(...a: any[]): HTMLElement & I.ApolloQueryElement<D, V>; | ||
new <D, V = I.VariablesOf<D>>(...a: any[]): HTMLElement & I.ApolloQueryElement<D, V>; | ||
documentType: "query"; | ||
@@ -33,3 +33,3 @@ }; | ||
} & { | ||
new <D extends I.MaybeTDN = I.MaybeTDN, V = I.MaybeVariables<D>>(...a: any[]): HTMLElement & I.ApolloQueryElement<D, V>; | ||
new <D, V = I.VariablesOf<D>>(...a: any[]): HTMLElement & I.ApolloQueryElement<D, V>; | ||
documentType: "query"; | ||
@@ -44,3 +44,3 @@ }; | ||
} & { | ||
new <D extends I.MaybeTDN = I.MaybeTDN, V = I.MaybeVariables<D>>(...a: any[]): HTMLElement & I.ApolloQueryElement<D, V>; | ||
new <D, V = I.VariablesOf<D>>(...a: any[]): HTMLElement & I.ApolloQueryElement<D, V>; | ||
documentType: "query"; | ||
@@ -57,3 +57,3 @@ }; | ||
} & { | ||
new <D extends I.MaybeTDN = I.MaybeTDN, V = I.MaybeVariables<D>>(...a: any[]): HTMLElement & I.ApolloQueryElement<D, V>; | ||
new <D, V = I.VariablesOf<D>>(...a: any[]): HTMLElement & I.ApolloQueryElement<D, V>; | ||
documentType: "query"; | ||
@@ -60,0 +60,0 @@ }; |
@@ -1,5 +0,5 @@ | ||
import type { Constructor, MaybeTDN, MaybeVariables } from '@apollo-elements/core/types'; | ||
import type { Constructor, VariablesOf } from '@apollo-elements/core/types'; | ||
import type { ApolloSubscriptionElement } from '@apollo-elements/core/types'; | ||
declare type MixinInstance<B extends Constructor> = B & { | ||
new <D extends MaybeTDN = MaybeTDN, V = MaybeVariables<D>>(...a: any[]): InstanceType<B> & ApolloSubscriptionElement<D, V>; | ||
new <D, V = VariablesOf<D>>(...a: any[]): InstanceType<B> & ApolloSubscriptionElement<D, V>; | ||
documentType: 'subscription'; | ||
@@ -6,0 +6,0 @@ }; |
import { __decorate } from "tslib"; | ||
import { ApolloSubscriptionController } from '@apollo-elements/core/apollo-subscription-controller'; | ||
import { ApolloElementMixin } from './apollo-element-mixin.js'; | ||
import { ApolloElementMixin } from './apollo-element-mixin'; | ||
import { dedupeMixin } from '@open-wc/dedupe-mixin'; | ||
@@ -5,0 +5,0 @@ import { controlled } from '@apollo-elements/core/decorators'; |
@@ -8,6 +8,6 @@ import type * as C from '@apollo/client/core'; | ||
} & { | ||
new <D_1 extends I.MaybeTDN = I.MaybeTDN, V_1 = I.MaybeVariables<D_1>>(...a: any[]): HTMLElement & I.ApolloSubscriptionElement<D_1, V_1>; | ||
new <D_1, V_1 = I.VariablesOf<D_1>>(...a: any[]): HTMLElement & I.ApolloSubscriptionElement<D_1, V_1>; | ||
documentType: "subscription"; | ||
}; | ||
declare class TestableApolloSubscription<D extends I.MaybeTDN = I.MaybeTDN, V = I.MaybeVariables<D>> extends TestableApolloSubscription_base<D, V> implements TestableElement { | ||
declare class TestableApolloSubscription<D = unknown, V = I.VariablesOf<D>> extends TestableApolloSubscription_base<D, V> implements TestableElement { | ||
shadowRoot: ShadowRoot; | ||
@@ -14,0 +14,0 @@ static get template(): HTMLTemplateElement; |
@@ -1,8 +0,8 @@ | ||
export { ApolloElementMixin } from './apollo-element-mixin.js'; | ||
export { ApolloQueryMixin } from './apollo-query-mixin.js'; | ||
export { ApolloMutationMixin } from './apollo-mutation-mixin.js'; | ||
export { ApolloSubscriptionMixin } from './apollo-subscription-mixin.js'; | ||
export { ApolloClientMixin } from './apollo-client-mixin.js'; | ||
export { GraphQLScriptChildMixin } from './graphql-script-child-mixin.js'; | ||
export { TypePoliciesMixin } from './type-policies-mixin.js'; | ||
export { ValidateVariablesMixin } from './validate-variables-mixin.js'; | ||
export { ApolloElementMixin } from './apollo-element-mixin'; | ||
export { ApolloQueryMixin } from './apollo-query-mixin'; | ||
export { ApolloMutationMixin } from './apollo-mutation-mixin'; | ||
export { ApolloSubscriptionMixin } from './apollo-subscription-mixin'; | ||
export { ApolloClientMixin } from './apollo-client-mixin'; | ||
export { GraphQLScriptChildMixin } from './graphql-script-child-mixin'; | ||
export { TypePoliciesMixin } from './type-policies-mixin'; | ||
export { ValidateVariablesMixin } from './validate-variables-mixin'; |
16
index.js
@@ -1,9 +0,9 @@ | ||
export { ApolloElementMixin } from './apollo-element-mixin.js'; | ||
export { ApolloQueryMixin } from './apollo-query-mixin.js'; | ||
export { ApolloMutationMixin } from './apollo-mutation-mixin.js'; | ||
export { ApolloSubscriptionMixin } from './apollo-subscription-mixin.js'; | ||
export { ApolloClientMixin } from './apollo-client-mixin.js'; | ||
export { GraphQLScriptChildMixin } from './graphql-script-child-mixin.js'; | ||
export { TypePoliciesMixin } from './type-policies-mixin.js'; | ||
export { ValidateVariablesMixin } from './validate-variables-mixin.js'; | ||
export { ApolloElementMixin } from './apollo-element-mixin'; | ||
export { ApolloQueryMixin } from './apollo-query-mixin'; | ||
export { ApolloMutationMixin } from './apollo-mutation-mixin'; | ||
export { ApolloSubscriptionMixin } from './apollo-subscription-mixin'; | ||
export { ApolloClientMixin } from './apollo-client-mixin'; | ||
export { GraphQLScriptChildMixin } from './graphql-script-child-mixin'; | ||
export { TypePoliciesMixin } from './type-policies-mixin'; | ||
export { ValidateVariablesMixin } from './validate-variables-mixin'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@apollo-elements/mixins", | ||
"version": "4.1.0", | ||
"version": "4.1.1-next.0", | ||
"description": "π©βππ Custom Element class mixins for Apollo GraphQL ππ¨βπ", | ||
@@ -34,10 +34,4 @@ "main": "index.js", | ||
"prepublishOnly": "tsc -b .", | ||
"build": "tsc", | ||
"lint": "run-s lint:*", | ||
"lint:types": "tsc --noEmit", | ||
"start": "tsc -w --noEmit", | ||
"analyze": "custom-elements-manifest analyze", | ||
"test": "run-s test:*", | ||
"test:types": "tsc --noEmit", | ||
"test:runtime": "wtr --coverage --config ../../web-test-runner.config.js './*.test.ts'" | ||
"test": "wtr --coverage --config ../../web-test-runner.config.js --root-dir '../..' './*.test.ts'" | ||
}, | ||
@@ -62,3 +56,3 @@ "repository": { | ||
"dependencies": { | ||
"@apollo-elements/core": "^1.1.0", | ||
"@apollo-elements/core": "^1.1.1-next.0", | ||
"@apollo/client": "^3.5.4", | ||
@@ -65,0 +59,0 @@ "@open-wc/dedupe-mixin": "^1.3.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
348688
60
3297
1
+ Added@apollo-elements/core@1.1.1-next.0(transitive)
- Removed@apollo-elements/core@1.1.0(transitive)