@cms0/cms0 0.2.3 → 0.2.4
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/custom-types/registry.cjs +14 -1
- package/dist/cjs/index-old.cjs +1016 -0
- package/dist/cjs/index.cjs +242 -387
- package/dist/esm/custom-types/registry.js +12 -0
- package/dist/esm/index-old.js +1012 -0
- package/dist/esm/index.js +242 -387
- package/dist/types/custom-types/registry.d.ts +8 -0
- package/dist/types/custom-types/registry.d.ts.map +1 -1
- package/dist/types/index-old.d.ts +151 -0
- package/dist/types/index-old.d.ts.map +1 -0
- package/dist/types/index.d.ts +18 -8
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -59,6 +59,15 @@ export const customInlineDescriptors = {
|
|
|
59
59
|
LocalizedString: localizedStringDescriptor,
|
|
60
60
|
LocalizedRichText: localizedRichTextDescriptor,
|
|
61
61
|
};
|
|
62
|
+
export const customInlineTypeMetadata = {
|
|
63
|
+
RichText: {},
|
|
64
|
+
LocalizedString: {
|
|
65
|
+
includeId: { mapLikeFields: ["locales"] },
|
|
66
|
+
},
|
|
67
|
+
LocalizedRichText: {
|
|
68
|
+
includeId: { mapLikeFields: ["locales"] },
|
|
69
|
+
},
|
|
70
|
+
};
|
|
62
71
|
export const customTypeDescriptors = {
|
|
63
72
|
...customModelDescriptors,
|
|
64
73
|
...customInlineDescriptors,
|
|
@@ -66,6 +75,9 @@ export const customTypeDescriptors = {
|
|
|
66
75
|
export const customTypeNames = new Set(Object.keys(customTypeDescriptors));
|
|
67
76
|
export const customModelTypeNames = new Set(Object.keys(customModelDescriptors));
|
|
68
77
|
export const customInlineTypeNames = new Set(Object.keys(customInlineDescriptors));
|
|
78
|
+
export function getCustomInlineTypeMetadata(name) {
|
|
79
|
+
return customInlineTypeMetadata[name];
|
|
80
|
+
}
|
|
69
81
|
export function resolveCustomTypeDependencies(names) {
|
|
70
82
|
const resolved = new Set();
|
|
71
83
|
const queue = Array.from(names);
|