@magicfeedback/popup-sdk 1.13.0 → 1.15.0
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/README.md +6 -1
- package/dist/assets/assets/style.css +1 -1
- package/dist/{chunk-GXEPYT33.mjs → chunk-C7VD3HY4.mjs} +2 -2
- package/dist/{chunk-GXEPYT33.mjs.map → chunk-C7VD3HY4.mjs.map} +1 -1
- package/dist/{chunk-TSORXOQG.mjs → chunk-GUJSOVS6.mjs} +2 -2
- package/dist/{chunk-TSORXOQG.mjs.map → chunk-GUJSOVS6.mjs.map} +1 -1
- package/dist/index.d.mts +16 -3
- package/dist/index.d.ts +16 -3
- package/dist/index.js +389 -355
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -73
- package/dist/index.mjs.map +1 -1
- package/dist/react-native.d.mts +16 -3
- package/dist/react-native.d.ts +16 -3
- package/dist/react-native.js +63 -124
- package/dist/react-native.js.map +1 -1
- package/dist/react-native.mjs +22 -73
- package/dist/react-native.mjs.map +1 -1
- package/dist/{renderPopup-KSZJ5AN4.mjs → renderPopup-CHWH3KHR.mjs} +368 -283
- package/dist/renderPopup-CHWH3KHR.mjs.map +1 -0
- package/dist/{renderPopup-JF6IB6HL.mjs → renderPopup-RWSU5Y2H.mjs} +42 -52
- package/dist/renderPopup-RWSU5Y2H.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/renderPopup-JF6IB6HL.mjs.map +0 -1
- package/dist/renderPopup-KSZJ5AN4.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -143,6 +143,11 @@ Config fields:
|
|
|
143
143
|
or positioning, so the host mounts its own `Modal`/container and controls the styling. This
|
|
144
144
|
avoids a "double modal" when the host already wraps the WebView. The survey stays fully
|
|
145
145
|
functional (message bridge, form, nav buttons, close). No effect on the web DOM popup.
|
|
146
|
+
- `cspNonce?: string` — for pages with a strict Content-Security-Policy (`style-src 'nonce-…'`
|
|
147
|
+
without `'unsafe-inline'`). The popup puts it on every `<style>` it injects into `<head>`
|
|
148
|
+
(survey stylesheet, spinner, responsive rules, `surveyCss`, `@font-face`); without it the
|
|
149
|
+
browser blocks them and the survey renders unstyled. Pass the same nonce your CSP header
|
|
150
|
+
uses for that response (in Angular, the `CSP_NONCE` token). Web only.
|
|
146
151
|
- `language?: string` — BCP-47 tag (`'en'`, `'en-US'`, …) used for popup language
|
|
147
152
|
segmentation (`segments.lang`) and for the analytics context. If omitted it is
|
|
148
153
|
auto-detected from `navigator.language`, falling back to the `Intl` locale (which is
|
|
@@ -534,7 +539,7 @@ interface DeepdotsEvent {
|
|
|
534
539
|
- The default browser renderer uses Deepdots forms and applies button labels from `actions.accept`, `actions.start`, `actions.back`, and `actions.complete`.
|
|
535
540
|
- `title`, `message`, and `style` belong to the popup definition contract, but the current browser renderer focuses on the embedded form and does not render those fields as standalone popup copy/layout controls.
|
|
536
541
|
- `actions.decline` is accepted in the definition shape, but the current browser renderer does not render a dedicated decline button or enforce `decline.cooldownDays`.
|
|
537
|
-
- In browser mode, the
|
|
542
|
+
- In browser mode, the default renderer creates a single `#deepdots-popup-container` on `document.body` and injects the popup and survey stylesheets into `<head>` (bundled with the SDK, no external request). With a custom renderer (`setRenderer`) the SDK adds no container of its own.
|
|
538
543
|
|
|
539
544
|
## Running The Examples Locally
|
|
540
545
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NO EDITAR A MANO — generado por scripts/vendor-survey-css.mjs
|
|
3
3
|
*
|
|
4
|
-
* Copia de @magicfeedback/native@2.2.
|
|
4
|
+
* Copia de @magicfeedback/native@2.2.33 → dist/styles/magicfeedback-default.css
|
|
5
5
|
* (la hoja canónica del paquete, la que apunta su campo "style"), con estos cambios locales:
|
|
6
6
|
*
|
|
7
7
|
* 1. Sin el @import de Google Fonts (Nunito): no queremos una petición externa desde la
|
|
@@ -524,7 +524,7 @@ function ddSetSurveyBusy(el, busy){
|
|
|
524
524
|
var style_default = `/**
|
|
525
525
|
* NO EDITAR A MANO \u2014 generado por scripts/vendor-survey-css.mjs
|
|
526
526
|
*
|
|
527
|
-
* Copia de @magicfeedback/native@2.2.
|
|
527
|
+
* Copia de @magicfeedback/native@2.2.33 \u2192 dist/styles/magicfeedback-default.css
|
|
528
528
|
* (la hoja can\xF3nica del paquete, la que apunta su campo "style"), con estos cambios locales:
|
|
529
529
|
*
|
|
530
530
|
* 1. Sin el @import de Google Fonts (Nunito): no queremos una petici\xF3n externa desde la
|
|
@@ -2741,4 +2741,4 @@ export {
|
|
|
2741
2741
|
sdkWarn,
|
|
2742
2742
|
sdkError
|
|
2743
2743
|
};
|
|
2744
|
-
//# sourceMappingURL=chunk-
|
|
2744
|
+
//# sourceMappingURL=chunk-C7VD3HY4.mjs.map
|