@nextsparkjs/core 0.1.0-beta.67 → 0.1.0-beta.68

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 (58) hide show
  1. package/dist/components/dashboard/block-editor/block-picker.d.ts +7 -2
  2. package/dist/components/dashboard/block-editor/block-picker.d.ts.map +1 -1
  3. package/dist/components/dashboard/block-editor/block-picker.js +27 -20
  4. package/dist/components/dashboard/block-editor/block-preview-canvas.d.ts.map +1 -1
  5. package/dist/components/dashboard/block-editor/block-preview-canvas.js +37 -37
  6. package/dist/components/dashboard/block-editor/block-settings-panel.js +3 -3
  7. package/dist/components/dashboard/block-editor/builder-editor-view.d.ts.map +1 -1
  8. package/dist/components/dashboard/block-editor/builder-editor-view.js +124 -82
  9. package/dist/components/dashboard/block-editor/config-panel.d.ts +18 -0
  10. package/dist/components/dashboard/block-editor/config-panel.d.ts.map +1 -0
  11. package/dist/components/dashboard/block-editor/config-panel.js +413 -0
  12. package/dist/components/dashboard/block-editor/floating-block-toolbar.js +1 -1
  13. package/dist/components/dashboard/block-editor/pattern-card.js +1 -1
  14. package/dist/components/dashboard/block-editor/pattern-reference-preview.js +1 -1
  15. package/dist/components/dashboard/block-editor/sortable-block.js +1 -1
  16. package/dist/components/dashboard/block-editor/tree-view-node.d.ts +11 -0
  17. package/dist/components/dashboard/block-editor/tree-view-node.d.ts.map +1 -0
  18. package/dist/components/dashboard/block-editor/tree-view-node.js +91 -0
  19. package/dist/components/dashboard/block-editor/tree-view.d.ts +17 -0
  20. package/dist/components/dashboard/block-editor/tree-view.d.ts.map +1 -0
  21. package/dist/components/dashboard/block-editor/tree-view.js +125 -0
  22. package/dist/components/dashboard/block-editor/viewport-toggle.d.ts +10 -0
  23. package/dist/components/dashboard/block-editor/viewport-toggle.d.ts.map +1 -0
  24. package/dist/components/dashboard/block-editor/viewport-toggle.js +55 -0
  25. package/dist/components/public/pageBuilder/PageRenderer.d.ts.map +1 -1
  26. package/dist/components/public/pageBuilder/PageRenderer.js +10 -1
  27. package/dist/components/ui/dynamic-icon.d.ts +12 -0
  28. package/dist/components/ui/dynamic-icon.d.ts.map +1 -0
  29. package/dist/components/ui/dynamic-icon.js +11 -0
  30. package/dist/lib/selectors/core-selectors.d.ts +98 -44
  31. package/dist/lib/selectors/core-selectors.d.ts.map +1 -1
  32. package/dist/lib/selectors/domains/block-editor.selectors.d.ts +136 -71
  33. package/dist/lib/selectors/domains/block-editor.selectors.d.ts.map +1 -1
  34. package/dist/lib/selectors/domains/block-editor.selectors.js +130 -60
  35. package/dist/lib/selectors/selectors.d.ts +196 -88
  36. package/dist/lib/selectors/selectors.d.ts.map +1 -1
  37. package/dist/messages/en/admin.json +15 -1
  38. package/dist/messages/en/index.d.ts +14 -0
  39. package/dist/messages/en/index.d.ts.map +1 -1
  40. package/dist/messages/es/admin.json +16 -1
  41. package/dist/messages/es/index.d.ts +15 -0
  42. package/dist/messages/es/index.d.ts.map +1 -1
  43. package/dist/presets/blocks/cta-section/component.tsx +4 -4
  44. package/dist/presets/blocks/features-grid/component.tsx +5 -5
  45. package/dist/presets/blocks/hero/component.tsx +2 -2
  46. package/dist/presets/blocks/testimonials/component.tsx +4 -4
  47. package/dist/presets/blocks/text-content/component.tsx +2 -2
  48. package/dist/presets/theme/blocks/hero/component.tsx +2 -2
  49. package/dist/presets/theme/tests/cypress/src/core/BlockEditorBasePOM.ts +123 -24
  50. package/dist/styles/classes.json +9 -2
  51. package/dist/styles/ui.css +1 -1
  52. package/dist/templates/features/blog/blocks/post-content/component.tsx +2 -2
  53. package/dist/templates/features/pages/blocks/hero/component.tsx +2 -2
  54. package/dist/templates/next.config.mjs +5 -3
  55. package/package.json +5 -4
  56. package/templates/features/blog/blocks/post-content/component.tsx +2 -2
  57. package/templates/features/pages/blocks/hero/component.tsx +2 -2
  58. package/templates/next.config.mjs +5 -3
