@payloadcms/figma 0.1.0-alpha.4 → 0.1.0-alpha.6
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/db-content-api/index.js +31 -17
- package/dist/db-content-api/utilities/joins.js +5 -1
- package/dist/db-content-api/utilities/meta/resolvesToRelationshipValue.d.ts +10 -0
- package/dist/db-content-api/utilities/meta/resolvesToRelationshipValue.js +95 -0
- package/dist/db-content-api/utilities/meta/stringifyIdsInWhere.d.ts +9 -0
- package/dist/db-content-api/utilities/meta/stringifyIdsInWhere.js +112 -0
- package/dist/db-content-api/utilities/where.d.ts +2 -6
- package/dist/db-content-api/utilities/where.js +20 -11
- package/dist/exports/views.d.ts +1 -0
- package/dist/exports/views.js +1 -0
- package/dist/imageSizeOptions.d.ts +23 -0
- package/dist/imageSizeOptions.js +26 -0
- package/dist/index.d.ts +1 -0
- package/dist/oauth/endpoints/getLoginEndpoint.js +5 -2
- package/dist/oauth/index.js +8 -7
- package/dist/oauth/utilities/getAdminCollectionSlug.d.ts +1 -1
- package/dist/oauth/utilities/getAuthorizeURL.d.ts +1 -0
- package/dist/oauth/utilities/getAuthorizeURL.js +5 -1
- package/dist/plugin/build-config.js +22 -9
- package/dist/plugin/cloud-limits/CloudLimitModal/index.d.ts +2 -3
- package/dist/plugin/cloud-limits/CloudLimitModal/index.js +4 -16
- package/dist/plugin/cloud-limits/CloudLimitModal/index.scss +5 -0
- package/dist/plugin/cloud-limits/CloudLimitProvider/index.d.ts +0 -3
- package/dist/plugin/cloud-limits/CloudLimitProvider/index.js +65 -124
- package/dist/plugin/cloud-limits/LimitReachedView/index.css +14 -0
- package/dist/plugin/cloud-limits/LimitReachedView/index.d.ts +4 -0
- package/dist/plugin/cloud-limits/LimitReachedView/index.js +52 -0
- package/dist/plugin/cloud-limits/SlugRegistryContext/index.d.ts +7 -2
- package/dist/plugin/cloud-limits/SlugTracker/index.d.ts +0 -8
- package/dist/plugin/cloud-limits/SlugTracker/index.js +14 -10
- package/dist/plugin/cloud-limits/routes.d.ts +2 -0
- package/dist/plugin/cloud-limits/routes.js +4 -0
- package/dist/plugin/cloud-limits/server/redirectInitialAutosaveCreate.d.ts +9 -0
- package/dist/plugin/cloud-limits/server/redirectInitialAutosaveCreate.js +28 -0
- package/dist/plugin/cloud-limits/shared.d.ts +1 -1
- package/dist/plugin/cloud-limits/shared.js +25 -0
- package/dist/plugin/cloud-limits/utilities/cloudLimitInterceptor.d.ts +2 -0
- package/dist/plugin/cloud-limits/utilities/cloudLimitInterceptor.js +134 -0
- package/dist/plugin/cloud-limits/utilities/toasts.d.ts +4 -0
- package/dist/plugin/cloud-limits/utilities/toasts.js +19 -0
- package/dist/storage-content-api/buildBaseMediaResponseHeaders.d.ts +1 -0
- package/dist/storage-content-api/buildBaseMediaResponseHeaders.js +6 -0
- package/dist/storage-content-api/buildClientUploadFetchBackHeaders.d.ts +10 -0
- package/dist/storage-content-api/buildClientUploadFetchBackHeaders.js +21 -0
- package/dist/storage-content-api/buildMediaResponseHeaders.d.ts +4 -0
- package/dist/storage-content-api/buildMediaResponseHeaders.js +45 -0
- package/dist/storage-content-api/getInlineContentType.d.ts +1 -0
- package/dist/storage-content-api/getInlineContentType.js +33 -0
- package/dist/storage-content-api/hasSupportedContentEncoding.d.ts +1 -0
- package/dist/storage-content-api/hasSupportedContentEncoding.js +4 -0
- package/dist/storage-content-api/mediaErrorResponse.d.ts +1 -0
- package/dist/storage-content-api/mediaErrorResponse.js +12 -0
- package/dist/storage-content-api/staticHandler.js +82 -21
- package/dist/utils/adapters/nextjs.js +8 -7
- package/dist/utils/asset-collection.d.ts +9 -1
- package/dist/utils/asset-collection.js +64 -2
- package/dist/utils/s3-upload.js +4 -1
- package/package.json +14 -2
- package/dist/db-content-api/utilities/data/stringifyNumericIds.d.ts +0 -1
- package/dist/db-content-api/utilities/data/stringifyNumericIds.js +0 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/figma",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.6",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
"import": "./dist/exports/client.js",
|
|
14
14
|
"types": "./dist/exports/client.d.ts",
|
|
15
15
|
"default": "./dist/exports/client.js"
|
|
16
|
+
},
|
|
17
|
+
"./views": {
|
|
18
|
+
"import": "./dist/exports/views.js",
|
|
19
|
+
"types": "./dist/exports/views.d.ts",
|
|
20
|
+
"default": "./dist/exports/views.js"
|
|
16
21
|
}
|
|
17
22
|
},
|
|
18
23
|
"main": "./dist/index.js",
|
|
@@ -28,6 +33,7 @@
|
|
|
28
33
|
],
|
|
29
34
|
"dependencies": {
|
|
30
35
|
"@clack/prompts": "^0.11.0",
|
|
36
|
+
"@cloudflare/workers-types": "5.20260716.1",
|
|
31
37
|
"@figma/rest-api-spec": "^0.34.0",
|
|
32
38
|
"@sindresorhus/slugify": "^3.0.0",
|
|
33
39
|
"archiver": "7.0.1",
|
|
@@ -41,6 +47,8 @@
|
|
|
41
47
|
"open": "^10.2.0",
|
|
42
48
|
"openapi-fetch": "0.15.0",
|
|
43
49
|
"picocolors": "1.1.1",
|
|
50
|
+
"qs-esm": "^8.0.1",
|
|
51
|
+
"sanitize-filename": "^1.6.4",
|
|
44
52
|
"skills": "1.4.4",
|
|
45
53
|
"tar": "^7.5.13",
|
|
46
54
|
"terminal-link": "^5.0.0",
|
|
@@ -69,7 +77,10 @@
|
|
|
69
77
|
"peerDependencies": {
|
|
70
78
|
"@payloadcms/plugin-cloud-storage": ">=4.0.0-canary.24 <4.0.0-internal",
|
|
71
79
|
"@payloadcms/richtext-lexical": ">=4.0.0-canary.24 <4.0.0-internal",
|
|
72
|
-
"
|
|
80
|
+
"@payloadcms/translations": ">=4.0.0-canary.24 <4.0.0-internal",
|
|
81
|
+
"@payloadcms/ui": ">=4.0.0-canary.24 <4.0.0-internal",
|
|
82
|
+
"payload": ">=4.0.0-canary.24 <4.0.0-internal",
|
|
83
|
+
"react": "^19.0.1 || ^19.1.2 || ^19.2.1"
|
|
73
84
|
},
|
|
74
85
|
"peerDependenciesMeta": {
|
|
75
86
|
"@payloadcms/plugin-cloud-storage": {
|
|
@@ -105,6 +116,7 @@
|
|
|
105
116
|
"test:int:watch": "TEST_INT=true vitest --config vitest.config.int.ts",
|
|
106
117
|
"test:e2e": "TEST_E2E=true vitest run --config vitest.config.e2e.ts",
|
|
107
118
|
"test:e2e:watch": "TEST_E2E=true vitest --config vitest.config.e2e.ts",
|
|
119
|
+
"test:types": "tsc --project tsconfig.imageSizeOptions.json",
|
|
108
120
|
"test:watch": "TEST_UNIT=true vitest"
|
|
109
121
|
}
|
|
110
122
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function stringifyNumericIds(value: unknown): unknown;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// The Content API stores every document id as a string, but Payload keeps a
|
|
2
|
-
// collection's custom numeric id as a `number`. Stringify numbers so an id filter
|
|
3
|
-
// matches the stored value.
|
|
4
|
-
// Has two shapes it accepts:
|
|
5
|
-
// - Scalar values (most operators)
|
|
6
|
-
// - Arrays of values (for `in`/`not_in` operators)
|
|
7
|
-
// Non-numeric entries (already-string ids) pass through untouched.
|
|
8
|
-
export function stringifyNumericIds(value) {
|
|
9
|
-
if (typeof value === 'number') {
|
|
10
|
-
return stringifyNumericId(value);
|
|
11
|
-
}
|
|
12
|
-
if (Array.isArray(value)) {
|
|
13
|
-
return value.map((entry)=>stringifyNumericId(entry));
|
|
14
|
-
}
|
|
15
|
-
return value;
|
|
16
|
-
}
|
|
17
|
-
function stringifyNumericId(value) {
|
|
18
|
-
return typeof value === 'number' ? String(value) : value;
|
|
19
|
-
}
|