@microsoft/fast-element 2.0.0-beta.1 → 2.0.0-beta.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 (37) hide show
  1. package/CHANGELOG.json +51 -0
  2. package/CHANGELOG.md +15 -1
  3. package/dist/dts/components/fast-definitions.d.ts +2 -0
  4. package/dist/dts/components/fast-element.d.ts +7 -1
  5. package/dist/dts/context.d.ts +157 -0
  6. package/dist/dts/metadata.d.ts +25 -0
  7. package/dist/dts/observation/arrays.d.ts +1 -1
  8. package/dist/dts/observation/behavior.d.ts +4 -4
  9. package/dist/dts/observation/observable.d.ts +43 -62
  10. package/dist/dts/templating/binding-signal.d.ts +38 -0
  11. package/dist/dts/templating/binding-two-way.d.ts +56 -0
  12. package/dist/dts/templating/binding.d.ts +0 -88
  13. package/dist/dts/templating/compiler.d.ts +1 -2
  14. package/dist/dts/templating/repeat.d.ts +3 -49
  15. package/dist/dts/templating/template.d.ts +10 -59
  16. package/dist/dts/templating/view.d.ts +9 -9
  17. package/dist/{tsdoc-metadata.json → dts/tsdoc-metadata.json} +0 -0
  18. package/dist/esm/components/fast-definitions.js +2 -0
  19. package/dist/esm/components/fast-element.js +10 -2
  20. package/dist/esm/context.js +159 -0
  21. package/dist/esm/metadata.js +60 -0
  22. package/dist/esm/observation/arrays.js +1 -1
  23. package/dist/esm/observation/observable.js +69 -17
  24. package/dist/esm/templating/binding-signal.js +84 -0
  25. package/dist/esm/templating/binding-two-way.js +76 -0
  26. package/dist/esm/templating/binding.js +1 -158
  27. package/dist/esm/templating/repeat.js +9 -1
  28. package/dist/esm/templating/template.js +1 -21
  29. package/dist/fast-element.api.json +5586 -7541
  30. package/dist/fast-element.d.ts +119 -329
  31. package/dist/fast-element.debug.js +92 -199
  32. package/dist/fast-element.debug.min.js +1 -1
  33. package/dist/fast-element.js +92 -199
  34. package/dist/fast-element.min.js +1 -1
  35. package/dist/fast-element.untrimmed.d.ts +120 -331
  36. package/docs/api-report.md +50 -156
  37. package/package.json +20 -4
