@lilaquadrat/interfaces 1.3.1 → 1.5.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/lib/cjs/AppEditorConfiguration.d.ts +10 -0
  3. package/lib/cjs/AppEditorTitleDescription.d.ts +4 -0
  4. package/lib/cjs/AppHostingSettings.d.ts +11 -0
  5. package/lib/cjs/Content.d.ts +1 -0
  6. package/lib/cjs/DomainConf.d.ts +4 -0
  7. package/lib/cjs/Hosting.d.ts +2 -1
  8. package/lib/cjs/MePermissions.d.ts +8 -0
  9. package/lib/cjs/MePermissionsProject.d.ts +8 -0
  10. package/lib/cjs/StudioIframeMessage.d.ts +18 -3
  11. package/lib/cjs/index.d.ts +5 -0
  12. package/lib/esm/AppEditorConfiguration.d.ts +10 -0
  13. package/lib/esm/AppEditorConfiguration.js +2 -0
  14. package/lib/esm/AppEditorConfiguration.js.map +1 -0
  15. package/lib/esm/AppEditorTitleDescription.d.ts +4 -0
  16. package/lib/esm/AppEditorTitleDescription.js +2 -0
  17. package/lib/esm/AppEditorTitleDescription.js.map +1 -0
  18. package/lib/esm/AppHostingSettings.d.ts +11 -0
  19. package/lib/esm/AppHostingSettings.js +2 -0
  20. package/lib/esm/AppHostingSettings.js.map +1 -0
  21. package/lib/esm/Content.d.ts +1 -0
  22. package/lib/esm/DomainConf.d.ts +4 -0
  23. package/lib/esm/Hosting.d.ts +2 -1
  24. package/lib/esm/MePermissions.d.ts +8 -0
  25. package/lib/esm/MePermissions.js +2 -0
  26. package/lib/esm/MePermissions.js.map +1 -0
  27. package/lib/esm/MePermissionsProject.d.ts +8 -0
  28. package/lib/esm/MePermissionsProject.js +2 -0
  29. package/lib/esm/MePermissionsProject.js.map +1 -0
  30. package/lib/esm/StudioIframeMessage.d.ts +18 -3
  31. package/lib/esm/index.d.ts +5 -0
  32. package/package.json +1 -1
  33. package/src/AppEditorConfiguration.ts +11 -0
  34. package/src/AppEditorTitleDescription.ts +4 -0
  35. package/src/AppHostingSettings.ts +11 -0
  36. package/src/Content.ts +1 -0
  37. package/src/DomainConf.ts +5 -0
  38. package/src/Hosting.ts +3 -1
  39. package/src/MePermissions.ts +9 -0
  40. package/src/MePermissionsProject.ts +11 -0
  41. package/src/StudioIframeMessage.ts +12 -5
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
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.5.0](https://github.com/lilaquadrat/interfaces/compare/v1.4.0...v1.5.0) (2024-02-23)
6
+
7
+
8
+ ### Features
9
+
10
+ * **hosting:** added new hosting settings interface ([321800a](https://github.com/lilaquadrat/interfaces/commit/321800abc7ecabad1000f69f4e588bce63c79a3b))
11
+
12
+ ## [1.4.0](https://github.com/lilaquadrat/interfaces/compare/v1.3.1...v1.4.0) (2024-02-21)
13
+
14
+
15
+ ### Features
16
+
17
+ * **mepermissions & content:** added target to content and added me permissions ([bb6141f](https://github.com/lilaquadrat/interfaces/commit/bb6141f3425f370a0de0baf669ce1ae97d90a721))
18
+
5
19
  ### [1.3.1](https://github.com/lilaquadrat/interfaces/compare/v1.3.0...v1.3.1) (2024-02-17)
6
20
 
7
21
 
@@ -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
+ }
@@ -0,0 +1,11 @@
1
+ export interface AppHostingSettings {
2
+ /**
3
+ * redirects all configured domains to the main domain
4
+ */
5
+ redirectToMainDomain?: boolean;
6
+ /**
7
+ * enables a catch all route to index.html if the file does not exist.
8
+ * e.g. /content1 will end up at index.html if content1.html does not exist.
9
+ */
10
+ isApp?: boolean;
11
+ }
@@ -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;
@@ -8,6 +8,10 @@ export interface DomainConf {
8
8
  };
9
9
  company: string;
10
10
  project: string;
11
+ isMain?: boolean;
12
+ /**
13
+ * defines if the domain is a default domain that is created by the system for preview purposes
14
+ */
11
15
  defaultDomain?: string;
12
16
  certificate?: string;
13
17
  }
@@ -1,4 +1,5 @@
1
- export interface Hosting {
1
+ import { AppHostingSettings } from "./AppHostingSettings";
2
+ export interface Hosting extends AppHostingSettings {
2
3
  project: string;
3
4
  company: string;
4
5
  active?: boolean;
@@ -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,7 +6,10 @@ 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';
12
+ export * from './AppHostingSettings';
10
13
  export * from './AppPermissions';
11
14
  export * from './Auth0ProjectSettings';
12
15
  export * from './AvailableStorageTypes';
@@ -72,6 +75,8 @@ export * from './ListParticipants';
72
75
  export * from './ListParticipantsDetails';
73
76
  export * from './Location';
74
77
  export * from './Me';
78
+ export * from './MePermissions';
79
+ export * from './MePermissionsProject';
75
80
  export * from './Media';
76
81
  export * from './MediaContentFiles';
77
82
  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":""}
@@ -0,0 +1,11 @@
1
+ export interface AppHostingSettings {
2
+ /**
3
+ * redirects all configured domains to the main domain
4
+ */
5
+ redirectToMainDomain?: boolean;
6
+ /**
7
+ * enables a catch all route to index.html if the file does not exist.
8
+ * e.g. /content1 will end up at index.html if content1.html does not exist.
9
+ */
10
+ isApp?: boolean;
11
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AppHostingSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppHostingSettings.js","sourceRoot":"","sources":["../../src/AppHostingSettings.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;
@@ -8,6 +8,10 @@ export interface DomainConf {
8
8
  };
9
9
  company: string;
10
10
  project: string;
11
+ isMain?: boolean;
12
+ /**
13
+ * defines if the domain is a default domain that is created by the system for preview purposes
14
+ */
11
15
  defaultDomain?: string;
12
16
  certificate?: string;
13
17
  }
@@ -1,4 +1,5 @@
1
- export interface Hosting {
1
+ import { AppHostingSettings } from "./AppHostingSettings";
2
+ export interface Hosting extends AppHostingSettings {
2
3
  project: string;
3
4
  company: string;
4
5
  active?: boolean;
@@ -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,7 +6,10 @@ 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';
12
+ export * from './AppHostingSettings';
10
13
  export * from './AppPermissions';
11
14
  export * from './Auth0ProjectSettings';
12
15
  export * from './AvailableStorageTypes';
@@ -72,6 +75,8 @@ export * from './ListParticipants';
72
75
  export * from './ListParticipantsDetails';
73
76
  export * from './Location';
74
77
  export * from './Me';
78
+ export * from './MePermissions';
79
+ export * from './MePermissionsProject';
75
80
  export * from './Media';
76
81
  export * from './MediaContentFiles';
77
82
  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.5.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
+ }
@@ -0,0 +1,11 @@
1
+ export interface AppHostingSettings {
2
+ /**
3
+ * redirects all configured domains to the main domain
4
+ */
5
+ redirectToMainDomain?: boolean
6
+ /**
7
+ * enables a catch all route to index.html if the file does not exist.
8
+ * e.g. /content1 will end up at index.html if content1.html does not exist.
9
+ */
10
+ isApp?: boolean
11
+ }
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
package/src/DomainConf.ts CHANGED
@@ -14,6 +14,11 @@ export interface DomainConf {
14
14
  company: string
15
15
  project: string
16
16
 
17
+ isMain?: boolean
18
+
19
+ /**
20
+ * defines if the domain is a default domain that is created by the system for preview purposes
21
+ */
17
22
  defaultDomain?: string
18
23
 
19
24
  certificate?: string
package/src/Hosting.ts CHANGED
@@ -1,4 +1,6 @@
1
- export interface Hosting {
1
+ import { AppHostingSettings } from "./AppHostingSettings";
2
+
3
+ export interface Hosting extends AppHostingSettings {
2
4
  project: string;
3
5
  company: string;
4
6
 
@@ -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
  }