@micromag/core 0.3.485 → 0.3.487

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/lib/contexts.js CHANGED
@@ -1288,13 +1288,14 @@ function RoutesProvider(_ref) {
1288
1288
  RoutesProvider.propTypes = propTypes$6;
1289
1289
  RoutesProvider.defaultProps = defaultProps$6;
1290
1290
  var compilers = {};
1291
- function generatePath(path, data) {
1291
+ function generatePath(fullPath, data) {
1292
1292
  var opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1293
- if (typeof compilers[path] === 'undefined') {
1294
- compilers[path] = pathToRegexp.compile(path, opts);
1293
+ var fullUrlMatches = fullPath.match(/^(https?:\/\/[^/]+)\//);
1294
+ if (typeof compilers[fullPath] === 'undefined') {
1295
+ compilers[fullPath] = pathToRegexp.compile(fullPath.replace(/^(https?:\/\/[^/]+)\//, '/'), opts);
1295
1296
  }
1296
- var compiler = compilers[path];
1297
- return compiler(data);
1297
+ var compiler = compilers[fullPath];
1298
+ return fullUrlMatches !== null ? "".concat(fullUrlMatches[1].substr(0, -1)).concat(compiler(data)) : compiler(data);
1298
1299
  }
1299
1300
  var useUrlGeneratorPathToRepexp = function useUrlGeneratorPathToRepexp() {
1300
1301
  var _ref2 = useRoutesContext() || {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/core",
3
- "version": "0.3.485",
3
+ "version": "0.3.487",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -115,7 +115,6 @@
115
115
  "@fortawesome/fontawesome-svg-core": "^1.2.32",
116
116
  "@fortawesome/free-solid-svg-icons": "^5.15.1",
117
117
  "@fortawesome/react-fontawesome": "^0.1.13",
118
- "@panneau/core": "^3.0.119",
119
118
  "@react-spring/core": "^9.6.1",
120
119
  "@react-spring/web": "^9.6.1",
121
120
  "@uppy/core": "^2.1.4",
@@ -130,7 +129,7 @@
130
129
  "@uppy/webcam": "^2.0.5",
131
130
  "@uppy/xhr-upload": "^2.0.7",
132
131
  "@use-gesture/react": "^10.3.0",
133
- "bootstrap": "5.2.0-beta1",
132
+ "bootstrap": "^5.3.0",
134
133
  "change-case": "^4.0.0",
135
134
  "classnames": "^2.2.6",
136
135
  "css-mediaquery": "^0.1.2",
@@ -156,5 +155,5 @@
156
155
  "access": "public",
157
156
  "registry": "https://registry.npmjs.org/"
158
157
  },
159
- "gitHead": "7af4c126bdc155c5ea821e894957023b201c2b79"
158
+ "gitHead": "aaa0df7566c8291eca5aab8ab6c8b103152c110c"
160
159
  }