@microsoft/fast-element 2.4.1 → 2.5.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.
- package/CHANGELOG.json +16 -1
- package/CHANGELOG.md +10 -2
- package/dist/dts/components/element-controller.d.ts +3 -0
- package/dist/dts/components/fast-definitions.d.ts +35 -0
- package/dist/dts/components/fast-element.d.ts +3 -0
- package/dist/dts/index.d.ts +1 -1
- package/dist/esm/components/element-controller.js +12 -2
- package/dist/esm/components/fast-definitions.js +67 -2
- package/dist/esm/components/fast-element.js +23 -0
- package/dist/fast-element.api.json +266 -1
- package/dist/fast-element.debug.js +119 -2
- package/dist/fast-element.debug.min.js +2 -2
- package/dist/fast-element.js +119 -2
- package/dist/fast-element.min.js +2 -2
- package/dist/fast-element.untrimmed.d.ts +42 -0
- package/docs/api-report.api.md +19 -3
- package/package.json +1 -1
package/docs/api-report.api.md
CHANGED
|
@@ -441,6 +441,7 @@ export const FASTElement: {
|
|
|
441
441
|
new (): FASTElement;
|
|
442
442
|
define: typeof define;
|
|
443
443
|
compose: typeof compose;
|
|
444
|
+
defineAsync: typeof defineAsync;
|
|
444
445
|
from: typeof from;
|
|
445
446
|
};
|
|
446
447
|
|
|
@@ -449,19 +450,26 @@ export class FASTElementDefinition<TType extends Constructable<HTMLElement> = Co
|
|
|
449
450
|
readonly attributeLookup: Record<string, AttributeDefinition>;
|
|
450
451
|
readonly attributes: ReadonlyArray<AttributeDefinition>;
|
|
451
452
|
static compose<TType extends Constructable<HTMLElement> = Constructable<HTMLElement>>(type: TType, nameOrDef?: string | PartialFASTElementDefinition): FASTElementDefinition<TType>;
|
|
453
|
+
// @alpha
|
|
454
|
+
static composeAsync<TType extends Constructable<HTMLElement> = Constructable<HTMLElement>>(type: TType, nameOrDef?: string | PartialFASTElementDefinition): Promise<FASTElementDefinition<TType>>;
|
|
452
455
|
define(registry?: CustomElementRegistry): this;
|
|
453
456
|
readonly elementOptions: ElementDefinitionOptions;
|
|
454
457
|
static readonly getByType: (key: Function) => FASTElementDefinition<Constructable<HTMLElement>> | undefined;
|
|
455
458
|
static readonly getForInstance: (object: any) => FASTElementDefinition<Constructable<HTMLElement>> | undefined;
|
|
456
459
|
get isDefined(): boolean;
|
|
460
|
+
static isRegistered: Record<string, Function>;
|
|
457
461
|
readonly name: string;
|
|
458
462
|
readonly propertyLookup: Record<string, AttributeDefinition>;
|
|
463
|
+
// @alpha
|
|
464
|
+
static registerAsync: (name: string) => Promise<Function>;
|
|
459
465
|
// @internal
|
|
460
466
|
static registerBaseType(type: Function): void;
|
|
461
467
|
readonly registry: CustomElementRegistry;
|
|
462
468
|
shadowOptions?: ShadowRootOptions;
|
|
463
469
|
readonly styles?: ElementStyles;
|
|
464
470
|
template?: ElementViewTemplate;
|
|
471
|
+
// @alpha
|
|
472
|
+
templateOptions?: TemplateOptions;
|
|
465
473
|
readonly type: TType;
|
|
466
474
|
}
|
|
467
475
|
|
|
@@ -592,6 +600,8 @@ export class HydratableElementController<TElement extends HTMLElement = HTMLElem
|
|
|
592
600
|
// (undocumented)
|
|
593
601
|
disconnect(): void;
|
|
594
602
|
// (undocumented)
|
|
603
|
+
static forCustomElement(element: HTMLElement, override?: boolean): ElementController<HTMLElement>;
|
|
604
|
+
// (undocumented)
|
|
595
605
|
static install(): void;
|
|
596
606
|
protected needsHydration?: boolean;
|
|
597
607
|
}
|
|
@@ -727,6 +737,8 @@ export interface PartialFASTElementDefinition {
|
|
|
727
737
|
readonly shadowOptions?: Partial<ShadowRootOptions> | null;
|
|
728
738
|
readonly styles?: ComposableStyles | ComposableStyles[];
|
|
729
739
|
readonly template?: ElementViewTemplate;
|
|
740
|
+
// @alpha
|
|
741
|
+
readonly templateOptions?: TemplateOptions;
|
|
730
742
|
}
|
|
731
743
|
|
|
732
744
|
// @public
|
|
@@ -958,6 +970,9 @@ export interface SyntheticViewTemplate<TSource = any, TParent = any> {
|
|
|
958
970
|
inline(): CaptureType<TSource, TParent>;
|
|
959
971
|
}
|
|
960
972
|
|
|
973
|
+
// @alpha
|
|
974
|
+
export type TemplateOptions = "defer-and-hydrate";
|
|
975
|
+
|
|
961
976
|
// @public
|
|
962
977
|
export type TemplateValue<TSource, TParent = any> = Expression<TSource, any, TParent> | Binding<TSource, any, TParent> | HTMLDirective | CaptureType<TSource, TParent>;
|
|
963
978
|
|
|
@@ -1051,9 +1066,10 @@ export function when<TSource = any, TReturn = any, TParent = any>(condition: Exp
|
|
|
1051
1066
|
|
|
1052
1067
|
// Warnings were encountered during analysis:
|
|
1053
1068
|
//
|
|
1054
|
-
// dist/dts/components/fast-element.d.ts:
|
|
1055
|
-
// dist/dts/components/fast-element.d.ts:
|
|
1056
|
-
// dist/dts/components/fast-element.d.ts:
|
|
1069
|
+
// dist/dts/components/fast-element.d.ts:62:5 - (ae-forgotten-export) The symbol "define" needs to be exported by the entry point index.d.ts
|
|
1070
|
+
// dist/dts/components/fast-element.d.ts:63:5 - (ae-forgotten-export) The symbol "compose" needs to be exported by the entry point index.d.ts
|
|
1071
|
+
// dist/dts/components/fast-element.d.ts:64:5 - (ae-forgotten-export) The symbol "defineAsync" needs to be exported by the entry point index.d.ts
|
|
1072
|
+
// dist/dts/components/fast-element.d.ts:65:5 - (ae-forgotten-export) The symbol "from" needs to be exported by the entry point index.d.ts
|
|
1057
1073
|
// dist/dts/styles/css-binding-directive.d.ts:35:9 - (ae-forgotten-export) The symbol "CSSBindingEntry" needs to be exported by the entry point index.d.ts
|
|
1058
1074
|
|
|
1059
1075
|
// (No @packageDocumentation comment for this package)
|