@@ -79,7 +79,7 @@ export function PostContentBlock({
79
79
 
80
80
  // Build section classes with background
81
81
  const sectionClasses = buildSectionClasses(
82
- 'py-16 px-4 md:py-24',
82
+ 'py-16 px-4 @md:py-24',
83
83
  { backgroundColor, className }
84
84
  )
85
85
 
@@ -119,7 +119,7 @@ export function PostContentBlock({
119
119
  {/* Optional Section Title */}
120
120
  {title && (
121
121
  <div className={cn('mb-12 text-center', maxWidthClasses[maxWidth], 'mx-auto')}>
122
- <h2 className="text-4xl font-bold md:text-5xl lg:text-6xl tracking-tight">
122
+ <h2 className="text-4xl font-bold @md:text-5xl @lg:text-6xl tracking-tight">
123
123
  {title}
124
124
  </h2>
125
125
  </div>
@@ -83,13 +83,13 @@ export function HeroBlock({
83
83
  alignmentClasses[alignment]
84
84
  )}>
85
85
  {title && (
86
- <h1 className="mb-6 text-5xl font-bold leading-tight md:text-6xl lg:text-7xl">
86
+ <h1 className="mb-6 text-5xl font-bold leading-tight @md:text-6xl @lg:text-7xl">
87
87
  {title}
88
88
  </h1>
89
89
  )}
90
90
 
91
91
  {displayContent && (
92
- <p className="mb-8 text-xl md:text-2xl opacity-90 max-w-2xl">
92
+ <p className="mb-8 text-xl @md:text-2xl opacity-90 max-w-2xl">
93
93
  {displayContent}
94
94
  </p>
95
95
  )}
@@ -142,8 +142,9 @@ const nextConfig = {
142
142
  "font-src 'self' data:",
143
143
  // wss: needed for Next.js hot reload in development
144
144
  `connect-src 'self' https://api.stripe.com${!isProduction ? ' wss:' : ''}`,
145
- "frame-src https://js.stripe.com https://hooks.stripe.com",
146
- "frame-ancestors 'none'",
145
+ "frame-src 'self' https://js.stripe.com https://hooks.stripe.com",
146
+ // Allow embedding in iframes from same origin (needed for page builder preview)
147
+ "frame-ancestors 'self'",
147
148
  "object-src 'none'",
148
149
  "base-uri 'self'",
149
150
  // CSP violation reporting - sends violations to /api/csp-report
@@ -165,8 +166,9 @@ const nextConfig = {
165
166
  value: 'nosniff'
166
167
  },
167
168
  {
169
+ // SAMEORIGIN allows same-origin iframes (needed for page builder preview)
168
170
  key: 'X-Frame-Options',
169
- value: 'DENY'
171
+ value: 'SAMEORIGIN'
170
172
  },
171
173
  // X-XSS-Protection is deprecated but kept for legacy browser support
172
174
  // Modern browsers use CSP instead
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextsparkjs/core",
3
- "version": "0.1.0-beta.67",
3
+ "version": "0.1.0-beta.68",
4
4
  "description": "NextSpark - The complete SaaS framework for Next.js",
5
5
  "license": "MIT",
6
6
  "author": "NextSpark <hello@nextspark.dev>",
@@ -318,15 +318,13 @@
318
318
  "typescript": "^5"
319
319
  },
320
320
  "dependencies": {
321
- "@nextsparkjs/testing": "0.1.0-beta.53",
322
- "@upstash/ratelimit": "^2.0.3",
323
- "@upstash/redis": "^1.20.6",
324
321
  "@codemirror/lang-json": "^6.0.2",
325
322
  "@dnd-kit/core": "^6.3.1",
326
323
  "@dnd-kit/sortable": "^10.0.0",
327
324
  "@dnd-kit/utilities": "^3.2.2",
328
325
  "@hookform/resolvers": "^5.2.1",
329
326
  "@inquirer/prompts": "^7.2.0",
327
+ "@nextsparkjs/testing": "0.1.0-beta.53",
330
328
  "@radix-ui/react-accordion": "^1.2.12",
331
329
  "@radix-ui/react-alert-dialog": "^1.1.15",
332
330
  "@radix-ui/react-avatar": "^1.1.10",
@@ -351,10 +349,13 @@
351
349
  "@radix-ui/react-toggle": "^1.1.10",
352
350
  "@radix-ui/react-tooltip": "^1.2.8",
353
351
  "@shikijs/rehype": "^3.20.0",
352
+ "@tailwindcss/container-queries": "^0.1.1",
354
353
  "@tanstack/react-query": "^5.85.0",
355
354
  "@tanstack/react-query-devtools": "^5.85.0",
356
355
  "@uiw/codemirror-theme-github": "^4.25.4",
357
356
  "@uiw/react-codemirror": "^4.25.4",
357
+ "@upstash/ratelimit": "^2.0.3",
358
+ "@upstash/redis": "^1.20.6",
358
359
  "@vercel/blob": "^2.0.0",
359
360
  "better-auth": "^1.3.5",
360
361
  "chalk": "^5.4.1",
@@ -79,7 +79,7 @@ export function PostContentBlock({
79
79
 
80
80
  // Build section classes with background
81
81
  const sectionClasses = buildSectionClasses(
82
- 'py-16 px-4 md:py-24',
82
+ 'py-16 px-4 @md:py-24',
83
83
  { backgroundColor, className }
84
84
  )
85
85
 
@@ -119,7 +119,7 @@ export function PostContentBlock({
119
119
  {/* Optional Section Title */}
120
120
  {title && (
121
121
  <div className={cn('mb-12 text-center', maxWidthClasses[maxWidth], 'mx-auto')}>
122
- <h2 className="text-4xl font-bold md:text-5xl lg:text-6xl tracking-tight">
122
+ <h2 className="text-4xl font-bold @md:text-5xl @lg:text-6xl tracking-tight">
123
123
  {title}
124
124
  </h2>
125
125
  </div>
@@ -83,13 +83,13 @@ export function HeroBlock({
83
83
  alignmentClasses[alignment]
84
84
  )}>
85
85
  {title && (
86
- <h1 className="mb-6 text-5xl font-bold leading-tight md:text-6xl lg:text-7xl">
86
+ <h1 className="mb-6 text-5xl font-bold leading-tight @md:text-6xl @lg:text-7xl">
87
87
  {title}
88
88
  </h1>
89
89
  )}
90
90
 
91
91
  {displayContent && (
92
- <p className="mb-8 text-xl md:text-2xl opacity-90 max-w-2xl">
92
+ <p className="mb-8 text-xl @md:text-2xl opacity-90 max-w-2xl">
93
93
  {displayContent}
94
94
  </p>
95
95
  )}
@@ -142,8 +142,9 @@ const nextConfig = {
142
142
  "font-src 'self' data:",
143
143
  // wss: needed for Next.js hot reload in development
144
144
  `connect-src 'self' https://api.stripe.com${!isProduction ? ' wss:' : ''}`,
145
- "frame-src https://js.stripe.com https://hooks.stripe.com",
146
- "frame-ancestors 'none'",
145
+ "frame-src 'self' https://js.stripe.com https://hooks.stripe.com",
146
+ // Allow embedding in iframes from same origin (needed for page builder preview)
147
+ "frame-ancestors 'self'",
147
148
  "object-src 'none'",
148
149
  "base-uri 'self'",
149
150
  // CSP violation reporting - sends violations to /api/csp-report
@@ -165,8 +166,9 @@ const nextConfig = {
165
166
  value: 'nosniff'
166
167
  },
167
168
  {
169
+ // SAMEORIGIN allows same-origin iframes (needed for page builder preview)
168
170
  key: 'X-Frame-Options',
169
- value: 'DENY'
171
+ value: 'SAMEORIGIN'
170
172
  },
171
173
  // X-XSS-Protection is deprecated but kept for legacy browser support
172
174
  // Modern browsers use CSP instead