@prezly/sdk 11.6.0 → 11.7.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.
@@ -1,3 +1,3 @@
1
- const VERSION = "11.5.0";
1
+ const VERSION = "11.6.0";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -28,8 +28,10 @@ export declare namespace NewsroomTheme {
28
28
  OPTIONAL_PRIVACY_PORTAL = "optional_privacy_portal",
29
29
  CUSTOM_CSS_JAVASCRIPT = "custom_css_javascript",
30
30
  HOMEPAGE_CONTACTS = "homepage_contacts",
31
- SUBSCRIBE_FORM = "subscribe_form"
31
+ SUBSCRIBE_FORM = "subscribe_form",
32
+ STORY_PINNING = "story_pinning"
32
33
  }
34
+ function isFeatureSupported(theme: NewsroomTheme, feature: NewsroomTheme.Feature): boolean;
33
35
  }
34
36
  export interface NewsroomThemePreset {
35
37
  theme: NewsroomTheme;
@@ -18,8 +18,13 @@ export let NewsroomTheme;
18
18
  Feature["CUSTOM_CSS_JAVASCRIPT"] = "custom_css_javascript";
19
19
  Feature["HOMEPAGE_CONTACTS"] = "homepage_contacts";
20
20
  Feature["SUBSCRIBE_FORM"] = "subscribe_form";
21
+ Feature["STORY_PINNING"] = "story_pinning";
21
22
  })(Feature || (Feature = {}));
22
23
  _NewsroomTheme.Feature = Feature;
24
+ function isFeatureSupported(theme, feature) {
25
+ return theme.features.includes(feature);
26
+ }
27
+ _NewsroomTheme.isFeatureSupported = isFeatureSupported;
23
28
  })(NewsroomTheme || (NewsroomTheme = {}));
24
29
  export let NewsroomThemePreset;
25
30
  (function (_NewsroomThemePreset) {})(NewsroomThemePreset || (NewsroomThemePreset = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "11.6.0",
3
+ "version": "11.7.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",