@levo-so/site-runtime 0.3.11 → 0.3.12
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/{PopupBody-BI-MJqmd-DW3qWKam.js → PopupBody-BI-MJqmd-Dy94OeBQ.js} +1 -1
- package/{PopupRenderer-D66Gx63H-BnOmWsyj.js → PopupRenderer-D66Gx63H-DkprAQH7.js} +1 -1
- package/blog-content.d.ts +31 -0
- package/{rich-text.js → blog-content.js} +3 -3
- package/{dist-BdNHqoWi.js → dist-1r8apbDv.js} +56 -51
- package/{dist-Cl_sKk9y.js → dist-B7c9xjWu.js} +1 -1
- package/index.d.ts +167 -10
- package/index.js +628 -531
- package/package.json +6 -6
- package/popups.js +1 -1
- package/rich-text.d.ts +0 -25
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levo-so/site-runtime",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.12",
|
|
4
4
|
"description": "Runtime for Levo Studio v3 sites — the editor preview inspector, page head metadata, and the Levo data client.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"types": "./popups.d.ts",
|
|
22
22
|
"default": "./popups.js"
|
|
23
23
|
},
|
|
24
|
-
"./
|
|
25
|
-
"types": "./
|
|
26
|
-
"default": "./
|
|
24
|
+
"./blog-content": {
|
|
25
|
+
"types": "./blog-content.d.ts",
|
|
26
|
+
"default": "./blog-content.js"
|
|
27
27
|
},
|
|
28
28
|
"./start": {
|
|
29
29
|
"types": "./start.d.ts",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"@stripe/react-stripe-js": "3.1.1",
|
|
86
86
|
"@stripe/stripe-js": "5.5.0",
|
|
87
87
|
"react-razorpay": "3.0.1",
|
|
88
|
-
"@levo-so/core": "0.3.
|
|
89
|
-
"@levo-so/insights": "0.3.
|
|
88
|
+
"@levo-so/core": "0.3.12",
|
|
89
|
+
"@levo-so/insights": "0.3.12"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"@base-ui/react": "^1.5.0",
|
package/popups.js
CHANGED
package/rich-text.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare interface ILevoRichTextProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "content"> {
|
|
2
|
-
/**
|
|
3
|
-
* A record's rich-text field, exactly as the API returns it — `post.content`, or any
|
|
4
|
-
* collection field of kind `richtext`. Every shape the platform has ever stored is
|
|
5
|
-
* accepted; see {@link LevoRichText}.
|
|
6
|
-
*/
|
|
7
|
-
content: unknown;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Render a rich-text field — a blog post's body, a collection record's long-form field.
|
|
12
|
-
*
|
|
13
|
-
* THE way to put rich text on the page: the value is a ProseMirror document, not a string, so
|
|
14
|
-
* `String(post.content)` prints `[object Object]` and `dangerouslySetInnerHTML` has nothing to
|
|
15
|
-
* insert. This renders the same node set the Levo editor writes and Levo-hosted pages show —
|
|
16
|
-
* headings, lists, code blocks, images, bookmarks, buttons, embedded collections — server-side,
|
|
17
|
-
* so the article is in the SSR HTML where crawlers read it.
|
|
18
|
-
*
|
|
19
|
-
* Typography comes from the shared prose theme in `@levo-so/site-runtime/setup.css` (already
|
|
20
|
-
* loaded by the site shell). Style the wrapper through `className` as usual; content the field
|
|
21
|
-
* doesn't contain renders nothing, so an empty body is an empty region, never a crash.
|
|
22
|
-
*/
|
|
23
|
-
export declare const LevoRichText: React.FC<ILevoRichTextProps>;
|
|
24
|
-
|
|
25
|
-
export { }
|