@microsoft/fast-element 2.9.0 → 2.9.2

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.
Files changed (42) hide show
  1. package/CHANGELOG.json +31 -1
  2. package/CHANGELOG.md +18 -2
  3. package/dist/context/context.api.json +7 -7
  4. package/dist/di/di.api.json +12 -12
  5. package/dist/dts/binding/two-way.d.ts +1 -1
  6. package/dist/dts/components/attributes.d.ts +3 -3
  7. package/dist/dts/components/fast-definitions.d.ts +1 -1
  8. package/dist/dts/context.d.ts +7 -7
  9. package/dist/dts/di/di.d.ts +13 -13
  10. package/dist/dts/dom-policy.d.ts +5 -5
  11. package/dist/dts/dom.d.ts +2 -2
  12. package/dist/dts/interfaces.d.ts +7 -7
  13. package/dist/dts/observation/arrays.d.ts +1 -1
  14. package/dist/dts/observation/observable.d.ts +2 -2
  15. package/dist/dts/state/state.d.ts +9 -9
  16. package/dist/dts/styles/css-binding-directive.d.ts +1 -1
  17. package/dist/dts/styles/css-directive.d.ts +1 -1
  18. package/dist/dts/styles/css.d.ts +2 -2
  19. package/dist/dts/styles/element-styles.d.ts +2 -2
  20. package/dist/dts/templating/children.d.ts +1 -1
  21. package/dist/dts/templating/compiler.d.ts +1 -1
  22. package/dist/dts/templating/html-directive.d.ts +3 -3
  23. package/dist/dts/templating/node-observation.d.ts +1 -1
  24. package/dist/dts/templating/render.d.ts +6 -6
  25. package/dist/dts/templating/template.d.ts +2 -2
  26. package/dist/esm/components/element-controller.js +84 -84
  27. package/dist/esm/components/fast-definitions.js +15 -15
  28. package/dist/esm/di/di.js +12 -12
  29. package/dist/esm/hydration/target-builder.js +21 -7
  30. package/dist/esm/observation/arrays.js +12 -12
  31. package/dist/esm/styles/element-styles.js +9 -9
  32. package/dist/esm/templating/repeat.js +7 -7
  33. package/dist/esm/templating/view.js +9 -9
  34. package/dist/fast-element.api.json +26 -26
  35. package/dist/fast-element.d.ts +4 -4
  36. package/dist/fast-element.debug.js +162 -146
  37. package/dist/fast-element.debug.min.js +2 -2
  38. package/dist/fast-element.js +162 -146
  39. package/dist/fast-element.min.js +2 -2
  40. package/docs/di/api-report.api.md +4 -4
  41. package/karma.conf.cjs +13 -7
  42. package/package.json +3 -44
@@ -278,6 +278,15 @@ export class HydrationBindingError extends Error {
278
278
  }
279
279
  }
