@prezly/theme-kit-core 5.0.0-alpha.1 → 5.0.0-alpha.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.
@@ -3,4 +3,4 @@ export type EmbargoStory = Omit<Story, 'is_embargo' | 'published_at'> & {
3
3
  is_embargo: true;
4
4
  published_at: string;
5
5
  };
6
- export declare function isEmbargoStory(story: Pick<Story, 'lifecycle_status'>): story is EmbargoStory;
6
+ export declare function isEmbargoStory(story: Pick<Story, 'status'>): story is EmbargoStory;
@@ -4,7 +4,7 @@ exports.isEmbargoStory = void 0;
4
4
  const sdk_1 = require("@prezly/sdk");
5
5
  function isEmbargoStory(story) {
6
6
  // TODO: This leaks `@prezly/sdk` into client bundle
7
- return sdk_1.Story.isScheduledEmbargo(story);
7
+ return sdk_1.Story.isScheduledEmbargo(story.status);
8
8
  }
9
9
  exports.isEmbargoStory = isEmbargoStory;
10
10
  //# sourceMappingURL=isEmbargoStory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isEmbargoStory.js","sourceRoot":"","sources":["../../src/utils/isEmbargoStory.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAOpC,SAAgB,cAAc,CAAC,KAAsC;IACjE,oDAAoD;IACpD,OAAO,WAAK,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;AAC3C,CAAC;AAHD,wCAGC"}
1
+ {"version":3,"file":"isEmbargoStory.js","sourceRoot":"","sources":["../../src/utils/isEmbargoStory.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAOpC,SAAgB,cAAc,CAAC,KAA4B;IACvD,oDAAoD;IACpD,OAAO,WAAK,CAAC,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC;AAHD,wCAGC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/theme-kit-core",
3
- "version": "5.0.0-alpha.1",
3
+ "version": "5.0.0-alpha.2",
4
4
  "description": "Data layer and utility library for developing Prezly themes with JavaScript",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "test": "jest"
18
18
  },
19
19
  "peerDependencies": {
20
- "@prezly/sdk": ">=11.11.0"
20
+ "@prezly/sdk": ">=12 <16"
21
21
  },
22
22
  "dependencies": {
23
23
  "@prezly/uploadcare": "^2.3.4",
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "bb0dab100382d5c9bcd487445489f51ecb21805f"
54
+ "gitHead": "6898d9be0d1bd41202feff042ac74f5b4e41b7dc"
55
55
  }