@licklist/design 0.78.5-dev.25 → 0.78.5-dev.26

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.
@@ -102,7 +102,7 @@ function SnippetTemplateContextProvider(param) {
102
102
  '--snippet-page-body-left-block-back-button-body-color': template === null || template === void 0 ? void 0 : template.pageBodyLeftBlockBackButtonBodyColor,
103
103
  '--snippet-page-body-right-block-background-color': template === null || template === void 0 ? void 0 : template.pageBodyRightBlockBackgroundColor,
104
104
  '--snippet-elements-body-color': template === null || template === void 0 ? void 0 : template.elementsBodyColor,
105
- '--snippet-elements-heading-text-color': template === null || template === void 0 ? void 0 : template.elementsHeadingTextColor,
105
+ '--snippet-elements-heading-text-color': (template === null || template === void 0 ? void 0 : template.elementsHeadingTextColor) || (template === null || template === void 0 ? void 0 : template.elementsTitleColor),
106
106
  '--snippet-elements-input-border-color': template === null || template === void 0 ? void 0 : template.elementsInputBorderColor,
107
107
  '--snippet-elements-input-background-color': template === null || template === void 0 ? void 0 : template.elementsInputBackgroundColor,
108
108
  '--snippet-elements-input-body-color': template === null || template === void 0 ? void 0 : template.elementsInputBodyColor,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAChB,MAAM,mEAAmE,CAAA;AAE1E,eAAO,MAAM,wBAAwB,cACzB,OAAO,CAAC,eAAe,CAAC,oBAyBnC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAChB,MAAM,mEAAmE,CAAA;AAE1E,eAAO,MAAM,wBAAwB,cACzB,OAAO,CAAC,eAAe,CAAC,oBAkCnC,CAAA"}
@@ -116,6 +116,10 @@ var safeMergeDefaultSettings = function() {
116
116
  var settingKeys = _to_consumable_array(new Set(_to_consumable_array(Object.keys(settingsProps)).concat(_to_consumable_array(Object.keys(DEFAULT_SNIPPET_TEMPLATE_COLORS)))));
117
117
  return settingKeys.reduce(function(prevValues, currentKey) {
118
118
  var settingsKeyValue = settings[currentKey];
119
+ // Do not default heading text color; leave undefined unless explicitly provided
120
+ if (currentKey === 'elementsHeadingTextColor' && (settingsKeyValue === undefined || settingsKeyValue === null || settingsKeyValue === '')) {
121
+ return prevValues;
122
+ }
119
123
  var // @TODO remove when will be integration with
120
124
  // calendar type
121
125
  _DEFAULT_SNIPPET_TEMPLATE_COLORS_currentKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.78.5-dev.25",
3
+ "version": "0.78.5-dev.26",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -66,7 +66,7 @@
66
66
  "@fortawesome/free-solid-svg-icons": "5.15.2",
67
67
  "@licklist/core": "0.36.1-dev.7",
68
68
  "@licklist/eslint-config": "0.5.6",
69
- "@licklist/plugins": "0.36.4-dev.8",
69
+ "@licklist/plugins": "0.36.4-dev.9",
70
70
  "@mantine/core": "6.0.22",
71
71
  "@mantine/hooks": "6.0.22",
72
72
  "@mdx-js/react": "1.6.22",
@@ -105,7 +105,7 @@ export function SnippetTemplateContextProvider({
105
105
  '--snippet-page-body-right-block-background-color':
106
106
  template?.pageBodyRightBlockBackgroundColor,
107
107
  '--snippet-elements-body-color': template?.elementsBodyColor,
108
- '--snippet-elements-heading-text-color': template?.elementsHeadingTextColor,
108
+ '--snippet-elements-heading-text-color': template?.elementsHeadingTextColor || template?.elementsTitleColor,
109
109
  '--snippet-elements-input-border-color':
110
110
  template?.elementsInputBorderColor,
111
111
  '--snippet-elements-input-background-color':
@@ -18,6 +18,15 @@ export const safeMergeDefaultSettings = (
18
18
  return settingKeys.reduce(
19
19
  (prevValues, currentKey) => {
20
20
  const settingsKeyValue = settings[currentKey]
21
+
22
+ // Do not default heading text color; leave undefined unless explicitly provided
23
+ if (
24
+ currentKey === 'elementsHeadingTextColor' &&
25
+ (settingsKeyValue === undefined || settingsKeyValue === null || settingsKeyValue === '')
26
+ ) {
27
+ return prevValues
28
+ }
29
+
21
30
  return {
22
31
  ...prevValues,
23
32
  [currentKey]: