UNPKG

@kontent-ai/smart-link

Version:

Kontent.ai Smart Link SDK allowing to automatically inject [smart links](https://docs.kontent.ai/tutorials/develop-apps/build-strong-foundation/set-up-editing-from-preview#a-using-smart-links) to Kontent.ai according to manually specified [HTML data attri

19 lines 717 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultConfiguration = void 0; exports.isInsideWebSpotlightPreviewIFrame = isInsideWebSpotlightPreviewIFrame; const iframe_1 = require("./iframe"); exports.defaultConfiguration = { debug: false, defaultDataAttributes: { languageCodename: undefined, environmentId: undefined, }, forceWebSpotlightMode: false, isInsideWebSpotlight: false, queryParam: 'ksl-enabled', }; function isInsideWebSpotlightPreviewIFrame(configuration) { return configuration.forceWebSpotlightMode || ((0, iframe_1.isInsideIFrame)() && configuration.isInsideWebSpotlight); } //# sourceMappingURL=configuration.js.map