@webstudio-is/sdk 0.231.0 → 0.232.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/lib/index.js +1 -0
- package/lib/runtime.js +2 -0
- package/lib/types/resource-loader.d.ts +1 -0
- package/lib/types/schema/pages.d.ts +1 -0
- package/package.json +5 -5
package/lib/index.js
CHANGED
package/lib/runtime.js
CHANGED
|
@@ -38,6 +38,7 @@ var isLocalResource = (pathname, resourceName) => {
|
|
|
38
38
|
return segments.join("/") === `${LOCAL_RESOURCE_PREFIX}/${resourceName}`;
|
|
39
39
|
};
|
|
40
40
|
var sitemapResourceUrl = `/${LOCAL_RESOURCE_PREFIX}/sitemap.xml`;
|
|
41
|
+
var currentDateResourceUrl = `/${LOCAL_RESOURCE_PREFIX}/current-date`;
|
|
41
42
|
var loadResource = async (customFetch, resourceRequest) => {
|
|
42
43
|
try {
|
|
43
44
|
const { method, searchParams, headers, body } = resourceRequest;
|
|
@@ -155,6 +156,7 @@ export {
|
|
|
155
156
|
animationCanPlayOnCanvasProperty,
|
|
156
157
|
cachedFetch,
|
|
157
158
|
createJsonStringifyProxy,
|
|
159
|
+
currentDateResourceUrl,
|
|
158
160
|
formBotFieldName,
|
|
159
161
|
formIdFieldName,
|
|
160
162
|
getIndexWithinAncestorFromProps,
|
|
@@ -4,6 +4,7 @@ import type { ResourceRequest } from "./schema/resources";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const isLocalResource: (pathname: string, resourceName?: string) => boolean;
|
|
6
6
|
export declare const sitemapResourceUrl = "/$resources/sitemap.xml";
|
|
7
|
+
export declare const currentDateResourceUrl = "/$resources/current-date";
|
|
7
8
|
export declare const loadResource: (customFetch: typeof fetch, resourceRequest: ResourceRequest) => Promise<{
|
|
8
9
|
ok: boolean;
|
|
9
10
|
status: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.232.0",
|
|
4
4
|
"description": "Webstudio project data schema",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
"reserved-identifiers": "^1.0.0",
|
|
42
42
|
"type-fest": "^4.37.0",
|
|
43
43
|
"zod": "^3.24.2",
|
|
44
|
-
"@webstudio-is/css-engine": "0.
|
|
45
|
-
"@webstudio-is/fonts": "0.
|
|
46
|
-
"@webstudio-is/icons": "0.
|
|
44
|
+
"@webstudio-is/css-engine": "0.232.0",
|
|
45
|
+
"@webstudio-is/fonts": "0.232.0",
|
|
46
|
+
"@webstudio-is/icons": "0.232.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"html-tags": "^4.0.0",
|
|
50
50
|
"vitest": "^3.1.2",
|
|
51
51
|
"@webstudio-is/css-data": "0.0.0",
|
|
52
|
-
"@webstudio-is/template": "0.
|
|
52
|
+
"@webstudio-is/template": "0.232.0",
|
|
53
53
|
"@webstudio-is/tsconfig": "1.0.7"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|