@guillotinaweb/react-gmi 0.32.2 → 0.33.0
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/README.md +1 -3
- package/dist/actions/copy_items.d.ts +3 -1
- package/dist/actions/move_items.d.ts +3 -1
- package/dist/actions/remove_items.d.ts +2 -1
- package/dist/components/Link.d.ts +2 -1
- package/dist/components/TdLink.d.ts +2 -1
- package/dist/components/item.d.ts +2 -2
- package/dist/components/tabs.d.ts +3 -2
- package/dist/hooks/useRegistry.d.ts +3 -3
- package/dist/lib/client.d.ts +2 -2
- package/dist/models/index.d.ts +3 -3
- package/dist/react-gmi.js +7 -5
- package/dist/react-gmi.js.map +1 -1
- package/dist/react-gmi.modern.js +7 -5
- package/dist/react-gmi.modern.js.map +1 -1
- package/dist/react-gmi.umd.js +7 -5
- package/dist/react-gmi.umd.js.map +1 -1
- package/dist/types/guillotina.d.ts +7 -4
- package/package.json +3 -3
package/dist/react-gmi.umd.js
CHANGED
|
@@ -9100,7 +9100,8 @@
|
|
|
9100
9100
|
currentTab = _ref2.currentTab,
|
|
9101
9101
|
rightToolbar = _ref2.rightToolbar,
|
|
9102
9102
|
_ref2$fallback = _ref2.fallback,
|
|
9103
|
-
fallback = _ref2$fallback === void 0 ? FallbackTab : _ref2$fallback
|
|
9103
|
+
fallback = _ref2$fallback === void 0 ? FallbackTab : _ref2$fallback,
|
|
9104
|
+
restProps = _objectWithoutPropertiesLoose(_ref2, ["tabs", "currentTab", "rightToolbar", "fallback"]);
|
|
9104
9105
|
|
|
9105
9106
|
var _useLocation = useLocation(),
|
|
9106
9107
|
location = _useLocation[0],
|
|
@@ -9129,6 +9130,7 @@
|
|
|
9129
9130
|
});
|
|
9130
9131
|
};
|
|
9131
9132
|
|
|
9133
|
+
console.log('restProps', restProps);
|
|
9132
9134
|
return jsxRuntime.jsxs("div", {
|
|
9133
9135
|
className: "container",
|
|
9134
9136
|
children: [jsxRuntime.jsxs("div", {
|
|
@@ -9158,9 +9160,9 @@
|
|
|
9158
9160
|
})]
|
|
9159
9161
|
}), jsxRuntime.jsx("div", {
|
|
9160
9162
|
className: "container",
|
|
9161
|
-
children: jsxRuntime.jsx(CurrentComp, {
|
|
9163
|
+
children: jsxRuntime.jsx(CurrentComp, _extends({
|
|
9162
9164
|
title: current
|
|
9163
|
-
})
|
|
9165
|
+
}, restProps))
|
|
9164
9166
|
})]
|
|
9165
9167
|
});
|
|
9166
9168
|
}
|
|
@@ -14521,7 +14523,7 @@
|
|
|
14521
14523
|
_proto.willExpire = function willExpire(expiration) {
|
|
14522
14524
|
var now = new Date().getTime();
|
|
14523
14525
|
|
|
14524
|
-
if (parseInt(expiration)
|
|
14526
|
+
if (parseInt(expiration) < now + 10) {
|
|
14525
14527
|
return true;
|
|
14526
14528
|
}
|
|
14527
14529
|
|
|
@@ -14531,7 +14533,7 @@
|
|
|
14531
14533
|
_proto.isExpired = function isExpired(expiration) {
|
|
14532
14534
|
var now = new Date().getTime();
|
|
14533
14535
|
|
|
14534
|
-
if (parseInt(expiration)
|
|
14536
|
+
if (parseInt(expiration) > now) {
|
|
14535
14537
|
return false;
|
|
14536
14538
|
}
|
|
14537
14539
|
|