@zcomponent/core 1.25.0 → 1.26.0-beta.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.
@@ -160,7 +160,12 @@ export declare class DefaultCookieConsent extends Component {
160
160
  private _createEntry;
161
161
  private _getConsentStatus;
162
162
  private _setConsentStatus;
163
- show(isSettings: boolean): void;
163
+ /**
164
+ * Shows the cookie consent dialog.
165
+ * @param isSettings - Determines if the settings screen should be shown
166
+ * @param force - Forces the dialog to be shown, regardless of the current consent status. Defaults to false.
167
+ */
168
+ show(isSettings: boolean, force?: boolean): void;
164
169
  hide(): void;
165
170
  acceptAll(): void;
166
171
  dispose(): never;
@@ -296,7 +296,17 @@ export class DefaultCookieConsent extends Component {
296
296
  if (type === CookieType.marketing)
297
297
  useCookieConsentMarketing(this.contextManager).value = status;
298
298
  }
299
- show(isSettings) {
299
+ /**
300
+ * Shows the cookie consent dialog.
301
+ * @param isSettings - Determines if the settings screen should be shown
302
+ * @param force - Forces the dialog to be shown, regardless of the current consent status. Defaults to false.
303
+ */
304
+ show(isSettings, force = false) {
305
+ if (force) {
306
+ this._loadDOM(isSettings);
307
+ document.body.appendChild(this._dom);
308
+ return;
309
+ }
300
310
  const designTimeOverride = isDesignTime(this.contextManager) && (this.constructorProps.preview ?? false);
301
311
  if (isDesignTime(this.contextManager) && !designTimeOverride)
302
312
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zcomponent/core",
3
- "version": "1.25.0",
3
+ "version": "1.26.0-beta.1",
4
4
  "description": "The core component model and built-in functionality for Mattercraft.",
5
5
  "author": "Zappar Limited",
6
6
  "license": "Proprietary",