@frontlit/page-builder 0.1.0-alpha.3 → 0.1.0-alpha.5
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/dist/blocks/index.d.ts +17 -2
- package/dist/blocks/index.js +1 -1
- package/dist/builder/index.d.ts +4 -1
- package/dist/builder/index.js +3 -3
- package/dist/{chunk-K4WCLHMS.js → chunk-5J6TLS5U.js} +316 -65
- package/dist/chunk-5J6TLS5U.js.map +1 -0
- package/dist/{chunk-GIKTOAQS.js → chunk-LMCEOWQG.js} +7 -7
- package/dist/chunk-LMCEOWQG.js.map +1 -0
- package/dist/{chunk-IU4KATI2.js → chunk-USPQ3AOW.js} +3 -3
- package/dist/{chunk-IU4KATI2.js.map → chunk-USPQ3AOW.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/renderer/index.js +2 -2
- package/dist/server/index.js +145 -50
- package/dist/server/index.js.map +1 -1
- package/dist/server/islands/header-github-stars.d.ts +12 -0
- package/dist/server/islands/header-github-stars.js +31 -0
- package/dist/server/islands/header-github-stars.js.map +1 -0
- package/dist/server/islands/pricing-period-switch.d.ts +20 -0
- package/dist/server/islands/pricing-period-switch.js +151 -0
- package/dist/server/islands/pricing-period-switch.js.map +1 -0
- package/dist/server/islands/theme-mode-switcher.d.ts +1 -1
- package/dist/server/schema.d.ts +38 -0
- package/dist/server/schema.js +17 -2
- package/dist/server/schema.js.map +1 -1
- package/dist/styles.css +12 -0
- package/package.json +3 -4
- package/schema/page.v1.json +29 -1
- package/schema/site.v1.json +8 -0
- package/dist/chunk-GIKTOAQS.js.map +0 -1
- package/dist/chunk-K4WCLHMS.js.map +0 -1
package/dist/styles.css
CHANGED
|
@@ -4642,6 +4642,12 @@
|
|
|
4642
4642
|
opacity: 100%;
|
|
4643
4643
|
}
|
|
4644
4644
|
}
|
|
4645
|
+
.group-data-\[period\=yearly\]\/pricing\:block:is(:where(.group\/pricing)[data-period="yearly"] *) {
|
|
4646
|
+
display: block;
|
|
4647
|
+
}
|
|
4648
|
+
.group-data-\[period\=yearly\]\/pricing\:hidden:is(:where(.group\/pricing)[data-period="yearly"] *) {
|
|
4649
|
+
display: none;
|
|
4650
|
+
}
|
|
4645
4651
|
.peer-focus-visible\:ring-2:is(:where(.peer):focus-visible ~ *) {
|
|
4646
4652
|
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
4647
4653
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -8496,12 +8502,18 @@
|
|
|
8496
8502
|
.lg\:\!grow {
|
|
8497
8503
|
flex-grow: 1 !important;
|
|
8498
8504
|
}
|
|
8505
|
+
.lg\:grid-cols-1 {
|
|
8506
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
8507
|
+
}
|
|
8499
8508
|
.lg\:grid-cols-2 {
|
|
8500
8509
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
8501
8510
|
}
|
|
8502
8511
|
.lg\:grid-cols-3 {
|
|
8503
8512
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
8504
8513
|
}
|
|
8514
|
+
.lg\:grid-cols-4 {
|
|
8515
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
8516
|
+
}
|
|
8505
8517
|
.lg\:\!flex-row {
|
|
8506
8518
|
flex-direction: row !important;
|
|
8507
8519
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontlit/page-builder",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.5",
|
|
4
4
|
"description": "Block-based WYSIWYG page builder and renderer for React",
|
|
5
5
|
"author": "FrontLit",
|
|
6
6
|
"license": "MIT",
|
|
@@ -149,7 +149,6 @@
|
|
|
149
149
|
],
|
|
150
150
|
"scripts": {
|
|
151
151
|
"build": "tsup && tsup --config tsup.islands.config.ts && tsup --config tsup.server.config.ts && tsup --config tsup.schema.config.ts && node scripts/add-use-client.mjs && tailwindcss -i src/styles.css -o dist/styles.css && cp src/theme.css dist/theme.css && rm -rf dist/fonts && cp -a fonts dist/fonts && node scripts/rewrite-font-urls.mjs",
|
|
152
|
-
"prepublishOnly": "bun run build",
|
|
153
152
|
"dev": "tsup --watch & tsup --watch --config tsup.islands.config.ts & tsup --watch --config tsup.server.config.ts & wait",
|
|
154
153
|
"clean": "rimraf dist",
|
|
155
154
|
"check-types": "tsc --noEmit",
|
|
@@ -162,8 +161,8 @@
|
|
|
162
161
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
163
162
|
},
|
|
164
163
|
"dependencies": {
|
|
165
|
-
"@frontlit/media-uploader": "0.1.0-alpha.
|
|
166
|
-
"@frontlit/text-editor": "0.1.0-alpha.
|
|
164
|
+
"@frontlit/media-uploader": "0.1.0-alpha.1",
|
|
165
|
+
"@frontlit/text-editor": "0.1.0-alpha.3",
|
|
167
166
|
"@radix-ui/react-alert-dialog": "^1.1.23",
|
|
168
167
|
"@radix-ui/react-avatar": "^1.2.6",
|
|
169
168
|
"@radix-ui/react-checkbox": "^1.3.11",
|
package/schema/page.v1.json
CHANGED
|
@@ -2243,6 +2243,26 @@
|
|
|
2243
2243
|
],
|
|
2244
2244
|
"default": "center"
|
|
2245
2245
|
},
|
|
2246
|
+
"pricingSwitcher": {
|
|
2247
|
+
"type": "boolean",
|
|
2248
|
+
"description": "Show a Monthly/Yearly switch above the plans."
|
|
2249
|
+
},
|
|
2250
|
+
"monthlyPriceCaption": {
|
|
2251
|
+
"type": "string",
|
|
2252
|
+
"description": "Defaults to \"Monthly\"."
|
|
2253
|
+
},
|
|
2254
|
+
"yearlyPriceCaption": {
|
|
2255
|
+
"type": "string",
|
|
2256
|
+
"description": "Defaults to \"Yearly\", e.g. \"Yearly (2 months free)\"."
|
|
2257
|
+
},
|
|
2258
|
+
"defaultPeriod": {
|
|
2259
|
+
"type": "string",
|
|
2260
|
+
"enum": [
|
|
2261
|
+
"monthly",
|
|
2262
|
+
"yearly"
|
|
2263
|
+
],
|
|
2264
|
+
"description": "Period selected on load. Defaults to yearly."
|
|
2265
|
+
},
|
|
2246
2266
|
"tiers": {
|
|
2247
2267
|
"type": "array",
|
|
2248
2268
|
"items": {
|
|
@@ -2253,7 +2273,11 @@
|
|
|
2253
2273
|
},
|
|
2254
2274
|
"price": {
|
|
2255
2275
|
"type": "string",
|
|
2256
|
-
"description": "Display string, e.g. \"$29/
|
|
2276
|
+
"description": "Display string, e.g. \"$29/month\". The monthly price when pricingSwitcher is on."
|
|
2277
|
+
},
|
|
2278
|
+
"priceYearly": {
|
|
2279
|
+
"type": "string",
|
|
2280
|
+
"description": "Shown when the switch is on Yearly, e.g. \"$290/year\". Falls back to price."
|
|
2257
2281
|
},
|
|
2258
2282
|
"description": {
|
|
2259
2283
|
"type": "string"
|
|
@@ -2271,6 +2295,10 @@
|
|
|
2271
2295
|
"type": "string",
|
|
2272
2296
|
"description": "A site path (\"/pricing\"), anchor (\"/#faq\") or absolute URL."
|
|
2273
2297
|
},
|
|
2298
|
+
"buttonActionYearly": {
|
|
2299
|
+
"type": "string",
|
|
2300
|
+
"description": "A site path (\"/pricing\"), anchor (\"/#faq\") or absolute URL."
|
|
2301
|
+
},
|
|
2274
2302
|
"highlighted": {
|
|
2275
2303
|
"type": "boolean"
|
|
2276
2304
|
}
|
package/schema/site.v1.json
CHANGED
|
@@ -3489,6 +3489,14 @@
|
|
|
3489
3489
|
"minimum": 0,
|
|
3490
3490
|
"maximum": 8,
|
|
3491
3491
|
"default": 2
|
|
3492
|
+
},
|
|
3493
|
+
"githubRepo": {
|
|
3494
|
+
"type": "string",
|
|
3495
|
+
"description": "GitHub repository as \"owner/repo\" or a github.com URL. Shows a GitHub icon link; other values are ignored."
|
|
3496
|
+
},
|
|
3497
|
+
"showGithubStars": {
|
|
3498
|
+
"type": "boolean",
|
|
3499
|
+
"description": "Show the repository's star count next to the GitHub icon."
|
|
3492
3500
|
}
|
|
3493
3501
|
},
|
|
3494
3502
|
"additionalProperties": false,
|