@frontlit/page-builder 0.1.0-alpha.4 → 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/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.4",
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",
@@ -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/mo\"."
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
  }
@@ -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,