releasebird-javascript-sdk 1.0.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/.babelrc +3 -0
- package/.idea/aws.xml +17 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/releasebird-javascript-sdk.iml +12 -0
- package/.idea/vcs.xml +6 -0
- package/LICENSE +7 -0
- package/README.md +51 -0
- package/build/index.js +1 -0
- package/dist/RbirdWebsiteWidget.js +61 -0
- package/dist/index.js +47 -0
- package/image.webp +0 -0
- package/index.d.ts +5 -0
- package/package.json +50 -0
- package/published/1.0.0/index.js +1 -0
- package/published/1.0.1/index.js +1 -0
- package/published/1.0.2/index.js +1 -0
- package/published/latest/index.js +1 -0
- package/src/RbirdScreenshotManager.js +80 -0
- package/src/RbirdSessionManager.js +138 -0
- package/src/RbirdUtils.js +25 -0
- package/src/RbirdVideoRecorder.js +266 -0
- package/src/RbirdWebsiteWidget.js +300 -0
- package/src/ReleasebirdImageViewer.js +24 -0
- package/src/SVGEditor.js +518 -0
- package/src/Styles.js +453 -0
- package/src/index.js +87 -0
- package/webpack.config.js +86 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
9
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
10
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
11
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
|
+
var RbirdWebsiteWidget = exports["default"] = /*#__PURE__*/function () {
|
|
15
|
+
function RbirdWebsiteWidget() {
|
|
16
|
+
_classCallCheck(this, RbirdWebsiteWidget);
|
|
17
|
+
_defineProperty(this, "websiteWidget", void 0);
|
|
18
|
+
_defineProperty(this, "websiteWidgetVisible", false);
|
|
19
|
+
}
|
|
20
|
+
return _createClass(RbirdWebsiteWidget, [{
|
|
21
|
+
key: "showWebsiteWidget",
|
|
22
|
+
value: function showWebsiteWidget() {
|
|
23
|
+
var _this = this;
|
|
24
|
+
if (this.websiteWidgetVisible) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
this.websiteWidgetVisible = true;
|
|
28
|
+
var elem = document.createElement("div");
|
|
29
|
+
elem.onclick = function () {
|
|
30
|
+
_this.feedbackButtonPressed();
|
|
31
|
+
};
|
|
32
|
+
document.body.appendChild(elem);
|
|
33
|
+
this.websiteWidget = elem;
|
|
34
|
+
this.styleWidget();
|
|
35
|
+
}
|
|
36
|
+
}, {
|
|
37
|
+
key: "styleWidget",
|
|
38
|
+
value: function styleWidget() {
|
|
39
|
+
this.websiteWidget.style.backgroundColor = "red";
|
|
40
|
+
this.websiteWidget.style.width = "50px";
|
|
41
|
+
this.websiteWidget.style.height = "50px";
|
|
42
|
+
this.websiteWidget.style.position = "fixed";
|
|
43
|
+
this.websiteWidget.style.bottom = "20px";
|
|
44
|
+
this.websiteWidget.style.right = "20px";
|
|
45
|
+
}
|
|
46
|
+
}, {
|
|
47
|
+
key: "pressWebsiteWidget",
|
|
48
|
+
value: function pressWebsiteWidget() {
|
|
49
|
+
console.log('press button');
|
|
50
|
+
}
|
|
51
|
+
}], [{
|
|
52
|
+
key: "getInstance",
|
|
53
|
+
value: function getInstance() {
|
|
54
|
+
if (!this.instance) {
|
|
55
|
+
this.instance = new GleapFeedbackButtonManager();
|
|
56
|
+
}
|
|
57
|
+
return this.instance;
|
|
58
|
+
}
|
|
59
|
+
}]);
|
|
60
|
+
}();
|
|
61
|
+
_defineProperty(RbirdWebsiteWidget, "instance", void 0);
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _RbirdWebsiteWidget = _interopRequireDefault(require("./RbirdWebsiteWidget"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
|
+
var Rbird = /*#__PURE__*/function () {
|
|
17
|
+
function Rbird() {
|
|
18
|
+
_classCallCheck(this, Rbird);
|
|
19
|
+
if (typeof window !== "undefined") {
|
|
20
|
+
// init
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return _createClass(Rbird, null, [{
|
|
24
|
+
key: "getInstance",
|
|
25
|
+
value: function getInstance() {
|
|
26
|
+
if (!this.instance) {
|
|
27
|
+
this.instance = new Rbird();
|
|
28
|
+
return this.instance;
|
|
29
|
+
} else {
|
|
30
|
+
return this.instance;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}, {
|
|
34
|
+
key: "initialize",
|
|
35
|
+
value: function initialize(pageKey) {
|
|
36
|
+
var instance = this.getInstance();
|
|
37
|
+
if (instance.initialized) {
|
|
38
|
+
console.warn("Rbird already initialized.");
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
_RbirdWebsiteWidget["default"].instance.showWebsiteWidget();
|
|
42
|
+
instance.initialized = true;
|
|
43
|
+
}
|
|
44
|
+
}]);
|
|
45
|
+
}();
|
|
46
|
+
_defineProperty(Rbird, "instance", void 0);
|
|
47
|
+
var _default = exports["default"] = Rbird;
|
package/image.webp
ADDED
|
Binary file
|
package/index.d.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "releasebird-javascript-sdk",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "javasscript sdk for releasebird",
|
|
5
|
+
"main": "build/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "webpack",
|
|
8
|
+
"prepublishOnly": "npm run build"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/bxt-team/releasebird-javascript-sdk.git"
|
|
13
|
+
},
|
|
14
|
+
"author": "buildnext GmbH",
|
|
15
|
+
"license": "Commercial",
|
|
16
|
+
"licenseFilename": "LICENSE",
|
|
17
|
+
"types": "index.d.ts",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/bxt-team/releasebird-javascript-sdk/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/bxt-team/releasebird-javascript-sdk#readme",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"html2canvas": "^1.4.1"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@babel/cli": "^7.24.7",
|
|
27
|
+
"@babel/core": "^7.24.7",
|
|
28
|
+
"@babel/preset-env": "^7.24.7",
|
|
29
|
+
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
|
30
|
+
"@babel/plugin-transform-runtime": "^7.17.10",
|
|
31
|
+
"@babel/polyfill": "^7.12.1",
|
|
32
|
+
"@node-minify/clean-css": "^6.2.0",
|
|
33
|
+
"@node-minify/core": "^6.2.0",
|
|
34
|
+
"@node-minify/csso": "^6.2.0",
|
|
35
|
+
"babel-eslint": "^10.1.0",
|
|
36
|
+
"babel-loader": "^8.2.2",
|
|
37
|
+
"babel-preset-minify": "^0.5.0",
|
|
38
|
+
"css-loader": "^5.2.4",
|
|
39
|
+
"eslint": "^7.25.0",
|
|
40
|
+
"file-loader": "^6.2.0",
|
|
41
|
+
"jest": "^26.6.3",
|
|
42
|
+
"style-loader": "^2.0.0",
|
|
43
|
+
"terser-webpack-plugin": "^5.1.1",
|
|
44
|
+
"uglify-js": "^3.13.4",
|
|
45
|
+
"url-loader": "^4.1.1",
|
|
46
|
+
"webpack": "^5.35.1",
|
|
47
|
+
"webpack-cli": "^4.6.0",
|
|
48
|
+
"webpack-dev-server": "4.0.0-beta.2"
|
|
49
|
+
}
|
|
50
|
+
}
|