@becklyn/next 3.1.0 → 3.2.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/cjs/contentful/inspector.d.ts +23 -17
- package/dist/cjs/contentful/inspector.d.ts.map +1 -1
- package/dist/cjs/contentful/inspector.js +20 -1
- package/dist/es/contentful/inspector.d.ts +23 -17
- package/dist/es/contentful/inspector.d.ts.map +1 -1
- package/dist/es/contentful/inspector.js +20 -1
- package/package.json +4 -3
|
@@ -1,19 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const InspectableItemSchema: z.ZodObject<{
|
|
3
|
+
entryId: z.ZodOptional<z.ZodString>;
|
|
4
|
+
draftMode: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const InspectableFieldSchema: z.ZodObject<{
|
|
8
|
+
fieldId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
assetId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
entryId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
draftMode: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const InspectorPropsSchema: z.ZodObject<{
|
|
15
|
+
entryId: z.ZodOptional<z.ZodString>;
|
|
16
|
+
draftMode: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
18
|
+
fieldId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
assetId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type InspectableItem = z.infer<typeof InspectableItemSchema>;
|
|
22
|
+
export type InspectableField = z.infer<typeof InspectableFieldSchema>;
|
|
23
|
+
export type InspectorProps = z.infer<typeof InspectorPropsSchema>;
|
|
17
24
|
export declare const getInspectorProps: <T extends InspectorProps>(data: T) => {
|
|
18
25
|
entryId?: undefined;
|
|
19
26
|
fieldId?: undefined;
|
|
@@ -29,5 +36,4 @@ export declare const getInspectorProps: <T extends InspectorProps>(data: T) => {
|
|
|
29
36
|
};
|
|
30
37
|
export declare const removeInspectorProps: <T extends InspectorProps>(data: T) => {};
|
|
31
38
|
export declare const inspector: (data: InspectableField) => Record<string, string | undefined>;
|
|
32
|
-
export {};
|
|
33
39
|
//# sourceMappingURL=inspector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspector.d.ts","sourceRoot":"","sources":["../../../contentful/inspector.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"inspector.d.ts","sourceRoot":"","sources":["../../../contentful/inspector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;iBAKK,CAAC;AAEzC,eAAO,MAAM,oBAAoB;;;;;;iBAM/B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,cAAc,EAAE,MAAM,CAAC;;;;;;;;;;;;CAOlE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,cAAc,EAAE,MAAM,CAAC,OAQrE,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,MAAM,gBAAgB,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAkBnF,CAAC"}
|
|
@@ -11,7 +11,26 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
return t;
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.inspector = exports.removeInspectorProps = exports.getInspectorProps = void 0;
|
|
14
|
+
exports.inspector = exports.removeInspectorProps = exports.getInspectorProps = exports.InspectorPropsSchema = exports.InspectableFieldSchema = exports.InspectableItemSchema = void 0;
|
|
15
|
+
const zod_1 = require("zod");
|
|
16
|
+
exports.InspectableItemSchema = zod_1.z.object({
|
|
17
|
+
entryId: zod_1.z.string().optional(),
|
|
18
|
+
draftMode: zod_1.z.boolean().optional(),
|
|
19
|
+
locale: zod_1.z.string().optional(),
|
|
20
|
+
});
|
|
21
|
+
exports.InspectableFieldSchema = zod_1.z
|
|
22
|
+
.object({
|
|
23
|
+
fieldId: zod_1.z.string().optional(),
|
|
24
|
+
assetId: zod_1.z.string().optional(),
|
|
25
|
+
})
|
|
26
|
+
.extend(exports.InspectableItemSchema.shape);
|
|
27
|
+
exports.InspectorPropsSchema = zod_1.z.object({
|
|
28
|
+
entryId: zod_1.z.string().optional(),
|
|
29
|
+
draftMode: zod_1.z.boolean().optional(),
|
|
30
|
+
locale: zod_1.z.string().optional(),
|
|
31
|
+
fieldId: zod_1.z.string().optional(),
|
|
32
|
+
assetId: zod_1.z.string().optional(),
|
|
33
|
+
});
|
|
15
34
|
const getInspectorProps = (data) => {
|
|
16
35
|
if (!data) {
|
|
17
36
|
return {};
|
|
@@ -1,19 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const InspectableItemSchema: z.ZodObject<{
|
|
3
|
+
entryId: z.ZodOptional<z.ZodString>;
|
|
4
|
+
draftMode: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const InspectableFieldSchema: z.ZodObject<{
|
|
8
|
+
fieldId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
assetId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
entryId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
draftMode: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const InspectorPropsSchema: z.ZodObject<{
|
|
15
|
+
entryId: z.ZodOptional<z.ZodString>;
|
|
16
|
+
draftMode: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
18
|
+
fieldId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
assetId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type InspectableItem = z.infer<typeof InspectableItemSchema>;
|
|
22
|
+
export type InspectableField = z.infer<typeof InspectableFieldSchema>;
|
|
23
|
+
export type InspectorProps = z.infer<typeof InspectorPropsSchema>;
|
|
17
24
|
export declare const getInspectorProps: <T extends InspectorProps>(data: T) => {
|
|
18
25
|
entryId?: undefined;
|
|
19
26
|
fieldId?: undefined;
|
|
@@ -29,5 +36,4 @@ export declare const getInspectorProps: <T extends InspectorProps>(data: T) => {
|
|
|
29
36
|
};
|
|
30
37
|
export declare const removeInspectorProps: <T extends InspectorProps>(data: T) => {};
|
|
31
38
|
export declare const inspector: (data: InspectableField) => Record<string, string | undefined>;
|
|
32
|
-
export {};
|
|
33
39
|
//# sourceMappingURL=inspector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspector.d.ts","sourceRoot":"","sources":["../../../contentful/inspector.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"inspector.d.ts","sourceRoot":"","sources":["../../../contentful/inspector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;iBAKK,CAAC;AAEzC,eAAO,MAAM,oBAAoB;;;;;;iBAM/B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,cAAc,EAAE,MAAM,CAAC;;;;;;;;;;;;CAOlE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,cAAc,EAAE,MAAM,CAAC,OAQrE,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,MAAM,gBAAgB,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAkBnF,CAAC"}
|
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.inspector = exports.removeInspectorProps = exports.getInspectorProps = void 0;
|
|
3
|
+
exports.inspector = exports.removeInspectorProps = exports.getInspectorProps = exports.InspectorPropsSchema = exports.InspectableFieldSchema = exports.InspectableItemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.InspectableItemSchema = zod_1.z.object({
|
|
6
|
+
entryId: zod_1.z.string().optional(),
|
|
7
|
+
draftMode: zod_1.z.boolean().optional(),
|
|
8
|
+
locale: zod_1.z.string().optional(),
|
|
9
|
+
});
|
|
10
|
+
exports.InspectableFieldSchema = zod_1.z
|
|
11
|
+
.object({
|
|
12
|
+
fieldId: zod_1.z.string().optional(),
|
|
13
|
+
assetId: zod_1.z.string().optional(),
|
|
14
|
+
})
|
|
15
|
+
.extend(exports.InspectableItemSchema.shape);
|
|
16
|
+
exports.InspectorPropsSchema = zod_1.z.object({
|
|
17
|
+
entryId: zod_1.z.string().optional(),
|
|
18
|
+
draftMode: zod_1.z.boolean().optional(),
|
|
19
|
+
locale: zod_1.z.string().optional(),
|
|
20
|
+
fieldId: zod_1.z.string().optional(),
|
|
21
|
+
assetId: zod_1.z.string().optional(),
|
|
22
|
+
});
|
|
4
23
|
const getInspectorProps = (data) => {
|
|
5
24
|
if (!data) {
|
|
6
25
|
return {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@becklyn/next",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/Becklyn-Studios/ts-libs/tree/main/packages/next",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@contentful/rich-text-react-renderer": "^16.1.0",
|
|
18
18
|
"keen-slider": "^6.8.6",
|
|
19
|
-
"sass": "^1.90.0"
|
|
19
|
+
"sass": "^1.90.0",
|
|
20
|
+
"zod": "^4.1.5"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
22
23
|
"@becklyn/eslint": "*",
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
"@types/node": "^24.2.1",
|
|
26
27
|
"@types/react": "^19.1.10",
|
|
27
28
|
"@types/react-dom": "^19.1.7",
|
|
28
|
-
"next": "^15.4.
|
|
29
|
+
"next": "^15.4.7",
|
|
29
30
|
"react": "^19.1.1",
|
|
30
31
|
"typescript": "^5.9.2"
|
|
31
32
|
},
|