@appsemble/lang-sdk 0.37.2 → 0.37.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/lang-sdk",
3
- "version": "0.37.2",
3
+ "version": "0.37.3",
4
4
  "description": "Language SDK for Appsemble",
5
5
  "keywords": [
6
6
  "app",
@@ -49,11 +49,13 @@ If set to \`navigation\`, it will only be visible if \`login\` is also visible i
49
49
  `,
50
50
  },
51
51
  navigation: {
52
- enum: ['bottom', 'left-menu', 'hidden'],
52
+ enum: ['bottom', 'left-menu', 'hidden', 'top'],
53
53
  default: 'left-menu',
54
54
  description: `The navigation type to use.
55
55
 
56
56
  If this is omitted, a collapsable side navigation menu will be rendered on the left.
57
+ Top navigation is rendered in the title bar. When the title bar is hidden, top navigation is
58
+ rendered as side navigation.
57
59
  `,
58
60
  },
59
61
  logo: {
@@ -94,6 +96,14 @@ If this is omitted, a collapsable side navigation menu will be rendered on the l
94
96
  type: 'boolean',
95
97
  default: false,
96
98
  },
99
+ stackedHeader: {
100
+ description: `Whether to render the app logo on its own centered row above the navigation.
101
+
102
+ Only applies when \`navigation\` is set to \`top\`.
103
+ `,
104
+ type: 'boolean',
105
+ default: false,
106
+ },
97
107
  hideGroupDropdown: {
98
108
  description: `Whether to hide the group dropdown.
99
109
 
@@ -35,14 +35,15 @@ have two pages with the same name. The name of the page is displayed at the *app
35
35
  default: false,
36
36
  },
37
37
  navigation: {
38
- enum: ['bottom', 'left-menu', 'hidden', 'dropdown', 'profileDropdown'],
38
+ enum: ['bottom', 'left-menu', 'hidden', 'dropdown', 'profileDropdown', 'top'],
39
39
  description: `The type of navigation displayed on the page.
40
40
 
41
41
  This overrides the navigation property of the app itself. Defaults to \`left-menu\` if navigation or
42
42
  App navigation are not set.
43
43
 
44
- Set to \`bottom\` to use a navigation pane at the bottom of the screen instead of the default side
45
- menu. Set to \`hidden\` to display no navigational menus at all.
44
+ Set to \`bottom\` to use a navigation pane at the bottom of the screen. Set to \`top\` to render
45
+ navigation in the title bar. When the title bar is hidden, top navigation is rendered as side
46
+ navigation. Set to \`hidden\` to display no navigational menus at all.
46
47
  `,
47
48
  },
48
49
  icon: {
package/types/core.d.ts CHANGED
@@ -88,7 +88,9 @@ export interface AppDefinition {
88
88
  /**
89
89
  * The navigation type to use.
90
90
  *
91
- * If this is omitted, a collapsible side navigation menu will be rendered on the left.
91
+ * If this is omitted, a collapsible side navigation menu is rendered on the left.
92
+ * Top navigation is rendered in the title bar. When the title bar is hidden,
93
+ * top navigation is rendered as side navigation.
92
94
  *
93
95
  * @default 'left-menu'
94
96
  */
@@ -110,6 +112,12 @@ export interface AppDefinition {
110
112
  * Whether to hide the title bar from all pages in the app.
111
113
  */
112
114
  hideTitleBar?: boolean;
115
+ /**
116
+ * Whether to render the app logo on its own centered row above the top navigation.
117
+ *
118
+ * Only applies when `navigation` is set to `top`.
119
+ */
120
+ stackedHeader?: boolean;
113
121
  /**
114
122
  * Whether to hide the group dropdown.
115
123
  *
@@ -203,7 +211,8 @@ export interface BasePageDefinition {
203
211
  /**
204
212
  * The navigation type to use for the page.
205
213
  * Setting this will override the default navigation for the app.
206
- * if this is set to `navbar`, navigation link is rendered in the profile dropdown.
214
+ * Top navigation is rendered in the title bar. When the title bar is hidden,
215
+ * top navigation is rendered as side navigation.
207
216
  */
208
217
  navigation?: Navigation | 'profileDropdown';
209
218
  /**
package/types/layout.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export type Navigation = 'bottom' | 'hidden' | 'left-menu';
1
+ export type Navigation = 'bottom' | 'hidden' | 'left-menu' | 'top';
2
2
  export type LayoutPosition = 'hidden' | 'navbar' | 'navigation';