@microsoft/fast-element 2.0.0-beta.2 → 2.0.0-beta.5
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 +147 -0
- package/CHANGELOG.md +42 -1
- package/dist/dts/components/fast-definitions.d.ts +9 -8
- package/dist/dts/components/fast-element.d.ts +12 -24
- package/dist/dts/context.d.ts +1 -1
- package/dist/dts/di/di.d.ts +858 -0
- package/dist/dts/hooks.d.ts +2 -2
- package/dist/dts/interfaces.d.ts +40 -7
- package/dist/dts/observation/observable.d.ts +19 -13
- package/dist/dts/styles/element-styles.d.ts +6 -0
- package/dist/dts/templating/binding-signal.d.ts +10 -27
- package/dist/dts/templating/binding-two-way.d.ts +16 -41
- package/dist/dts/templating/binding.d.ts +79 -118
- package/dist/dts/templating/html-directive.d.ts +31 -3
- package/dist/dts/templating/render.d.ts +277 -0
- package/dist/dts/templating/repeat.d.ts +12 -16
- package/dist/dts/templating/template.d.ts +3 -3
- package/dist/dts/templating/when.d.ts +3 -3
- package/dist/dts/testing/exports.d.ts +2 -0
- package/dist/dts/testing/fixture.d.ts +90 -0
- package/dist/dts/testing/timeout.d.ts +7 -0
- package/dist/esm/components/fast-definitions.js +25 -27
- package/dist/esm/components/fast-element.js +20 -11
- package/dist/esm/context.js +5 -1
- package/dist/esm/debug.js +36 -4
- package/dist/esm/di/di.js +1351 -0
- package/dist/esm/observation/arrays.js +303 -2
- package/dist/esm/observation/observable.js +11 -6
- package/dist/esm/platform.js +1 -1
- package/dist/esm/styles/element-styles.js +14 -0
- package/dist/esm/templating/binding-signal.js +56 -61
- package/dist/esm/templating/binding-two-way.js +56 -34
- package/dist/esm/templating/binding.js +137 -156
- package/dist/esm/templating/compiler.js +30 -7
- package/dist/esm/templating/html-directive.js +16 -2
- package/dist/esm/templating/render.js +392 -0
- package/dist/esm/templating/repeat.js +57 -40
- package/dist/esm/templating/template.js +8 -5
- package/dist/esm/templating/view.js +3 -1
- package/dist/esm/templating/when.js +5 -4
- package/dist/esm/testing/exports.js +2 -0
- package/dist/esm/testing/fixture.js +88 -0
- package/dist/esm/testing/timeout.js +24 -0
- package/dist/fast-element.api.json +2828 -2758
- package/dist/fast-element.d.ts +218 -230
- package/dist/fast-element.debug.js +656 -257
- package/dist/fast-element.debug.min.js +1 -1
- package/dist/fast-element.js +620 -253
- package/dist/fast-element.min.js +1 -1
- package/dist/fast-element.untrimmed.d.ts +226 -235
- package/docs/api-report.md +88 -91
- package/package.json +15 -6
- package/dist/dts/observation/splice-strategies.d.ts +0 -13
- package/dist/esm/observation/splice-strategies.js +0 -400
package/docs/api-report.md
CHANGED
|
@@ -53,7 +53,7 @@ export const Aspect: Readonly<{
|
|
|
53
53
|
readonly content: 4;
|
|
54
54
|
readonly tokenList: 5;
|
|
55
55
|
readonly event: 6;
|
|
56
|
-
readonly assign: (directive: Aspected, value
|
|
56
|
+
readonly assign: (directive: Aspected, value?: string) => void;
|
|
57
57
|
}>;
|
|
58
58
|
|
|
59
59
|
// @public
|
|
@@ -62,7 +62,7 @@ export type Aspect = typeof Aspect[Exclude<keyof typeof Aspect, "assign" | "none
|
|
|
62
62
|
// @public
|
|
63
63
|
export interface Aspected {
|
|
64
64
|
aspectType: Aspect;
|
|
65
|
-
|
|
65
|
+
dataBinding?: Binding;
|
|
66
66
|
sourceAspect: string;
|
|
67
67
|
targetAspect: string;
|
|
68
68
|
}
|
|
@@ -110,38 +110,29 @@ export interface Behavior<TSource = any, TParent = any> {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
// @public
|
|
113
|
-
export function bind<T = any>(binding:
|
|
113
|
+
export function bind<T = any>(binding: Expression<T>, isVolatile?: boolean): Binding<T>;
|
|
114
114
|
|
|
115
115
|
// @public
|
|
116
|
-
export
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
options: T;
|
|
116
|
+
export abstract class Binding<TSource = any, TReturn = any, TParent = any> {
|
|
117
|
+
abstract createObserver(directive: HTMLDirective, subscriber: Subscriber): ExpressionObserver<TSource, TReturn, TParent>;
|
|
118
|
+
evaluate: Expression<TSource, TReturn, TParent>;
|
|
119
|
+
isVolatile?: boolean;
|
|
120
|
+
options?: any;
|
|
122
121
|
}
|
|
123
122
|
|
|
124
123
|
// @public
|
|
125
|
-
export
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
//
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
// @
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
//
|
|
136
|
-
|
|
137
|
-
define(UpdateType: typeof UpdateBinding, EventType?: typeof EventBinding): BindingMode;
|
|
138
|
-
}>;
|
|
139
|
-
|
|
140
|
-
// @public
|
|
141
|
-
export interface BindingObserver<TSource = any, TReturn = any, TParent = any> extends Notifier, Disposable {
|
|
142
|
-
observe(source: TSource, context?: ExecutionContext<TParent>): TReturn;
|
|
143
|
-
records(): IterableIterator<ObservationRecord>;
|
|
144
|
-
setMode(isAsync: boolean): void;
|
|
124
|
+
export class BindingBehavior implements ViewBehavior {
|
|
125
|
+
constructor(directive: HTMLBindingDirective, updateTarget: UpdateTarget);
|
|
126
|
+
bind(source: any, context: ExecutionContext, targets: ViewBehaviorTargets): void;
|
|
127
|
+
createBehavior(targets: ViewBehaviorTargets): ViewBehavior;
|
|
128
|
+
// (undocumented)
|
|
129
|
+
readonly directive: HTMLBindingDirective;
|
|
130
|
+
protected getObserver(target: Node): ExpressionObserver;
|
|
131
|
+
// @internal (undocumented)
|
|
132
|
+
handleChange(binding: Expression, observer: ExpressionObserver): void;
|
|
133
|
+
unbind(source: any, context: ExecutionContext, targets: ViewBehaviorTargets): void;
|
|
134
|
+
// (undocumented)
|
|
135
|
+
protected updateTarget: UpdateTarget;
|
|
145
136
|
}
|
|
146
137
|
|
|
147
138
|
// @public
|
|
@@ -156,16 +147,6 @@ export type Callable = typeof Function.prototype.call | {
|
|
|
156
147
|
export interface CaptureType<TSource> {
|
|
157
148
|
}
|
|
158
149
|
|
|
159
|
-
// @public
|
|
160
|
-
export class ChangeBinding extends UpdateBinding {
|
|
161
|
-
constructor(directive: HTMLBindingDirective, updateTarget: UpdateTarget);
|
|
162
|
-
bind(source: any, context: ExecutionContext, targets: ViewBehaviorTargets): void;
|
|
163
|
-
protected getObserver(target: Node): BindingObserver;
|
|
164
|
-
// @internal (undocumented)
|
|
165
|
-
handleChange(binding: Binding, observer: BindingObserver): void;
|
|
166
|
-
unbind(source: any, context: ExecutionContext, targets: ViewBehaviorTargets): void;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
150
|
// @public
|
|
170
151
|
export interface ChildListDirectiveOptions<T = any> extends NodeBehaviorOptions<T>, Omit<MutationObserverInit, "subtree" | "childList"> {
|
|
171
152
|
}
|
|
@@ -210,6 +191,24 @@ export type ConstructibleStyleStrategy = {
|
|
|
210
191
|
new (styles: (string | CSSStyleSheet)[]): StyleStrategy;
|
|
211
192
|
};
|
|
212
193
|
|
|
194
|
+
// @public
|
|
195
|
+
export class ContentBehavior extends BindingBehavior {
|
|
196
|
+
unbind(source: any, context: ExecutionContext, targets: ViewBehaviorTargets): void;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// @public
|
|
200
|
+
export interface ContentTemplate {
|
|
201
|
+
create(): ContentView;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// @public
|
|
205
|
+
export interface ContentView {
|
|
206
|
+
bind(source: any, context: ExecutionContext): void;
|
|
207
|
+
insertBefore(node: Node): void;
|
|
208
|
+
remove(): void;
|
|
209
|
+
unbind(): void;
|
|
210
|
+
}
|
|
211
|
+
|
|
213
212
|
// @public
|
|
214
213
|
export class Controller<TElement extends HTMLElement = HTMLElement> extends PropertyChangeNotifier {
|
|
215
214
|
// @internal
|
|
@@ -275,9 +274,6 @@ export function customElement(nameOrDef: string | PartialFASTElementDefinition):
|
|
|
275
274
|
// @public
|
|
276
275
|
export type DecoratorAttributeConfiguration = Omit<AttributeConfiguration, "property">;
|
|
277
276
|
|
|
278
|
-
// @public
|
|
279
|
-
export type DefaultBindingOptions = AddEventListenerOptions;
|
|
280
|
-
|
|
281
277
|
// @public
|
|
282
278
|
export interface Disposable {
|
|
283
279
|
dispose(): void;
|
|
@@ -306,6 +302,7 @@ export class ElementStyles {
|
|
|
306
302
|
readonly behaviors: ReadonlyArray<Behavior<HTMLElement>> | null;
|
|
307
303
|
// @internal (undocumented)
|
|
308
304
|
isAttachedTo(target: StyleTarget): boolean;
|
|
305
|
+
static normalize(styles: ComposableStyles | ComposableStyles[] | undefined): ElementStyles | undefined;
|
|
309
306
|
// @internal (undocumented)
|
|
310
307
|
removeStylesFrom(target: StyleTarget): void;
|
|
311
308
|
static setDefaultStrategy(Strategy: ConstructibleStyleStrategy): void;
|
|
@@ -332,7 +329,7 @@ export interface ElementViewTemplate<TSource = any, TParent = any> {
|
|
|
332
329
|
export const emptyArray: readonly never[];
|
|
333
330
|
|
|
334
331
|
// @public
|
|
335
|
-
export class
|
|
332
|
+
export class EventBehavior {
|
|
336
333
|
constructor(directive: HTMLBindingDirective);
|
|
337
334
|
bind(source: any, context: ExecutionContext, targets: ViewBehaviorTargets): void;
|
|
338
335
|
createBehavior(targets: ViewBehaviorTargets): ViewBehavior;
|
|
@@ -366,6 +363,20 @@ export class ExecutionContext<TParentSource = any> {
|
|
|
366
363
|
updatePosition(index: number, length: number): void;
|
|
367
364
|
}
|
|
368
365
|
|
|
366
|
+
// @public
|
|
367
|
+
export type Expression<TSource = any, TReturn = any, TParent = any> = (source: TSource, context: ExecutionContext<TParent>) => TReturn;
|
|
368
|
+
|
|
369
|
+
// @public
|
|
370
|
+
export interface ExpressionNotifier<TSource = any, TReturn = any, TParent = any> extends Notifier, ExpressionObserver<TSource, TReturn, TParent> {
|
|
371
|
+
records(): IterableIterator<ObservationRecord>;
|
|
372
|
+
setMode(isAsync: boolean): void;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
// @public
|
|
376
|
+
export interface ExpressionObserver<TSource = any, TReturn = any, TParent = any> extends Disposable {
|
|
377
|
+
observe(source: TSource, context?: ExecutionContext<TParent>): TReturn;
|
|
378
|
+
}
|
|
379
|
+
|
|
369
380
|
// Warning: (ae-internal-missing-underscore) The name "FAST" should be prefixed with an underscore because the declaration is marked as @internal
|
|
370
381
|
//
|
|
371
382
|
// @internal
|
|
@@ -381,20 +392,18 @@ export interface FASTElement extends HTMLElement {
|
|
|
381
392
|
}
|
|
382
393
|
|
|
383
394
|
// @public
|
|
384
|
-
export const FASTElement:
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
define<TType extends Constructable<HTMLElement>>(type: TType, nameOrDef?: string | PartialFASTElementDefinition): TType;
|
|
390
|
-
metadata<TType_1 extends Constructable<HTMLElement> = Constructable<HTMLElement>>(type: TType_1, nameOrDef?: string | PartialFASTElementDefinition): FASTElementDefinition<TType_1>;
|
|
395
|
+
export const FASTElement: {
|
|
396
|
+
new (): FASTElement;
|
|
397
|
+
define: typeof define;
|
|
398
|
+
compose: typeof compose;
|
|
399
|
+
from: typeof from;
|
|
391
400
|
};
|
|
392
401
|
|
|
393
402
|
// @public
|
|
394
403
|
export class FASTElementDefinition<TType extends Constructable<HTMLElement> = Constructable<HTMLElement>> {
|
|
395
|
-
constructor(type: TType, nameOrConfig?: PartialFASTElementDefinition | string);
|
|
396
404
|
readonly attributeLookup: Record<string, AttributeDefinition>;
|
|
397
405
|
readonly attributes: ReadonlyArray<AttributeDefinition>;
|
|
406
|
+
static compose<TType extends Constructable<HTMLElement> = Constructable<HTMLElement>>(type: TType, nameOrDef?: string | PartialFASTElementDefinition): FASTElementDefinition<TType>;
|
|
398
407
|
define(registry?: CustomElementRegistry): this;
|
|
399
408
|
readonly elementOptions?: ElementDefinitionOptions;
|
|
400
409
|
static readonly getByType: (key: Function) => FASTElementDefinition<Constructable<HTMLElement>> | undefined;
|
|
@@ -413,12 +422,12 @@ export class FASTElementDefinition<TType extends Constructable<HTMLElement> = Co
|
|
|
413
422
|
// @internal
|
|
414
423
|
export interface FASTGlobal {
|
|
415
424
|
addMessages(messages: Record<number, string>): void;
|
|
416
|
-
error(code: number,
|
|
425
|
+
error(code: number, values?: Record<string, any>): Error;
|
|
417
426
|
getById<T>(id: string | number): T | null;
|
|
418
427
|
// (undocumented)
|
|
419
428
|
getById<T>(id: string | number, initialize: () => T): T;
|
|
420
429
|
readonly versions: string[];
|
|
421
|
-
warn(code: number,
|
|
430
|
+
warn(code: number, values?: Record<string, any>): void;
|
|
422
431
|
}
|
|
423
432
|
|
|
424
433
|
// @public
|
|
@@ -426,18 +435,14 @@ export function html<TSource = any, TParent = any>(strings: TemplateStringsArray
|
|
|
426
435
|
|
|
427
436
|
// @public
|
|
428
437
|
export class HTMLBindingDirective implements HTMLDirective, ViewBehaviorFactory, Aspected {
|
|
429
|
-
constructor(
|
|
438
|
+
constructor(dataBinding: Binding);
|
|
430
439
|
aspectType: Aspect;
|
|
431
|
-
// (undocumented)
|
|
432
|
-
binding: Binding;
|
|
433
440
|
createBehavior(targets: ViewBehaviorTargets): ViewBehavior;
|
|
434
441
|
createHTML(add: AddViewBehaviorFactory): string;
|
|
435
|
-
id: string;
|
|
436
442
|
// (undocumented)
|
|
437
|
-
|
|
443
|
+
dataBinding: Binding;
|
|
444
|
+
id: string;
|
|
438
445
|
nodeId: string;
|
|
439
|
-
// (undocumented)
|
|
440
|
-
options: any;
|
|
441
446
|
sourceAspect: string;
|
|
442
447
|
targetAspect: string;
|
|
443
448
|
}
|
|
@@ -491,6 +496,9 @@ export interface LengthObserver extends Subscriber {
|
|
|
491
496
|
// @public
|
|
492
497
|
export function lengthOf<T>(array: readonly T[]): number;
|
|
493
498
|
|
|
499
|
+
// @public
|
|
500
|
+
export function listener<T = any>(binding: Expression<T>, options?: AddEventListenerOptions): Binding<T>;
|
|
501
|
+
|
|
494
502
|
// @public
|
|
495
503
|
export const Markup: Readonly<{
|
|
496
504
|
interpolation: (id: string) => string;
|
|
@@ -523,6 +531,9 @@ export abstract class NodeObservationDirective<T extends NodeBehaviorOptions> ex
|
|
|
523
531
|
protected updateTarget(source: any, value: ReadonlyArray<any>): void;
|
|
524
532
|
}
|
|
525
533
|
|
|
534
|
+
// @public
|
|
535
|
+
export function normalizeBinding<TSource = any, TReturn = any, TParent = any>(value: Expression<TSource, TReturn, TParent> | Binding<TSource, TReturn, TParent> | {}): Binding<TSource, TReturn, TParent>;
|
|
536
|
+
|
|
526
537
|
// @public
|
|
527
538
|
export interface Notifier {
|
|
528
539
|
notify(args: any): void;
|
|
@@ -543,8 +554,8 @@ export const Observable: Readonly<{
|
|
|
543
554
|
notify(source: unknown, args: any): void;
|
|
544
555
|
defineProperty(target: {}, nameOrAccessor: string | Accessor): void;
|
|
545
556
|
getAccessors: (target: {}) => Accessor[];
|
|
546
|
-
binding<TSource = any, TReturn = any>(binding:
|
|
547
|
-
isVolatileBinding<TSource_1 = any, TReturn_1 = any>(binding:
|
|
557
|
+
binding<TSource = any, TReturn = any>(binding: Expression<TSource, TReturn, any>, initialSubscriber?: Subscriber, isVolatileBinding?: boolean): ExpressionNotifier<TSource, TReturn, any>;
|
|
558
|
+
isVolatileBinding<TSource_1 = any, TReturn_1 = any>(binding: Expression<TSource_1, TReturn_1, any>): boolean;
|
|
548
559
|
}>;
|
|
549
560
|
|
|
550
561
|
// @public
|
|
@@ -557,15 +568,7 @@ export interface ObservationRecord {
|
|
|
557
568
|
}
|
|
558
569
|
|
|
559
570
|
// @public
|
|
560
|
-
export
|
|
561
|
-
|
|
562
|
-
// @public
|
|
563
|
-
export const oneTime: BindingConfig<AddEventListenerOptions> & BindingConfigResolver<AddEventListenerOptions>;
|
|
564
|
-
|
|
565
|
-
// @public
|
|
566
|
-
export class OneTimeBinding extends UpdateBinding {
|
|
567
|
-
bind(source: any, context: ExecutionContext, targets: ViewBehaviorTargets): void;
|
|
568
|
-
}
|
|
571
|
+
export function oneTime<T = any>(binding: Expression<T>): Binding<T>;
|
|
569
572
|
|
|
570
573
|
// @public
|
|
571
574
|
export const Parser: Readonly<{
|
|
@@ -606,24 +609,24 @@ export class RefDirective extends StatelessAttachedAttributeDirective<string> {
|
|
|
606
609
|
}
|
|
607
610
|
|
|
608
611
|
// @public
|
|
609
|
-
export function repeat<TSource = any, TArray extends ReadonlyArray<any> = ReadonlyArray<any>>(
|
|
612
|
+
export function repeat<TSource = any, TArray extends ReadonlyArray<any> = ReadonlyArray<any>>(items: Expression<TSource, TArray, ExecutionContext<TSource>> | Binding<TSource, TArray> | ReadonlyArray<any>, template: Expression<TSource, ViewTemplate> | Binding<TSource, ViewTemplate> | ViewTemplate, options?: RepeatOptions): CaptureType<TSource>;
|
|
610
613
|
|
|
611
614
|
// @public
|
|
612
615
|
export class RepeatBehavior<TSource = any> implements Behavior, Subscriber {
|
|
613
|
-
constructor(
|
|
616
|
+
constructor(directive: RepeatDirective, location: Node);
|
|
614
617
|
bind(source: TSource, context: ExecutionContext): void;
|
|
615
|
-
handleChange(source: any, args: Splice[]): void;
|
|
618
|
+
handleChange(source: any, args: Splice[] | ExpressionObserver): void;
|
|
616
619
|
unbind(): void;
|
|
617
620
|
}
|
|
618
621
|
|
|
619
622
|
// @public
|
|
620
623
|
export class RepeatDirective<TSource = any> implements HTMLDirective, ViewBehaviorFactory {
|
|
621
|
-
constructor(
|
|
624
|
+
constructor(dataBinding: Binding<TSource>, templateBinding: Binding<TSource, SyntheticViewTemplate>, options: RepeatOptions);
|
|
622
625
|
createBehavior(targets: ViewBehaviorTargets): RepeatBehavior<TSource>;
|
|
623
626
|
createHTML(add: AddViewBehaviorFactory): string;
|
|
624
|
-
id: string;
|
|
625
627
|
// (undocumented)
|
|
626
|
-
readonly
|
|
628
|
+
readonly dataBinding: Binding<TSource>;
|
|
629
|
+
id: string;
|
|
627
630
|
nodeId: string;
|
|
628
631
|
// (undocumented)
|
|
629
632
|
readonly options: RepeatOptions;
|
|
@@ -757,7 +760,7 @@ export interface SyntheticViewTemplate<TSource = any, TParent = any> {
|
|
|
757
760
|
}
|
|
758
761
|
|
|
759
762
|
// @public
|
|
760
|
-
export type TemplateValue<TSource, TParent = any> = Binding<TSource, any, TParent> | HTMLDirective | CaptureType<TSource>;
|
|
763
|
+
export type TemplateValue<TSource, TParent = any> = Expression<TSource, any, TParent> | Binding<TSource, any, TParent> | HTMLDirective | CaptureType<TSource>;
|
|
761
764
|
|
|
762
765
|
// @public
|
|
763
766
|
export type TrustedTypes = {
|
|
@@ -789,18 +792,6 @@ export interface TypeRegistry<TDefinition extends TypeDefinition> {
|
|
|
789
792
|
register(definition: TDefinition): boolean;
|
|
790
793
|
}
|
|
791
794
|
|
|
792
|
-
// @public
|
|
793
|
-
export class UpdateBinding implements ViewBehavior {
|
|
794
|
-
constructor(directive: HTMLBindingDirective, updateTarget: UpdateTarget);
|
|
795
|
-
bind(source: any, context: ExecutionContext, targets: ViewBehaviorTargets): void;
|
|
796
|
-
createBehavior(targets: ViewBehaviorTargets): ViewBehavior;
|
|
797
|
-
// (undocumented)
|
|
798
|
-
readonly directive: HTMLBindingDirective;
|
|
799
|
-
unbind(source: any, context: ExecutionContext, targets: ViewBehaviorTargets): void;
|
|
800
|
-
// (undocumented)
|
|
801
|
-
protected updateTarget: UpdateTarget;
|
|
802
|
-
}
|
|
803
|
-
|
|
804
795
|
// @public
|
|
805
796
|
export interface UpdateQueue {
|
|
806
797
|
enqueue(callable: Callable): void;
|
|
@@ -865,7 +856,13 @@ export class ViewTemplate<TSource = any, TParent = any> implements ElementViewTe
|
|
|
865
856
|
export function volatile(target: {}, name: string | Accessor, descriptor: PropertyDescriptor): PropertyDescriptor;
|
|
866
857
|
|
|
867
858
|
// @public
|
|
868
|
-
export function when<TSource = any, TReturn = any>(
|
|
859
|
+
export function when<TSource = any, TReturn = any>(condition: Expression<TSource, TReturn> | boolean, templateOrTemplateBinding: SyntheticViewTemplate | Expression<TSource, SyntheticViewTemplate>): CaptureType<TSource>;
|
|
860
|
+
|
|
861
|
+
// Warnings were encountered during analysis:
|
|
862
|
+
//
|
|
863
|
+
// dist/dts/components/fast-element.d.ts:60:5 - (ae-forgotten-export) The symbol "define" needs to be exported by the entry point index.d.ts
|
|
864
|
+
// dist/dts/components/fast-element.d.ts:61:5 - (ae-forgotten-export) The symbol "compose" needs to be exported by the entry point index.d.ts
|
|
865
|
+
// dist/dts/components/fast-element.d.ts:62:5 - (ae-forgotten-export) The symbol "from" needs to be exported by the entry point index.d.ts
|
|
869
866
|
|
|
870
867
|
// (No @packageDocumentation comment for this package)
|
|
871
868
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/fast-element",
|
|
3
3
|
"description": "A library for constructing Web Components",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.5",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Microsoft",
|
|
7
7
|
"url": "https://discord.gg/FcSNfg4"
|
|
@@ -34,10 +34,6 @@
|
|
|
34
34
|
"types": "./dist/dts/debug.d.ts",
|
|
35
35
|
"default": "./dist/esm/debug.js"
|
|
36
36
|
},
|
|
37
|
-
"./observation/splice-strategies": {
|
|
38
|
-
"types": "./dist/dts/observation/splice-strategies.d.ts",
|
|
39
|
-
"default": "./dist/esm/observation/splice-strategies.js"
|
|
40
|
-
},
|
|
41
37
|
"./binding/two-way": {
|
|
42
38
|
"types": "./dist/dts/templating/binding-two-way.d.ts",
|
|
43
39
|
"default": "./dist/esm/templating/binding-two-way.js"
|
|
@@ -46,6 +42,10 @@
|
|
|
46
42
|
"types": "./dist/dts/templating/binding-signal.d.ts",
|
|
47
43
|
"default": "./dist/esm/templating/binding-signal.js"
|
|
48
44
|
},
|
|
45
|
+
"./render": {
|
|
46
|
+
"types": "./dist/dts/templating/render.d.ts",
|
|
47
|
+
"default": "./dist/esm/templating/render.js"
|
|
48
|
+
},
|
|
49
49
|
"./utilities": {
|
|
50
50
|
"types": "./dist/dts/utilities.d.ts",
|
|
51
51
|
"default": "./dist/esm/utilities.js"
|
|
@@ -61,7 +61,16 @@
|
|
|
61
61
|
"./metadata": {
|
|
62
62
|
"types": "./dist/dts/metadata.d.ts",
|
|
63
63
|
"default": "./dist/esm/metadata.js"
|
|
64
|
-
}
|
|
64
|
+
},
|
|
65
|
+
"./testing": {
|
|
66
|
+
"types": "./dist/dts/testing/exports.d.ts",
|
|
67
|
+
"default": "./dist/esm/testing/exports.js"
|
|
68
|
+
},
|
|
69
|
+
"./di": {
|
|
70
|
+
"types": "./dist/dts/di/di.d.ts",
|
|
71
|
+
"default": "./dist/esm/di/di.js"
|
|
72
|
+
},
|
|
73
|
+
"./package.json": "./package.json"
|
|
65
74
|
},
|
|
66
75
|
"unpkg": "dist/fast-element.min.js",
|
|
67
76
|
"sideEffects": [
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SpliceStrategy } from "./arrays.js";
|
|
2
|
-
/**
|
|
3
|
-
* A SpliceStrategy that attempts to merge all splices into the minimal set of
|
|
4
|
-
* splices needed to represent the change from the old array to the new array.
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export declare const mergeSpliceStrategy: SpliceStrategy;
|
|
8
|
-
/**
|
|
9
|
-
* A splice strategy that doesn't create splices, but instead
|
|
10
|
-
* tracks every change as a full array reset.
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
export declare const resetSpliceStrategy: SpliceStrategy;
|