@nextsparkjs/core 0.1.0-beta.66 → 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.
- package/dist/components/dashboard/block-editor/block-picker.d.ts +7 -2
- package/dist/components/dashboard/block-editor/block-picker.d.ts.map +1 -1
- package/dist/components/dashboard/block-editor/block-picker.js +27 -20
- package/dist/components/dashboard/block-editor/block-preview-canvas.d.ts.map +1 -1
- package/dist/components/dashboard/block-editor/block-preview-canvas.js +37 -37
- package/dist/components/dashboard/block-editor/block-settings-panel.js +3 -3
- package/dist/components/dashboard/block-editor/builder-editor-view.d.ts.map +1 -1
- package/dist/components/dashboard/block-editor/builder-editor-view.js +124 -82
- package/dist/components/dashboard/block-editor/config-panel.d.ts +18 -0
- package/dist/components/dashboard/block-editor/config-panel.d.ts.map +1 -0
- package/dist/components/dashboard/block-editor/config-panel.js +413 -0
- package/dist/components/dashboard/block-editor/floating-block-toolbar.js +1 -1
- package/dist/components/dashboard/block-editor/pattern-card.js +1 -1
- package/dist/components/dashboard/block-editor/pattern-reference-preview.js +1 -1
- package/dist/components/dashboard/block-editor/sortable-block.js +1 -1
- package/dist/components/dashboard/block-editor/tree-view-node.d.ts +11 -0
- package/dist/components/dashboard/block-editor/tree-view-node.d.ts.map +1 -0
- package/dist/components/dashboard/block-editor/tree-view-node.js +91 -0
- package/dist/components/dashboard/block-editor/tree-view.d.ts +17 -0
- package/dist/components/dashboard/block-editor/tree-view.d.ts.map +1 -0
- package/dist/components/dashboard/block-editor/tree-view.js +125 -0
- package/dist/components/dashboard/block-editor/viewport-toggle.d.ts +10 -0
- package/dist/components/dashboard/block-editor/viewport-toggle.d.ts.map +1 -0
- package/dist/components/dashboard/block-editor/viewport-toggle.js +55 -0
- package/dist/components/public/pageBuilder/PageRenderer.d.ts.map +1 -1
- package/dist/components/public/pageBuilder/PageRenderer.js +10 -1
- package/dist/components/ui/dynamic-icon.d.ts +12 -0
- package/dist/components/ui/dynamic-icon.d.ts.map +1 -0
- package/dist/components/ui/dynamic-icon.js +11 -0
- package/dist/lib/selectors/core-selectors.d.ts +98 -44
- package/dist/lib/selectors/core-selectors.d.ts.map +1 -1
- package/dist/lib/selectors/domains/block-editor.selectors.d.ts +136 -71
- package/dist/lib/selectors/domains/block-editor.selectors.d.ts.map +1 -1
- package/dist/lib/selectors/domains/block-editor.selectors.js +130 -60
- package/dist/lib/selectors/selectors.d.ts +196 -88
- package/dist/lib/selectors/selectors.d.ts.map +1 -1
- package/dist/messages/en/admin.json +15 -1
- package/dist/messages/en/index.d.ts +14 -0
- package/dist/messages/en/index.d.ts.map +1 -1
- package/dist/messages/es/admin.json +16 -1
- package/dist/messages/es/index.d.ts +15 -0
- package/dist/messages/es/index.d.ts.map +1 -1
- package/dist/presets/blocks/cta-section/component.tsx +4 -4
- package/dist/presets/blocks/features-grid/component.tsx +5 -5
- package/dist/presets/blocks/hero/component.tsx +2 -2
- package/dist/presets/blocks/testimonials/component.tsx +4 -4
- package/dist/presets/blocks/text-content/component.tsx +2 -2
- package/dist/presets/theme/blocks/hero/component.tsx +2 -2
- package/dist/presets/theme/tests/cypress/src/core/BlockEditorBasePOM.ts +123 -24
- package/dist/styles/classes.json +9 -2
- package/dist/styles/ui.css +1 -1
- package/dist/templates/features/blog/blocks/post-content/component.tsx +2 -2
- package/dist/templates/features/pages/blocks/hero/component.tsx +2 -2
- package/dist/templates/next.config.mjs +5 -3
- package/package.json +8 -10
- package/templates/features/blog/blocks/post-content/component.tsx +2 -2
- package/templates/features/pages/blocks/hero/component.tsx +2 -2
- 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
|
-
|
|
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: '
|
|
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.
|
|
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>",
|
|
@@ -272,12 +272,9 @@
|
|
|
272
272
|
"types": "./dist/lib/actions/index.d.ts",
|
|
273
273
|
"import": "./dist/lib/actions/index.js"
|
|
274
274
|
},
|
|
275
|
-
"./entities
|
|
276
|
-
"types": "./dist/entities
|
|
277
|
-
"import": "./dist/entities
|
|
278
|
-
},
|
|
279
|
-
"./entities/*/messages/*": {
|
|
280
|
-
"import": "./dist/entities/*/messages/*"
|
|
275
|
+
"./entities/*": {
|
|
276
|
+
"types": "./dist/entities/*.d.ts",
|
|
277
|
+
"import": "./dist/entities/*.js"
|
|
281
278
|
}
|
|
282
279
|
},
|
|
283
280
|
"files": [
|
|
@@ -321,15 +318,13 @@
|
|
|
321
318
|
"typescript": "^5"
|
|
322
319
|
},
|
|
323
320
|
"dependencies": {
|
|
324
|
-
"@nextsparkjs/testing": "0.1.0-beta.53",
|
|
325
|
-
"@upstash/ratelimit": "^2.0.3",
|
|
326
|
-
"@upstash/redis": "^1.20.6",
|
|
327
321
|
"@codemirror/lang-json": "^6.0.2",
|
|
328
322
|
"@dnd-kit/core": "^6.3.1",
|
|
329
323
|
"@dnd-kit/sortable": "^10.0.0",
|
|
330
324
|
"@dnd-kit/utilities": "^3.2.2",
|
|
331
325
|
"@hookform/resolvers": "^5.2.1",
|
|
332
326
|
"@inquirer/prompts": "^7.2.0",
|
|
327
|
+
"@nextsparkjs/testing": "0.1.0-beta.53",
|
|
333
328
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
334
329
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
335
330
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
@@ -354,10 +349,13 @@
|
|
|
354
349
|
"@radix-ui/react-toggle": "^1.1.10",
|
|
355
350
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
356
351
|
"@shikijs/rehype": "^3.20.0",
|
|
352
|
+
"@tailwindcss/container-queries": "^0.1.1",
|
|
357
353
|
"@tanstack/react-query": "^5.85.0",
|
|
358
354
|
"@tanstack/react-query-devtools": "^5.85.0",
|
|
359
355
|
"@uiw/codemirror-theme-github": "^4.25.4",
|
|
360
356
|
"@uiw/react-codemirror": "^4.25.4",
|
|
357
|
+
"@upstash/ratelimit": "^2.0.3",
|
|
358
|
+
"@upstash/redis": "^1.20.6",
|
|
361
359
|
"@vercel/blob": "^2.0.0",
|
|
362
360
|
"better-auth": "^1.3.5",
|
|
363
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
|
-
|
|
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: '
|
|
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
|