@symbo.ls/link 2.11.474 → 2.11.476

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 (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -41,7 +41,7 @@ export const RouterLink = {
41
41
 
42
42
  if (stopPropagation) event.stopPropagation()
43
43
  if (!href) return
44
- const { utils, snippets, routerOptions } = ctx
44
+ const { utils, snippets, functions, routerOptions } = ctx
45
45
  const root = el.__ref.root
46
46
  const linkIsExternal = href.includes('http://') ||
47
47
  href.includes('https://') ||
@@ -49,7 +49,7 @@ export const RouterLink = {
49
49
  href.includes('tel:')
50
50
  if (href && !linkIsExternal) {
51
51
  try {
52
- (snippets.router || utils.router || defaultRouter)(href, root, {}, {
52
+ (functions.router || snippets.router || utils.router || defaultRouter)(href, root, {}, {
53
53
  scrollToOptions: { behaviour: 'instant' },
54
54
  scrollToTop: isDefined(scrollToTop) ? scrollToTop : true,
55
55
  ...routerOptions,
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@symbo.ls/link",
3
- "version": "2.11.474",
3
+ "version": "2.11.476",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "dd0429b4bfcc2d43545a301dfe406c5000bd7ae0",
6
+ "gitHead": "7d714966165be175182fb6e10e221fe3866378f5",
7
7
  "dependencies": {
8
8
  "@domql/router": "^2.5.0",
9
- "@symbo.ls/atoms": "^2.11.474"
9
+ "@symbo.ls/atoms": "^2.11.475"
10
10
  },
11
11
  "source": "src/index.js"
12
12
  }