@teleporthq/teleport-shared 0.43.61 → 0.43.63

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 (78) hide show
  1. package/__tests__/utils/font-preconnect.ts +62 -0
  2. package/__tests__/utils/rich-text-embeds-runtime-module.ts +124 -0
  3. package/__tests__/utils/rich-text-embeds.ts +254 -0
  4. package/dist/cjs/index.d.ts +6 -1
  5. package/dist/cjs/index.d.ts.map +1 -1
  6. package/dist/cjs/index.js +11 -1
  7. package/dist/cjs/index.js.map +1 -1
  8. package/dist/cjs/page-revalidate/api-route.d.ts +24 -0
  9. package/dist/cjs/page-revalidate/api-route.d.ts.map +1 -0
  10. package/dist/cjs/page-revalidate/api-route.js +30 -0
  11. package/dist/cjs/page-revalidate/api-route.js.map +1 -0
  12. package/dist/cjs/page-revalidate/constants.d.ts +22 -0
  13. package/dist/cjs/page-revalidate/constants.d.ts.map +1 -0
  14. package/dist/cjs/page-revalidate/constants.js +25 -0
  15. package/dist/cjs/page-revalidate/constants.js.map +1 -0
  16. package/dist/cjs/page-revalidate/index.d.ts +3 -0
  17. package/dist/cjs/page-revalidate/index.d.ts.map +1 -0
  18. package/dist/cjs/page-revalidate/index.js +19 -0
  19. package/dist/cjs/page-revalidate/index.js.map +1 -0
  20. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  21. package/dist/cjs/utils/font-preconnect.d.ts +40 -0
  22. package/dist/cjs/utils/font-preconnect.d.ts.map +1 -0
  23. package/dist/cjs/utils/font-preconnect.js +52 -0
  24. package/dist/cjs/utils/font-preconnect.js.map +1 -0
  25. package/dist/cjs/utils/product-ratings.d.ts +26 -0
  26. package/dist/cjs/utils/product-ratings.d.ts.map +1 -0
  27. package/dist/cjs/utils/product-ratings.js +30 -0
  28. package/dist/cjs/utils/product-ratings.js.map +1 -0
  29. package/dist/cjs/utils/rich-text-embeds-codegen.d.ts +9 -0
  30. package/dist/cjs/utils/rich-text-embeds-codegen.d.ts.map +1 -0
  31. package/dist/cjs/utils/rich-text-embeds-codegen.js +139 -0
  32. package/dist/cjs/utils/rich-text-embeds-codegen.js.map +1 -0
  33. package/dist/cjs/utils/rich-text-embeds.d.ts +251 -0
  34. package/dist/cjs/utils/rich-text-embeds.d.ts.map +1 -0
  35. package/dist/cjs/utils/rich-text-embeds.js +852 -0
  36. package/dist/cjs/utils/rich-text-embeds.js.map +1 -0
  37. package/dist/esm/index.d.ts +6 -1
  38. package/dist/esm/index.d.ts.map +1 -1
  39. package/dist/esm/index.js +6 -1
  40. package/dist/esm/index.js.map +1 -1
  41. package/dist/esm/page-revalidate/api-route.d.ts +24 -0
  42. package/dist/esm/page-revalidate/api-route.d.ts.map +1 -0
  43. package/dist/esm/page-revalidate/api-route.js +26 -0
  44. package/dist/esm/page-revalidate/api-route.js.map +1 -0
  45. package/dist/esm/page-revalidate/constants.d.ts +22 -0
  46. package/dist/esm/page-revalidate/constants.d.ts.map +1 -0
  47. package/dist/esm/page-revalidate/constants.js +22 -0
  48. package/dist/esm/page-revalidate/constants.js.map +1 -0
  49. package/dist/esm/page-revalidate/index.d.ts +3 -0
  50. package/dist/esm/page-revalidate/index.d.ts.map +1 -0
  51. package/dist/esm/page-revalidate/index.js +3 -0
  52. package/dist/esm/page-revalidate/index.js.map +1 -0
  53. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  54. package/dist/esm/utils/font-preconnect.d.ts +40 -0
  55. package/dist/esm/utils/font-preconnect.d.ts.map +1 -0
  56. package/dist/esm/utils/font-preconnect.js +48 -0
  57. package/dist/esm/utils/font-preconnect.js.map +1 -0
  58. package/dist/esm/utils/product-ratings.d.ts +26 -0
  59. package/dist/esm/utils/product-ratings.d.ts.map +1 -0
  60. package/dist/esm/utils/product-ratings.js +26 -0
  61. package/dist/esm/utils/product-ratings.js.map +1 -0
  62. package/dist/esm/utils/rich-text-embeds-codegen.d.ts +9 -0
  63. package/dist/esm/utils/rich-text-embeds-codegen.d.ts.map +1 -0
  64. package/dist/esm/utils/rich-text-embeds-codegen.js +134 -0
  65. package/dist/esm/utils/rich-text-embeds-codegen.js.map +1 -0
  66. package/dist/esm/utils/rich-text-embeds.d.ts +251 -0
  67. package/dist/esm/utils/rich-text-embeds.d.ts.map +1 -0
  68. package/dist/esm/utils/rich-text-embeds.js +822 -0
  69. package/dist/esm/utils/rich-text-embeds.js.map +1 -0
  70. package/package.json +3 -3
  71. package/src/index.ts +10 -0
  72. package/src/page-revalidate/api-route.ts +77 -0
  73. package/src/page-revalidate/constants.ts +24 -0
  74. package/src/page-revalidate/index.ts +2 -0
  75. package/src/utils/font-preconnect.ts +61 -0
  76. package/src/utils/product-ratings.ts +98 -0
  77. package/src/utils/rich-text-embeds-codegen.ts +216 -0
  78. package/src/utils/rich-text-embeds.ts +966 -0
