@donotdev/core 0.0.45 → 0.1.0
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/LICENSE.md +3 -3
- package/empty.cjs +2 -2
- package/empty.js +5 -2
- package/functions/index.d.ts +11 -11
- package/functions/index.js +7 -7
- package/index.d.ts +1125 -841
- package/index.js +37 -37
- package/next/index.d.ts +51 -18
- package/next/index.js +69 -59
- package/package.json +2 -2
- package/server.d.ts +718 -590
- package/server.js +1 -1
- package/vite/index.d.ts +57 -24
- package/vite/index.js +92 -76
- package/i18n/locales/lazy/entityFormTemplate_ar.json +0 -85
- package/i18n/locales/lazy/entityFormTemplate_da.json +0 -85
- package/i18n/locales/lazy/entityFormTemplate_de.json +0 -85
- package/i18n/locales/lazy/entityFormTemplate_en.json +0 -85
- package/i18n/locales/lazy/entityFormTemplate_es.json +0 -85
- package/i18n/locales/lazy/entityFormTemplate_fr.json +0 -85
- package/i18n/locales/lazy/entityFormTemplate_it.json +0 -85
- package/i18n/locales/lazy/entityFormTemplate_ja.json +0 -85
- package/i18n/locales/lazy/entityFormTemplate_ko.json +0 -85
- package/i18n/locales/lazy/entityFormTemplate_nl.json +0 -85
- package/i18n/locales/lazy/loginTemplate_ar.json +0 -26
- package/i18n/locales/lazy/loginTemplate_da.json +0 -21
- package/i18n/locales/lazy/loginTemplate_de.json +0 -26
- package/i18n/locales/lazy/loginTemplate_en.json +0 -26
- package/i18n/locales/lazy/loginTemplate_es.json +0 -26
- package/i18n/locales/lazy/loginTemplate_fr.json +0 -26
- package/i18n/locales/lazy/loginTemplate_it.json +0 -26
- package/i18n/locales/lazy/loginTemplate_ja.json +0 -26
- package/i18n/locales/lazy/loginTemplate_ko.json +0 -26
- package/i18n/locales/lazy/loginTemplate_nl.json +0 -21
- package/i18n/locales/lazy/profileDBTemplate_ar.json +0 -73
- package/i18n/locales/lazy/profileDBTemplate_da.json +0 -73
- package/i18n/locales/lazy/profileDBTemplate_de.json +0 -73
- package/i18n/locales/lazy/profileDBTemplate_en.json +0 -73
- package/i18n/locales/lazy/profileDBTemplate_es.json +0 -73
- package/i18n/locales/lazy/profileDBTemplate_fr.json +0 -73
- package/i18n/locales/lazy/profileDBTemplate_it.json +0 -73
- package/i18n/locales/lazy/profileDBTemplate_ja.json +0 -73
- package/i18n/locales/lazy/profileDBTemplate_ko.json +0 -73
- package/i18n/locales/lazy/profileDBTemplate_nl.json +0 -73
- package/i18n/locales/lazy/profileTemplate_ar.json +0 -85
- package/i18n/locales/lazy/profileTemplate_da.json +0 -85
- package/i18n/locales/lazy/profileTemplate_de.json +0 -85
- package/i18n/locales/lazy/profileTemplate_en.json +0 -85
- package/i18n/locales/lazy/profileTemplate_es.json +0 -85
- package/i18n/locales/lazy/profileTemplate_fr.json +0 -85
- package/i18n/locales/lazy/profileTemplate_it.json +0 -85
- package/i18n/locales/lazy/profileTemplate_ja.json +0 -85
- package/i18n/locales/lazy/profileTemplate_ko.json +0 -85
- package/i18n/locales/lazy/profileTemplate_nl.json +0 -85
package/next/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import * as React from 'react';
|
|
|
7
7
|
/**
|
|
8
8
|
* App metadata and branding configuration
|
|
9
9
|
*
|
|
10
|
-
* @version 0.0
|
|
10
|
+
* @version 0.1.0
|
|
11
11
|
* @since 0.0.1
|
|
12
12
|
* @author AMBROISE PARK Consulting
|
|
13
13
|
*/
|
|
@@ -83,7 +83,7 @@ interface AppMetadata {
|
|
|
83
83
|
* };
|
|
84
84
|
* ```
|
|
85
85
|
*
|
|
86
|
-
* @version 0.0
|
|
86
|
+
* @version 0.1.0
|
|
87
87
|
* @since 0.0.1
|
|
88
88
|
* @author AMBROISE PARK Consulting
|
|
89
89
|
*/
|
|
@@ -156,7 +156,7 @@ interface AuthConfig {
|
|
|
156
156
|
* };
|
|
157
157
|
* ```
|
|
158
158
|
*
|
|
159
|
-
* @version 0.0
|
|
159
|
+
* @version 0.1.0
|
|
160
160
|
* @since 0.0.1
|
|
161
161
|
* @author AMBROISE PARK Consulting
|
|
162
162
|
*/
|
|
@@ -181,6 +181,39 @@ interface SEOConfig {
|
|
|
181
181
|
twitterHandle?: string;
|
|
182
182
|
/** Additional static meta tags */
|
|
183
183
|
staticTags?: Record<string, string>;
|
|
184
|
+
/** URL redirect rules - generates platform-specific 301/302 redirects at build time */
|
|
185
|
+
redirects?: Array<{
|
|
186
|
+
/** Source path (supports :param syntax, e.g. '/old-blog/:slug') */
|
|
187
|
+
from: string;
|
|
188
|
+
/** Destination path (supports :param syntax, e.g. '/blog/:slug') */
|
|
189
|
+
to: string;
|
|
190
|
+
/** true = 301 permanent (default), false = 302 temporary */
|
|
191
|
+
permanent?: boolean;
|
|
192
|
+
}>;
|
|
193
|
+
|
|
194
|
+
// --- SEO/GEO features (all ON by default, opt-out per feature) ---
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* AI crawler management in robots.txt (default: 'recommended')
|
|
198
|
+
* - 'recommended': Block training bots (GPTBot, Google-Extended, CCBot, anthropic-ai),
|
|
199
|
+
* allow search/retrieval bots (OAI-SearchBot, ChatGPT-User, Claude-SearchBot, etc.)
|
|
200
|
+
* - 'block-all': Block all AI bots
|
|
201
|
+
* - 'allow-all': Allow all AI bots
|
|
202
|
+
* - false: No AI crawler directives
|
|
203
|
+
*/
|
|
204
|
+
aiCrawlers?: 'recommended' | 'block-all' | 'allow-all' | false;
|
|
205
|
+
/** Generate llms.txt per llmstxt.org spec (default: true). Set to false to disable. */
|
|
206
|
+
llmsTxt?: boolean;
|
|
207
|
+
/** Inject Speculation Rules API for prefetch/prerender of internal links (default: true). Set to false to disable. */
|
|
208
|
+
speculationRules?: boolean;
|
|
209
|
+
/** Emit hreflang alternate links when i18n has 2+ languages (default: true). No-op for monolingual apps. Set to false to disable. */
|
|
210
|
+
hreflang?: boolean;
|
|
211
|
+
/** Auto-generate BreadcrumbList JSON-LD from URL path segments (default: true). Set to false to disable. */
|
|
212
|
+
breadcrumbSchema?: boolean;
|
|
213
|
+
/** Auto-generate WebSite JSON-LD with SearchAction for sitelinks search box (default: true). Set to false to disable. */
|
|
214
|
+
websiteSchema?: boolean;
|
|
215
|
+
/** Auto-generate Organization JSON-LD on homepage from app.links (default: true). Set to false to disable. */
|
|
216
|
+
organizationSchema?: boolean;
|
|
184
217
|
}
|
|
185
218
|
|
|
186
219
|
/**
|
|
@@ -197,7 +230,7 @@ interface SEOConfig {
|
|
|
197
230
|
* };
|
|
198
231
|
* ```
|
|
199
232
|
*
|
|
200
|
-
* @version 0.0
|
|
233
|
+
* @version 0.1.0
|
|
201
234
|
* @since 0.0.1
|
|
202
235
|
* @author AMBROISE PARK Consulting
|
|
203
236
|
*/
|
|
@@ -231,7 +264,7 @@ interface FaviconConfig {
|
|
|
231
264
|
* };
|
|
232
265
|
* ```
|
|
233
266
|
*
|
|
234
|
-
* @version 0.0
|
|
267
|
+
* @version 0.1.0
|
|
235
268
|
* @since 0.0.1
|
|
236
269
|
* @author AMBROISE PARK Consulting
|
|
237
270
|
*/
|
|
@@ -306,7 +339,7 @@ interface FeaturesConfig {
|
|
|
306
339
|
* };
|
|
307
340
|
* ```
|
|
308
341
|
*
|
|
309
|
-
* @version 0.0
|
|
342
|
+
* @version 0.1.0
|
|
310
343
|
* @since 0.0.1
|
|
311
344
|
* @author AMBROISE PARK Consulting
|
|
312
345
|
*/
|
|
@@ -342,7 +375,7 @@ interface FeaturesConfig {
|
|
|
342
375
|
* }
|
|
343
376
|
* ```
|
|
344
377
|
*
|
|
345
|
-
* @version 0.0
|
|
378
|
+
* @version 0.1.0
|
|
346
379
|
* @since 0.0.1
|
|
347
380
|
* @author AMBROISE PARK Consulting
|
|
348
381
|
*/
|
|
@@ -537,7 +570,7 @@ declare module 'react' {
|
|
|
537
570
|
/**
|
|
538
571
|
* I18n virtual mapping options
|
|
539
572
|
*
|
|
540
|
-
* @version 0.0
|
|
573
|
+
* @version 0.1.0
|
|
541
574
|
* @since 0.0.1
|
|
542
575
|
* @author AMBROISE PARK Consulting
|
|
543
576
|
*/
|
|
@@ -551,7 +584,7 @@ interface I18nVirtualMappingOptions {
|
|
|
551
584
|
* HMR options are internal framework concerns (in DEFAULT_OPTIONS only, not user-configurable)
|
|
552
585
|
* Plugins are always enabled (part of framework) - no enabled option
|
|
553
586
|
*
|
|
554
|
-
* @version 0.0
|
|
587
|
+
* @version 0.1.0
|
|
555
588
|
* @since 0.0.1
|
|
556
589
|
* @author AMBROISE PARK Consulting
|
|
557
590
|
*/
|
|
@@ -565,7 +598,7 @@ interface BaseDiscoveryOptions {
|
|
|
565
598
|
/**
|
|
566
599
|
* Theme detection options
|
|
567
600
|
*
|
|
568
|
-
* @version 0.0
|
|
601
|
+
* @version 0.1.0
|
|
569
602
|
* @since 0.0.1
|
|
570
603
|
* @author AMBROISE PARK Consulting
|
|
571
604
|
*/
|
|
@@ -579,7 +612,7 @@ interface ThemeDetectionOptions extends BaseDiscoveryOptions {
|
|
|
579
612
|
/**
|
|
580
613
|
* Route discovery options with virtual module support
|
|
581
614
|
*
|
|
582
|
-
* @version 0.0
|
|
615
|
+
* @version 0.1.0
|
|
583
616
|
* @since 0.0.1
|
|
584
617
|
* @author AMBROISE PARK Consulting
|
|
585
618
|
*/
|
|
@@ -595,7 +628,7 @@ interface RouteDiscoveryOptions extends BaseDiscoveryOptions {
|
|
|
595
628
|
/**
|
|
596
629
|
* I18n options
|
|
597
630
|
*
|
|
598
|
-
* @version 0.0
|
|
631
|
+
* @version 0.1.0
|
|
599
632
|
* @since 0.0.1
|
|
600
633
|
* @author AMBROISE PARK Consulting
|
|
601
634
|
*/
|
|
@@ -614,7 +647,7 @@ interface I18nOptions extends BaseDiscoveryOptions {
|
|
|
614
647
|
/**
|
|
615
648
|
* Asset options
|
|
616
649
|
*
|
|
617
|
-
* @version 0.0
|
|
650
|
+
* @version 0.1.0
|
|
618
651
|
* @since 0.0.1
|
|
619
652
|
* @author AMBROISE PARK Consulting
|
|
620
653
|
*/
|
|
@@ -626,7 +659,7 @@ interface AssetOptions extends BaseDiscoveryOptions {
|
|
|
626
659
|
/**
|
|
627
660
|
* Progressive Web App options
|
|
628
661
|
*
|
|
629
|
-
* @version 0.0
|
|
662
|
+
* @version 0.1.0
|
|
630
663
|
* @since 0.0.1
|
|
631
664
|
* @author AMBROISE PARK Consulting
|
|
632
665
|
*/
|
|
@@ -697,7 +730,7 @@ interface PWAOptions {
|
|
|
697
730
|
/**
|
|
698
731
|
* Asset fallback options
|
|
699
732
|
*
|
|
700
|
-
* @version 0.0
|
|
733
|
+
* @version 0.1.0
|
|
701
734
|
* @since 0.0.1
|
|
702
735
|
* @author AMBROISE PARK Consulting
|
|
703
736
|
*/
|
|
@@ -720,7 +753,7 @@ interface AssetFallbackOptions {
|
|
|
720
753
|
* Server shim options for blocking server-only imports
|
|
721
754
|
* Note: serverShim cannot be disabled - framework would crash without it
|
|
722
755
|
*
|
|
723
|
-
* @version 0.0
|
|
756
|
+
* @version 0.1.0
|
|
724
757
|
* @since 0.0.1
|
|
725
758
|
* @author AMBROISE PARK Consulting
|
|
726
759
|
*/
|
|
@@ -736,7 +769,7 @@ interface ServerShimOptions {
|
|
|
736
769
|
/**
|
|
737
770
|
* Next.js configuration options for DNDev applications
|
|
738
771
|
*
|
|
739
|
-
* @version 0.0
|
|
772
|
+
* @version 0.1.0
|
|
740
773
|
* @since 0.0.1
|
|
741
774
|
* @author AMBROISE PARK Consulting
|
|
742
775
|
*/
|
|
@@ -775,7 +808,7 @@ interface NextConfigOptions {
|
|
|
775
808
|
/**
|
|
776
809
|
* Creates a Next.js configuration optimized for DNDev applications
|
|
777
810
|
*
|
|
778
|
-
* @version 0.0
|
|
811
|
+
* @version 0.1.0
|
|
779
812
|
* @since 0.0.1
|
|
780
813
|
* @author AMBROISE PARK Consulting
|
|
781
814
|
*/
|