@screeb/sdk-vue 0.1.1 → 0.2.1

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/README.md CHANGED
@@ -28,6 +28,35 @@ createApp(App)
28
28
  .mount('#app')
29
29
  ```
30
30
 
31
+ ## Custom domains (AdBlocker bypass)
32
+
33
+ If you route Screeb traffic through your own domain (reverse proxy) to bypass AdBlockers, pass the
34
+ `endpoints` (and optionally `screebEndpoint` for the loader URL) through the plugin's `options`.
35
+ Only the endpoints you provide are overridden; the rest fall back to Screeb's defaults.
36
+
37
+ ```ts
38
+ createApp(App)
39
+ .use(ScreebPlugin, {
40
+ websiteId: '<YOUR-CHANNEL-ID>',
41
+ autoInit: true,
42
+ options: {
43
+ screebEndpoint: 'https://analytics.acme.com/sdk/tag.js',
44
+ endpoints: {
45
+ rpc: 'https://analytics.acme.com/rpc',
46
+ static: 'https://analytics.acme.com/static',
47
+ report: 'https://analytics.acme.com/report',
48
+ hostedPage: 'https://analytics.acme.com/hosted-page',
49
+ centipede: 'wss://analytics.acme.com/centipede',
50
+ },
51
+ },
52
+ })
53
+ .mount('#app')
54
+ ```
55
+
56
+ All endpoints must use `https://` (or `wss://` for `centipede`) and the domains must be allow-listed
57
+ in **Screeb Admin → Settings → Custom Domains**. See the
58
+ [Custom Collector URL guide](https://developers.screeb.app/sdk-js/custom-collector-url).
59
+
31
60
  ## Use in components
32
61
 
33
62
  ```vue
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var vue = require('vue');
4
3
  var Screeb = require('@screeb/sdk-browser');
4
+ var vue = require('vue');
5
5
 
6
6
  function _interopNamespaceDefault(e) {
7
7
  var n = Object.create(null);
@@ -36,7 +36,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
36
36
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
37
37
  PERFORMANCE OF THIS SOFTWARE.
38
38
  ***************************************************************************** */
39
- /* global Reflect, Promise, SuppressedError, Symbol */
39
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
40
40
 
41
41
 
42
42
  var __assign = function() {
@@ -61,8 +61,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
61
61
  }
62
62
 
63
63
  function __generator(thisArg, body) {
64
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
65
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
64
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
65
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
66
66
  function verb(n) { return function (v) { return step([n, v]); }; }
67
67
  function step(op) {
68
68
  if (f) throw new TypeError("Generator is already executing.");
@@ -396,4 +396,4 @@ function useScreeb() {
396
396
  exports.SCREEB_PLUGIN_KEY = SCREEB_PLUGIN_KEY;
397
397
  exports.ScreebPlugin = ScreebPlugin;
398
398
  exports.useScreeb = useScreeb;
399
- CONSTANTS.version = '0.1.1'
399
+ CONSTANTS.version = '0.2.1'
package/dist/es/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { reactive, watch, inject } from 'vue';
2
1
  import * as Screeb from '@screeb/sdk-browser';
2
+ import { reactive, watch, inject } from 'vue';
3
3
 
4
4
  /******************************************************************************
5
5
  Copyright (c) Microsoft Corporation.
@@ -15,7 +15,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15
15
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16
16
  PERFORMANCE OF THIS SOFTWARE.
17
17
  ***************************************************************************** */
18
- /* global Reflect, Promise, SuppressedError, Symbol */
18
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
19
19
 
20
20
 
21
21
  var __assign = function() {
@@ -40,8 +40,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
40
40
  }
41
41
 
42
42
  function __generator(thisArg, body) {
43
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
44
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
43
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
44
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
45
45
  function verb(n) { return function (v) { return step([n, v]); }; }
46
46
  function step(op) {
47
47
  if (f) throw new TypeError("Generator is already executing.");
@@ -373,4 +373,4 @@ function useScreeb() {
373
373
  }
374
374
 
375
375
  export { SCREEB_PLUGIN_KEY, ScreebPlugin, useScreeb };
376
- CONSTANTS.version = '0.1.1'
376
+ CONSTANTS.version = '0.2.1'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@screeb/sdk-vue",
3
- "version": "0.1.1",
3
+ "version": "0.2.1",
4
4
  "description": "Screeb's browser SDK, optimized for Vue 3.",
5
5
  "keywords": [
6
6
  "product discovery",
@@ -13,12 +13,12 @@
13
13
  ],
14
14
  "homepage": "https://screeb.app",
15
15
  "bugs": {
16
- "url": "https://github.com/ScreebApp/sdk-js/issues",
16
+ "url": "https://github.com/ScreebApp/sdk/issues",
17
17
  "email": "support@screeb.app"
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
21
- "url": "https://github.com/ScreebApp/sdk-js.git",
21
+ "url": "https://github.com/ScreebApp/sdk.git",
22
22
  "directory": "packages/sdk-vue"
23
23
  },
24
24
  "license": "MIT",
@@ -41,11 +41,11 @@
41
41
  "test": "echo '@TODO'"
42
42
  },
43
43
  "dependencies": {
44
- "@screeb/sdk-browser": "^0.5.0"
44
+ "@screeb/sdk-browser": "^0.6.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@screeb/eslint-config": "^0.1.6",
48
- "@screeb/typescript-config": "^0.1.10",
47
+ "@screeb/eslint-config": "^0.1.7",
48
+ "@screeb/typescript-config": "^0.1.12",
49
49
  "@typescript-eslint/eslint-plugin": "^6.7.5",
50
50
  "eslint": "^8.51.0",
51
51
  "eslint-plugin-import": "^2.28.1",
@@ -54,7 +54,7 @@
54
54
  "typedoc": "^0.25.2",
55
55
  "typedoc-plugin-markdown": "^3.16.0",
56
56
  "typescript": "^5.2.2",
57
- "vue": ">=3.0.0"
57
+ "vue": ">=3.0.11"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "vue": ">=3.0.0"