argous 1.2.227 → 1.2.229
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/dist/api/index.d.ts
CHANGED
|
@@ -71,3 +71,4 @@ export function sendWidgets(widgets: any): Promise<any>;
|
|
|
71
71
|
export function getPublicDoc(data: any): Promise<any>;
|
|
72
72
|
export function getProgramAnnotations(data: any, token: any): Promise<any>;
|
|
73
73
|
export function saveProgramAnnotation(data: any, token: any): Promise<any>;
|
|
74
|
+
export function sendProgramAnnotation(data: any, token: any): Promise<any>;
|
package/dist/api/index.js
CHANGED
|
@@ -48,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
};
|
|
49
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
50
|
exports.getProgramAnnotations = exports.getPublicDoc = exports.sendWidgets = exports.getWidgetInfo = exports.getWidgets = exports.scanDocument = exports.getLink = exports.getFileFromLink = exports.createDocument = exports.prepareFile = exports.getDocsUrl = exports.searchUsers = exports.getFileInfo = exports.cancelFileUpload = exports.endFileUpload = exports.sendFilePart = exports.inicFileUpload = exports.enviaCompartilhamentoDePrograma = exports.fixTimelinePost = exports.removePostTimeLine = exports.publicaTimeline = exports.toggleLikePost = exports.recebeInfoEstatisticas = exports.recebeInfoLoginsAtivos = exports.recebeThreadsUsuario = exports.recebeInfoThread = exports.recebeThread = exports.readNotificacao = exports.readNotificacoes = exports.getNotificacoes = exports.callProgram = exports.toggleFavorite = exports.getFavorites = exports.method = exports.action = exports.agSet = exports.agGet = exports.getProgram = exports.getPostPublicacao = exports.removeCommentPost = exports.addCommentPost = exports.getPostsTimeline = exports.getMenu = exports.validaToken = exports.logout = exports.login = exports.fetchToArgous = exports.headers = exports.api = exports.server = void 0;
|
|
51
|
-
exports.saveProgramAnnotation = void 0;
|
|
51
|
+
exports.sendProgramAnnotation = exports.saveProgramAnnotation = void 0;
|
|
52
52
|
var utils_1 = require("../utils");
|
|
53
53
|
var config_1 = require("../utils/config");
|
|
54
54
|
var server = function () { return "://" + config_1.getConfig()[/^[a-z]+.+\.com\.br$/.test(window.location.host) ? 'ip' : 'ip'] + "/" + (config_1.getConfig().path ? config_1.getConfig().path : 'jUniIII') + "/"; };
|
|
@@ -930,3 +930,20 @@ var saveProgramAnnotation = function (data, token) { return __awaiter(void 0, vo
|
|
|
930
930
|
});
|
|
931
931
|
}); };
|
|
932
932
|
exports.saveProgramAnnotation = saveProgramAnnotation;
|
|
933
|
+
var sendProgramAnnotation = function (data, token) { return __awaiter(void 0, void 0, void 0, function () {
|
|
934
|
+
var res;
|
|
935
|
+
return __generator(this, function (_a) {
|
|
936
|
+
switch (_a.label) {
|
|
937
|
+
case 0: return [4 /*yield*/, fetch(exports.api() + "agsendpgannotation.rslvr", {
|
|
938
|
+
method: 'post',
|
|
939
|
+
headers: exports.headers(token),
|
|
940
|
+
body: JSON.stringify(data)
|
|
941
|
+
})];
|
|
942
|
+
case 1:
|
|
943
|
+
res = _a.sent();
|
|
944
|
+
return [4 /*yield*/, res.json()];
|
|
945
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
946
|
+
}
|
|
947
|
+
});
|
|
948
|
+
}); };
|
|
949
|
+
exports.sendProgramAnnotation = sendProgramAnnotation;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
14
|
if (k2 === undefined) k2 = k;
|
|
4
15
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
@@ -26,7 +37,7 @@ var clsx_1 = __importDefault(require("clsx"));
|
|
|
26
37
|
var react_1 = __importStar(require("react"));
|
|
27
38
|
require("./style.css");
|
|
28
39
|
var Zoom = function (_a) {
|
|
29
|
-
var id = _a.id, children = _a.children;
|
|
40
|
+
var id = _a.id, style = _a.style, children = _a.children;
|
|
30
41
|
var figureId = (id) ? id + "-zoom-figure" : 'zoom-figure';
|
|
31
42
|
var _b = react_1.useState(false), active = _b[0], setActive = _b[1];
|
|
32
43
|
var copyMediaUrl = react_1.useCallback(function () {
|
|
@@ -62,6 +73,6 @@ var Zoom = function (_a) {
|
|
|
62
73
|
setActive(state);
|
|
63
74
|
(state) && zoom(e, state);
|
|
64
75
|
};
|
|
65
|
-
return react_1.default.createElement("figure", { id: figureId, onMouseMove: zoom, onTouchMove: zoom, onClick: handleActive, className: clsx_1.default('zoom-figure', { 'zoom-figure-active': active }) }, children);
|
|
76
|
+
return react_1.default.createElement("figure", __assign({}, { style: style }, { id: figureId, onMouseMove: zoom, onTouchMove: zoom, onClick: handleActive, className: clsx_1.default('zoom-figure', { 'zoom-figure-active': active }) }), children);
|
|
66
77
|
};
|
|
67
78
|
exports.default = Zoom;
|
package/lib/api/index.js
CHANGED
|
@@ -487,4 +487,13 @@ export const saveProgramAnnotation = async (data, token) => {
|
|
|
487
487
|
body: JSON.stringify(data)
|
|
488
488
|
});
|
|
489
489
|
return await res.json();
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
export const sendProgramAnnotation = async (data, token) => {
|
|
493
|
+
const res = await fetch(`${api()}agsendpgannotation.rslvr`, {
|
|
494
|
+
method: 'post',
|
|
495
|
+
headers: headers(token),
|
|
496
|
+
body: JSON.stringify(data)
|
|
497
|
+
});
|
|
498
|
+
return await res.json();
|
|
490
499
|
};
|
|
@@ -3,7 +3,7 @@ import React, { useCallback, useEffect, useState } from 'react';
|
|
|
3
3
|
import './style.css';
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
const Zoom = ({ id, children }) => {
|
|
6
|
+
const Zoom = ({ id, style, children }) => {
|
|
7
7
|
|
|
8
8
|
const figureId = (id) ? `${id}-zoom-figure` : 'zoom-figure';
|
|
9
9
|
const [active, setActive] = useState(false);
|
|
@@ -42,6 +42,7 @@ const Zoom = ({ id, children }) => {
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
return <figure
|
|
45
|
+
{...{ style }}
|
|
45
46
|
id={figureId}
|
|
46
47
|
onMouseMove={zoom}
|
|
47
48
|
onTouchMove={zoom}
|