@wp-typia/project-tools 0.13.4 → 0.15.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/dist/runtime/scaffold-onboarding.js +8 -4
- package/dist/runtime/scaffold.d.ts +1 -0
- package/dist/runtime/scaffold.js +3 -0
- package/dist/runtime/schema-core.d.ts +1 -0
- package/dist/runtime/schema-core.js +188 -8
- package/package.json +1 -1
- package/templates/_shared/compound/persistence/scripts/block-config.ts.mustache +16 -0
- package/templates/_shared/compound/persistence/src/blocks/{{slugKebabCase}}/api-types.ts.mustache +10 -0
- package/templates/_shared/compound/persistence/src/blocks/{{slugKebabCase}}/api.ts.mustache +51 -38
- package/templates/_shared/compound/persistence/src/blocks/{{slugKebabCase}}/data.ts.mustache +76 -33
- package/templates/_shared/compound/persistence/src/blocks/{{slugKebabCase}}/interactivity.ts.mustache +206 -41
- package/templates/_shared/compound/persistence/src/blocks/{{slugKebabCase}}/render.php.mustache +37 -43
- package/templates/_shared/compound/persistence/src/blocks/{{slugKebabCase}}/transport.ts.mustache +254 -0
- package/templates/_shared/compound/persistence/src/blocks/{{slugKebabCase}}/types.ts.mustache +13 -8
- package/templates/_shared/compound/persistence-auth/{{slugKebabCase}}.php.mustache +139 -0
- package/templates/_shared/compound/persistence-public/{{slugKebabCase}}.php.mustache +159 -0
- package/templates/_shared/persistence/auth/{{slugKebabCase}}.php.mustache +139 -0
- package/templates/_shared/persistence/core/scripts/sync-rest-contracts.ts.mustache +16 -0
- package/templates/_shared/persistence/core/src/api-types.ts.mustache +10 -0
- package/templates/_shared/persistence/core/src/api.ts.mustache +51 -38
- package/templates/_shared/persistence/core/src/data.ts.mustache +76 -33
- package/templates/_shared/persistence/core/src/interactivity.ts.mustache +206 -43
- package/templates/_shared/persistence/core/src/transport.ts.mustache +254 -0
- package/templates/_shared/persistence/public/{{slugKebabCase}}.php.mustache +159 -0
- package/templates/_shared/rest-helpers/public/inc/rest-public.php.mustache +1 -1
- package/templates/_shared/workspace/persistence-auth/server.php.mustache +139 -0
- package/templates/_shared/workspace/persistence-public/inc/rest-public.php.mustache +1 -1
- package/templates/_shared/workspace/persistence-public/server.php.mustache +159 -0
- package/templates/persistence/src/edit.tsx.mustache +1 -1
- package/templates/persistence/src/render.php.mustache +37 -43
- package/templates/persistence/src/types.ts.mustache +13 -9
|
@@ -30,26 +30,30 @@ export interface {{pascalCase}}Attributes {
|
|
|
30
30
|
|
|
31
31
|
export interface {{pascalCase}}Context {
|
|
32
32
|
buttonLabel: string;
|
|
33
|
+
bootstrapReady: boolean;
|
|
33
34
|
canWrite: boolean;
|
|
34
35
|
count: number;
|
|
36
|
+
error: string;
|
|
37
|
+
isBootstrapping: boolean;
|
|
38
|
+
isLoading: boolean;
|
|
39
|
+
isSaving: boolean;
|
|
35
40
|
persistencePolicy: 'authenticated' | 'public';
|
|
36
41
|
postId: number;
|
|
37
|
-
publicWriteExpiresAt?: number;
|
|
38
|
-
publicWriteToken?: string;
|
|
39
42
|
resourceKey: string;
|
|
40
|
-
restNonce?: string;
|
|
41
43
|
storage: 'post-meta' | 'custom-table';
|
|
42
44
|
isVisible: boolean;
|
|
45
|
+
client?: {{pascalCase}}ClientState;
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
export interface {{pascalCase}}State {
|
|
46
|
-
canWrite: boolean;
|
|
47
|
-
count: number;
|
|
48
|
-
error?: string;
|
|
49
49
|
isHydrated: boolean;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface {{pascalCase}}ClientState {
|
|
53
|
+
bootstrapError: string;
|
|
54
|
+
writeExpiry: number;
|
|
55
|
+
writeNonce: string;
|
|
56
|
+
writeToken: string;
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
export type {{pascalCase}}ValidationResult = ValidationResult< {{pascalCase}}Attributes >;
|