@@ -0,0 +1,251 @@
1
+ /**
2
+ * The "code embed" contract for rich-text CONTENT — the blog post body, and any
3
+ * other column authored through a rich-text editor.
4
+ *
5
+ * A code embed is a block a post author drops into the body to pull in content
6
+ * from another site (a video, a social post, a design frame, a form, or a raw
7
+ * snippet they pasted). It is stored INSIDE the content HTML, so the same shape
8
+ * has to be produced by the studio's Quill editor, produced by the generated
9
+ * admin panel's Quill editor, previewed by the studio canvas and rendered by
10
+ * the exported Next.js app. This module is that single shape.
11
+ *
12
+ * Two rendering modes, decided by one rule (`resolveEmbedMode`):
13
+ *
14
+ * - `inline` — the markup is provably passive (no `<script>`, no `on*`
15
+ * handler, no `javascript:` URL). It is stored as the element's
16
+ * own children, so it renders server-side, needs no JavaScript
17
+ * and is crawlable. Most provider embeds are a bare `<iframe>`
18
+ * and land here.
19
+ * - `sandbox` — anything else. The markup is base64-encoded into
20
+ * `data-tq-embed-code` and the runtime materializes it inside a
21
+ * sandboxed `srcdoc` iframe, so author-supplied JavaScript can
22
+ * never touch the hosting page. The children hold only a
23
+ * `<noscript>` link fallback.
24
+ *
25
+ * The provider registry is deliberately DECLARATIVE — patterns plus a
26
+ * replacement template, never functions — so `rich-text-embeds-codegen` can
27
+ * serialize it verbatim into the module the generated project gets, and the
28
+ * editor and the published site can never drift.
29
+ */
30
+ export type EmbedAlign = 'center' | 'float-left' | 'float-right';
31
+ export type EmbedMode = 'inline' | 'sandbox';
32
+ /**
33
+ * `strict` (the default) omits `allow-same-origin`, so the embed runs in an
34
+ * opaque origin and cannot reach the host page's storage or DOM. `trusted` adds
35
+ * it back for the widgets that refuse to render without storage access — an
36
+ * explicit, per-embed opt-in the author has to make.
37
+ */
38
+ export type EmbedSandboxLevel = 'strict' | 'trusted';
39
+ export interface EmbedValue {
40
+ /** Registry id, or `custom` when the author pasted the markup themselves. */
41
+ provider: string;
42
+ /** The source URL, when there was one. Lets the editor re-open the Link tab. */
43
+ url: string;
44
+ /** The embed markup itself. */
45
+ code: string;
46
+ mode: EmbedMode;
47
+ /** Responsive box height as a padding-top percentage; `null` = intrinsic. */
48
+ ratio: number | null;
49
+ /** Block width as a percentage of the content column, 10-100. */
50
+ width: number;
51
+ align: EmbedAlign;
52
+ caption: string;
53
+ sandboxLevel: EmbedSandboxLevel;
54
+ }
55
+ export declare const EMBED_CLASS_NAME = "tq-embed";
56
+ export declare const EMBED_FRAME_CLASS_NAME = "tq-embed-frame";
57
+ export declare const EMBED_CAPTION_CLASS_NAME = "tq-embed-caption";
58
+ /** The Quill blot name, shared by the studio editor and the generated one. */
59
+ export declare const EMBED_BLOT_NAME = "tq-embed";
60
+ export declare const EMBED_ATTR: {
61
+ readonly MARKER: "data-tq-embed";
62
+ readonly PROVIDER: "data-tq-embed-provider";
63
+ readonly URL: "data-tq-embed-url";
64
+ readonly MODE: "data-tq-embed-mode";
65
+ readonly CODE: "data-tq-embed-code";
66
+ readonly RATIO: "data-tq-embed-ratio";
67
+ readonly WIDTH: "data-tq-embed-width";
68
+ readonly ALIGN: "data-tq-embed-align";
69
+ readonly CAPTION: "data-tq-embed-caption";
70
+ readonly SANDBOX: "data-tq-embed-sandbox";
71
+ /** Written by a runtime once a sandbox embed has been mounted. */
72
+ readonly ACTIVATED: "data-tq-embed-activated";
73
+ /**
74
+ * Marks an element an EDITOR added purely to preview the embed. Editors read
75
+ * their value back out of the live DOM, so a preview must be recognizable in
76
+ * order to be stripped again — see `normalizeEmbedsForStorage`.
77
+ */
78
+ readonly PREVIEW: "data-tq-embed-preview";
79
+ };
80
+ export declare const EMBED_ALIGNMENTS: EmbedAlign[];
81
+ export declare const CUSTOM_EMBED_PROVIDER_ID = "custom";
82
+ export declare const GENERIC_EMBED_PROVIDER_ID = "iframe-url";
83
+ export declare const DEFAULT_EMBED_WIDTH = 100;
84
+ export declare const DEFAULT_EMBED_ALIGN: EmbedAlign;
85
+ export declare const DEFAULT_EMBED_SANDBOX_LEVEL: EmbedSandboxLevel;
86
+ /** 16:9, as a padding-top percentage. */
87
+ export declare const WIDESCREEN_EMBED_RATIO = 56.25;
88
+ export interface EmbedProviderDefinition {
89
+ id: string;
90
+ label: string;
91
+ /**
92
+ * Alternative spellings of the same URL. Every pattern of one provider must
93
+ * expose the same capture groups, because `template` indexes them by number.
94
+ */
95
+ patterns: RegExp[];
96
+ /**
97
+ * The markup, with `$1`-`$9` replaced by the capture groups and `$&` by the
98
+ * whole URL. Prefix the token with `E` (`$E1`, `$E&`) to URL-encode it.
99
+ * A literal dollar is written `$$`.
100
+ */
101
+ template: string;
102
+ /**
103
+ * When set, the frame becomes a responsive padding-top box of this
104
+ * percentage and the template's iframe is expected to fill it absolutely.
105
+ * `null` means the template carries its own height.
106
+ */
107
+ ratio: number | null;
108
+ }
109
+ /**
110
+ * Ordered most-specific first: `resolveEmbedProvider` returns the first match,
111
+ * and the generic `iframe-url` fallback is deliberately last.
112
+ */
113
+ export declare const EMBED_PROVIDERS: EmbedProviderDefinition[];
114
+ export interface EmbedProviderMatch {
115
+ provider: EmbedProviderDefinition;
116
+ match: RegExpMatchArray;
117
+ }
118
+ /** `javascript:`, `data:` and protocol-relative URLs never become an embed. */
119
+ export declare function isSafeEmbedUrl(url: string): boolean;
120
+ /** How an embed names itself in the editor: the provider, or "Custom code". */
121
+ export declare function embedProviderLabel(providerId: string): string;
122
+ export declare function resolveEmbedProvider(url: string): EmbedProviderMatch | null;
123
+ /**
124
+ * Substitutes `$1`-`$9` / `$E1`-`$E9` / `$&` / `$E&` in a provider template.
125
+ * Written by hand rather than through `String.replace` so the replacement
126
+ * patterns `String.replace` reserves (`$'`, "$`", `$<name>`) stay literal.
127
+ */
128
+ export declare function applyEmbedTemplate(template: string, match: RegExpMatchArray, url: string): string;
129
+ /** The embed markup for a pasted URL, or `null` when nothing recognizes it. */
130
+ export declare function buildEmbedHtmlFromUrl(url: string): {
131
+ provider: EmbedProviderDefinition;
132
+ html: string;
133
+ } | null;
134
+ /**
135
+ * Markup that can execute anything — a `<script>`, an inline `on*` handler or a
136
+ * `javascript:` URL — is quarantined in a sandboxed iframe. Everything else is
137
+ * passive and can be rendered straight into the page.
138
+ */
139
+ export declare function resolveEmbedMode(html: string): EmbedMode;
140
+ export declare function clampEmbedWidth(width: number): number;
141
+ export declare function normalizeEmbedAlign(align: string): EmbedAlign;
142
+ export declare function escapeEmbedAttribute(value: string): string;
143
+ export declare function escapeEmbedText(value: string): string;
144
+ /**
145
+ * UTF-8 safe base64, working in both the browser (`btoa`) and Node (`Buffer`).
146
+ * The intermediate `%xx` round-trip is what makes non-ASCII captions and
147
+ * markup survive — `btoa` alone throws on anything above U+00FF.
148
+ */
149
+ export declare function encodeEmbedCode(code: string): string;
150
+ export declare function decodeEmbedCode(encoded: string): string;
151
+ export declare function createEmbedValue(params: {
152
+ code: string;
153
+ provider?: string;
154
+ url?: string;
155
+ ratio?: number | null;
156
+ width?: number;
157
+ align?: string;
158
+ caption?: string;
159
+ sandboxLevel?: EmbedSandboxLevel;
160
+ }): EmbedValue;
161
+ /**
162
+ * The outer block's own layout — width, float and the margins each align needs.
163
+ *
164
+ * `position:relative` is deliberate: an editor overlays a click catcher on the
165
+ * block (an embed's own iframe swallows the click that should select it), and
166
+ * that overlay needs the block as its positioning context.
167
+ */
168
+ export declare function embedBlockStyle(value: Pick<EmbedValue, 'width' | 'align'>): string;
169
+ /**
170
+ * The frame is what holds the embed itself. With a `ratio` it becomes the
171
+ * responsive padding-top box the provider templates fill absolutely; without
172
+ * one the template carries its own height.
173
+ */
174
+ export declare function embedFrameStyle(ratio: number | null): string;
175
+ export declare const EMBED_CAPTION_STYLE = "margin-top:8px;font-size:0.875em;line-height:1.5;opacity:0.75;text-align:center";
176
+ /**
177
+ * The stored markup for one embed. This is the exact string both editors write
178
+ * into the content column and both runtimes read back.
179
+ */
180
+ export declare function buildEmbedElementHtml(value: EmbedValue): string;
181
+ /**
182
+ * `inline` keeps the markup as real children so it renders with no JavaScript.
183
+ * `sandbox` keeps only a `<noscript>` link — the markup itself lives, encoded,
184
+ * on `data-tq-embed-code` and the runtime mounts it in a sandboxed iframe.
185
+ */
186
+ export declare function buildEmbedFrameChildren(value: EmbedValue): string;
187
+ export declare function findEmbedFrame(element: Element): Element | null;
188
+ export declare function readEmbedValueFromElement(element: Element): EmbedValue;
189
+ /**
190
+ * A corrupted `data-tq-embed-code` (truncated by an export round-trip, mangled
191
+ * by a content rewrite) must degrade to "render nothing", never to a thrown
192
+ * exception inside a render pass.
193
+ */
194
+ export declare function readEncodedEmbedCode(element: Element): string;
195
+ export declare function applyEmbedElementLayout(element: Element, updates: {
196
+ width?: number;
197
+ align?: string;
198
+ }): void;
199
+ /**
200
+ * Adds, updates or removes the caption element in place. The caption lives both
201
+ * as an attribute (so it survives a sandbox re-render) and as visible text.
202
+ */
203
+ export declare function applyEmbedElementCaption(element: Element, caption: string): void;
204
+ /**
205
+ * `allow-same-origin` is deliberately absent: combined with `allow-scripts` it
206
+ * lets a frame reach into the host page and even remove its own sandbox, which
207
+ * is the whole thing this mode exists to prevent.
208
+ */
209
+ export declare const EMBED_SANDBOX_FLAGS_STRICT = "allow-scripts allow-popups allow-popups-to-escape-sandbox allow-forms allow-presentation";
210
+ /** The opt-in for widgets that refuse to render without storage access. */
211
+ export declare const EMBED_SANDBOX_FLAGS_TRUSTED: string;
212
+ export declare function resolveEmbedSandboxFlags(level: EmbedSandboxLevel): string;
213
+ export declare const EMBED_HEIGHT_MESSAGE_TYPE = "tq-embed-height";
214
+ export declare const EMBED_TOKEN_PLACEHOLDER = "__TQ_EMBED_TOKEN__";
215
+ export declare const EMBED_MIN_HEIGHT = 80;
216
+ export declare const EMBED_MAX_HEIGHT = 6000;
217
+ /** Until the frame reports back, this is what it occupies. */
218
+ export declare const EMBED_INITIAL_HEIGHT = 320;
219
+ export declare const EMBED_SANDBOX_DOC_HEAD: string;
220
+ export declare const EMBED_SANDBOX_DOC_TAIL = "</body></html>";
221
+ /**
222
+ * The document a sandboxed embed is given. Assign it to `iframe.srcdoc` as a
223
+ * property — writing it into the attribute would need HTML escaping.
224
+ */
225
+ export declare function buildEmbedSandboxDocument(code: string, token: string): string;
226
+ /**
227
+ * A sandboxed frame has an opaque origin, so `event.origin` is `"null"` and
228
+ * cannot identify it. The per-frame token baked into its document is the guard
229
+ * instead: a message is only ever matched against tokens this page minted.
230
+ */
231
+ export declare function parseEmbedHeightMessage(data: unknown): {
232
+ token: string;
233
+ height: number;
234
+ } | null;
235
+ export declare function createEmbedToken(): string;
236
+ /**
237
+ * Restores every embed inside `root` to its canonical STORED form, in place.
238
+ *
239
+ * An editor reads its value back out of the live DOM (Quill hands back
240
+ * `root.innerHTML`), and by then the DOM carries things the content column must
241
+ * never keep: the preview an editor mounted next to a sandboxed embed, and the
242
+ * marker a runtime writes once it has handled a block. The editor normalizes a
243
+ * detached CLONE of its root through this before emitting a value, so what is
244
+ * stored is exactly what `buildEmbedElementHtml` would have produced — whatever
245
+ * the preview did to the live DOM.
246
+ *
247
+ * The frame restore is a self-heal for the other mounting strategy: the canvas
248
+ * and the published page mount INTO the frame, because they never read back.
249
+ */
250
+ export declare function normalizeEmbedsForStorage(root: Element): void;
251
+ //# sourceMappingURL=rich-text-embeds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rich-text-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