This repository was archived by the owner on Sep 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +17
-17
lines changed Expand file tree Collapse file tree 7 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 26
26
"prepack" : " cp ../../README.md ./" ,
27
27
"postpack" : " rm ./README.md" ,
28
28
"serve" : " webpack serve --config-name configMain" ,
29
- "test" : " cross-env NODE_ENV=test jest" ,
29
+ "test" : " cross-env NODE_ENV=test yarn run-s clean test:unit" ,
30
+ "test:unit" : " jest" ,
30
31
"test:integration" : " cross-env NODE_ENV=test jest -c jest.config.integration.js" ,
31
32
"test:ci" : " cross-env NODE_ENV=test jest --maxWorkers=2 --coverage" ,
32
33
"test:integration:ci" : " cross-env NODE_ENV=test jest -c jest.config.integration.js --maxWorkers=2" ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import get from 'lodash/get';
4
4
import { dirname } from 'path' ;
5
5
import { parse } from 'what-the-diff' ;
6
6
7
- import { PreviewState } from '@staticcms/core' ;
7
+ import { PreviewState } from '@staticcms/core/constants/enums ' ;
8
8
import {
9
9
APIError ,
10
10
basename ,
@@ -31,8 +31,8 @@ import {
31
31
statusToLabel ,
32
32
} from '@staticcms/core/lib/util/APIUtils' ;
33
33
34
- import type { WorkflowStatus } from '@staticcms/core/constants/publishModes' ;
35
34
import type { DataFile , PersistOptions , UnpublishedEntry } from '@staticcms/core' ;
35
+ import type { WorkflowStatus } from '@staticcms/core/constants/publishModes' ;
36
36
import type { ApiRequest , FetchError } from '@staticcms/core/lib/util' ;
37
37
import type AssetProxy from '@staticcms/core/valueObjects/AssetProxy' ;
38
38
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import intersection from 'lodash/intersection';
5
5
import pick from 'lodash/pick' ;
6
6
import React , { useCallback } from 'react' ;
7
7
8
+ import { PreviewState } from '@staticcms/core/constants/enums' ;
8
9
import { WorkflowStatus } from '@staticcms/core/constants/publishModes' ;
9
- import { PreviewState } from '@staticcms/core' ;
10
10
import {
11
11
AccessTokenError ,
12
12
APIError ,
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import trim from 'lodash/trim';
7
7
import trimStart from 'lodash/trimStart' ;
8
8
import { dirname } from 'path' ;
9
9
10
+ import { PreviewState } from '@staticcms/core/constants/enums' ;
10
11
import { WorkflowStatus } from '@staticcms/core/constants/publishModes' ;
11
- import { PreviewState } from '@staticcms/core' ;
12
12
import {
13
13
APIError ,
14
14
EditorialWorkflowError ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import result from 'lodash/result';
4
4
import trimStart from 'lodash/trimStart' ;
5
5
import { dirname } from 'path' ;
6
6
7
- import { PreviewState } from '@staticcms/core' ;
7
+ import { PreviewState } from '@staticcms/core/constants/enums ' ;
8
8
import {
9
9
APIError ,
10
10
Cursor ,
@@ -30,8 +30,8 @@ import {
30
30
statusToLabel ,
31
31
} from '@staticcms/core/lib/util/APIUtils' ;
32
32
33
- import type { WorkflowStatus } from '@staticcms/core/constants/publishModes' ;
34
33
import type { DataFile , PersistOptions , UnpublishedEntry } from '@staticcms/core' ;
34
+ import type { WorkflowStatus } from '@staticcms/core/constants/publishModes' ;
35
35
import type { ApiRequest , FetchError } from '@staticcms/core/lib/util' ;
36
36
import type AssetProxy from '@staticcms/core/valueObjects/AssetProxy' ;
37
37
Original file line number Diff line number Diff line change
1
+ export enum PreviewState {
2
+ Other = 'other' ,
3
+ Success = 'success' ,
4
+ }
5
+
6
+ export enum CollectionType {
7
+ FOLDER ,
8
+ FILES ,
9
+ }
Original file line number Diff line number Diff line change @@ -1350,11 +1350,6 @@ export interface ShortcodeConfig<P = {}> {
1350
1350
preview : ComponentType < ShortcodePreviewProps > ;
1351
1351
}
1352
1352
1353
- export enum CollectionType {
1354
- FOLDER ,
1355
- FILES ,
1356
- }
1357
-
1358
1353
export type DeepPartial < T > = T extends object
1359
1354
? {
1360
1355
[ P in keyof T ] ?: DeepPartial < T [ P ] > ;
@@ -1441,8 +1436,3 @@ export interface UnpublishedEntryMediaFile {
1441
1436
id : string ;
1442
1437
path : string ;
1443
1438
}
1444
-
1445
- export enum PreviewState {
1446
- Other = 'other' ,
1447
- Success = 'success' ,
1448
- }
You can’t perform that action at this time.
0 commit comments