roamjs-components 0.62.8 → 0.63.2
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/backend/putRoamJSUser.d.ts +1 -1
- package/backend/putRoamJSUser.js +5 -8
- package/backend/putRoamJSUser.js.map +1 -1
- package/components/ConfigPage.d.ts +2 -1
- package/components/ConfigPage.js +11 -330
- package/components/ConfigPage.js.map +1 -1
- package/components/ConfigPanels/BlockPanel.d.ts +3 -0
- package/components/ConfigPanels/BlockPanel.js +43 -0
- package/components/ConfigPanels/BlockPanel.js.map +1 -0
- package/components/ConfigPanels/BlocksPanel.d.ts +3 -0
- package/components/ConfigPanels/BlocksPanel.js +61 -0
- package/components/ConfigPanels/BlocksPanel.js.map +1 -0
- package/components/ConfigPanels/CustomPanel.d.ts +3 -0
- package/components/ConfigPanels/CustomPanel.js +25 -0
- package/components/ConfigPanels/CustomPanel.js.map +1 -0
- package/components/ConfigPanels/FlagPanel.d.ts +3 -0
- package/components/ConfigPanels/FlagPanel.js +32 -0
- package/components/ConfigPanels/FlagPanel.js.map +1 -0
- package/components/ConfigPanels/MultiChildPanel.d.ts +13 -0
- package/components/ConfigPanels/MultiChildPanel.js +58 -0
- package/components/ConfigPanels/MultiChildPanel.js.map +1 -0
- package/components/ConfigPanels/MultiTextPanel.d.ts +3 -0
- package/components/ConfigPanels/MultiTextPanel.js +12 -0
- package/components/ConfigPanels/MultiTextPanel.js.map +1 -0
- package/components/ConfigPanels/NumberPanel.d.ts +3 -0
- package/components/ConfigPanels/NumberPanel.js +26 -0
- package/components/ConfigPanels/NumberPanel.js.map +1 -0
- package/components/ConfigPanels/OauthPanel.js +1 -0
- package/components/ConfigPanels/OauthPanel.js.map +1 -1
- package/components/ConfigPanels/PagesPanel.d.ts +3 -0
- package/components/ConfigPanels/PagesPanel.js +12 -0
- package/components/ConfigPanels/PagesPanel.js.map +1 -0
- package/components/ConfigPanels/SelectPanel.d.ts +3 -0
- package/components/ConfigPanels/SelectPanel.js +28 -0
- package/components/ConfigPanels/SelectPanel.js.map +1 -0
- package/components/ConfigPanels/TextPanel.d.ts +3 -0
- package/components/ConfigPanels/TextPanel.js +26 -0
- package/components/ConfigPanels/TextPanel.js.map +1 -0
- package/components/ConfigPanels/TimePanel.d.ts +3 -0
- package/components/ConfigPanels/TimePanel.js +35 -0
- package/components/ConfigPanels/TimePanel.js.map +1 -0
- package/components/ConfigPanels/getBrandColors.d.ts +7 -0
- package/components/ConfigPanels/getBrandColors.js +29 -0
- package/components/ConfigPanels/getBrandColors.js.map +1 -0
- package/components/ConfigPanels/types.d.ts +6 -3
- package/components/ConfigPanels/useSingleChildValue.d.ts +13 -0
- package/components/ConfigPanels/useSingleChildValue.js +44 -0
- package/components/ConfigPanels/useSingleChildValue.js.map +1 -0
- package/package.json +8 -5
- package/queries/getFirstChildUidByBlockUid.js +3 -2
- package/queries/getFirstChildUidByBlockUid.js.map +1 -1
- package/util/isControl.js +23 -2
- package/util/isControl.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "roamjs-components",
|
|
3
3
|
"description": "Description for roamjs-components",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.63.2",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "tsc",
|
|
9
8
|
"format": "prettier --write \"src/**/*.tsx\"",
|
|
10
9
|
"lint": "eslint . --ext .ts,.tsx",
|
|
10
|
+
"prebuild": "npm run lint",
|
|
11
|
+
"build": "tsc",
|
|
11
12
|
"prepublishOnly": "npm t",
|
|
12
13
|
"preversion": "npm run lint",
|
|
13
14
|
"version": "npm run format && git add -A src",
|
|
14
15
|
"postversion": "git push origin main && git push --tags",
|
|
15
|
-
"pretest": "npm run lint",
|
|
16
16
|
"jest": "jest --config jestconfig.json",
|
|
17
17
|
"test": "npm run jest"
|
|
18
18
|
},
|
|
@@ -40,11 +40,13 @@
|
|
|
40
40
|
"chrono-node": "2.3.0",
|
|
41
41
|
"crypto-js": "3.1.9-1",
|
|
42
42
|
"file-saver": "2.0.2",
|
|
43
|
+
"jszip": "3.10.0",
|
|
43
44
|
"marked": "4.0.16",
|
|
44
45
|
"marked-react": "1.1.2",
|
|
45
46
|
"nanoid": "2.0.4",
|
|
46
47
|
"react": "17.0.2",
|
|
47
|
-
"react-dom": "17.0.2"
|
|
48
|
+
"react-dom": "17.0.2",
|
|
49
|
+
"tslib": "2.2.0"
|
|
48
50
|
},
|
|
49
51
|
"dependencies": {
|
|
50
52
|
"aws-sdk-plus": "^0.5.3",
|
|
@@ -52,8 +54,8 @@
|
|
|
52
54
|
"date-fns": "^2.27.0",
|
|
53
55
|
"fuzzy": "^0.1.3",
|
|
54
56
|
"hast-util-to-html": "^7.1.3",
|
|
55
|
-
"mobile-device-detect": "^0.4.3",
|
|
56
57
|
"refractor": "^3.3.1",
|
|
58
|
+
"ua-parser-js": "^1.0.2",
|
|
57
59
|
"xregexp": "^5.0.1"
|
|
58
60
|
},
|
|
59
61
|
"devDependencies": {
|
|
@@ -71,6 +73,7 @@
|
|
|
71
73
|
"@types/react": "^17.0.9",
|
|
72
74
|
"@types/react-dom": "^17.0.6",
|
|
73
75
|
"@types/refractor": "^3.0.2",
|
|
76
|
+
"@types/ua-parser-js": "^0.7.36",
|
|
74
77
|
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
|
75
78
|
"@typescript-eslint/parser": "^5.27.1",
|
|
76
79
|
"@vercel/ncc": "^0.28.6",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const getNthChildUidByBlockUid_1 = tslib_1.__importDefault(require("./getNthChildUidByBlockUid"));
|
|
5
|
+
const getFirstChildUidByBlockUid = (blockUid) => (0, getNthChildUidByBlockUid_1.default)({ blockUid, order: 0 });
|
|
5
6
|
exports.default = getFirstChildUidByBlockUid;
|
|
6
7
|
//# sourceMappingURL=getFirstChildUidByBlockUid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFirstChildUidByBlockUid.js","sourceRoot":"","sources":["../src/queries/getFirstChildUidByBlockUid.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getFirstChildUidByBlockUid.js","sourceRoot":"","sources":["../src/queries/getFirstChildUidByBlockUid.ts"],"names":[],"mappings":";;;AAAA,kGAAkE;AAElE,MAAM,0BAA0B,GAAG,CAAC,QAAgB,EAAU,EAAE,CAC9D,IAAA,kCAAwB,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AAEnD,kBAAe,0BAA0B,CAAC"}
|
package/util/isControl.js
CHANGED
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const ua_parser_js_1 = tslib_1.__importDefault(require("ua-parser-js"));
|
|
5
|
+
const UA = new ua_parser_js_1.default();
|
|
6
|
+
const os = UA.getOS();
|
|
7
|
+
const getNavigatorInstance = () => {
|
|
8
|
+
if (typeof window !== "undefined") {
|
|
9
|
+
if (window.navigator || navigator) {
|
|
10
|
+
return window.navigator || navigator;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return false;
|
|
14
|
+
};
|
|
15
|
+
const isIOS13Check = () => {
|
|
16
|
+
const type = "iPad";
|
|
17
|
+
const nav = getNavigatorInstance();
|
|
18
|
+
return (nav &&
|
|
19
|
+
nav.platform &&
|
|
20
|
+
(nav.platform.indexOf(type) !== -1 ||
|
|
21
|
+
(nav.platform === "MacIntel" && nav.maxTouchPoints > 1)));
|
|
22
|
+
};
|
|
23
|
+
const isIOS = os.name === "iOS" || isIOS13Check();
|
|
24
|
+
const isMacOs = os.name === "Mac OS";
|
|
25
|
+
const isApple = isIOS || isMacOs;
|
|
5
26
|
const isControl = (e) => (e.ctrlKey && !isApple) || (e.metaKey && isApple);
|
|
6
27
|
exports.default = isControl;
|
|
7
28
|
//# sourceMappingURL=isControl.js.map
|
package/util/isControl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isControl.js","sourceRoot":"","sources":["../src/util/isControl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isControl.js","sourceRoot":"","sources":["../src/util/isControl.ts"],"names":[],"mappings":";;;AAAA,wEAAkC;AAElC,MAAM,EAAE,GAAG,IAAI,sBAAM,EAAE,CAAC;AACxB,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC;AAEtB,MAAM,oBAAoB,GAAG,GAAG,EAAE;IAChC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QACjC,IAAI,MAAM,CAAC,SAAS,IAAI,SAAS,EAAE;YACjC,OAAO,MAAM,CAAC,SAAS,IAAI,SAAS,CAAC;SACtC;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,GAAG,EAAE;IACxB,MAAM,IAAI,GAAG,MAAM,CAAC;IACpB,MAAM,GAAG,GAAG,oBAAoB,EAAE,CAAC;IACnC,OAAO,CACL,GAAG;QACH,GAAG,CAAC,QAAQ;QACZ,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAChC,CAAC,GAAG,CAAC,QAAQ,KAAK,UAAU,IAAI,GAAG,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC,CAC3D,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,KAAK,GAAG,EAAE,CAAC,IAAI,KAAK,KAAK,IAAI,YAAY,EAAE,CAAC;AAClD,MAAM,OAAO,GAAG,EAAE,CAAC,IAAI,KAAK,QAAQ,CAAC;AACrC,MAAM,OAAO,GAAG,KAAK,IAAI,OAAO,CAAC;AAEjC,MAAM,SAAS,GAAG,CAAC,CAA6B,EAAW,EAAE,CAC3D,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC;AAEpD,kBAAe,SAAS,CAAC"}
|