@lilaquadrat/interfaces 1.3.1 → 1.4.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 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.4.0](https://github.com/lilaquadrat/interfaces/compare/v1.3.1...v1.4.0) (2024-02-21)
6
+
7
+
8
+ ### Features
9
+
10
+ * **mepermissions & content:** added target to content and added me permissions ([bb6141f](https://github.com/lilaquadrat/interfaces/commit/bb6141f3425f370a0de0baf669ce1ae97d90a721))
11
+
5
12
  ### [1.3.1](https://github.com/lilaquadrat/interfaces/compare/v1.3.0...v1.3.1) (2024-02-17)
6
13
 
7
14
 
@@ -0,0 +1,10 @@
1
+ import { AppEditorTitleDescription } from "./AppEditorTitleDescription";
2
+ export interface AppEditorConfiguration {
3
+ editorUrl: string;
4
+ breakpointTablet: string;
5
+ breakpointDesktop: string;
6
+ breakpointWide: string;
7
+ preloadImages: boolean;
8
+ title: AppEditorTitleDescription;
9
+ description: AppEditorTitleDescription;
10
+ }
@@ -0,0 +1,4 @@
1
+ export interface AppEditorTitleDescription {
2
+ full: string;
3
+ short: string;
4
+ }
@@ -13,6 +13,7 @@ export interface Content {
13
13
  layout?: boolean;
14
14
  state: 'draft' | 'publish';
15
15
  language?: string;
16
+ target?: 'browser' | 'mail';
16
17
  settings: {
17
18
  url?: string;
18
19
  useLayout?: ObjectId;
@@ -0,0 +1,8 @@
1
+ import { MePermissionsProject } from "./MePermissionsProject";
2
+ import { ScopeObject } from "./Scope";
3
+ export interface MePermissions {
4
+ _id: string;
5
+ name: string;
6
+ scope: ScopeObject;
7
+ projects: MePermissionsProject[];
8
+ }
@@ -0,0 +1,8 @@
1
+ import { ScopeObject } from "./Scope";
2
+ export interface MePermissionsProject {
3
+ scope: ScopeObject;
4
+ company: string;
5
+ project: string;
6
+ name: string;
7
+ id: string;
8
+ }
@@ -1,6 +1,21 @@
1
- export interface StudioIframeMessage<T> {
1
+ import { AppEditorConfiguration } from "./AppEditorConfiguration";
2
+ import { Content } from "./Content";
3
+ import { EditorActiveModule } from "./EditorActiveModule";
4
+ export interface StudioIframeMessage {
2
5
  data: {
3
- type: 'studio-content' | 'studio-editor-settings' | 'studio-settings' | 'studio-active' | 'studio-cookie-reset';
4
- data: T;
6
+ type: 'studio-cookie-reset';
7
+ data: undefined;
8
+ } | {
9
+ type: 'studio-editor-settings';
10
+ data: AppEditorConfiguration;
11
+ } | {
12
+ type: 'studio-active';
13
+ data: EditorActiveModule;
14
+ } | {
15
+ type: 'studio-content';
16
+ data: Content['modules'];
17
+ } | {
18
+ type: 'studio-settings';
19
+ data: Omit<Content, 'modules' | 'genericData' | 'childData'>;
5
20
  };
6
21
  }
@@ -6,6 +6,8 @@ export * from './Agreement';
6
6
  export * from './AgreementResponse';
7
7
  export * from './ApiResponses';
8
8
  export * from './App';
9
+ export * from './AppEditorConfiguration';
10
+ export * from './AppEditorTitleDescription';
9
11
  export * from './AppFilter';
10
12
  export * from './AppPermissions';
11
13
  export * from './Auth0ProjectSettings';
@@ -72,6 +74,8 @@ export * from './ListParticipants';
72
74
  export * from './ListParticipantsDetails';
73
75
  export * from './Location';
74
76
  export * from './Me';
77
+ export * from './MePermissions';
78
+ export * from './MePermissionsProject';
75
79
  export * from './Media';
76
80
  export * from './MediaContentFiles';
77
81
  export * from './MediaInfo';
@@ -0,0 +1,10 @@
1
+ import { AppEditorTitleDescription } from "./AppEditorTitleDescription";
2
+ export interface AppEditorConfiguration {
3
+ editorUrl: string;
4
+ breakpointTablet: string;
5
+ breakpointDesktop: string;
6
+ breakpointWide: string;
7
+ preloadImages: boolean;
8
+ title: AppEditorTitleDescription;
9
+ description: AppEditorTitleDescription;
10
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AppEditorConfiguration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppEditorConfiguration.js","sourceRoot":"","sources":["../../src/AppEditorConfiguration.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface AppEditorTitleDescription {
2
+ full: string;
3
+ short: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AppEditorTitleDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppEditorTitleDescription.js","sourceRoot":"","sources":["../../src/AppEditorTitleDescription.ts"],"names":[],"mappings":""}
@@ -13,6 +13,7 @@ export interface Content {
13
13
  layout?: boolean;
14
14
  state: 'draft' | 'publish';
15
15
  language?: string;
16
+ target?: 'browser' | 'mail';
16
17
  settings: {
17
18
  url?: string;
18
19
  useLayout?: ObjectId;
@@ -0,0 +1,8 @@
1
+ import { MePermissionsProject } from "./MePermissionsProject";
2
+ import { ScopeObject } from "./Scope";
3
+ export interface MePermissions {
4
+ _id: string;
5
+ name: string;
6
+ scope: ScopeObject;
7
+ projects: MePermissionsProject[];
8
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MePermissions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MePermissions.js","sourceRoot":"","sources":["../../src/MePermissions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { ScopeObject } from "./Scope";
2
+ export interface MePermissionsProject {
3
+ scope: ScopeObject;
4
+ company: string;
5
+ project: string;
6
+ name: string;
7
+ id: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MePermissionsProject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MePermissionsProject.js","sourceRoot":"","sources":["../../src/MePermissionsProject.ts"],"names":[],"mappings":""}
@@ -1,6 +1,21 @@
1
- export interface StudioIframeMessage<T> {
1
+ import { AppEditorConfiguration } from "./AppEditorConfiguration";
2
+ import { Content } from "./Content";
3
+ import { EditorActiveModule } from "./EditorActiveModule";
4
+ export interface StudioIframeMessage {
2
5
  data: {
3
- type: 'studio-content' | 'studio-editor-settings' | 'studio-settings' | 'studio-active' | 'studio-cookie-reset';
4
- data: T;
6
+ type: 'studio-cookie-reset';
7
+ data: undefined;
8
+ } | {
9
+ type: 'studio-editor-settings';
10
+ data: AppEditorConfiguration;
11
+ } | {
12
+ type: 'studio-active';
13
+ data: EditorActiveModule;
14
+ } | {
15
+ type: 'studio-content';
16
+ data: Content['modules'];
17
+ } | {
18
+ type: 'studio-settings';
19
+ data: Omit<Content, 'modules' | 'genericData' | 'childData'>;
5
20
  };
6
21
  }
@@ -6,6 +6,8 @@ export * from './Agreement';
6
6
  export * from './AgreementResponse';
7
7
  export * from './ApiResponses';
8
8
  export * from './App';
9
+ export * from './AppEditorConfiguration';
10
+ export * from './AppEditorTitleDescription';
9
11
  export * from './AppFilter';
10
12
  export * from './AppPermissions';
11
13
  export * from './Auth0ProjectSettings';
@@ -72,6 +74,8 @@ export * from './ListParticipants';
72
74
  export * from './ListParticipantsDetails';
73
75
  export * from './Location';
74
76
  export * from './Me';
77
+ export * from './MePermissions';
78
+ export * from './MePermissionsProject';
75
79
  export * from './Media';
76
80
  export * from './MediaContentFiles';
77
81
  export * from './MediaInfo';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilaquadrat/interfaces",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "interfaces in context of lilaquadrat STUDIO",
5
5
  "author": {
6
6
  "email": "m.schuebel@lila2.de",
@@ -0,0 +1,11 @@
1
+ import { AppEditorTitleDescription } from "./AppEditorTitleDescription"
2
+
3
+ export interface AppEditorConfiguration {
4
+ editorUrl: string
5
+ breakpointTablet: string
6
+ breakpointDesktop: string
7
+ breakpointWide: string
8
+ preloadImages: boolean
9
+ title: AppEditorTitleDescription
10
+ description: AppEditorTitleDescription
11
+ }
@@ -0,0 +1,4 @@
1
+ export interface AppEditorTitleDescription {
2
+ full: string
3
+ short: string
4
+ }
package/src/Content.ts CHANGED
@@ -14,6 +14,7 @@ export interface Content {
14
14
  layout?: boolean
15
15
  state: 'draft' | 'publish'
16
16
  language?: string
17
+ target?: 'browser' | 'mail'
17
18
  settings: {
18
19
  url?: string
19
20
  useLayout?: ObjectId
@@ -0,0 +1,9 @@
1
+ import { MePermissionsProject } from "./MePermissionsProject"
2
+ import { ScopeObject } from "./Scope"
3
+
4
+ export interface MePermissions {
5
+ _id: string
6
+ name: string
7
+ scope: ScopeObject
8
+ projects: MePermissionsProject[]
9
+ }
@@ -0,0 +1,11 @@
1
+ import { ScopeObject } from "./Scope"
2
+
3
+ export interface MePermissionsProject {
4
+
5
+ scope: ScopeObject
6
+ company: string
7
+ project: string
8
+ name: string
9
+ id: string
10
+
11
+ }
@@ -1,6 +1,13 @@
1
- export interface StudioIframeMessage<T> {
2
- data: {
3
- type: 'studio-content' | 'studio-editor-settings' | 'studio-settings' | 'studio-active' | 'studio-cookie-reset'
4
- data: T
5
- }
1
+ import { AppEditorConfiguration } from "./AppEditorConfiguration"
2
+ import { Content } from "./Content"
3
+ import { EditorActiveModule } from "./EditorActiveModule"
4
+
5
+ export interface StudioIframeMessage {
6
+ data:
7
+ { type: 'studio-cookie-reset', data: undefined }
8
+ | { type: 'studio-editor-settings', data: AppEditorConfiguration }
9
+ | { type: 'studio-active', data: EditorActiveModule }
10
+ | { type: 'studio-content', data: Content['modules'] }
11
+ | { type: 'studio-settings', data: Omit<Content, 'modules' | 'genericData' | 'childData'> }
12
+
6
13
  }