@qoretechnologies/reqore 0.19.9 → 0.19.10

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.
@@ -1,2 +1,8 @@
1
+ /**
2
+ * If the time is larger than one day, update once a day. If the time is larger than one hour,
3
+ update once an hour. Otherwise update every 5 seconds.
4
+ * @param {number} time - the time in milliseconds since the epoch
5
+ * @returns The interval ID.
6
+ */
1
7
  export declare const getTimeAgoIntervalDelay: (time: number) => number;
2
8
  //# sourceMappingURL=time.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../src/helpers/time.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,SAAU,MAAM,KAAG,MActD,CAAC"}
1
+ {"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../src/helpers/time.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,SAAU,MAAM,KAAG,MActD,CAAC"}
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
3
  exports.getTimeAgoIntervalDelay = void 0;
4
+ /**
5
+ * If the time is larger than one day, update once a day. If the time is larger than one hour,
6
+ update once an hour. Otherwise update every 5 seconds.
7
+ * @param {number} time - the time in milliseconds since the epoch
8
+ * @returns The interval ID.
9
+ */
4
10
  var getTimeAgoIntervalDelay = function (time) {
5
11
  // If the time is larger than one day
6
12
  if (Date.now() - time > 60000 * 60 * 24) {
@@ -1 +1 @@
1
- {"version":3,"file":"time.js","sourceRoot":"","sources":["../../src/helpers/time.ts"],"names":[],"mappings":";;;AAAO,IAAM,uBAAuB,GAAG,UAAC,IAAY;IAClD,qCAAqC;IACrC,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE,GAAG,EAAE,EAAE;QACvC,oBAAoB;QACpB,OAAO,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;KACxB;IACD,sCAAsC;IACtC,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE,EAAE;QAClC,sBAAsB;QACtB,OAAO,KAAK,GAAG,EAAE,CAAC;KACnB;IAED,mCAAmC;IACnC,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAdW,QAAA,uBAAuB,2BAclC"}
1
+ {"version":3,"file":"time.js","sourceRoot":"","sources":["../../src/helpers/time.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACI,IAAM,uBAAuB,GAAG,UAAC,IAAY;IAClD,qCAAqC;IACrC,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE,GAAG,EAAE,EAAE;QACvC,oBAAoB;QACpB,OAAO,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;KACxB;IACD,sCAAsC;IACtC,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE,EAAE;QAClC,sBAAsB;QACtB,OAAO,KAAK,GAAG,EAAE,CAAC;KACnB;IAED,mCAAmC;IACnC,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAdW,QAAA,uBAAuB,2BAclC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qoretechnologies/reqore",
3
- "version": "0.19.9",
3
+ "version": "0.19.10",
4
4
  "description": "ReQore is a UI library of components for Qorus connected apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,6 +8,7 @@
8
8
  "test": "./node_modules/.bin/jest",
9
9
  "test:watch": "./node_modules/.bin/jest --watch",
10
10
  "test:ci": "./node_modules/.bin/jest --silent --json --outputFile=tests.json",
11
+ "test:generate-output": "./node_modules/.bin/jest --json --outputFile=.jest-test-results.json",
11
12
  "build": "./node_modules/typescript/bin/tsc",
12
13
  "build:test": "./node_modules/typescript/bin/tsc --noEmit",
13
14
  "storybook": "start-storybook -p 6006 --no-dll",
@@ -34,17 +35,22 @@
34
35
  "@babel/preset-env": "^7.12.11",
35
36
  "@babel/preset-react": "^7.12.10",
36
37
  "@babel/preset-typescript": "^7.12.7",
37
- "@storybook/addon-actions": "^6.3.6",
38
- "@storybook/addon-essentials": "^6.3.6",
39
- "@storybook/addon-links": "^6.3.6",
40
- "@storybook/react": "^6.3.6",
38
+ "@reactpreview/config": "^0.2.3",
39
+ "@storybook/addon-actions": "^6.4.9",
40
+ "@storybook/addon-essentials": "^6.4.9",
41
+ "@storybook/addon-jest": "^6.4.9",
42
+ "@storybook/addon-links": "^6.4.9",
43
+ "@storybook/addon-storysource": "^6.4.9",
44
+ "@storybook/react": "^6.4.9",
41
45
  "@testing-library/react": "^11.2.2",
42
46
  "@types/jest": "^26.0.19",
47
+ "@types/lodash": "^4.14.166",
43
48
  "@types/node": "^14.14.14",
44
49
  "@types/react": "^17.0.0",
45
50
  "@types/react-dom": "^17.0.0",
46
51
  "babel-jest": "^26.6.3",
47
52
  "babel-loader": "^8.2.2",
53
+ "chromatic": "^6.3.3",
48
54
  "jest": "^26.6.3",
49
55
  "jest-github-actions-reporter": "^1.0.2",
50
56
  "npm-cli-login": "^0.1.1",
@@ -52,6 +58,8 @@
52
58
  "react": "^17.0.2",
53
59
  "react-dom": "^17.0.2",
54
60
  "react-test-renderer": "^17.0.2",
61
+ "storybook-addon-outline": "^1.4.2",
62
+ "storybook-dark-mode": "^1.0.8",
55
63
  "styled-components": "^5.2.1",
56
64
  "ts-jest": "^26.4.4",
57
65
  "ts-node": "^9.1.1",
@@ -65,8 +73,6 @@
65
73
  "dependencies": {
66
74
  "@popperjs/core": "^2.10.2",
67
75
  "@react-spring/web": "^9.2.4",
68
- "@reactpreview/config": "^0.2.3",
69
- "@types/lodash": "^4.14.166",
70
76
  "classnames": "^2.2.6",
71
77
  "epoch-timeago": "^1.1.9",
72
78
  "lodash": "^4.17.20",