@microsoft/fast-router 0.4.2 → 1.0.0-alpha.3

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 (44) hide show
  1. package/.eslintrc.json +0 -4
  2. package/CHANGELOG.json +135 -1
  3. package/CHANGELOG.md +35 -2
  4. package/README.md +3 -32
  5. package/dist/dts/commands.d.ts +5 -5
  6. package/dist/dts/configuration.d.ts +1 -1
  7. package/dist/dts/contributors.d.ts +24 -6
  8. package/dist/dts/events.d.ts +2 -2
  9. package/dist/dts/fast-router.d.ts +1 -1
  10. package/dist/dts/links.d.ts +2 -2
  11. package/dist/dts/navigation.d.ts +7 -7
  12. package/dist/dts/phases.d.ts +6 -6
  13. package/dist/dts/process.d.ts +2 -2
  14. package/dist/dts/query-string.d.ts +2 -2
  15. package/dist/dts/recognizer.d.ts +6 -6
  16. package/dist/dts/router.d.ts +6 -6
  17. package/dist/dts/routes.d.ts +26 -26
  18. package/dist/dts/titles.d.ts +2 -2
  19. package/dist/{tsdoc-metadata.json → dts/tsdoc-metadata.json} +1 -1
  20. package/dist/dts/view.d.ts +8 -8
  21. package/dist/esm/commands.js +10 -8
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/contributors.js +9 -9
  24. package/dist/esm/events.js +1 -1
  25. package/dist/esm/fast-router.js +1 -1
  26. package/dist/esm/links.js +1 -1
  27. package/dist/esm/navigation.js +4 -4
  28. package/dist/esm/process.js +1 -1
  29. package/dist/esm/query-string.js +1 -1
  30. package/dist/esm/recognizer.js +16 -16
  31. package/dist/esm/router.js +4 -19
  32. package/dist/esm/routes.js +1 -1
  33. package/dist/esm/titles.js +1 -1
  34. package/dist/esm/view.js +8 -8
  35. package/dist/fast-router.api.json +9699 -2
  36. package/dist/fast-router.d.ts +101 -83
  37. package/dist/fast-router.untrimmed.d.ts +825 -0
  38. package/docs/api-report.md +90 -86
  39. package/karma.conf.cjs +6 -17
  40. package/package.json +12 -16
  41. package/dist/dts/index-rollup.d.ts +0 -2
  42. package/dist/esm/index-rollup.js +0 -2
  43. package/dist/fast-router.js +0 -6776
  44. package/dist/fast-router.min.js +0 -1
package/dist/esm/view.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { __awaiter } from "tslib";
2
- import { defaultExecutionContext, ElementStyles, html, } from "@microsoft/fast-element";
2
+ import { ElementStyles, ExecutionContext, html, } from "@microsoft/fast-element";
3
3
  import { isFASTElementHost } from "./router.js";
4
4
  /**
5
- * @alpha
5
+ * @beta
6
6
  */
7
7
  export const RouterExecutionContext = Object.freeze({
8
8
  create(router) {
9
- return Object.create(defaultExecutionContext, {
9
+ return Object.create(ExecutionContext.default, {
10
10
  router: {
11
11
  value: router,
12
12
  },
@@ -14,7 +14,7 @@ export const RouterExecutionContext = Object.freeze({
14
14
  },
15
15
  });
16
16
  /**
17
- * @alpha
17
+ * @beta
18
18
  */
19
19
  export const Transition = Object.freeze({
20
20
  default: Object.freeze({
@@ -30,7 +30,7 @@ export const Transition = Object.freeze({
30
30
  }),
31
31
  });
32
32
  /**
33
- * @alpha
33
+ * @beta
34
34
  */
35
35
  export class FASTElementLayout {
36
36
  constructor(template = null, styles = null, runBeforeCommit = true) {
@@ -40,10 +40,10 @@ export class FASTElementLayout {
40
40
  styles === void 0 || styles === null
41
41
  ? null
42
42
  : Array.isArray(styles)
43
- ? ElementStyles.create(styles)
43
+ ? new ElementStyles(styles)
44
44
  : styles instanceof ElementStyles
45
45
  ? styles
46
- : ElementStyles.create([styles]);
46
+ : new ElementStyles([styles]);
47
47
  }
48
48
  beforeCommit(routerElement) {
49
49
  return __awaiter(this, void 0, void 0, function* () {
@@ -71,7 +71,7 @@ export class FASTElementLayout {
71
71
  }
72
72
  }
73
73
  /**
74
- * @alpha
74
+ * @beta
75
75
  */
76
76
  export const Layout = Object.freeze({
77
77
  default: new FASTElementLayout(html `