@prezly/sdk 24.1.0 → 24.1.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/dist/api/constants.cjs +1 -1
- package/dist/api/constants.js +1 -1
- package/dist/endpoints/CoverageIntegrations/types.cjs +1 -2
- package/dist/endpoints/CoverageIntegrations/types.js +1 -2
- package/dist/endpoints/index.cjs +1 -2
- package/dist/types/Newsroom.cjs +8 -0
- package/dist/types/Newsroom.d.ts +1 -0
- package/dist/types/Newsroom.js +8 -0
- package/dist/types/NewsroomTheme.cjs +4 -2
- package/dist/types/NewsroomTheme.js +4 -2
- package/package.json +1 -1
package/dist/api/constants.cjs
CHANGED
|
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DEFAULT_USER_AGENT = void 0;
|
|
7
|
-
const VERSION = "24.
|
|
7
|
+
const VERSION = "24.1.0";
|
|
8
8
|
const URL = 'https://github.com/prezly/javascript-sdk';
|
|
9
9
|
const DEFAULT_USER_AGENT = exports.DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
|
package/dist/api/constants.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import { CoverageEntry } from "../../types/index.js";
|
|
2
|
-
var Provider = CoverageEntry.Provider;
|
|
1
|
+
import { CoverageEntry } from "../../types/index.js";
|
package/dist/endpoints/index.cjs
CHANGED
|
@@ -62,5 +62,4 @@ var _Subscriptions = _interopRequireWildcard(require("./Subscriptions/index.cjs"
|
|
|
62
62
|
exports.Subscriptions = _Subscriptions;
|
|
63
63
|
var _NotificationSubscriptions = _interopRequireWildcard(require("./NotificationSubscriptions/index.cjs"));
|
|
64
64
|
exports.NotificationSubscriptions = _NotificationSubscriptions;
|
|
65
|
-
function
|
|
66
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
65
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
package/dist/types/Newsroom.cjs
CHANGED
|
@@ -8,7 +8,9 @@ let Newsroom = exports.Newsroom = void 0;
|
|
|
8
8
|
(function (_Newsroom) {
|
|
9
9
|
let Status = /*#__PURE__*/function (Status) {
|
|
10
10
|
Status["ACTIVE"] = "active";
|
|
11
|
+
// i.e. "Live"
|
|
11
12
|
Status["INACTIVE"] = "inactive";
|
|
13
|
+
// i.e. "Not live"
|
|
12
14
|
Status["ARCHIVED"] = "archived";
|
|
13
15
|
return Status;
|
|
14
16
|
}({});
|
|
@@ -20,8 +22,14 @@ let Newsroom = exports.Newsroom = void 0;
|
|
|
20
22
|
}({});
|
|
21
23
|
_Newsroom.EmailBrandingMode = EmailBrandingMode;
|
|
22
24
|
let TrackingPolicy = /*#__PURE__*/function (TrackingPolicy) {
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Please use `NORMAL` instead.
|
|
27
|
+
*/
|
|
23
28
|
TrackingPolicy["DEFAULT"] = "default";
|
|
24
29
|
TrackingPolicy["DISABLED"] = "disabled";
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Please use `STRICT` instead.
|
|
32
|
+
*/
|
|
25
33
|
TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
|
|
26
34
|
TrackingPolicy["STRICT"] = "strict";
|
|
27
35
|
TrackingPolicy["NORMAL"] = "normal";
|
package/dist/types/Newsroom.d.ts
CHANGED
package/dist/types/Newsroom.js
CHANGED
|
@@ -2,7 +2,9 @@ export let Newsroom;
|
|
|
2
2
|
(function (_Newsroom) {
|
|
3
3
|
let Status = /*#__PURE__*/function (Status) {
|
|
4
4
|
Status["ACTIVE"] = "active";
|
|
5
|
+
// i.e. "Live"
|
|
5
6
|
Status["INACTIVE"] = "inactive";
|
|
7
|
+
// i.e. "Not live"
|
|
6
8
|
Status["ARCHIVED"] = "archived";
|
|
7
9
|
return Status;
|
|
8
10
|
}({});
|
|
@@ -14,8 +16,14 @@ export let Newsroom;
|
|
|
14
16
|
}({});
|
|
15
17
|
_Newsroom.EmailBrandingMode = EmailBrandingMode;
|
|
16
18
|
let TrackingPolicy = /*#__PURE__*/function (TrackingPolicy) {
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Please use `NORMAL` instead.
|
|
21
|
+
*/
|
|
17
22
|
TrackingPolicy["DEFAULT"] = "default";
|
|
18
23
|
TrackingPolicy["DISABLED"] = "disabled";
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Please use `STRICT` instead.
|
|
26
|
+
*/
|
|
19
27
|
TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
|
|
20
28
|
TrackingPolicy["STRICT"] = "strict";
|
|
21
29
|
TrackingPolicy["NORMAL"] = "normal";
|
|
@@ -27,10 +27,12 @@ let NewsroomTheme = exports.NewsroomTheme = void 0;
|
|
|
27
27
|
Feature["TITLE_FORMATTING"] = "title_formatting";
|
|
28
28
|
Feature["CTA_BUTTONS"] = "cta_buttons";
|
|
29
29
|
Feature["VIDEO_LAYOUT"] = "video_layout";
|
|
30
|
+
// DEV-7588
|
|
30
31
|
Feature["EMBED_LAYOUT"] = "embed_layout";
|
|
31
|
-
|
|
32
|
+
// DEV-11475
|
|
33
|
+
Feature["STRICT_TRACKING_POLICY"] = "strict_tracking_policy"; // DEV-19123
|
|
32
34
|
return Feature;
|
|
33
|
-
}({});
|
|
35
|
+
}({});
|
|
34
36
|
_NewsroomTheme.Feature = Feature;
|
|
35
37
|
function isFeatureSupported(theme, feature) {
|
|
36
38
|
return theme.features.includes(feature);
|
|
@@ -21,10 +21,12 @@ export let NewsroomTheme;
|
|
|
21
21
|
Feature["TITLE_FORMATTING"] = "title_formatting";
|
|
22
22
|
Feature["CTA_BUTTONS"] = "cta_buttons";
|
|
23
23
|
Feature["VIDEO_LAYOUT"] = "video_layout";
|
|
24
|
+
// DEV-7588
|
|
24
25
|
Feature["EMBED_LAYOUT"] = "embed_layout";
|
|
25
|
-
|
|
26
|
+
// DEV-11475
|
|
27
|
+
Feature["STRICT_TRACKING_POLICY"] = "strict_tracking_policy"; // DEV-19123
|
|
26
28
|
return Feature;
|
|
27
|
-
}({});
|
|
29
|
+
}({});
|
|
28
30
|
_NewsroomTheme.Feature = Feature;
|
|
29
31
|
function isFeatureSupported(theme, feature) {
|
|
30
32
|
return theme.features.includes(feature);
|