@studiocms/devapps 0.1.0-beta.25 → 0.1.0-beta.27
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/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# StudioCMS - Development Apps
|
|
2
2
|
|
|
3
|
+
[](https://codecov.io/github/withstudiocms/studiocms)
|
|
4
|
+
|
|
3
5
|
Collection* of useful tools available during dev mode in Astro
|
|
4
6
|
|
|
5
7
|
## Installation
|
|
@@ -45,7 +45,7 @@ declare const WordPressAPIConverters_base: Effect.Service.Class<WordPressAPIConv
|
|
|
45
45
|
showAuthor?: boolean | null | undefined;
|
|
46
46
|
showContributors?: boolean | null | undefined;
|
|
47
47
|
parentFolder?: string | null | undefined;
|
|
48
|
-
}, boolean | import("astro/errors").AstroError | import("effect/Cause").UnknownException | import("effect/ParseResult").ParseError | import("
|
|
48
|
+
}, boolean | import("astro/errors").AstroError | import("effect/Cause").UnknownException | import("effect/ParseResult").ParseError | import("@withstudiocms/effect/drizzle").LibSQLClientError, ImportEndpointConfig | RawPageData | UseBlogPkgConfig>;
|
|
49
49
|
convertToPostContent: Effect.Effect<CombinedInsertContent, boolean | Error | import("effect/ParseResult").ParseError, RawPageData | FullPageData>;
|
|
50
50
|
}, never, WordPressAPIUtils>;
|
|
51
51
|
}>;
|
|
@@ -8,9 +8,9 @@ export type PageContent = typeof tsPageContent.$inferInsert;
|
|
|
8
8
|
declare const WordPressAPI_base: Effect.Service.Class<WordPressAPI, "WordPressAPI", {
|
|
9
9
|
readonly dependencies: readonly [import("effect/Layer").Layer<WordPressAPIUtils, never, never>, import("effect/Layer").Layer<WordPressAPIConverters, never, never>];
|
|
10
10
|
readonly effect: Effect.Effect<{
|
|
11
|
-
importSettingsFromWPAPI: Effect.Effect<void, boolean |
|
|
11
|
+
importSettingsFromWPAPI: Effect.Effect<void, boolean | Error | import("effect/ParseResult").ParseError, ImportEndpointConfig>;
|
|
12
12
|
importPagesFromWPAPI: Effect.Effect<void, boolean | Error | import("effect/ParseResult").ParseError | import("studiocms/sdk/errors").SDKCoreError, ImportEndpointConfig>;
|
|
13
|
-
importPostsFromWPAPI: Effect.Effect<void, boolean | Error | import("effect/ParseResult").ParseError | import("studiocms/sdk/
|
|
13
|
+
importPostsFromWPAPI: Effect.Effect<void, boolean | Error | import("effect/ParseResult").ParseError | import("studiocms/sdk/errors").SDKCoreError, ImportPostsEndpointConfig>;
|
|
14
14
|
}, never, WordPressAPIUtils | WordPressAPIConverters>;
|
|
15
15
|
}>;
|
|
16
16
|
export declare class WordPressAPI extends WordPressAPI_base {
|
|
@@ -55,7 +55,7 @@ class WordPressAPI extends Effect.Service()("WordPressAPI", {
|
|
|
55
55
|
siteConfig.siteIcon = siteIcon;
|
|
56
56
|
}
|
|
57
57
|
const insert = yield* sdk.UPDATE.siteConfig(siteConfig);
|
|
58
|
-
if (insert
|
|
58
|
+
if (insert) {
|
|
59
59
|
yield* Console.log("Updated site settings");
|
|
60
60
|
} else {
|
|
61
61
|
yield* Console.error("Failed to update site settings");
|
|
@@ -4,7 +4,7 @@ import { WordPressAPI } from './WordPressAPI/importers.js';
|
|
|
4
4
|
declare const WPImporter_base: Effect.Service.Class<WPImporter, "WPImporter", {
|
|
5
5
|
readonly dependencies: readonly [import("effect/Layer").Layer<WordPressAPI, never, never>];
|
|
6
6
|
readonly effect: Effect.Effect<{
|
|
7
|
-
runPostEvent: Effect.Effect<Response, boolean | Error | import("effect/ParseResult").ParseError | import("studiocms/sdk/
|
|
7
|
+
runPostEvent: Effect.Effect<Response, boolean | Error | import("effect/ParseResult").ParseError | import("studiocms/sdk/errors").SDKCoreError, AstroAPIContextProvider>;
|
|
8
8
|
}, never, WordPressAPI>;
|
|
9
9
|
}>;
|
|
10
10
|
export declare class WPImporter extends WPImporter_base {
|
|
@@ -25,7 +25,9 @@ const pathGenerator = (endpointPath, _base) => {
|
|
|
25
25
|
const newEndpointPath = stripTrailingSlash(endpointPath);
|
|
26
26
|
return function pathBuilder(path) {
|
|
27
27
|
const newPath = stripLeadingSlash(path);
|
|
28
|
-
|
|
28
|
+
const base2 = pathWithBase(newEndpointPath, _base);
|
|
29
|
+
const sep = base2.endsWith("/") ? "" : "/";
|
|
30
|
+
return `${base2}${sep}${newPath}`;
|
|
29
31
|
};
|
|
30
32
|
};
|
|
31
33
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studiocms/devapps",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.27",
|
|
4
4
|
"description": "A dedicated CMS for Astro DB. Built from the ground up by the Astro community.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "withstudiocms",
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
"typescript": "^5.9.2"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@astrojs/db": "
|
|
68
|
+
"@astrojs/db": ">=0.17.2",
|
|
69
69
|
"astro": "^5.12.9",
|
|
70
|
-
"effect": "^3.17.
|
|
70
|
+
"effect": "^3.17.14",
|
|
71
71
|
"vite": "^6.3.4",
|
|
72
|
-
"studiocms": "0.1.0-beta.
|
|
72
|
+
"studiocms": "0.1.0-beta.27"
|
|
73
73
|
},
|
|
74
74
|
"peerDependenciesMeta": {
|
|
75
75
|
"studiocms": {
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
"scripts": {
|
|
80
80
|
"build": "buildkit build 'src/**/*.{ts,astro,css,json,png,d.ts}'",
|
|
81
81
|
"dev": "buildkit dev 'src/**/*.{ts,astro,css,json,png,d.ts}'",
|
|
82
|
-
"typecheck": "tspc -p tsconfig.tspc.json"
|
|
82
|
+
"typecheck": "tspc -p tsconfig.tspc.json",
|
|
83
|
+
"test": "vitest"
|
|
83
84
|
}
|
|
84
85
|
}
|