@lilaquadrat/interfaces 1.5.0 → 1.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.
- package/CHANGELOG.md +7 -0
- package/lib/cjs/Publish.d.ts +1 -0
- package/lib/cjs/PublishMethod.d.ts +3 -1
- package/lib/cjs/PublishMethodEmail.d.ts +4 -0
- package/lib/cjs/StudioIframeMessage.d.ts +4 -4
- package/lib/cjs/index.d.ts +1 -0
- package/lib/esm/Publish.d.ts +1 -0
- package/lib/esm/PublishMethod.d.ts +3 -1
- package/lib/esm/PublishMethodEmail.d.ts +4 -0
- package/lib/esm/PublishMethodEmail.js +2 -0
- package/lib/esm/PublishMethodEmail.js.map +1 -0
- package/lib/esm/StudioIframeMessage.d.ts +4 -4
- package/lib/esm/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/Publish.ts +2 -0
- package/src/PublishMethod.ts +5 -2
- package/src/PublishMethodEmail.ts +7 -0
- package/src/StudioIframeMessage.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.6.0](https://github.com/lilaquadrat/interfaces/compare/v1.5.0...v1.6.0) (2024-03-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **publish methods:** added support for publish methods ([2487872](https://github.com/lilaquadrat/interfaces/commit/248787278607722f9a7f0dbc35669c8707f5b029))
|
|
11
|
+
|
|
5
12
|
## [1.5.0](https://github.com/lilaquadrat/interfaces/compare/v1.4.0...v1.5.0) (2024-02-23)
|
|
6
13
|
|
|
7
14
|
|
package/lib/cjs/Publish.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import { ObjectId } from "mongodb";
|
|
1
2
|
import { Content } from "./Content";
|
|
2
3
|
import { PublishContentGroup } from "./PublishContentGroup";
|
|
3
4
|
export interface PublishMethod {
|
|
4
|
-
type: 'ftp' | 'webhook' | 'internal' | 'pdf';
|
|
5
|
+
type: 'ftp' | 'webhook' | 'internal' | 'pdf' | 'email';
|
|
5
6
|
active: boolean;
|
|
6
7
|
label: string;
|
|
7
8
|
availableForApps: string[];
|
|
8
9
|
availableForContentGroups: PublishContentGroup[];
|
|
10
|
+
contextData: ObjectId[];
|
|
9
11
|
affectedStates?: Content['state'][];
|
|
10
12
|
[key: string]: any;
|
|
11
13
|
}
|
|
@@ -5,9 +5,6 @@ export interface StudioIframeMessage {
|
|
|
5
5
|
data: {
|
|
6
6
|
type: 'studio-cookie-reset';
|
|
7
7
|
data: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
type: 'studio-editor-settings';
|
|
10
|
-
data: AppEditorConfiguration;
|
|
11
8
|
} | {
|
|
12
9
|
type: 'studio-active';
|
|
13
10
|
data: EditorActiveModule;
|
|
@@ -15,7 +12,10 @@ export interface StudioIframeMessage {
|
|
|
15
12
|
type: 'studio-content';
|
|
16
13
|
data: Content['modules'];
|
|
17
14
|
} | {
|
|
18
|
-
type: 'studio-settings';
|
|
15
|
+
type: 'studio-editor-settings';
|
|
19
16
|
data: Omit<Content, 'modules' | 'genericData' | 'childData'>;
|
|
17
|
+
} | {
|
|
18
|
+
type: 'studio-settings';
|
|
19
|
+
data: AppEditorConfiguration;
|
|
20
20
|
};
|
|
21
21
|
}
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -98,6 +98,7 @@ export * from './ProjectDomain';
|
|
|
98
98
|
export * from './Publish';
|
|
99
99
|
export * from './PublishContentGroup';
|
|
100
100
|
export * from './PublishMethod';
|
|
101
|
+
export * from './PublishMethodEmail';
|
|
101
102
|
export * from './PublishMethodFtp';
|
|
102
103
|
export * from './PublishMethodInternal';
|
|
103
104
|
export * from './PublishMethodPdf';
|
package/lib/esm/Publish.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import { ObjectId } from "mongodb";
|
|
1
2
|
import { Content } from "./Content";
|
|
2
3
|
import { PublishContentGroup } from "./PublishContentGroup";
|
|
3
4
|
export interface PublishMethod {
|
|
4
|
-
type: 'ftp' | 'webhook' | 'internal' | 'pdf';
|
|
5
|
+
type: 'ftp' | 'webhook' | 'internal' | 'pdf' | 'email';
|
|
5
6
|
active: boolean;
|
|
6
7
|
label: string;
|
|
7
8
|
availableForApps: string[];
|
|
8
9
|
availableForContentGroups: PublishContentGroup[];
|
|
10
|
+
contextData: ObjectId[];
|
|
9
11
|
affectedStates?: Content['state'][];
|
|
10
12
|
[key: string]: any;
|
|
11
13
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublishMethodEmail.js","sourceRoot":"","sources":["../../src/PublishMethodEmail.ts"],"names":[],"mappings":""}
|
|
@@ -5,9 +5,6 @@ export interface StudioIframeMessage {
|
|
|
5
5
|
data: {
|
|
6
6
|
type: 'studio-cookie-reset';
|
|
7
7
|
data: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
type: 'studio-editor-settings';
|
|
10
|
-
data: AppEditorConfiguration;
|
|
11
8
|
} | {
|
|
12
9
|
type: 'studio-active';
|
|
13
10
|
data: EditorActiveModule;
|
|
@@ -15,7 +12,10 @@ export interface StudioIframeMessage {
|
|
|
15
12
|
type: 'studio-content';
|
|
16
13
|
data: Content['modules'];
|
|
17
14
|
} | {
|
|
18
|
-
type: 'studio-settings';
|
|
15
|
+
type: 'studio-editor-settings';
|
|
19
16
|
data: Omit<Content, 'modules' | 'genericData' | 'childData'>;
|
|
17
|
+
} | {
|
|
18
|
+
type: 'studio-settings';
|
|
19
|
+
data: AppEditorConfiguration;
|
|
20
20
|
};
|
|
21
21
|
}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -98,6 +98,7 @@ export * from './ProjectDomain';
|
|
|
98
98
|
export * from './Publish';
|
|
99
99
|
export * from './PublishContentGroup';
|
|
100
100
|
export * from './PublishMethod';
|
|
101
|
+
export * from './PublishMethodEmail';
|
|
101
102
|
export * from './PublishMethodFtp';
|
|
102
103
|
export * from './PublishMethodInternal';
|
|
103
104
|
export * from './PublishMethodPdf';
|
package/package.json
CHANGED
package/src/Publish.ts
CHANGED
package/src/PublishMethod.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ObjectId } from "mongodb"
|
|
2
|
+
import { Content } from "./Content"
|
|
2
3
|
import { PublishContentGroup } from "./PublishContentGroup"
|
|
3
4
|
|
|
4
5
|
export interface PublishMethod {
|
|
5
6
|
|
|
6
|
-
type: 'ftp' | 'webhook' | 'internal' | 'pdf'
|
|
7
|
+
type: 'ftp' | 'webhook' | 'internal' | 'pdf' | 'email'
|
|
7
8
|
|
|
8
9
|
active: boolean
|
|
9
10
|
|
|
@@ -13,6 +14,8 @@ export interface PublishMethod {
|
|
|
13
14
|
|
|
14
15
|
availableForContentGroups: PublishContentGroup[]
|
|
15
16
|
|
|
17
|
+
contextData: ObjectId[]
|
|
18
|
+
|
|
16
19
|
affectedStates?: Content['state'][]
|
|
17
20
|
|
|
18
21
|
[key: string]: any
|
|
@@ -5,9 +5,9 @@ import { EditorActiveModule } from "./EditorActiveModule"
|
|
|
5
5
|
export interface StudioIframeMessage {
|
|
6
6
|
data:
|
|
7
7
|
{ type: 'studio-cookie-reset', data: undefined }
|
|
8
|
-
| { type: 'studio-editor-settings', data: AppEditorConfiguration }
|
|
9
8
|
| { type: 'studio-active', data: EditorActiveModule }
|
|
10
9
|
| { type: 'studio-content', data: Content['modules'] }
|
|
11
|
-
| { type: 'studio-settings', data: Omit<Content, 'modules' | 'genericData' | 'childData'> }
|
|
10
|
+
| { type: 'studio-editor-settings', data: Omit<Content, 'modules' | 'genericData' | 'childData'> }
|
|
11
|
+
| { type: 'studio-settings', data: AppEditorConfiguration }
|
|
12
12
|
|
|
13
13
|
}
|