280
280
  export class HydrationView extends DefaultExecutionContext {
281
+ get hydrationStage() {
282
+ return this._hydrationStage;
283
+ }
284
+ get targets() {
285
+ return this._targets;
286
+ }
287
+ get bindingViewBoundaries() {
288
+ return this._bindingViewBoundaries;
289
+ }
281
290
  constructor(firstChild, lastChild, sourceTemplate, hostBindingTarget) {
282
291
  super();
283
292
  this.firstChild = firstChild;
@@ -297,15 +306,6 @@ export class HydrationView extends DefaultExecutionContext {
297
306
  this._targets = {};
298
307
  this.factories = sourceTemplate.compile().factories;
299
308
  }
300
- get hydrationStage() {
301
- return this._hydrationStage;
302
- }
303
- get targets() {
304
- return this._targets;
305
- }
306
- get bindingViewBoundaries() {
307
- return this._bindingViewBoundaries;
308
- }
309
309
  /**
310
310
  * no-op. Hydrated views are don't need to be moved from a documentFragment
311
311
  * to the target node.
@@ -330,7 +330,7 @@
330
330
  "excerptTokens": [
331
331
  {
332
332
  "kind": "Content",
333
- "text": "export declare type AddBehavior = "
333
+ "text": "export type AddBehavior = "
334
334
  },
335
335
  {
336
336
  "kind": "Content",
@@ -374,7 +374,7 @@
374
374
  "excerptTokens": [
375
375
  {
376
376
  "kind": "Content",
377
- "text": "export declare type AddViewBehaviorFactory = "
377
+ "text": "export type AddViewBehaviorFactory = "
378
378
  },
379
379
  {
380
380
  "kind": "Content",
@@ -957,7 +957,7 @@
957
957
  "excerptTokens": [
958
958
  {
959
959
  "kind": "Content",
960
- "text": "export declare type AttributeConfiguration = "
960
+ "text": "export type AttributeConfiguration = "
961
961
  },
962
962
  {
963
963
  "kind": "Content",
@@ -1437,7 +1437,7 @@
1437
1437
  "excerptTokens": [
1438
1438
  {
1439
1439
  "kind": "Content",
1440
- "text": "export declare type AttributeMode = "
1440
+ "text": "export type AttributeMode = "
1441
1441
  },
1442
1442
  {
1443
1443
  "kind": "Content",
@@ -1959,7 +1959,7 @@
1959
1959
  "excerptTokens": [
1960
1960
  {
1961
1961
  "kind": "Content",
1962
- "text": "export declare type Callable = "
1962
+ "text": "export type Callable = "
1963
1963
  },
1964
1964
  {
1965
1965
  "kind": "Content",
@@ -2444,7 +2444,7 @@
2444
2444
  "excerptTokens": [
2445
2445
  {
2446
2446
  "kind": "Content",
2447
- "text": "export declare type ChildrenDirectiveOptions<T = "
2447
+ "text": "export type ChildrenDirectiveOptions<T = "
2448
2448
  },
2449
2449
  {
2450
2450
  "kind": "Content",
@@ -2505,7 +2505,7 @@
2505
2505
  "excerptTokens": [
2506
2506
  {
2507
2507
  "kind": "Content",
2508
- "text": "export declare type Class<T, C = "
2508
+ "text": "export type Class<T, C = "
2509
2509
  },
2510
2510
  {
2511
2511
  "kind": "Content",
@@ -2572,7 +2572,7 @@
2572
2572
  "excerptTokens": [
2573
2573
  {
2574
2574
  "kind": "Content",
2575
- "text": "export declare type CompilationStrategy = "
2575
+ "text": "export type CompilationStrategy = "
2576
2576
  },
2577
2577
  {
2578
2578
  "kind": "Content",
@@ -2639,7 +2639,7 @@
2639
2639
  "excerptTokens": [
2640
2640
  {
2641
2641
  "kind": "Content",
2642
- "text": "export declare type CompiledViewBehaviorFactory = "
2642
+ "text": "export type CompiledViewBehaviorFactory = "
2643
2643
  },
2644
2644
  {
2645
2645
  "kind": "Reference",
@@ -2783,7 +2783,7 @@
2783
2783
  "excerptTokens": [
2784
2784
  {
2785
2785
  "kind": "Content",
2786
- "text": "export declare type ComposableStyles = "
2786
+ "text": "export type ComposableStyles = "
2787
2787
  },
2788
2788
  {
2789
2789
  "kind": "Content",
@@ -2823,7 +2823,7 @@
2823
2823
  "excerptTokens": [
2824
2824
  {
2825
2825
  "kind": "Content",
2826
- "text": "export declare type Constructable<T = "
2826
+ "text": "export type Constructable<T = "
2827
2827
  },
2828
2828
  {
2829
2829
  "kind": "Content",
@@ -2870,7 +2870,7 @@
2870
2870
  "excerptTokens": [
2871
2871
  {
2872
2872
  "kind": "Content",
2873
- "text": "export declare type ConstructibleStyleStrategy = "
2873
+ "text": "export type ConstructibleStyleStrategy = "
2874
2874
  },
2875
2875
  {
2876
2876
  "kind": "Content",
@@ -4016,7 +4016,7 @@
4016
4016
  "excerptTokens": [
4017
4017
  {
4018
4018
  "kind": "Content",
4019
- "text": "export declare type CSSTemplateTag = "
4019
+ "text": "export type CSSTemplateTag = "
4020
4020
  },
4021
4021
  {
4022
4022
  "kind": "Content",
@@ -4096,7 +4096,7 @@
4096
4096
  "excerptTokens": [
4097
4097
  {
4098
4098
  "kind": "Content",
4099
- "text": "export declare type CSSValue<TSource, TParent = "
4099
+ "text": "export type CSSValue<TSource, TParent = "
4100
4100
  },
4101
4101
  {
4102
4102
  "kind": "Content",
@@ -4250,7 +4250,7 @@
4250
4250
  "excerptTokens": [
4251
4251
  {
4252
4252
  "kind": "Content",
4253
- "text": "export declare type DecoratorAttributeConfiguration = "
4253
+ "text": "export type DecoratorAttributeConfiguration = "
4254
4254
  },
4255
4255
  {
4256
4256
  "kind": "Reference",
@@ -4427,7 +4427,7 @@
4427
4427
  "excerptTokens": [
4428
4428
  {
4429
4429
  "kind": "Content",
4430
- "text": "export declare type DOMAspect = "
4430
+ "text": "export type DOMAspect = "
4431
4431
  },
4432
4432
  {
4433
4433
  "kind": "Content",
@@ -4667,7 +4667,7 @@
4667
4667
  "excerptTokens": [
4668
4668
  {
4669
4669
  "kind": "Content",
4670
- "text": "export declare type DOMSink = "
4670
+ "text": "export type DOMSink = "
4671
4671
  },
4672
4672
  {
4673
4673
  "kind": "Content",
@@ -6194,7 +6194,7 @@
6194
6194
  "excerptTokens": [
6195
6195
  {
6196
6196
  "kind": "Content",
6197
- "text": "export declare type ElementsFilter = "
6197
+ "text": "export type ElementsFilter = "
6198
6198
  },
6199
6199
  {
6200
6200
  "kind": "Content",
@@ -7569,7 +7569,7 @@
7569
7569
  "excerptTokens": [
7570
7570
  {
7571
7571
  "kind": "Content",
7572
- "text": "export declare type Expression<TSource = "
7572
+ "text": "export type Expression<TSource = "
7573
7573
  },
7574
7574
  {
7575
7575
  "kind": "Content",
@@ -11512,7 +11512,7 @@
11512
11512
  "excerptTokens": [
11513
11513
  {
11514
11514
  "kind": "Content",
11515
- "text": "export declare type HTMLTemplateTag = "
11515
+ "text": "export type HTMLTemplateTag = "
11516
11516
  },
11517
11517
  {
11518
11518
  "kind": "Content",
@@ -18698,7 +18698,7 @@
18698
18698
  "excerptTokens": [
18699
18699
  {
18700
18700
  "kind": "Content",
18701
- "text": "export declare type SourceLifetime = "
18701
+ "text": "export type SourceLifetime = "
18702
18702
  },
18703
18703
  {
18704
18704
  "kind": "Content",
@@ -19897,7 +19897,7 @@
19897
19897
  "excerptTokens": [
19898
19898
  {
19899
19899
  "kind": "Content",
19900
- "text": "export declare type SpliceStrategySupport = "
19900
+ "text": "export type SpliceStrategySupport = "
19901
19901
  },
19902
19902
  {
19903
19903
  "kind": "Content",
@@ -21655,7 +21655,7 @@
21655
21655
  "excerptTokens": [
21656
21656
  {
21657
21657
  "kind": "Content",
21658
- "text": "export declare type TemplateOptions = "
21658
+ "text": "export type TemplateOptions = "
21659
21659
  },
21660
21660
  {
21661
21661
  "kind": "Content",
@@ -21722,7 +21722,7 @@
21722
21722
  "excerptTokens": [
21723
21723
  {
21724
21724
  "kind": "Content",
21725
- "text": "export declare type TemplateValue<TSource, TParent = "
21725
+ "text": "export type TemplateValue<TSource, TParent = "
21726
21726
  },
21727
21727
  {
21728
21728
  "kind": "Content",
@@ -21812,7 +21812,7 @@
21812
21812
  "excerptTokens": [
21813
21813
  {
21814
21814
  "kind": "Content",
21815
- "text": "export declare type TrustedTypesPolicy = "
21815
+ "text": "export type TrustedTypesPolicy = "
21816
21816
  },
21817
21817
  {
21818
21818
  "kind": "Content",
@@ -22656,7 +22656,7 @@
22656
22656
  "excerptTokens": [
22657
22657
  {
22658
22658
  "kind": "Content",
22659
- "text": "export declare type ViewBehaviorTargets = "
22659
+ "text": "export type ViewBehaviorTargets = "
22660
22660
  },
22661
22661
  {
22662
22662
  "kind": "Content",
@@ -431,7 +431,7 @@ export declare const DI: Readonly<{
431
431
  *
432
432
  * @public
433
433
  */
434
- transient<T extends Constructable<{}>>(target: T & Partial<RegisterSelf<T>>): T & RegisterSelf<T>;
434
+ transient<T extends Constructable>(target: T & Partial<RegisterSelf<T>>): T & RegisterSelf<T>;
435
435
  /**
436
436
  * Registers the `target` class as a singleton dependency; the class will only be created once. Each
437
437
  * consecutive time the dependency is resolved, the same instance will be returned.
@@ -455,7 +455,7 @@ export declare const DI: Readonly<{
455
455
  *
456
456
  * @public
457
457
  */
458
- singleton<T_1 extends Constructable<{}>>(target: T_1 & Partial<RegisterSelf<T_1>>, options?: SingletonOptions): T_1 & RegisterSelf<T_1>;
458
+ singleton<T_1 extends Constructable>(target: T_1 & Partial<RegisterSelf<T_1>>, options?: SingletonOptions): T_1 & RegisterSelf<T_1>;
459
459
  }>;
460
460
 
461
461
  /**
@@ -762,7 +762,7 @@ export declare const Registration: Readonly<{
762
762
  * @param key - The key to register the singleton under.
763
763
  * @param value - The class to instantiate as a singleton when first requested.
764
764
  */
765
- singleton<T_1 extends Constructable<{}>>(key: Key, value: T_1): Registration<InstanceType<T_1>>;
765
+ singleton<T_1 extends Constructable>(key: Key, value: T_1): Registration<InstanceType<T_1>>;
766
766
  /**
767
767
  * Creates an instance from a class.
768
768
  * Every time you request this {@link Key} you will get a new instance.
@@ -775,7 +775,7 @@ export declare const Registration: Readonly<{
775
775
  * @param key - The key to register the instance type under.
776
776
  * @param value - The class to instantiate each time the key is requested.
777
777
  */
778
- transient<T_2 extends Constructable<{}>>(key: Key, value: T_2): Registration<InstanceType<T_2>>;
778
+ transient<T_2 extends Constructable>(key: Key, value: T_2): Registration<InstanceType<T_2>>;
779
779
  /**
780
780
  * Delegates to a callback function to provide the dependency.
781
781
  * Every time you request this {@link Key} the callback will be invoked to provide