@@ -104,16 +104,16 @@ export class AttributeDefinition implements Accessor {
104
104
  export type AttributeMode = typeof reflectMode | typeof booleanMode | "fromView";
105
105
 
106
106
  // @public
107
- export interface Behavior<TSource = any, TParent = any, TContext extends ExecutionContext<TParent> = RootContext> {
108
- bind(source: TSource, context: TContext): void;
109
- unbind(source: TSource, context: TContext): void;
107
+ export interface Behavior<TSource = any, TParent = any> {
108
+ bind(source: TSource, context: ExecutionContext<TParent>): void;
109
+ unbind(source: TSource, context: ExecutionContext<TParent>): void;
110
110
  }
111
111
 
112
112
  // @public
113
113
  export function bind<T = any>(binding: Binding<T>, config?: BindingConfig | DefaultBindingOptions): CaptureType<T>;
114
114
 
115
115
  // @public
116
- export type Binding<TSource = any, TReturn = any, TContext extends ExecutionContext = ExecutionContext> = (source: TSource, context: TContext) => TReturn;
116
+ export type Binding<TSource = any, TReturn = any, TParent = any> = (source: TSource, context: ExecutionContext<TParent>) => TReturn;
117
117
 
118
118
  // @public
119
119
  export interface BindingConfig<T = any> {
@@ -166,16 +166,6 @@ export class ChangeBinding extends UpdateBinding {
166
166
  unbind(source: any, context: ExecutionContext, targets: ViewBehaviorTargets): void;
167
167
  }
168
168
 
169
- // @public
170
- export const child: <TChild = any, TParent = any>(strings: TemplateStringsArray, ...values: TemplateValue<TChild, TParent, ChildContext<TParent>>[]) => ChildViewTemplate<TChild, TParent>;
171
-
172
- // @public
173
- export interface ChildContext<TParentSource = any> extends RootContext {
174
- createItemContext(index: number, length: number): ItemContext<TParentSource>;
175
- readonly parent: TParentSource;
176
- readonly parentContext: ChildContext<TParentSource>;
177
- }
178
-
179
169
  // @public
180
170
  export interface ChildListDirectiveOptions<T = any> extends NodeBehaviorOptions<T>, Omit<MutationObserverInit, "subtree" | "childList"> {
181
171
  }
@@ -194,13 +184,6 @@ export class ChildrenDirective extends NodeObservationDirective<ChildrenDirectiv
194
184
  // @public
195
185
  export type ChildrenDirectiveOptions<T = any> = ChildListDirectiveOptions<T> | SubtreeDirectiveOptions<T>;
196
186
 
197
- // @public
198
- export interface ChildViewTemplate<TSource = any, TParent = any> {
199
- create(): SyntheticView<TSource, TParent, ChildContext<TParent>>;
200
- // (undocumented)
201
- type: "child";
202
- }
203
-
204
187
  // @public
205
188
  export type CompilationStrategy = (
206
189
  html: string | HTMLTemplateElement,
@@ -209,7 +192,7 @@ factories: Record<string, ViewBehaviorFactory>) => HTMLTemplateCompilationResult
209
192
  // @public
210
193
  export const Compiler: {
211
194
  setHTMLPolicy(policy: TrustedTypesPolicy): void;
212
- compile<TSource = any, TParent = any, TContext extends ExecutionContext<TParent> = ExecutionContext<TParent>>(html: string | HTMLTemplateElement, directives: Record<string, ViewBehaviorFactory>): HTMLTemplateCompilationResult<TSource, TParent, TContext>;
195
+ compile<TSource = any, TParent = any>(html: string | HTMLTemplateElement, directives: Record<string, ViewBehaviorFactory>): HTMLTemplateCompilationResult<TSource, TParent>;
213
196
  setDefaultStrategy(strategy: CompilationStrategy): void;
214
197
  aggregate(parts: (string | ViewBehaviorFactory)[]): ViewBehaviorFactory;
215
198
  };
@@ -295,12 +278,6 @@ export type DecoratorAttributeConfiguration = Omit<AttributeConfiguration, "prop
295
278
  // @public
296
279
  export type DefaultBindingOptions = AddEventListenerOptions;
297
280
 
298
- // @public
299
- export type DefaultTwoWayBindingOptions = DefaultBindingOptions & {
300
- changeEvent?: string;
301
- fromView?: (value: any) => any;
302
- };
303
-
304
281
  // @public
305
282
  export interface Disposable {
306
283
  dispose(): void;
@@ -341,7 +318,7 @@ export class ElementStyles {
341
318
  }
342
319
 
343
320
  // @public
344
- export interface ElementView<TSource = any, TParent = any> extends View<TSource, TParent, RootContext> {
321
+ export interface ElementView<TSource = any, TParent = any> extends View<TSource, TParent> {
345
322
  appendTo(node: Node): void;
346
323
  }
347
324
 
@@ -349,8 +326,6 @@ export interface ElementView<TSource = any, TParent = any> extends View<TSource,
349
326
  export interface ElementViewTemplate<TSource = any, TParent = any> {
350
327
  create(hostBindingTarget: Element): ElementView<TSource, TParent>;
351
328
  render(source: TSource, host: Node, hostBindingTarget?: Element): ElementView<TSource, TParent>;
352
- // (undocumented)
353
- type: "element";
354
329
  }
355
330
 
356
331
  // @public
@@ -369,14 +344,27 @@ export class EventBinding {
369
344
  }
370
345
 
371
346
  // @public
372
- export const ExecutionContext: Readonly<{
373
- default: RootContext;
374
- setEvent(event: Event | null): void;
375
- create(): RootContext;
376
- }>;
377
-
378
- // @public
379
- export type ExecutionContext<TParentSource = any> = RootContext | ChildContext<TParentSource> | ItemContext<TParentSource>;
347
+ export class ExecutionContext<TParentSource = any> {
348
+ static create(): ExecutionContext;
349
+ createChildContext<TParentSource>(parentSource: TParentSource): ExecutionContext<TParentSource>;
350
+ createItemContext(index: number, length: number): ExecutionContext<TParentSource>;
351
+ static readonly default: ExecutionContext<any>;
352
+ get event(): Event;
353
+ eventDetail<TDetail>(): TDetail;
354
+ eventTarget<TTarget extends EventTarget>(): TTarget;
355
+ index: number;
356
+ get isEven(): boolean;
357
+ get isFirst(): boolean;
358
+ get isInMiddle(): boolean;
359
+ get isLast(): boolean;
360
+ get isOdd(): boolean;
361
+ length: number;
362
+ readonly parent: TParentSource;
363
+ readonly parentContext: ExecutionContext<TParentSource>;
364
+ // @internal
365
+ static setEvent(event: Event | null): void;
366
+ updatePosition(index: number, length: number): void;
367
+ }
380
368
 
381
369
  // Warning: (ae-internal-missing-underscore) The name "FAST" should be prefixed with an underscore because the declaration is marked as @internal
382
370
  //
@@ -399,6 +387,7 @@ export const FASTElement: (new () => HTMLElement & FASTElement) & {
399
387
  prototype: HTMLElement;
400
388
  }>(BaseType: TBase): new () => InstanceType<TBase> & FASTElement;
401
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>;
402
391
  };
403
392
 
404
393
  // @public
@@ -433,7 +422,7 @@ export interface FASTGlobal {
433
422
  }
434
423
 
435
424
  // @public
436
- export function html<TSource = any, TParent = any, TContext extends ExecutionContext<TParent> = ExecutionContext<TParent>>(strings: TemplateStringsArray, ...values: TemplateValue<TSource, TParent, TContext>[]): ViewTemplate<TSource, TParent>;
425
+ export function html<TSource = any, TParent = any>(strings: TemplateStringsArray, ...values: TemplateValue<TSource, TParent>[]): ViewTemplate<TSource, TParent>;
437
426
 
438
427
  // @public
439
428
  export class HTMLBindingDirective implements HTMLDirective, ViewBehaviorFactory, Aspected {
@@ -474,16 +463,16 @@ export interface HTMLDirectiveDefinition<TType extends Constructable<HTMLDirecti
474
463
  }
475
464
 
476
465
  // @public
477
- export interface HTMLTemplateCompilationResult<TSource = any, TParent = any, TContext extends ExecutionContext<TParent> = ExecutionContext<TParent>> {
478
- createView(hostBindingTarget?: Element): HTMLView<TSource, TParent, TContext>;
466
+ export interface HTMLTemplateCompilationResult<TSource = any, TParent = any> {
467
+ createView(hostBindingTarget?: Element): HTMLView<TSource, TParent>;
479
468
  }
480
469
 
481
470
  // @public
482
- export class HTMLView<TSource = any, TParent = any, TContext extends ExecutionContext<TParent> = ExecutionContext<TParent>> implements ElementView<TSource, TParent>, SyntheticView<TSource, TParent, TContext> {
471
+ export class HTMLView<TSource = any, TParent = any> implements ElementView<TSource, TParent>, SyntheticView<TSource, TParent> {
483
472
  constructor(fragment: DocumentFragment, factories: ReadonlyArray<ViewBehaviorFactory>, targets: ViewBehaviorTargets);
484
473
  appendTo(node: Node): void;
485
- bind(source: TSource, context: TContext): void;
486
- context: TContext | null;
474
+ bind(source: TSource, context: ExecutionContext<TParent>): void;
475
+ context: ExecutionContext<TParent> | null;
487
476
  dispose(): void;
488
477
  static disposeContiguousBatch(views: SyntheticView[]): void;
489
478
  firstChild: Node;
@@ -494,37 +483,14 @@ export class HTMLView<TSource = any, TParent = any, TContext extends ExecutionCo
494
483
  unbind(): void;
495
484
  }
496
485
 
497
- // @public
498
- export const item: <TItem = any, TParent = any>(strings: TemplateStringsArray, ...values: TemplateValue<TItem, TParent, ItemContext<TParent>>[]) => ItemViewTemplate<TItem, TParent>;
499
-
500
- // @public
501
- export interface ItemContext<TParentSource = any> extends ChildContext<TParentSource> {
502
- readonly index: number;
503
- readonly isEven: boolean;
504
- readonly isFirst: boolean;
505
- readonly isInMiddle: boolean;
506
- readonly isLast: boolean;
507
- readonly isOdd: boolean;
508
- readonly length: number;
509
- updatePosition(index: number, length: number): void;
510
- }
511
-
512
- // @public
513
- export interface ItemViewTemplate<TSource = any, TParent = any> {
514
- create(): SyntheticView<TSource, TParent, ItemContext<TParent>>;
515
- // (undocumented)
516
- type: "item";
517
- }
518
-
519
- // @public
520
- function length_2<T>(array: readonly T[]): number;
521
- export { length_2 as length }
522
-
523
486
  // @public
524
487
  export interface LengthObserver extends Subscriber {
525
488
  length: number;
526
489
  }
527
490
 
491
+ // @public
492
+ export function lengthOf<T>(array: readonly T[]): number;
493
+
528
494
  // @public
529
495
  export const Markup: Readonly<{
530
496
  interpolation: (id: string) => string;
@@ -577,8 +543,8 @@ export const Observable: Readonly<{
577
543
  notify(source: unknown, args: any): void;
578
544
  defineProperty(target: {}, nameOrAccessor: string | Accessor): void;
579
545
  getAccessors: (target: {}) => Accessor[];
580
- binding<TSource = any, TReturn = any>(binding: Binding<TSource, TReturn, ExecutionContext<any>>, initialSubscriber?: Subscriber, isVolatileBinding?: boolean): BindingObserver<TSource, TReturn, any>;
581
- isVolatileBinding<TSource_1 = any, TReturn_1 = any>(binding: Binding<TSource_1, TReturn_1, ExecutionContext<any>>): boolean;
546
+ binding<TSource = any, TReturn = any>(binding: Binding<TSource, TReturn, any>, initialSubscriber?: Subscriber, isVolatileBinding?: boolean): BindingObserver<TSource, TReturn, any>;
547
+ isVolatileBinding<TSource_1 = any, TReturn_1 = any>(binding: Binding<TSource_1, TReturn_1, any>): boolean;
582
548
  }>;
583
549
 
584
550
  // @public
@@ -640,41 +606,7 @@ export class RefDirective extends StatelessAttachedAttributeDirective<string> {
640
606
  }
641
607
 
642
608
  // @public
643
- export function repeat<TSource = any, TArray extends ReadonlyArray<any> = ReadonlyArray<any>>(itemsBinding: Binding<TSource, TArray, ExecutionContext<TSource>>, templateOrTemplateBinding: ViewTemplate | Binding<TSource, ViewTemplate, RootContext>, options?: {
644
- positioning: false;
645
- } | {
646
- recycle: true;
647
- } | {
648
- positioning: false;
649
- recycle: false;
650
- } | {
651
- positioning: false;
652
- recycle: true;
653
- }): CaptureType<TSource>;
654
-
655
- // @public
656
- export function repeat<TSource = any, TArray extends ReadonlyArray<any> = ReadonlyArray<any>>(itemsBinding: Binding<TSource, TArray, ExecutionContext<TSource>>, templateOrTemplateBinding: ChildViewTemplate | Binding<TSource, ChildViewTemplate, ChildContext>, options?: {
657
- positioning: false;
658
- } | {
659
- recycle: true;
660
- } | {
661
- positioning: false;
662
- recycle: false;
663
- } | {
664
- positioning: false;
665
- recycle: true;
666
- }): CaptureType<TSource>;
667
-
668
- // @public
669
- export function repeat<TSource = any, TArray extends ReadonlyArray<any> = ReadonlyArray<any>>(itemsBinding: Binding<TSource, TArray, ExecutionContext<TSource>>, templateOrTemplateBinding: ItemViewTemplate | Binding<TSource, ItemViewTemplate, ItemContext>, options: {
670
- positioning: true;
671
- } | {
672
- positioning: true;
673
- recycle: true;
674
- } | {
675
- positioning: true;
676
- recycle: false;
677
- }): CaptureType<TSource>;
609
+ export function repeat<TSource = any, TArray extends ReadonlyArray<any> = ReadonlyArray<any>>(itemsBinding: Binding<TSource, TArray, ExecutionContext<TSource>>, templateOrTemplateBinding: ViewTemplate | Binding<TSource, ViewTemplate>, options?: RepeatOptions): CaptureType<TSource>;
678
610
 
679
611
  // @public
680
612
  export class RepeatBehavior<TSource = any> implements Behavior, Subscriber {
@@ -705,24 +637,6 @@ export interface RepeatOptions {
705
637
  recycle?: boolean;
706
638
  }
707
639
 
708
- // @public
709
- export interface RootContext {
710
- createChildContext<TParentSource>(source: TParentSource): ChildContext<TParentSource>;
711
- readonly event: Event;
712
- eventDetail<TDetail = any>(): TDetail;
713
- eventTarget<TTarget extends EventTarget = EventTarget>(): TTarget;
714
- }
715
-
716
- // @public
717
- export const signal: <T = any>(options: string | Binding<T, any, ExecutionContext<any>>) => BindingConfig<string | Binding<T, any, ExecutionContext<any>>>;
718
-
719
- // @public
720
- export class SignalBinding extends UpdateBinding {
721
- bind(source: any, context: ExecutionContext, targets: ViewBehaviorTargets): void;
722
- static send(signal: string): void;
723
- unbind(source: any, context: ExecutionContext, targets: ViewBehaviorTargets): void;
724
- }
725
-
726
640
  // @public
727
641
  export function slotted<T = any>(propertyOrOptions: (keyof T & string) | SlottedDirectiveOptions<keyof T & string>): CaptureType<T>;
728
642
 
@@ -830,7 +744,7 @@ export interface SubtreeDirectiveOptions<T = any> extends NodeBehaviorOptions<T>
830
744
  }
831
745
 
832
746
  // @public
833
- export interface SyntheticView<TSource = any, TParent = any, TContext extends ExecutionContext<TParent> = ExecutionContext<TParent>> extends View<TSource, TParent, TContext> {
747
+ export interface SyntheticView<TSource = any, TParent = any> extends View<TSource, TParent> {
834
748
  readonly firstChild: Node;
835
749
  insertBefore(node: Node): void;
836
750
  readonly lastChild: Node;
@@ -838,14 +752,12 @@ export interface SyntheticView<TSource = any, TParent = any, TContext extends Ex
838
752
  }
839
753
 
840
754
  // @public
841
- export interface SyntheticViewTemplate<TSource = any, TParent = any, TContext extends ExecutionContext<TParent> = ExecutionContext<TParent>> {
842
- create(): SyntheticView<TSource, TParent, TContext>;
843
- // (undocumented)
844
- type: "synthetic";
755
+ export interface SyntheticViewTemplate<TSource = any, TParent = any> {
756
+ create(): SyntheticView<TSource, TParent>;
845
757
  }
846
758
 
847
759
  // @public
848
- export type TemplateValue<TSource, TParent = any, TContext extends ExecutionContext<TParent> = ExecutionContext<TParent>> = Binding<TSource, any, TContext> | HTMLDirective | CaptureType<TSource>;
760
+ export type TemplateValue<TSource, TParent = any> = Binding<TSource, any, TParent> | HTMLDirective | CaptureType<TSource>;
849
761
 
850
762
  // @public
851
763
  export type TrustedTypes = {
@@ -857,23 +769,6 @@ export type TrustedTypesPolicy = {
857
769
  createHTML(html: string): string;
858
770
  };
859
771
 
860
- // @public
861
- export const twoWay: BindingConfig<DefaultTwoWayBindingOptions> & BindingConfigResolver<DefaultTwoWayBindingOptions>;
862
-
863
- // @public
864
- export class TwoWayBinding extends ChangeBinding {
865
- bind(source: any, context: ExecutionContext, targets: ViewBehaviorTargets): void;
866
- static configure(settings: TwoWaySettings): void;
867
- // @internal (undocumented)
868
- handleEvent(event: Event): void;
869
- unbind(source: any, context: ExecutionContext, targets: ViewBehaviorTargets): void;
870
- }
871
-
872
- // @public
873
- export interface TwoWaySettings {
874
- determineChangeEvent(directive: HTMLBindingDirective, target: HTMLElement): string;
875
- }
876
-
877
772
  // Warning: (ae-internal-missing-underscore) The name "TypeDefinition" should be prefixed with an underscore because the declaration is marked as @internal
878
773
  //
879
774
  // @internal
@@ -932,9 +827,9 @@ export interface ValueConverter {
932
827
  }
933
828
 
934
829
  // @public
935
- export interface View<TSource = any, TParent = any, TContext extends ExecutionContext<TParent> = ExecutionContext<TParent>> extends Disposable {
936
- bind(source: TSource, context: TContext): void;
937
- readonly context: TContext | null;
830
+ export interface View<TSource = any, TParent = any> extends Disposable {
831
+ bind(source: TSource, context: ExecutionContext<TParent>): void;
832
+ readonly context: ExecutionContext<TParent> | null;
938
833
  readonly source: TSource | null;
939
834
  unbind(): void;
940
835
  }
@@ -958,13 +853,12 @@ export type ViewBehaviorTargets = {
958
853
  };
959
854
 
960
855
  // @public
961
- export class ViewTemplate<TSource = any, TParent = any, TContext extends ExecutionContext<TParent> = ExecutionContext> implements ElementViewTemplate<TSource, TParent>, SyntheticViewTemplate<TSource, TParent, TContext> {
856
+ export class ViewTemplate<TSource = any, TParent = any> implements ElementViewTemplate<TSource, TParent>, SyntheticViewTemplate<TSource, TParent> {
962
857
  constructor(html: string | HTMLTemplateElement, factories: Record<string, ViewBehaviorFactory>);
963
- create(hostBindingTarget?: Element): HTMLView<TSource, TParent, TContext>;
858
+ create(hostBindingTarget?: Element): HTMLView<TSource, TParent>;
964
859
  readonly factories: Record<string, ViewBehaviorFactory>;
965
860
  readonly html: string | HTMLTemplateElement;
966
- render(source: TSource, host: Node, hostBindingTarget?: Element, context?: TContext): HTMLView<TSource, TParent, TContext>;
967
- type: any;
861
+ render(source: TSource, host: Node, hostBindingTarget?: Element, context?: ExecutionContext): HTMLView<TSource, TParent>;
968
862
  }
969
863
 
970
864
  // @public
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.1",
4
+ "version": "2.0.0-beta.2",
5
5
  "author": {
6
6
  "name": "Microsoft",
7
7
  "url": "https://discord.gg/FcSNfg4"
@@ -18,10 +18,10 @@
18
18
  },
19
19
  "type": "module",
20
20
  "main": "dist/esm/index.js",
21
- "types": "dist/fast-element.d.ts",
21
+ "types": "dist/dts/index.d.ts",
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/fast-element.d.ts",
24
+ "types": "./dist/dts/index.d.ts",
25
25
  "production": "./dist/esm/index.js",
26
26
  "development": "./dist/esm/index.debug.js",
27
27
  "default": "./dist/esm/index.js"
@@ -34,10 +34,18 @@
34
34
  "types": "./dist/dts/debug.d.ts",
35
35
  "default": "./dist/esm/debug.js"
36
36
  },
37
- "./splice-strategies": {
37
+ "./observation/splice-strategies": {
38
38
  "types": "./dist/dts/observation/splice-strategies.d.ts",
39
39
  "default": "./dist/esm/observation/splice-strategies.js"
40
40
  },
41
+ "./binding/two-way": {
42
+ "types": "./dist/dts/templating/binding-two-way.d.ts",
43
+ "default": "./dist/esm/templating/binding-two-way.js"
44
+ },
45
+ "./binding/signal": {
46
+ "types": "./dist/dts/templating/binding-signal.d.ts",
47
+ "default": "./dist/esm/templating/binding-signal.js"
48
+ },
41
49
  "./utilities": {
42
50
  "types": "./dist/dts/utilities.d.ts",
43
51
  "default": "./dist/esm/utilities.js"
@@ -45,6 +53,14 @@
45
53
  "./hooks": {
46
54
  "types": "./dist/dts/hooks.d.ts",
47
55
  "default": "./dist/esm/hooks.js"
56
+ },
57
+ "./context": {
58
+ "types": "./dist/dts/context.d.ts",
59
+ "default": "./dist/esm/context.js"
60
+ },
61
+ "./metadata": {
62
+ "types": "./dist/dts/metadata.d.ts",
63
+ "default": "./dist/esm/metadata.js"
48
64
  }
49
65
  },
50
66
  "unpkg": "dist/fast-element.min.js",