@prezly/sdk 23.5.0 → 23.6.0

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.
@@ -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 = "23.4.0";
7
+ const VERSION = "23.5.1";
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})`;
@@ -1,3 +1,3 @@
1
- const VERSION = "23.4.0";
1
+ const VERSION = "23.5.1";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -104,12 +104,12 @@ export interface UpdateRequest {
104
104
  * Available only when license has
105
105
  * "custom_privacy_policy_link" feature flag
106
106
  */
107
- custom_privacy_cookie_link?: string | null;
107
+ custom_cookie_policy_link?: string | null;
108
108
  /**
109
109
  * Available only when license has
110
110
  * "custom_privacy_policy_link" feature flag
111
111
  */
112
- custom_privacy_cookie_content?: string | null;
112
+ custom_cookie_policy_content?: string | null;
113
113
  /**
114
114
  * Available only when license has
115
115
  * "custom_data_request_link" feature flag
@@ -129,4 +129,5 @@ export interface UpdateRequest {
129
129
  category?: string;
130
130
  script?: string;
131
131
  };
132
+ tracking_policy?: Newsroom.TrackingPolicy | null;
132
133
  }
@@ -28,8 +28,9 @@ let NewsroomTheme = exports.NewsroomTheme = void 0;
28
28
  Feature["CTA_BUTTONS"] = "cta_buttons";
29
29
  Feature["VIDEO_LAYOUT"] = "video_layout";
30
30
  Feature["EMBED_LAYOUT"] = "embed_layout";
31
+ Feature["STRICT_TRACKING_POLICY"] = "strict_tracking_policy";
31
32
  return Feature;
32
- }({}); // DEV-11475
33
+ }({}); // DEV-19123
33
34
  _NewsroomTheme.Feature = Feature;
34
35
  function isFeatureSupported(theme, feature) {
35
36
  return theme.features.includes(feature);
@@ -33,7 +33,8 @@ export declare namespace NewsroomTheme {
33
33
  TITLE_FORMATTING = "title_formatting",
34
34
  CTA_BUTTONS = "cta_buttons",
35
35
  VIDEO_LAYOUT = "video_layout",// DEV-7588
36
- EMBED_LAYOUT = "embed_layout"
36
+ EMBED_LAYOUT = "embed_layout",// DEV-11475
37
+ STRICT_TRACKING_POLICY = "strict_tracking_policy"
37
38
  }
38
39
  function isFeatureSupported(theme: NewsroomTheme, feature: NewsroomTheme.Feature): boolean;
39
40
  }
@@ -22,8 +22,9 @@ export let NewsroomTheme;
22
22
  Feature["CTA_BUTTONS"] = "cta_buttons";
23
23
  Feature["VIDEO_LAYOUT"] = "video_layout";
24
24
  Feature["EMBED_LAYOUT"] = "embed_layout";
25
+ Feature["STRICT_TRACKING_POLICY"] = "strict_tracking_policy";
25
26
  return Feature;
26
- }({}); // DEV-11475
27
+ }({}); // DEV-19123
27
28
  _NewsroomTheme.Feature = Feature;
28
29
  function isFeatureSupported(theme, feature) {
29
30
  return theme.features.includes(feature);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "23.5.0",
3
+ "version": "23.6.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",