@uxf/core 10.0.0-beta.37 → 10.0.0-beta.80
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/hooks/useBodyScrollLock.d.ts +1 -1
- package/hooks/useBodyScrollLock.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +6 -11
- package/utils/image.d.ts +1 -1
- package/utils/image.js +1 -1
- package/utils/forwardRef.d.ts +0 -10
- package/utils/forwardRef.js +0 -10
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useBodyScrollLock = void 0;
|
|
4
|
-
const bodyScrollLock_1 = require("../utils/bodyScrollLock");
|
|
5
4
|
const react_1 = require("react");
|
|
5
|
+
const bodyScrollLock_1 = require("../utils/bodyScrollLock");
|
|
6
6
|
function useBodyScrollLock(containerRef, isOpen, { allowTouchMove, clearAllOnClose, reserveScrollBarGap } = {}) {
|
|
7
7
|
(0, react_1.useEffect)(() => {
|
|
8
8
|
const node = containerRef.current;
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -15,5 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
// TODO @vejvis - remove me
|
|
18
|
-
__exportStar(require("./Validators/Validator"), exports);
|
|
19
18
|
__exportStar(require("./Validators/FormValidator"), exports);
|
|
19
|
+
__exportStar(require("./Validators/Validator"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/core",
|
|
3
|
-
"version": "10.0.0-beta.
|
|
3
|
+
"version": "10.0.0-beta.80",
|
|
4
4
|
"description": "UXF Core",
|
|
5
5
|
"author": "Petr Vejvoda <vejvoda@uxf.cz>",
|
|
6
6
|
"homepage": "https://gitlab.com/uxf-npm/core#readme",
|
|
@@ -17,22 +17,17 @@
|
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "tsc -P tsconfig.json",
|
|
20
|
-
"jest": "jest",
|
|
21
|
-
"test": "npm run jest",
|
|
22
20
|
"typecheck": "tsc --noEmit --skipLibCheck"
|
|
23
21
|
},
|
|
24
22
|
"bugs": {
|
|
25
23
|
"url": "https://gitlab.com/uxf-npm/core/issues"
|
|
26
24
|
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@types/jest": "^27.4.0",
|
|
29
|
-
"@types/react": "^18.2.6",
|
|
30
|
-
"jest": "^27.4.5",
|
|
31
|
-
"react": "^18.2.0",
|
|
32
|
-
"ts-jest": "^27.1.2"
|
|
33
|
-
},
|
|
34
25
|
"peerDependencies": {
|
|
35
|
-
"react": "
|
|
26
|
+
"react": ">=18.2.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/react": "18.2.27",
|
|
30
|
+
"react": "18.2.0"
|
|
36
31
|
},
|
|
37
32
|
"gitHead": "a2dee6aa67621f6eda17e63e88d0edf14f88455a"
|
|
38
33
|
}
|
package/utils/image.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ImageSource, ResizerImageProps } from "./resizer";
|
|
2
1
|
import { FC } from "react";
|
|
2
|
+
import { ImageSource, ResizerImageProps } from "./resizer";
|
|
3
3
|
export type Dimension = number | "auto";
|
|
4
4
|
export type Format = "avif" | "webp" | "original";
|
|
5
5
|
export type Quality = number | Record<Format, number>;
|
package/utils/image.js
CHANGED
|
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ImgSources = exports.getImgSrcSet = exports.getImgElementWidth = exports.getImgElementHeight = exports.getImgUniqueIdentifier = exports.getImgQuality = exports.getSvgImgUrl = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const file_1 = require("./file");
|
|
8
9
|
const resizer_1 = require("./resizer");
|
|
9
|
-
const react_1 = __importDefault(require("react"));
|
|
10
10
|
function toImageResponse(src) {
|
|
11
11
|
return typeof src !== "string" && "uuid" in src ? src : undefined;
|
|
12
12
|
}
|
package/utils/forwardRef.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ForwardedRef, ForwardRefExoticComponent, PropsWithoutRef, ReactElement, RefAttributes } from "react";
|
|
2
|
-
export type ForwardRefRenderFunction<T, P> = {
|
|
3
|
-
(props: P, ref: ForwardedRef<T>): ReactElement | null;
|
|
4
|
-
displayName?: string;
|
|
5
|
-
/** defaultProps are not supported on render functions */
|
|
6
|
-
defaultProps?: never;
|
|
7
|
-
/** propTypes are not supported on render functions */
|
|
8
|
-
propTypes?: never;
|
|
9
|
-
};
|
|
10
|
-
export declare const forwardRef: <T, P>(name: string, render: ForwardRefRenderFunction<T, P>) => ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
|
package/utils/forwardRef.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.forwardRef = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const forwardRef = (name, render) => {
|
|
6
|
-
const Component = (0, react_1.forwardRef)(render);
|
|
7
|
-
Component.displayName = name;
|
|
8
|
-
return Component;
|
|
9
|
-
};
|
|
10
|
-
exports.forwardRef = forwardRef;
|