@syntrologie/adapt-content 2.8.0-canary.51 → 2.8.0-canary.511

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.
Files changed (113) hide show
  1. package/dist/runtime.d.ts +26 -1
  2. package/dist/runtime.d.ts.map +1 -1
  3. package/dist/runtime.js +498 -348
  4. package/dist/runtime.js.map +7 -0
  5. package/dist/sanitizer.d.ts.map +1 -1
  6. package/dist/schema.d.ts +56 -16
  7. package/dist/schema.d.ts.map +1 -1
  8. package/dist/schema.js +376 -62
  9. package/dist/schema.js.map +7 -0
  10. package/dist/types.d.ts +12 -0
  11. package/dist/types.d.ts.map +1 -1
  12. package/package.json +2 -20
  13. package/dist/cdn.d.ts +0 -35
  14. package/dist/cdn.d.ts.map +0 -1
  15. package/dist/cdn.js +0 -39
  16. package/dist/components/AnchorPicker.d.ts +0 -8
  17. package/dist/components/AnchorPicker.d.ts.map +0 -1
  18. package/dist/components/AnchorPicker.js +0 -6
  19. package/dist/content-editor-state.d.ts +0 -45
  20. package/dist/content-editor-state.d.ts.map +0 -1
  21. package/dist/content-editor-state.js +0 -123
  22. package/dist/content-editor-ui.d.ts +0 -26
  23. package/dist/content-editor-ui.d.ts.map +0 -1
  24. package/dist/content-editor-ui.js +0 -291
  25. package/dist/editor.d.ts +0 -9
  26. package/dist/editor.d.ts.map +0 -1
  27. package/dist/editor.js +0 -8
  28. package/dist/reconciliation-guard.js +0 -80
  29. package/dist/sanitizer.js +0 -95
  30. package/dist/summarize.js +0 -88
  31. package/dist/types.js +0 -7
  32. package/dist/utils/selectorGenerator.d.ts +0 -6
  33. package/dist/utils/selectorGenerator.d.ts.map +0 -1
  34. package/dist/utils/selectorGenerator.js +0 -4
  35. package/node_modules/@syntrologie/shared-editor-ui/dist/cn.d.ts +0 -2
  36. package/node_modules/@syntrologie/shared-editor-ui/dist/cn.d.ts.map +0 -1
  37. package/node_modules/@syntrologie/shared-editor-ui/dist/cn.js +0 -3
  38. package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPicker.d.ts +0 -34
  39. package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPicker.d.ts.map +0 -1
  40. package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPicker.js +0 -158
  41. package/node_modules/@syntrologie/shared-editor-ui/dist/components/BeforeAfterToggle.d.ts +0 -7
  42. package/node_modules/@syntrologie/shared-editor-ui/dist/components/BeforeAfterToggle.d.ts.map +0 -1
  43. package/node_modules/@syntrologie/shared-editor-ui/dist/components/BeforeAfterToggle.js +0 -9
  44. package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.d.ts +0 -23
  45. package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.d.ts.map +0 -1
  46. package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.js +0 -40
  47. package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.d.ts +0 -7
  48. package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.d.ts.map +0 -1
  49. package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.js +0 -22
  50. package/node_modules/@syntrologie/shared-editor-ui/dist/components/DismissedSection.d.ts +0 -8
  51. package/node_modules/@syntrologie/shared-editor-ui/dist/components/DismissedSection.d.ts.map +0 -1
  52. package/node_modules/@syntrologie/shared-editor-ui/dist/components/DismissedSection.js +0 -9
  53. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditBackButton.d.ts +0 -7
  54. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditBackButton.d.ts.map +0 -1
  55. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditBackButton.js +0 -4
  56. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorBody.d.ts +0 -7
  57. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorBody.d.ts.map +0 -1
  58. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorBody.js +0 -4
  59. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorCard.d.ts +0 -13
  60. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorCard.d.ts.map +0 -1
  61. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorCard.js +0 -15
  62. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorFooter.d.ts +0 -7
  63. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorFooter.d.ts.map +0 -1
  64. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorFooter.js +0 -4
  65. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorHeader.d.ts +0 -9
  66. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorHeader.d.ts.map +0 -1
  67. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorHeader.js +0 -4
  68. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorInput.d.ts +0 -8
  69. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorInput.d.ts.map +0 -1
  70. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorInput.js +0 -8
  71. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorLayout.d.ts +0 -7
  72. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorLayout.d.ts.map +0 -1
  73. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorLayout.js +0 -4
  74. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.d.ts +0 -25
  75. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.d.ts.map +0 -1
  76. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.js +0 -379
  77. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorSelect.d.ts +0 -8
  78. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorSelect.d.ts.map +0 -1
  79. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorSelect.js +0 -8
  80. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorTextarea.d.ts +0 -8
  81. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorTextarea.d.ts.map +0 -1
  82. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorTextarea.js +0 -17
  83. package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlight.d.ts +0 -32
  84. package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlight.d.ts.map +0 -1
  85. package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlight.js +0 -85
  86. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EmptyState.d.ts +0 -6
  87. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EmptyState.d.ts.map +0 -1
  88. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EmptyState.js +0 -4
  89. package/node_modules/@syntrologie/shared-editor-ui/dist/components/GroupHeader.d.ts +0 -8
  90. package/node_modules/@syntrologie/shared-editor-ui/dist/components/GroupHeader.d.ts.map +0 -1
  91. package/node_modules/@syntrologie/shared-editor-ui/dist/components/GroupHeader.js +0 -5
  92. package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.d.ts +0 -12
  93. package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.d.ts.map +0 -1
  94. package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.js +0 -40
  95. package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.d.ts +0 -26
  96. package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.d.ts.map +0 -1
  97. package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.js +0 -202
  98. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useElementRect.d.ts +0 -8
  99. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useElementRect.d.ts.map +0 -1
  100. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useElementRect.js +0 -46
  101. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useTriggerWhenStatus.d.ts +0 -24
  102. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useTriggerWhenStatus.d.ts.map +0 -1
  103. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useTriggerWhenStatus.js +0 -86
  104. package/node_modules/@syntrologie/shared-editor-ui/dist/index.d.ts +0 -34
  105. package/node_modules/@syntrologie/shared-editor-ui/dist/index.d.ts.map +0 -1
  106. package/node_modules/@syntrologie/shared-editor-ui/dist/index.js +0 -25
  107. package/node_modules/@syntrologie/shared-editor-ui/dist/utils/elementChainRecommender.d.ts +0 -37
  108. package/node_modules/@syntrologie/shared-editor-ui/dist/utils/elementChainRecommender.d.ts.map +0 -1
  109. package/node_modules/@syntrologie/shared-editor-ui/dist/utils/elementChainRecommender.js +0 -52
  110. package/node_modules/@syntrologie/shared-editor-ui/dist/utils/selectorGenerator.d.ts +0 -22
  111. package/node_modules/@syntrologie/shared-editor-ui/dist/utils/selectorGenerator.d.ts.map +0 -1
  112. package/node_modules/@syntrologie/shared-editor-ui/dist/utils/selectorGenerator.js +0 -143
  113. package/node_modules/@syntrologie/shared-editor-ui/package.json +0 -47
