@lilaquadrat/design-core 0.2.0 → 0.2.1

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": "@lilaquadrat/design-core",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "framework layer shared by every lilaquadrat STUDIO design: app bootstrap, router, stores, plugins and build tooling",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -34,8 +34,8 @@ export default interface FrontendConfig {
34
34
  base?: string
35
35
 
36
36
  /**
37
- * indicates that this project is dynamic. e.g. an app or an website with at least one dynamic part
38
- *
37
+ * indicates that this project is dynamic. e.g. an app or an website with at least one dynamic part.
38
+ * only an explicit `true` enables dynamic mode - `false` and `undefined` fall back to static
39
39
  */
40
40
  dynamic?: boolean
41
41
 
@@ -12,7 +12,7 @@ export default (routeSets: RouteSets) => {
12
12
  const config = __FRONTEND_CONFIG__;
13
13
  const mode = import.meta.env.MODE;
14
14
  const isIframe = window !== window.top;
15
- const isDynamic = config.dynamic;
15
+ const isDynamic = config.dynamic === true;
16
16
 
17
17
  /**
18
18
  * the shareable static build (yarn build:preview) is always the module
@@ -27,7 +27,7 @@ onServerPrefetch(() => getStoreContent(HelpersPlugin.getFilename(contentType.val
27
27
 
28
28
  const linkMode = computed(() => {
29
29
 
30
- if(mainStore.config?.dynamic === false) return 'link';
30
+ if(mainStore.config?.dynamic !== true) return 'link';
31
31
 
32
32
  return undefined
33
33
 
@@ -141,7 +141,7 @@ async function getContent () {
141
141
  layout.value = await mainStore.getContent({internalId: mainStore.data.settings.useLayout.toString()}, contentType.value) as SDKResponse<BasicData<Content>>;
142
142
  mainStore.layout = layout.value.data;
143
143
 
144
- } else if(mainStore.config?.dynamic) {
144
+ } else if(mainStore.config?.dynamic === true) {
145
145
 
146
146
  layout.value = await mainStore.getContent({id: `${contentType.value}-layout`}, contentType.value) as SDKResponse<BasicData<Content>>;
147
147
  mainStore.layout = layout.value.data;