Ignore:
Timestamp:
01/21/25 03:08:24 (3 days ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
0c6b92a
Message:

F4 Finalna Verzija

Location:
imaps-frontend/node_modules/react-use
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/react-use/esm/useWindowSize.d.ts

    r0c6b92a r79a0317  
    1 declare const useWindowSize: (initialWidth?: number, initialHeight?: number) => {
     1interface Options {
     2    initialWidth?: number;
     3    initialHeight?: number;
     4    onChange?: (width: number, height: number) => void;
     5}
     6declare const useWindowSize: ({ initialWidth, initialHeight, onChange, }?: Options) => {
    27    width: number;
    38    height: number;
  • imaps-frontend/node_modules/react-use/esm/useWindowSize.js

    r0c6b92a r79a0317  
    22import useRafState from './useRafState';
    33import { isBrowser, off, on } from './misc/util';
    4 var useWindowSize = function (initialWidth, initialHeight) {
    5     if (initialWidth === void 0) { initialWidth = Infinity; }
    6     if (initialHeight === void 0) { initialHeight = Infinity; }
    7     var _a = useRafState({
     4var useWindowSize = function (_a) {
     5    var _b = _a === void 0 ? {} : _a, _c = _b.initialWidth, initialWidth = _c === void 0 ? Infinity : _c, _d = _b.initialHeight, initialHeight = _d === void 0 ? Infinity : _d, onChange = _b.onChange;
     6    // Use the useRafState hook to maintain the current window size (width and height)
     7    var _e = useRafState({
    88        width: isBrowser ? window.innerWidth : initialWidth,
    99        height: isBrowser ? window.innerHeight : initialHeight,
    10     }), state = _a[0], setState = _a[1];
     10    }), state = _e[0], setState = _e[1];
    1111    useEffect(function () {
     12        // Only run the effect on the browser (to avoid issues with SSR)
    1213        if (isBrowser) {
    1314            var handler_1 = function () {
     15                var width = window.innerWidth;
     16                var height = window.innerHeight;
     17                // Update the state with the new window size
    1418                setState({
    15                     width: window.innerWidth,
    16                     height: window.innerHeight,
     19                    width: width,
     20                    height: height,
    1721                });
     22                // If an onChange callback is provided, call it with the new dimensions
     23                if (onChange)
     24                    onChange(width, height);
    1825            };
     26            // Add event listener for the resize event
    1927            on(window, 'resize', handler_1);
     28            // Cleanup function to remove the event listener when the component is unmounted (it's for performance optimization)
    2029            return function () {
    2130                off(window, 'resize', handler_1);
     
    2332        }
    2433    }, []);
     34    // Return the current window size (width and height)
    2535    return state;
    2636};
  • imaps-frontend/node_modules/react-use/lib/useWindowSize.d.ts

    r0c6b92a r79a0317  
    1 declare const useWindowSize: (initialWidth?: number, initialHeight?: number) => {
     1interface Options {
     2    initialWidth?: number;
     3    initialHeight?: number;
     4    onChange?: (width: number, height: number) => void;
     5}
     6declare const useWindowSize: ({ initialWidth, initialHeight, onChange, }?: Options) => {
    27    width: number;
    38    height: number;
  • imaps-frontend/node_modules/react-use/lib/useWindowSize.js

    r0c6b92a r79a0317  
    55var useRafState_1 = tslib_1.__importDefault(require("./useRafState"));
    66var util_1 = require("./misc/util");
    7 var useWindowSize = function (initialWidth, initialHeight) {
    8     if (initialWidth === void 0) { initialWidth = Infinity; }
    9     if (initialHeight === void 0) { initialHeight = Infinity; }
    10     var _a = useRafState_1.default({
     7var useWindowSize = function (_a) {
     8    var _b = _a === void 0 ? {} : _a, _c = _b.initialWidth, initialWidth = _c === void 0 ? Infinity : _c, _d = _b.initialHeight, initialHeight = _d === void 0 ? Infinity : _d, onChange = _b.onChange;
     9    // Use the useRafState hook to maintain the current window size (width and height)
     10    var _e = useRafState_1.default({
    1111        width: util_1.isBrowser ? window.innerWidth : initialWidth,
    1212        height: util_1.isBrowser ? window.innerHeight : initialHeight,
    13     }), state = _a[0], setState = _a[1];
     13    }), state = _e[0], setState = _e[1];
    1414    react_1.useEffect(function () {
     15        // Only run the effect on the browser (to avoid issues with SSR)
    1516        if (util_1.isBrowser) {
    1617            var handler_1 = function () {
     18                var width = window.innerWidth;
     19                var height = window.innerHeight;
     20                // Update the state with the new window size
    1721                setState({
    18                     width: window.innerWidth,
    19                     height: window.innerHeight,
     22                    width: width,
     23                    height: height,
    2024                });
     25                // If an onChange callback is provided, call it with the new dimensions
     26                if (onChange)
     27                    onChange(width, height);
    2128            };
     29            // Add event listener for the resize event
    2230            util_1.on(window, 'resize', handler_1);
     31            // Cleanup function to remove the event listener when the component is unmounted (it's for performance optimization)
    2332            return function () {
    2433                util_1.off(window, 'resize', handler_1);
     
    2635        }
    2736    }, []);
     37    // Return the current window size (width and height)
    2838    return state;
    2939};
  • imaps-frontend/node_modules/react-use/package.json

    r0c6b92a r79a0317  
    11{
    2   "name": "react-use",
    3   "version": "17.5.1",
    4   "description": "Collection of React Hooks",
    5   "main": "lib/index.js",
    6   "module": "esm/index.js",
    7   "sideEffects": false,
    8   "files": [
    9     "lib/",
    10     "esm/"
     2  "_from": "react-use@17.6.0",
     3  "_id": "react-use@17.6.0",
     4  "_inBundle": false,
     5  "_integrity": "sha512-OmedEScUMKFfzn1Ir8dBxiLLSOzhKe/dPZwVxcujweSj45aNM7BEGPb9BEVIgVEqEXx6f3/TsXzwIktNgUR02g==",
     6  "_location": "/react-use",
     7  "_phantomChildren": {},
     8  "_requested": {
     9    "type": "version",
     10    "registry": true,
     11    "raw": "react-use@17.6.0",
     12    "name": "react-use",
     13    "escapedName": "react-use",
     14    "rawSpec": "17.6.0",
     15    "saveSpec": null,
     16    "fetchSpec": "17.6.0"
     17  },
     18  "_requiredBy": [
     19    "/react-tiles-dnd"
    1120  ],
    12   "types": "lib/index.d.ts",
    13   "typings": "lib/index.d.ts",
    14   "scripts": {
    15     "start": "yarn storybook",
    16     "test": "jest --maxWorkers 2",
    17     "test:ssr": "jest --maxWorkers 2 --config ./jest.config.node.ts",
    18     "test:watch": "jest --watch",
    19     "test:coverage": "jest --coverage",
    20     "lint": "eslint \"{src,tests,stories}/**/*.{ts,tsx}\"",
    21     "lint:fix": "yarn lint --fix",
    22     "lint:types": "tsc --noEmit",
    23     "build:cjs": "tsc",
    24     "build:es": "tsc -m esNext --outDir esm",
    25     "build": "yarn build:cjs && yarn build:es",
    26     "clean": "rimraf lib storybook-static esm",
    27     "storybook": "start-storybook -p 6008",
    28     "storybook:build": "build-storybook",
    29     "storybook:upload": "gh-pages -d storybook-static --git \"$(which git)\"",
    30     "storybook:clean": "rimraf storybook-static",
    31     "release": "semantic-release"
    32   },
    33   "husky": {
    34     "hooks": {
    35       "pre-commit": "lint-staged",
    36       "pre-push": "yarn lint && yarn clean && yarn build && yarn test"
    37     }
    38   },
    39   "author": "@streamich",
    40   "license": "Unlicense",
    41   "repository": {
    42     "type": "git",
    43     "url": "https://github.com/streamich/react-use"
     21  "_resolved": "https://registry.npmjs.org/react-use/-/react-use-17.6.0.tgz",
     22  "_shasum": "2101a3a79dc965a25866b21f5d6de4b128488a14",
     23  "_spec": "react-use@17.6.0",
     24  "_where": "/home/stevetosak/Proekt/IMaps/imaps-frontend/node_modules/react-tiles-dnd",
     25  "author": {
     26    "name": "@streamich"
    4427  },
    4528  "bugs": {
    4629    "url": "https://github.com/streamich/react-use/issues"
    4730  },
    48   "homepage": "https://github.com/streamich/react-use#readme",
     31  "bundleDependencies": false,
     32  "collective": {
     33    "type": "opencollective",
     34    "url": "https://opencollective.com/react-use"
     35  },
     36  "config": {
     37    "commitizen": {
     38      "path": "git-cz"
     39    }
     40  },
    4941  "dependencies": {
    5042    "@types/js-cookie": "^2.2.6",
     
    6355    "tslib": "^2.1.0"
    6456  },
    65   "peerDependencies": {
    66     "react": "*",
    67     "react-dom": "*"
    68   },
     57  "deprecated": false,
     58  "description": "Collection of React Hooks",
    6959  "devDependencies": {
    70     "@babel/core": "7.20.2",
     60    "@babel/core": "7.24.9",
    7161    "@babel/plugin-syntax-dynamic-import": "7.8.3",
    72     "@babel/preset-env": "7.20.2",
    73     "@babel/preset-react": "7.18.6",
    74     "@babel/preset-typescript": "7.18.6",
    75     "@semantic-release/changelog": "5.0.1",
    76     "@semantic-release/git": "9.0.1",
    77     "@semantic-release/npm": "7.1.3",
     62    "@babel/preset-env": "7.24.8",
     63    "@babel/preset-react": "7.24.7",
     64    "@babel/preset-typescript": "7.24.7",
     65    "@semantic-release/changelog": "6.0.3",
     66    "@semantic-release/git": "10.0.1",
     67    "@semantic-release/npm": "12.0.1",
    7868    "@shopify/jest-dom-mocks": "2.11.7",
    7969    "@storybook/addon-actions": "6.4.9",
    80     "@storybook/addon-knobs": "6.2.9",
     70    "@storybook/addon-knobs": "6.4.0",
    8171    "@storybook/addon-notes": "5.3.21",
    8272    "@storybook/addon-options": "5.3.21",
     
    8676    "@types/jest": "27.5.2",
    8777    "@types/react": "17.0.0",
    88     "@typescript-eslint/eslint-plugin": "5.6.0",
    89     "@typescript-eslint/parser": "5.6.0",
     78    "@typescript-eslint/eslint-plugin": "5.62.0",
     79    "@typescript-eslint/parser": "5.62.0",
    9080    "babel-core": "6.26.3",
    9181    "babel-eslint": "10.1.0",
    9282    "babel-loader": "8.3.0",
    9383    "babel-plugin-dynamic-import-node": "2.3.3",
    94     "eslint": "8.28.0",
    95     "eslint-config-prettier": "8.5.0",
     84    "eslint": "8.57.0",
     85    "eslint-config-prettier": "8.10.0",
    9686    "eslint-config-react-app": "6.0.0",
    9787    "eslint-plugin-flowtype": "8.0.3",
    98     "eslint-plugin-import": "2.26.0",
    99     "eslint-plugin-jsx-a11y": "6.6.1",
     88    "eslint-plugin-import": "2.29.1",
     89    "eslint-plugin-jsx-a11y": "6.9.0",
    10090    "eslint-plugin-prettier": "4.2.1",
    101     "eslint-plugin-react": "7.31.11",
     91    "eslint-plugin-react": "7.35.0",
    10292    "eslint-plugin-react-hooks": "4.6.0",
    103     "fork-ts-checker-webpack-plugin": "6.5.2",
    104     "gh-pages": "3.2.3",
     93    "fork-ts-checker-webpack-plugin": "6.5.3",
     94    "gh-pages": "5.0.0",
    10595    "husky": "7.0.4",
    10696    "jest": "26.6.3",
    107     "jest-localstorage-mock": "2.4.22",
     97    "jest-localstorage-mock": "2.4.26",
    10898    "keyboardjs": "2.7.0",
    10999    "lint-staged": "12.5.0",
     
    113103    "react": "17.0.2",
    114104    "react-dom": "17.0.2",
    115     "react-frame-component": "5.2.3",
    116     "react-spring": "9.5.5",
     105    "react-frame-component": "5.2.7",
     106    "react-spring": "9.7.4",
    117107    "react-test-renderer": "17.0.2",
    118108    "rebound": "0.1.0",
     
    120110    "redux-thunk": "2.4.2",
    121111    "rimraf": "3.0.2",
    122     "rxjs": "7.5.7",
    123     "semantic-release": "17.4.7",
     112    "rxjs": "7.8.1",
     113    "semantic-release": "24.0.0",
    124114    "ts-jest": "26.5.6",
    125115    "ts-loader": "8.4.0",
    126     "ts-node": "10.9.1",
     116    "ts-node": "10.9.2",
    127117    "typescript": "4.1.5"
    128118  },
    129   "config": {
    130     "commitizen": {
    131       "path": "git-cz"
     119  "files": [
     120    "lib/",
     121    "esm/"
     122  ],
     123  "homepage": "https://github.com/streamich/react-use#readme",
     124  "husky": {
     125    "hooks": {
     126      "pre-commit": "lint-staged",
     127      "pre-push": "yarn lint && yarn clean && yarn build && yarn test"
    132128    }
     129  },
     130  "license": "Unlicense",
     131  "lint-staged": {
     132    "src/**/**/*.{ts,tsx}": [
     133      "eslint --fix",
     134      "git add"
     135    ]
     136  },
     137  "main": "lib/index.js",
     138  "module": "esm/index.js",
     139  "name": "react-use",
     140  "peerDependencies": {
     141    "react": "*",
     142    "react-dom": "*"
    133143  },
    134144  "release": {
     
    151161    ]
    152162  },
    153   "lint-staged": {
    154     "src/**/**/*.{ts,tsx}": [
    155       "eslint --fix",
    156       "git add"
    157     ]
     163  "repository": {
     164    "type": "git",
     165    "url": "git+https://github.com/streamich/react-use.git"
    158166  },
     167  "scripts": {
     168    "build": "yarn build:cjs && yarn build:es",
     169    "build:cjs": "tsc",
     170    "build:es": "tsc -m esNext --outDir esm",
     171    "clean": "rimraf lib storybook-static esm",
     172    "lint": "eslint \"{src,tests,stories}/**/*.{ts,tsx}\"",
     173    "lint:fix": "yarn lint --fix",
     174    "lint:types": "tsc --noEmit",
     175    "release": "semantic-release",
     176    "start": "yarn storybook",
     177    "storybook": "start-storybook -p 6008",
     178    "storybook:build": "build-storybook",
     179    "storybook:clean": "rimraf storybook-static",
     180    "storybook:upload": "gh-pages -d storybook-static --git \"$(which git)\"",
     181    "test": "jest --maxWorkers 2",
     182    "test:coverage": "jest --coverage",
     183    "test:ssr": "jest --maxWorkers 2 --config ./jest.config.node.ts",
     184    "test:watch": "jest --watch"
     185  },
     186  "sideEffects": false,
     187  "types": "lib/index.d.ts",
     188  "typings": "lib/index.d.ts",
     189  "version": "17.6.0",
    159190  "volta": {
    160     "node": "14.21.1",
    161     "yarn": "1.22.19"
    162   },
    163   "collective": {
    164     "type": "opencollective",
    165     "url": "https://opencollective.com/react-use"
     191    "node": "14.21.3",
     192    "yarn": "1.22.22"
    166193  }
    167194}
Note: See TracChangeset for help on using the changeset viewer.