package/dist/runtime.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * DOM manipulation actions: insertHtml, setText, setAttr, addClass, removeClass, setStyle.
5
5
  * These follow the hostPatcher snapshot pattern for safe reversibility.
6
6
  */
7
- import type { ActionExecutor, AddClassAction, InsertHtmlAction, RemoveClassAction, SetAttrAction, SetStyleAction, SetTextAction } from './types';
7
+ import type { ActionExecutor, AddClassAction, HideBySelectorAction, InsertHtmlAction, RemoveClassAction, SetAttrAction, SetStyleAction, SetTextAction } from './types';
8
8
  /**
9
9
  * Execute an insertHtml action
10
10
  */
@@ -29,6 +29,25 @@ export declare const executeRemoveClass: ActionExecutor<RemoveClassAction>;
29
29
  * Execute a setStyle action
30
30
  */
31
31
  export declare const executeSetStyle: ActionExecutor<SetStyleAction>;
32
+ /**
33
+ * Execute a hideBySelector action.
34
+ *
35
+ * Injects `selector { prop: value !important; ... }` into a dedicated
36
+ * `<style>` element instead of resolving a live anchor and mutating its
37
+ * inline style. This is the stylesheet-rule counterpart to executeSetStyle:
38
+ * use it when the target may not exist in the DOM yet, may never appear in
39
+ * some sessions, or gets torn down and re-inserted by the host page (chat
40
+ * widgets, cookie banners, etc). A CSS rule matches those future insertions
41
+ * for free — no polling, no MutationObserver, and critically, no
42
+ * anchor-not-found wait blocking anything downstream (BUG-1786758064: a
43
+ * `content:setStyle` suppression action retrying a `.crisp-client` anchor
44
+ * that never appeared held up canvas render for ~20s).
45
+ *
46
+ * `!important` is required (unlike inline styles, which always win via
47
+ * specificity) because a stylesheet rule competes with the host page's own
48
+ * CSS on normal specificity/source-order terms.
49
+ */
50
+ export declare const executeHideBySelector: ActionExecutor<HideBySelectorAction>;
32
51
  /**
33
52
  * All executors provided by this app.
34
53
  * These are registered with the runtime's ExecutorRegistry.
@@ -51,6 +70,9 @@ export declare const executors: readonly [{
51
70
  }, {
52
71
  readonly kind: "content:setStyle";
53
72
  readonly executor: ActionExecutor<SetStyleAction>;
73
+ }, {
74
+ readonly kind: "content:hideBySelector";
75
+ readonly executor: ActionExecutor<HideBySelectorAction>;
54
76
  }];
55
77
  /**
56
78
  * App runtime manifest.
@@ -78,6 +100,9 @@ export declare const runtime: {
78
100
  }, {
79
101
  readonly kind: "content:setStyle";
80
102
  readonly executor: ActionExecutor<SetStyleAction>;
103
+ }, {
104
+ readonly kind: "content:hideBySelector";
105
+ readonly executor: ActionExecutor<HideBySelectorAction>;
81
106
  }];
82
107
  };
83
108
  //# sourceMappingURL=runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EAEd,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,aAAa,EACd,MAAM,SAAS,CAAC;AAMjB;;GAE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