@supernova-studio/client 0.52.18 → 0.53.2
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/index.d.mts +157 -153
- package/dist/index.d.ts +157 -153
- package/dist/index.js +486 -249
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1036 -799
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/yjs/docs-editor/blocks-to-prosemirror.ts +59 -2
- package/src/yjs/docs-editor/prosemirror/index.ts +2 -1
- package/src/yjs/docs-editor/prosemirror/inner-editor-schema.ts +145 -0
- package/src/yjs/docs-editor/prosemirror/{schema.ts → main-editor-schema.ts} +2 -2
- package/src/yjs/docs-editor/prosemirror/types.ts +1 -1
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +53 -0
package/dist/index.js
CHANGED
|
@@ -1916,6 +1916,191 @@ function sanitizeSpanAttribute(attribute) {
|
|
|
1916
1916
|
};
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
1919
|
+
var PageBlockDefinitionAppearance = _zod.z.object({
|
|
1920
|
+
isBordered: _zod.z.boolean().optional(),
|
|
1921
|
+
hasBackground: _zod.z.boolean().optional(),
|
|
1922
|
+
isEditorPresentationDifferent: _zod.z.boolean().optional(),
|
|
1923
|
+
showBlockHeaderInEditor: _zod.z.boolean().optional()
|
|
1924
|
+
});
|
|
1925
|
+
var PageBlockDefinitionLayoutType = _zod.z.enum(["Column", "Row"]);
|
|
1926
|
+
var PageBlockDefinitionLayoutGap = _zod.z.enum(["Small", "Medium", "Large", "None"]);
|
|
1927
|
+
var PageBlockDefinitionLayoutAlign = _zod.z.enum(["Start", "Center", "End"]);
|
|
1928
|
+
var PageBlockDefinitionLayoutResizing = _zod.z.enum(["Fill", "Hug"]);
|
|
1929
|
+
var PageBlockDefinitionLayoutBase = _zod.z.object({
|
|
1930
|
+
type: PageBlockDefinitionLayoutType,
|
|
1931
|
+
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
1932
|
+
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
1933
|
+
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
1934
|
+
});
|
|
1935
|
+
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
1936
|
+
children: _zod.z.lazy(() => _zod.z.array(PageBlockDefinitionLayout.or(_zod.z.string())))
|
|
1937
|
+
});
|
|
1938
|
+
var PageBlockDefinitionVariant = _zod.z.object({
|
|
1939
|
+
id: _zod.z.string(),
|
|
1940
|
+
name: _zod.z.string(),
|
|
1941
|
+
image: _zod.z.string().optional(),
|
|
1942
|
+
description: _zod.z.string().optional(),
|
|
1943
|
+
documentationLink: _zod.z.string().optional(),
|
|
1944
|
+
layout: PageBlockDefinitionLayout,
|
|
1945
|
+
maxColumns: _zod.z.number().optional(),
|
|
1946
|
+
defaultColumns: _zod.z.number().optional(),
|
|
1947
|
+
appearance: PageBlockDefinitionAppearance.optional()
|
|
1948
|
+
});
|
|
1949
|
+
var PageBlockDefinitionPropertyType = _zod.z.enum([
|
|
1950
|
+
"RichText",
|
|
1951
|
+
"MultiRichText",
|
|
1952
|
+
"RichTextEditor",
|
|
1953
|
+
"Text",
|
|
1954
|
+
"Boolean",
|
|
1955
|
+
"Number",
|
|
1956
|
+
"SingleSelect",
|
|
1957
|
+
"MultiSelect",
|
|
1958
|
+
"Image",
|
|
1959
|
+
"Token",
|
|
1960
|
+
"TokenType",
|
|
1961
|
+
"TokenProperty",
|
|
1962
|
+
"Component",
|
|
1963
|
+
"ComponentProperty",
|
|
1964
|
+
"Asset",
|
|
1965
|
+
"AssetProperty",
|
|
1966
|
+
"FigmaNode",
|
|
1967
|
+
"EmbedURL",
|
|
1968
|
+
"URL",
|
|
1969
|
+
"Markdown",
|
|
1970
|
+
"Code",
|
|
1971
|
+
"CodeSandbox",
|
|
1972
|
+
"Table",
|
|
1973
|
+
"Divider",
|
|
1974
|
+
"Storybook",
|
|
1975
|
+
"Color",
|
|
1976
|
+
"FigmaComponent"
|
|
1977
|
+
]);
|
|
1978
|
+
var PageBlockDefinitionRichTextPropertyStyle = _zod.z.enum([
|
|
1979
|
+
"Title1",
|
|
1980
|
+
"Title2",
|
|
1981
|
+
"Title3",
|
|
1982
|
+
"Title4",
|
|
1983
|
+
"Title5",
|
|
1984
|
+
"Quote",
|
|
1985
|
+
"Callout",
|
|
1986
|
+
"Default"
|
|
1987
|
+
]);
|
|
1988
|
+
var PageBlockDefinitionMultiRichTextPropertyStyle = _zod.z.enum(["OL", "UL"]);
|
|
1989
|
+
var PageBlockDefinitionRichTextEditorPropertyStyle = _zod.z.enum([
|
|
1990
|
+
"OL",
|
|
1991
|
+
"UL",
|
|
1992
|
+
"Bold",
|
|
1993
|
+
"Italic",
|
|
1994
|
+
"Link",
|
|
1995
|
+
"Strikethrough",
|
|
1996
|
+
"InlineCode"
|
|
1997
|
+
]);
|
|
1998
|
+
var PageBlockDefinitionTextPropertyStyle = _zod.z.enum([
|
|
1999
|
+
"Title1",
|
|
2000
|
+
"Title2",
|
|
2001
|
+
"Title3",
|
|
2002
|
+
"Title4",
|
|
2003
|
+
"Title5",
|
|
2004
|
+
"Default",
|
|
2005
|
+
"DefaultBold",
|
|
2006
|
+
"DefaultSemibold",
|
|
2007
|
+
"Small",
|
|
2008
|
+
"SmallBold",
|
|
2009
|
+
"SmallSemibold",
|
|
2010
|
+
"Custom"
|
|
2011
|
+
]);
|
|
2012
|
+
var PageBlockDefinitionTextPropertyColor = _zod.z.enum(["Neutral", "NeutralFaded"]);
|
|
2013
|
+
var PageBlockDefinitionBooleanPropertyStyle = _zod.z.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
2014
|
+
var PageBlockDefinitionSingleSelectPropertyStyle = _zod.z.enum([
|
|
2015
|
+
"SegmentedControl",
|
|
2016
|
+
"ToggleButton",
|
|
2017
|
+
"Select",
|
|
2018
|
+
"Checkbox"
|
|
2019
|
+
]);
|
|
2020
|
+
var PageBlockDefinitionSingleSelectPropertyColor = _zod.z.enum([
|
|
2021
|
+
"Green",
|
|
2022
|
+
"Red",
|
|
2023
|
+
"Yellow",
|
|
2024
|
+
"Blue",
|
|
2025
|
+
"Purple",
|
|
2026
|
+
"Orange",
|
|
2027
|
+
"Pink",
|
|
2028
|
+
"Teal",
|
|
2029
|
+
"Brown",
|
|
2030
|
+
"Grey",
|
|
2031
|
+
"LightGrey",
|
|
2032
|
+
"Cyan",
|
|
2033
|
+
"Fuchsia"
|
|
2034
|
+
]);
|
|
2035
|
+
var IconSet = _zod.z.enum(["CheckCircle", "CrossCircle", "Alert"]);
|
|
2036
|
+
var PageBlockDefinitionMultiSelectPropertyStyle = _zod.z.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
2037
|
+
var PageBlockDefinitionImageAspectRatio = _zod.z.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
2038
|
+
var PageBlockDefinitionImageWidth = _zod.z.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
2039
|
+
var PageBlockDefinitionSelectChoice = _zod.z.object({
|
|
2040
|
+
value: _zod.z.string(),
|
|
2041
|
+
name: _zod.z.string(),
|
|
2042
|
+
icon: IconSet.optional(),
|
|
2043
|
+
customIconUrl: _zod.z.string().optional(),
|
|
2044
|
+
color: PageBlockDefinitionSingleSelectPropertyColor.optional()
|
|
2045
|
+
});
|
|
2046
|
+
var PageBlockDefinitionUntypedPropertyOptions = _zod.z.record(_zod.z.any());
|
|
2047
|
+
var PageBlockDefinitionRichTextOptions = _zod.z.object({
|
|
2048
|
+
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
|
|
2049
|
+
});
|
|
2050
|
+
var PageBlockDefinitionMutiRichTextOptions = _zod.z.object({
|
|
2051
|
+
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
2052
|
+
});
|
|
2053
|
+
var PageBlockDefinitionRichTextEditorOptions = _zod.z.object({
|
|
2054
|
+
placeholder: _zod.z.string().optional(),
|
|
2055
|
+
allowedInlineStyles: _zod.z.array(PageBlockDefinitionRichTextEditorPropertyStyle).optional()
|
|
2056
|
+
});
|
|
2057
|
+
var PageBlockDefinitionTextOptions = _zod.z.object({
|
|
2058
|
+
placeholder: _zod.z.string().optional(),
|
|
2059
|
+
defaultValue: _zod.z.string().optional(),
|
|
2060
|
+
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
2061
|
+
color: PageBlockDefinitionTextPropertyColor.optional(),
|
|
2062
|
+
allowLineBreaks: _zod.z.boolean().optional()
|
|
2063
|
+
});
|
|
2064
|
+
var PageBlockDefinitionSelectOptions = _zod.z.object({
|
|
2065
|
+
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
2066
|
+
defaultChoice: _zod.z.string(),
|
|
2067
|
+
choices: _zod.z.array(PageBlockDefinitionSelectChoice)
|
|
2068
|
+
});
|
|
2069
|
+
var PageBlockDefinitionImageOptions = _zod.z.object({
|
|
2070
|
+
width: PageBlockDefinitionImageWidth.optional(),
|
|
2071
|
+
aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
|
|
2072
|
+
allowCaption: _zod.z.boolean().optional(),
|
|
2073
|
+
recommendation: _zod.z.string().optional()
|
|
2074
|
+
});
|
|
2075
|
+
var PageBlockDefinitionBooleanOptions = _zod.z.object({
|
|
2076
|
+
defaultvalue: _zod.z.boolean().optional(),
|
|
2077
|
+
booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
|
|
2078
|
+
});
|
|
2079
|
+
var PageBlockDefinitionNumberOptions = _zod.z.object({
|
|
2080
|
+
defaultValue: _zod.z.number(),
|
|
2081
|
+
min: _zod.z.number().optional(),
|
|
2082
|
+
max: _zod.z.number().optional(),
|
|
2083
|
+
step: _zod.z.number().optional(),
|
|
2084
|
+
placeholder: _zod.z.string().optional()
|
|
2085
|
+
});
|
|
2086
|
+
var PageBlockDefinitionComponentOptions = _zod.z.object({
|
|
2087
|
+
renderLayoutAs: _zod.z.enum(["List", "Table"]).optional(),
|
|
2088
|
+
allowPropertySelection: _zod.z.boolean().optional()
|
|
2089
|
+
});
|
|
2090
|
+
var PageBlockDefinitionProperty = _zod.z.object({
|
|
2091
|
+
id: _zod.z.string(),
|
|
2092
|
+
name: _zod.z.string(),
|
|
2093
|
+
type: PageBlockDefinitionPropertyType,
|
|
2094
|
+
description: _zod.z.string().optional(),
|
|
2095
|
+
options: PageBlockDefinitionUntypedPropertyOptions.optional(),
|
|
2096
|
+
variantOptions: _zod.z.record(PageBlockDefinitionUntypedPropertyOptions).optional()
|
|
2097
|
+
});
|
|
2098
|
+
var PageBlockDefinitionItem = _zod.z.object({
|
|
2099
|
+
properties: _zod.z.array(PageBlockDefinitionProperty),
|
|
2100
|
+
appearance: PageBlockDefinitionAppearance.optional(),
|
|
2101
|
+
variants: _zod.z.array(PageBlockDefinitionVariant),
|
|
2102
|
+
defaultVariantKey: _zod.z.string()
|
|
2103
|
+
});
|
|
1919
2104
|
var PageBlockLinkType = _zod.z.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
1920
2105
|
var PageBlockImageType = _zod.z.enum(["Resource", "FigmaNode"]);
|
|
1921
2106
|
var PageBlockImageAlignment = _zod.z.enum(["Left", "Center", "Stretch"]);
|
|
@@ -2086,9 +2271,6 @@ var PageBlockItemRichTextValue = _zod.z.object({
|
|
|
2086
2271
|
value: PageBlockText,
|
|
2087
2272
|
calloutType: PageBlockCalloutType.optional()
|
|
2088
2273
|
});
|
|
2089
|
-
var PageBlockItemRichTextEditorValue = _zod.z.object({
|
|
2090
|
-
value: _zod.z.any()
|
|
2091
|
-
});
|
|
2092
2274
|
var PageBlockItemSingleSelectValue = _zod.z.object({
|
|
2093
2275
|
value: _zod.z.string()
|
|
2094
2276
|
});
|
|
@@ -2126,15 +2308,27 @@ var PageBlockItemTokenTypeValue = _zod.z.object({
|
|
|
2126
2308
|
var PageBlockItemUrlValue = _zod.z.object({
|
|
2127
2309
|
value: _zod.z.string()
|
|
2128
2310
|
});
|
|
2311
|
+
var PageBlockItemRichTextEditorParagraphNode = _zod.z.object({
|
|
2312
|
+
type: _zod.z.literal("Paragraph"),
|
|
2313
|
+
value: PageBlockItemRichTextValue.shape.value
|
|
2314
|
+
});
|
|
2315
|
+
var PageBlockItemRichTextEditorListNode = _zod.z.object({
|
|
2316
|
+
type: _zod.z.literal("List"),
|
|
2317
|
+
listType: PageBlockDefinitionMultiRichTextPropertyStyle,
|
|
2318
|
+
value: PageBlockItemMultiRichTextValue.shape.value
|
|
2319
|
+
});
|
|
2320
|
+
var PageBlockItemRichTextEditorNode = _zod.z.discriminatedUnion("type", [
|
|
2321
|
+
PageBlockItemRichTextEditorParagraphNode,
|
|
2322
|
+
PageBlockItemRichTextEditorListNode
|
|
2323
|
+
]);
|
|
2324
|
+
var PageBlockItemRichTextEditorValue = _zod.z.object({
|
|
2325
|
+
value: PageBlockItemRichTextEditorNode.array()
|
|
2326
|
+
});
|
|
2129
2327
|
var PageBlockItemTableRichTextNode = _zod.z.object({
|
|
2130
2328
|
type: _zod.z.literal("RichText"),
|
|
2131
2329
|
id: _zod.z.string(),
|
|
2132
2330
|
value: PageBlockItemRichTextValue.shape.value
|
|
2133
2331
|
});
|
|
2134
|
-
var PageBlockItemTableMultiRichTextNode = _zod.z.object({
|
|
2135
|
-
type: _zod.z.literal("MultiRichText"),
|
|
2136
|
-
value: PageBlockItemMultiRichTextValue.shape.value
|
|
2137
|
-
});
|
|
2138
2332
|
var PageBlockItemTableImageNode = _zod.z.object({
|
|
2139
2333
|
type: _zod.z.literal("Image"),
|
|
2140
2334
|
id: _zod.z.string(),
|
|
@@ -2143,7 +2337,6 @@ var PageBlockItemTableImageNode = _zod.z.object({
|
|
|
2143
2337
|
});
|
|
2144
2338
|
var PageBlockItemTableNode = _zod.z.discriminatedUnion("type", [
|
|
2145
2339
|
PageBlockItemTableRichTextNode,
|
|
2146
|
-
// PageBlockItemTableMultiRichTextNode,
|
|
2147
2340
|
PageBlockItemTableImageNode
|
|
2148
2341
|
]);
|
|
2149
2342
|
var PageBlockItemTableCell = _zod.z.object({
|
|
@@ -3086,240 +3279,55 @@ var DesignTokenImportModelPart = _zod.z.object({
|
|
|
3086
3279
|
collection: _zod.z.string().optional(),
|
|
3087
3280
|
codeSyntax: _zod.z.record(_zod.z.coerce.string()).optional()
|
|
3088
3281
|
});
|
|
3089
|
-
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
3090
|
-
origin: DesignTokenOrigin
|
|
3091
|
-
});
|
|
3092
|
-
var DesignTokenImportModelInputBase = ImportModelInputBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
3093
|
-
originMetadata: DesignTokenOriginPart
|
|
3094
|
-
});
|
|
3095
|
-
var DesignTokenImportModel = DesignTokenTypedData.and(DesignTokenImportModelBase);
|
|
3096
|
-
var DesignTokenImportModelInput = DesignTokenTypedData.and(DesignTokenImportModelInputBase);
|
|
3097
|
-
var ImportModelInputCollection = _zod.z.object({
|
|
3098
|
-
source: DataSourceImportModel,
|
|
3099
|
-
tokens: _zod.z.array(DesignTokenImportModelInput).default([]),
|
|
3100
|
-
components: _zod.z.array(FigmaComponentImportModelInput).default([]),
|
|
3101
|
-
assets: _zod.z.array(AssetImportModelInput).default([]),
|
|
3102
|
-
themeUpdates: _zod.z.array(ThemeUpdateImportModelInput).default([]),
|
|
3103
|
-
themes: _zod.z.array(ThemeImportModelInput).default([]),
|
|
3104
|
-
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
3105
|
-
});
|
|
3106
|
-
var ImportModelCollection = _zod.z.object({
|
|
3107
|
-
sources: _zod.z.array(DataSourceImportModel),
|
|
3108
|
-
tokens: _zod.z.array(DesignTokenImportModel).default([]),
|
|
3109
|
-
components: _zod.z.array(FigmaComponentImportModel).default([]),
|
|
3110
|
-
themeUpdates: _zod.z.array(ThemeUpdateImportModel).default([]),
|
|
3111
|
-
themes: _zod.z.array(ThemeImportModel).default([]),
|
|
3112
|
-
figmaFileStructures: _zod.z.array(FigmaFileStructureImportModel)
|
|
3113
|
-
});
|
|
3114
|
-
var AssetRenderConfiguration = _zod.z.object({
|
|
3115
|
-
prefix: _zod.z.string().optional(),
|
|
3116
|
-
suffix: _zod.z.string().optional(),
|
|
3117
|
-
scale: _zod.z.number(),
|
|
3118
|
-
format: FigmaRenderFormat
|
|
3119
|
-
});
|
|
3120
|
-
var RenderedAssetFile = _zod.z.object({
|
|
3121
|
-
assetPersistentId: _zod.z.string(),
|
|
3122
|
-
assetName: _zod.z.string(),
|
|
3123
|
-
renderedImageFileName: _zod.z.string(),
|
|
3124
|
-
renderedImageUrl: _zod.z.string(),
|
|
3125
|
-
settings: AssetRenderConfiguration
|
|
3126
|
-
});
|
|
3127
|
-
var DocumentationPageApprovalState = _zod.z.enum(["ReadyForReview", "ChangesRequested", "Approved"]);
|
|
3128
|
-
var DocumentationPageApproval = _zod.z.object({
|
|
3129
|
-
id: _zod.z.string(),
|
|
3130
|
-
approvalState: DocumentationPageApprovalState,
|
|
3131
|
-
persistentId: _zod.z.string(),
|
|
3132
|
-
pageId: _zod.z.string(),
|
|
3133
|
-
pagePersistentId: _zod.z.string(),
|
|
3134
|
-
updatedByUserId: _zod.z.string(),
|
|
3135
|
-
designSystemVersionId: _zod.z.string(),
|
|
3136
|
-
updatedAt: _zod.z.coerce.date(),
|
|
3137
|
-
createdAt: _zod.z.coerce.date()
|
|
3138
|
-
});
|
|
3139
|
-
var PageBlockDefinitionAppearance = _zod.z.object({
|
|
3140
|
-
isBordered: _zod.z.boolean().optional(),
|
|
3141
|
-
hasBackground: _zod.z.boolean().optional(),
|
|
3142
|
-
isEditorPresentationDifferent: _zod.z.boolean().optional(),
|
|
3143
|
-
showBlockHeaderInEditor: _zod.z.boolean().optional()
|
|
3144
|
-
});
|
|
3145
|
-
var PageBlockDefinitionLayoutType = _zod.z.enum(["Column", "Row"]);
|
|
3146
|
-
var PageBlockDefinitionLayoutGap = _zod.z.enum(["Small", "Medium", "Large", "None"]);
|
|
3147
|
-
var PageBlockDefinitionLayoutAlign = _zod.z.enum(["Start", "Center", "End"]);
|
|
3148
|
-
var PageBlockDefinitionLayoutResizing = _zod.z.enum(["Fill", "Hug"]);
|
|
3149
|
-
var PageBlockDefinitionLayoutBase = _zod.z.object({
|
|
3150
|
-
type: PageBlockDefinitionLayoutType,
|
|
3151
|
-
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
3152
|
-
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
3153
|
-
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
3154
|
-
});
|
|
3155
|
-
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
3156
|
-
children: _zod.z.lazy(() => _zod.z.array(PageBlockDefinitionLayout.or(_zod.z.string())))
|
|
3157
|
-
});
|
|
3158
|
-
var PageBlockDefinitionVariant = _zod.z.object({
|
|
3159
|
-
id: _zod.z.string(),
|
|
3160
|
-
name: _zod.z.string(),
|
|
3161
|
-
image: _zod.z.string().optional(),
|
|
3162
|
-
description: _zod.z.string().optional(),
|
|
3163
|
-
documentationLink: _zod.z.string().optional(),
|
|
3164
|
-
layout: PageBlockDefinitionLayout,
|
|
3165
|
-
maxColumns: _zod.z.number().optional(),
|
|
3166
|
-
defaultColumns: _zod.z.number().optional(),
|
|
3167
|
-
appearance: PageBlockDefinitionAppearance.optional()
|
|
3168
|
-
});
|
|
3169
|
-
var PageBlockDefinitionPropertyType = _zod.z.enum([
|
|
3170
|
-
"RichText",
|
|
3171
|
-
"MultiRichText",
|
|
3172
|
-
"RichTextEditor",
|
|
3173
|
-
"Text",
|
|
3174
|
-
"Boolean",
|
|
3175
|
-
"Number",
|
|
3176
|
-
"SingleSelect",
|
|
3177
|
-
"MultiSelect",
|
|
3178
|
-
"Image",
|
|
3179
|
-
"Token",
|
|
3180
|
-
"TokenType",
|
|
3181
|
-
"TokenProperty",
|
|
3182
|
-
"Component",
|
|
3183
|
-
"ComponentProperty",
|
|
3184
|
-
"Asset",
|
|
3185
|
-
"AssetProperty",
|
|
3186
|
-
"FigmaNode",
|
|
3187
|
-
"EmbedURL",
|
|
3188
|
-
"URL",
|
|
3189
|
-
"Markdown",
|
|
3190
|
-
"Code",
|
|
3191
|
-
"CodeSandbox",
|
|
3192
|
-
"Table",
|
|
3193
|
-
"Divider",
|
|
3194
|
-
"Storybook",
|
|
3195
|
-
"Color",
|
|
3196
|
-
"FigmaComponent"
|
|
3197
|
-
]);
|
|
3198
|
-
var PageBlockDefinitionRichTextPropertyStyle = _zod.z.enum([
|
|
3199
|
-
"Title1",
|
|
3200
|
-
"Title2",
|
|
3201
|
-
"Title3",
|
|
3202
|
-
"Title4",
|
|
3203
|
-
"Title5",
|
|
3204
|
-
"Quote",
|
|
3205
|
-
"Callout",
|
|
3206
|
-
"Default"
|
|
3207
|
-
]);
|
|
3208
|
-
var PageBlockDefinitionMultiRichTextPropertyStyle = _zod.z.enum(["OL", "UL", "Default"]);
|
|
3209
|
-
var PageBlockDefinitionRichTextEditorPropertyStyle = _zod.z.enum([
|
|
3210
|
-
"OL",
|
|
3211
|
-
"UL",
|
|
3212
|
-
"Bold",
|
|
3213
|
-
"Italic",
|
|
3214
|
-
"Link",
|
|
3215
|
-
"Strikethrough",
|
|
3216
|
-
"InlineCode"
|
|
3217
|
-
]);
|
|
3218
|
-
var PageBlockDefinitionTextPropertyStyle = _zod.z.enum([
|
|
3219
|
-
"Title1",
|
|
3220
|
-
"Title2",
|
|
3221
|
-
"Title3",
|
|
3222
|
-
"Title4",
|
|
3223
|
-
"Title5",
|
|
3224
|
-
"Default",
|
|
3225
|
-
"DefaultBold",
|
|
3226
|
-
"DefaultSemibold",
|
|
3227
|
-
"Small",
|
|
3228
|
-
"SmallBold",
|
|
3229
|
-
"SmallSemibold",
|
|
3230
|
-
"Custom"
|
|
3231
|
-
]);
|
|
3232
|
-
var PageBlockDefinitionTextPropertyColor = _zod.z.enum(["Neutral", "NeutralFaded"]);
|
|
3233
|
-
var PageBlockDefinitionBooleanPropertyStyle = _zod.z.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
3234
|
-
var PageBlockDefinitionSingleSelectPropertyStyle = _zod.z.enum([
|
|
3235
|
-
"SegmentedControl",
|
|
3236
|
-
"ToggleButton",
|
|
3237
|
-
"Select",
|
|
3238
|
-
"Checkbox"
|
|
3239
|
-
]);
|
|
3240
|
-
var PageBlockDefinitionSingleSelectPropertyColor = _zod.z.enum([
|
|
3241
|
-
"Green",
|
|
3242
|
-
"Red",
|
|
3243
|
-
"Yellow",
|
|
3244
|
-
"Blue",
|
|
3245
|
-
"Purple",
|
|
3246
|
-
"Orange",
|
|
3247
|
-
"Pink",
|
|
3248
|
-
"Teal",
|
|
3249
|
-
"Brown",
|
|
3250
|
-
"Grey",
|
|
3251
|
-
"LightGrey",
|
|
3252
|
-
"Cyan",
|
|
3253
|
-
"Fuchsia"
|
|
3254
|
-
]);
|
|
3255
|
-
var IconSet = _zod.z.enum(["CheckCircle", "CrossCircle", "Alert"]);
|
|
3256
|
-
var PageBlockDefinitionMultiSelectPropertyStyle = _zod.z.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
3257
|
-
var PageBlockDefinitionImageAspectRatio = _zod.z.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
3258
|
-
var PageBlockDefinitionImageWidth = _zod.z.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
3259
|
-
var PageBlockDefinitionSelectChoice = _zod.z.object({
|
|
3260
|
-
value: _zod.z.string(),
|
|
3261
|
-
name: _zod.z.string(),
|
|
3262
|
-
icon: IconSet.optional(),
|
|
3263
|
-
customIconUrl: _zod.z.string().optional(),
|
|
3264
|
-
color: PageBlockDefinitionSingleSelectPropertyColor.optional()
|
|
3265
|
-
});
|
|
3266
|
-
var PageBlockDefinitionUntypedPropertyOptions = _zod.z.record(_zod.z.any());
|
|
3267
|
-
var PageBlockDefinitionRichTextOptions = _zod.z.object({
|
|
3268
|
-
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
|
|
3269
|
-
});
|
|
3270
|
-
var PageBlockDefinitionMutiRichTextOptions = _zod.z.object({
|
|
3271
|
-
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
3272
|
-
});
|
|
3273
|
-
var PageBlockDefinitionRichTextEditorOptions = _zod.z.object({
|
|
3274
|
-
placeholder: _zod.z.string().optional(),
|
|
3275
|
-
allowedInlineStyles: _zod.z.array(PageBlockDefinitionRichTextEditorPropertyStyle).optional()
|
|
3276
|
-
});
|
|
3277
|
-
var PageBlockDefinitionTextOptions = _zod.z.object({
|
|
3278
|
-
placeholder: _zod.z.string().optional(),
|
|
3279
|
-
defaultValue: _zod.z.string().optional(),
|
|
3280
|
-
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
3281
|
-
color: PageBlockDefinitionTextPropertyColor.optional(),
|
|
3282
|
-
allowLineBreaks: _zod.z.boolean().optional()
|
|
3282
|
+
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
3283
|
+
origin: DesignTokenOrigin
|
|
3283
3284
|
});
|
|
3284
|
-
var
|
|
3285
|
-
|
|
3286
|
-
defaultChoice: _zod.z.string(),
|
|
3287
|
-
choices: _zod.z.array(PageBlockDefinitionSelectChoice)
|
|
3285
|
+
var DesignTokenImportModelInputBase = ImportModelInputBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
3286
|
+
originMetadata: DesignTokenOriginPart
|
|
3288
3287
|
});
|
|
3289
|
-
var
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3288
|
+
var DesignTokenImportModel = DesignTokenTypedData.and(DesignTokenImportModelBase);
|
|
3289
|
+
var DesignTokenImportModelInput = DesignTokenTypedData.and(DesignTokenImportModelInputBase);
|
|
3290
|
+
var ImportModelInputCollection = _zod.z.object({
|
|
3291
|
+
source: DataSourceImportModel,
|
|
3292
|
+
tokens: _zod.z.array(DesignTokenImportModelInput).default([]),
|
|
3293
|
+
components: _zod.z.array(FigmaComponentImportModelInput).default([]),
|
|
3294
|
+
assets: _zod.z.array(AssetImportModelInput).default([]),
|
|
3295
|
+
themeUpdates: _zod.z.array(ThemeUpdateImportModelInput).default([]),
|
|
3296
|
+
themes: _zod.z.array(ThemeImportModelInput).default([]),
|
|
3297
|
+
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
3294
3298
|
});
|
|
3295
|
-
var
|
|
3296
|
-
|
|
3297
|
-
|
|
3299
|
+
var ImportModelCollection = _zod.z.object({
|
|
3300
|
+
sources: _zod.z.array(DataSourceImportModel),
|
|
3301
|
+
tokens: _zod.z.array(DesignTokenImportModel).default([]),
|
|
3302
|
+
components: _zod.z.array(FigmaComponentImportModel).default([]),
|
|
3303
|
+
themeUpdates: _zod.z.array(ThemeUpdateImportModel).default([]),
|
|
3304
|
+
themes: _zod.z.array(ThemeImportModel).default([]),
|
|
3305
|
+
figmaFileStructures: _zod.z.array(FigmaFileStructureImportModel)
|
|
3298
3306
|
});
|
|
3299
|
-
var
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
placeholder: _zod.z.string().optional()
|
|
3307
|
+
var AssetRenderConfiguration = _zod.z.object({
|
|
3308
|
+
prefix: _zod.z.string().optional(),
|
|
3309
|
+
suffix: _zod.z.string().optional(),
|
|
3310
|
+
scale: _zod.z.number(),
|
|
3311
|
+
format: FigmaRenderFormat
|
|
3305
3312
|
});
|
|
3306
|
-
var
|
|
3307
|
-
|
|
3308
|
-
|
|
3313
|
+
var RenderedAssetFile = _zod.z.object({
|
|
3314
|
+
assetPersistentId: _zod.z.string(),
|
|
3315
|
+
assetName: _zod.z.string(),
|
|
3316
|
+
renderedImageFileName: _zod.z.string(),
|
|
3317
|
+
renderedImageUrl: _zod.z.string(),
|
|
3318
|
+
settings: AssetRenderConfiguration
|
|
3309
3319
|
});
|
|
3310
|
-
var
|
|
3320
|
+
var DocumentationPageApprovalState = _zod.z.enum(["ReadyForReview", "ChangesRequested", "Approved"]);
|
|
3321
|
+
var DocumentationPageApproval = _zod.z.object({
|
|
3311
3322
|
id: _zod.z.string(),
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
appearance: PageBlockDefinitionAppearance.optional(),
|
|
3321
|
-
variants: _zod.z.array(PageBlockDefinitionVariant),
|
|
3322
|
-
defaultVariantKey: _zod.z.string()
|
|
3323
|
+
approvalState: DocumentationPageApprovalState,
|
|
3324
|
+
persistentId: _zod.z.string(),
|
|
3325
|
+
pageId: _zod.z.string(),
|
|
3326
|
+
pagePersistentId: _zod.z.string(),
|
|
3327
|
+
updatedByUserId: _zod.z.string(),
|
|
3328
|
+
designSystemVersionId: _zod.z.string(),
|
|
3329
|
+
updatedAt: _zod.z.coerce.date(),
|
|
3330
|
+
createdAt: _zod.z.coerce.date()
|
|
3323
3331
|
});
|
|
3324
3332
|
var PageBlockCategory = _zod.z.enum([
|
|
3325
3333
|
"Text",
|
|
@@ -6941,9 +6949,154 @@ var DocumentationPageEditorModel = _zod.z.object({
|
|
|
6941
6949
|
blocks: _zod.z.array(DocumentationPageContentItem)
|
|
6942
6950
|
});
|
|
6943
6951
|
|
|
6944
|
-
// src/yjs/docs-editor/prosemirror/schema.ts
|
|
6952
|
+
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
6945
6953
|
var _prosemirrormodel = require('prosemirror-model');
|
|
6946
|
-
var
|
|
6954
|
+
var pmSchemaJson = {
|
|
6955
|
+
topNode: "doc",
|
|
6956
|
+
nodes: {
|
|
6957
|
+
paragraph: {
|
|
6958
|
+
content: "inline*",
|
|
6959
|
+
group: "block",
|
|
6960
|
+
parseDOM: [
|
|
6961
|
+
{
|
|
6962
|
+
tag: "p"
|
|
6963
|
+
}
|
|
6964
|
+
]
|
|
6965
|
+
},
|
|
6966
|
+
listItem: {
|
|
6967
|
+
content: "paragraph",
|
|
6968
|
+
defining: true,
|
|
6969
|
+
parseDOM: [
|
|
6970
|
+
{
|
|
6971
|
+
tag: "li"
|
|
6972
|
+
}
|
|
6973
|
+
]
|
|
6974
|
+
},
|
|
6975
|
+
doc: {
|
|
6976
|
+
content: "block+"
|
|
6977
|
+
},
|
|
6978
|
+
hardBreak: {
|
|
6979
|
+
group: "inline",
|
|
6980
|
+
inline: true,
|
|
6981
|
+
selectable: false,
|
|
6982
|
+
parseDOM: [
|
|
6983
|
+
{
|
|
6984
|
+
tag: "br"
|
|
6985
|
+
}
|
|
6986
|
+
]
|
|
6987
|
+
},
|
|
6988
|
+
text: {
|
|
6989
|
+
group: "inline"
|
|
6990
|
+
},
|
|
6991
|
+
bulletList: {
|
|
6992
|
+
content: "listItem+",
|
|
6993
|
+
group: "block list",
|
|
6994
|
+
parseDOM: [
|
|
6995
|
+
{
|
|
6996
|
+
tag: "ul"
|
|
6997
|
+
}
|
|
6998
|
+
]
|
|
6999
|
+
},
|
|
7000
|
+
orderedList: {
|
|
7001
|
+
content: "listItem+",
|
|
7002
|
+
group: "block list",
|
|
7003
|
+
attrs: {
|
|
7004
|
+
start: {
|
|
7005
|
+
default: 1
|
|
7006
|
+
},
|
|
7007
|
+
type: {
|
|
7008
|
+
default: null
|
|
7009
|
+
}
|
|
7010
|
+
},
|
|
7011
|
+
parseDOM: [
|
|
7012
|
+
{
|
|
7013
|
+
tag: "ol"
|
|
7014
|
+
}
|
|
7015
|
+
]
|
|
7016
|
+
}
|
|
7017
|
+
},
|
|
7018
|
+
marks: {
|
|
7019
|
+
link: {
|
|
7020
|
+
inclusive: false,
|
|
7021
|
+
attrs: {
|
|
7022
|
+
href: {
|
|
7023
|
+
default: null
|
|
7024
|
+
},
|
|
7025
|
+
target: {
|
|
7026
|
+
default: "_blank"
|
|
7027
|
+
},
|
|
7028
|
+
rel: {
|
|
7029
|
+
default: "noopener noreferrer nofollow"
|
|
7030
|
+
},
|
|
7031
|
+
class: {
|
|
7032
|
+
default: "tiptap-link"
|
|
7033
|
+
}
|
|
7034
|
+
},
|
|
7035
|
+
parseDOM: [
|
|
7036
|
+
{
|
|
7037
|
+
tag: "a[href]"
|
|
7038
|
+
}
|
|
7039
|
+
]
|
|
7040
|
+
},
|
|
7041
|
+
bold: {
|
|
7042
|
+
parseDOM: [
|
|
7043
|
+
{
|
|
7044
|
+
tag: "strong"
|
|
7045
|
+
},
|
|
7046
|
+
{
|
|
7047
|
+
tag: "b"
|
|
7048
|
+
},
|
|
7049
|
+
{
|
|
7050
|
+
style: "font-weight"
|
|
7051
|
+
}
|
|
7052
|
+
]
|
|
7053
|
+
},
|
|
7054
|
+
italic: {
|
|
7055
|
+
parseDOM: [
|
|
7056
|
+
{
|
|
7057
|
+
tag: "em"
|
|
7058
|
+
},
|
|
7059
|
+
{
|
|
7060
|
+
tag: "i"
|
|
7061
|
+
},
|
|
7062
|
+
{
|
|
7063
|
+
style: "font-style=italic"
|
|
7064
|
+
}
|
|
7065
|
+
]
|
|
7066
|
+
},
|
|
7067
|
+
strike: {
|
|
7068
|
+
parseDOM: [
|
|
7069
|
+
{
|
|
7070
|
+
tag: "s"
|
|
7071
|
+
},
|
|
7072
|
+
{
|
|
7073
|
+
tag: "del"
|
|
7074
|
+
},
|
|
7075
|
+
{
|
|
7076
|
+
tag: "strike"
|
|
7077
|
+
},
|
|
7078
|
+
{
|
|
7079
|
+
style: "text-decoration",
|
|
7080
|
+
consuming: false
|
|
7081
|
+
}
|
|
7082
|
+
]
|
|
7083
|
+
},
|
|
7084
|
+
code: {
|
|
7085
|
+
excludes: "bold code italic strike link",
|
|
7086
|
+
code: true,
|
|
7087
|
+
parseDOM: [
|
|
7088
|
+
{
|
|
7089
|
+
tag: "code"
|
|
7090
|
+
}
|
|
7091
|
+
]
|
|
7092
|
+
}
|
|
7093
|
+
}
|
|
7094
|
+
};
|
|
7095
|
+
var innerEditorProsemirrorSchema = new (0, _prosemirrormodel.Schema)(pmSchemaJson);
|
|
7096
|
+
|
|
7097
|
+
// src/yjs/docs-editor/prosemirror/main-editor-schema.ts
|
|
7098
|
+
|
|
7099
|
+
var pmSchemaJson2 = {
|
|
6947
7100
|
topNode: "doc",
|
|
6948
7101
|
nodes: {
|
|
6949
7102
|
paragraph: {
|
|
@@ -7516,7 +7669,7 @@ var newSchema = {
|
|
|
7516
7669
|
}
|
|
7517
7670
|
}
|
|
7518
7671
|
};
|
|
7519
|
-
var
|
|
7672
|
+
var mainEditorProsemirrorSchema = new (0, _prosemirrormodel.Schema)(pmSchemaJson2);
|
|
7520
7673
|
|
|
7521
7674
|
// src/yjs/docs-editor/blocks-to-prosemirror.ts
|
|
7522
7675
|
var _yprosemirror = require('y-prosemirror');
|
|
@@ -7685,7 +7838,7 @@ function pageToYDoc(doc, page, definitions) {
|
|
|
7685
7838
|
}
|
|
7686
7839
|
function pageToYXmlFragment(page, definitions, fragment) {
|
|
7687
7840
|
const doc = pageToProsemirrorDoc(page, definitions);
|
|
7688
|
-
return _yprosemirror.prosemirrorJSONToYXmlFragment.call(void 0,
|
|
7841
|
+
return _yprosemirror.prosemirrorJSONToYXmlFragment.call(void 0, mainEditorProsemirrorSchema, doc, fragment);
|
|
7689
7842
|
}
|
|
7690
7843
|
function pageToProsemirrorDoc(page, definitions) {
|
|
7691
7844
|
const definitionsMap = mapByUnique(definitions, (d) => d.id);
|
|
@@ -7715,6 +7868,50 @@ function blockToProsemirrorNode(block, definition) {
|
|
|
7715
7868
|
const nodes = internalBlocksToProsemirrorNodes([block], definitionsMap);
|
|
7716
7869
|
return _nullishCoalesce(nodes[0], () => ( null));
|
|
7717
7870
|
}
|
|
7871
|
+
function richTextPropertyValueToProsemirror(richTextEditorValue) {
|
|
7872
|
+
return {
|
|
7873
|
+
type: "doc",
|
|
7874
|
+
content: richTextEditorValue.value.map((node) => {
|
|
7875
|
+
return serializeRichTextEditorNode(node);
|
|
7876
|
+
})
|
|
7877
|
+
};
|
|
7878
|
+
}
|
|
7879
|
+
function serializeRichTextEditorNode(node) {
|
|
7880
|
+
switch (node.type) {
|
|
7881
|
+
case "Paragraph":
|
|
7882
|
+
return serializeRichTextEditorParagraphNode(node);
|
|
7883
|
+
case "List":
|
|
7884
|
+
return serializeRichTextEditorListNode(node);
|
|
7885
|
+
}
|
|
7886
|
+
}
|
|
7887
|
+
function serializeRichTextEditorParagraphNode(node) {
|
|
7888
|
+
const content = serializeRichText(node.value);
|
|
7889
|
+
return {
|
|
7890
|
+
type: "paragraph",
|
|
7891
|
+
...content.length && { content }
|
|
7892
|
+
};
|
|
7893
|
+
}
|
|
7894
|
+
function serializeRichTextEditorListNode(node) {
|
|
7895
|
+
const type = node.listType === "OL" ? "orderedList" : "bulletList";
|
|
7896
|
+
const attrs = node.listType === "OL" ? { start: 1 } : void 0;
|
|
7897
|
+
const richTexts = node.value.length ? node.value : [{ spans: [] }];
|
|
7898
|
+
return {
|
|
7899
|
+
type,
|
|
7900
|
+
...attrs && { attrs },
|
|
7901
|
+
content: richTexts.map((n) => {
|
|
7902
|
+
const content = serializeRichText(n);
|
|
7903
|
+
return {
|
|
7904
|
+
type: "listItem",
|
|
7905
|
+
content: [
|
|
7906
|
+
{
|
|
7907
|
+
type: "paragraph",
|
|
7908
|
+
...content.length && { content }
|
|
7909
|
+
}
|
|
7910
|
+
]
|
|
7911
|
+
};
|
|
7912
|
+
})
|
|
7913
|
+
};
|
|
7914
|
+
}
|
|
7718
7915
|
function internalSectionToProsemirrorNode(section, definitionsMap) {
|
|
7719
7916
|
return {
|
|
7720
7917
|
type: "tabsSection",
|
|
@@ -10628,6 +10825,43 @@ function prosemirrorDocToPage(prosemirrorDoc, definitions) {
|
|
|
10628
10825
|
function shallowProsemirrorNodeToBlock(prosemirrorNode, definition) {
|
|
10629
10826
|
return _nullishCoalesce(prosemirrorNodeAndDefinitionToBlock(prosemirrorNode, definition, /* @__PURE__ */ new Map([[definition.id, definition]]), 0)[0], () => ( null));
|
|
10630
10827
|
}
|
|
10828
|
+
function prosemirrorDocToRichTextPropertyValue(prosemirrorNode) {
|
|
10829
|
+
return {
|
|
10830
|
+
value: (_nullishCoalesce(prosemirrorNode.content, () => ( []))).map((n) => prosemirrorNodeToRichTextEditorPropertyNode(n)).filter(nonNullFilter)
|
|
10831
|
+
};
|
|
10832
|
+
}
|
|
10833
|
+
function prosemirrorNodeToRichTextEditorPropertyNode(prosemirrorNode) {
|
|
10834
|
+
switch (prosemirrorNode.type) {
|
|
10835
|
+
case "paragraph":
|
|
10836
|
+
return parseAsParagraphNode(prosemirrorNode);
|
|
10837
|
+
case "orderedList":
|
|
10838
|
+
case "bulletList":
|
|
10839
|
+
return parseAsListNode(prosemirrorNode);
|
|
10840
|
+
default:
|
|
10841
|
+
return null;
|
|
10842
|
+
}
|
|
10843
|
+
}
|
|
10844
|
+
function parseAsParagraphNode(prosemirrorNode) {
|
|
10845
|
+
return {
|
|
10846
|
+
type: "Paragraph",
|
|
10847
|
+
value: parseRichText(_nullishCoalesce(prosemirrorNode.content, () => ( [])))
|
|
10848
|
+
};
|
|
10849
|
+
}
|
|
10850
|
+
function parseAsListNode(prosemirrorNode) {
|
|
10851
|
+
return {
|
|
10852
|
+
type: "List",
|
|
10853
|
+
listType: prosemirrorNode.type === "orderedList" ? "OL" : "UL",
|
|
10854
|
+
value: (_nullishCoalesce(prosemirrorNode.content, () => ( []))).map(parseAsListNodeItem).filter(nonNullFilter)
|
|
10855
|
+
};
|
|
10856
|
+
}
|
|
10857
|
+
function parseAsListNodeItem(prosemirrorNode) {
|
|
10858
|
+
if (prosemirrorNode.type !== "listItem")
|
|
10859
|
+
return null;
|
|
10860
|
+
const firstChild = _optionalChain([prosemirrorNode, 'access', _50 => _50.content, 'optionalAccess', _51 => _51[0]]);
|
|
10861
|
+
if (!firstChild || firstChild.type !== "paragraph")
|
|
10862
|
+
return null;
|
|
10863
|
+
return parseRichText(_nullishCoalesce(firstChild.content, () => ( [])));
|
|
10864
|
+
}
|
|
10631
10865
|
function prosemirrorNodeToSection(prosemirrorNode, definitions) {
|
|
10632
10866
|
const definitionsById = mapByUnique2(definitions, (d) => d.id);
|
|
10633
10867
|
return internalProsemirrorNodeToSection(prosemirrorNode, definitionsById);
|
|
@@ -10778,10 +11012,10 @@ function parseAsMultiRichText(prosemirrorNode, definition, property, definitions
|
|
|
10778
11012
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
10779
11013
|
const result = [];
|
|
10780
11014
|
const listItems = [];
|
|
10781
|
-
_optionalChain([prosemirrorNode, 'access',
|
|
11015
|
+
_optionalChain([prosemirrorNode, 'access', _52 => _52.content, 'optionalAccess', _53 => _53.forEach, 'call', _54 => _54((c) => {
|
|
10782
11016
|
if (c.type !== "listItem")
|
|
10783
11017
|
return;
|
|
10784
|
-
_optionalChain([c, 'access',
|
|
11018
|
+
_optionalChain([c, 'access', _55 => _55.content, 'optionalAccess', _56 => _56.forEach, 'call', _57 => _57((cc) => {
|
|
10785
11019
|
listItems.push(cc);
|
|
10786
11020
|
})]);
|
|
10787
11021
|
})]);
|
|
@@ -10897,17 +11131,17 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
10897
11131
|
return null;
|
|
10898
11132
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
10899
11133
|
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", _zod.z.boolean().optional()) !== false;
|
|
10900
|
-
const tableChild = _optionalChain([prosemirrorNode, 'access',
|
|
11134
|
+
const tableChild = _optionalChain([prosemirrorNode, 'access', _58 => _58.content, 'optionalAccess', _59 => _59.find, 'call', _60 => _60((c) => c.type === "table")]);
|
|
10901
11135
|
if (!tableChild) {
|
|
10902
11136
|
return emptyTable(id, variantId, 0);
|
|
10903
11137
|
}
|
|
10904
|
-
const rows = _nullishCoalesce(_optionalChain([tableChild, 'access',
|
|
11138
|
+
const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _61 => _61.content, 'optionalAccess', _62 => _62.filter, 'call', _63 => _63((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _64 => _64.content, 'optionalAccess', _65 => _65.length]))]), () => ( []));
|
|
10905
11139
|
if (!rows.length) {
|
|
10906
11140
|
return emptyTable(id, variantId, 0);
|
|
10907
11141
|
}
|
|
10908
|
-
const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access',
|
|
10909
|
-
const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access',
|
|
10910
|
-
const hasHeaderRow = _optionalChain([rows, 'access',
|
|
11142
|
+
const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _66 => _66[0], 'access', _67 => _67.content, 'optionalAccess', _68 => _68.filter, 'call', _69 => _69((c) => c.type === "tableHeader"), 'access', _70 => _70.length]), () => ( 0));
|
|
11143
|
+
const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _71 => _71.content, 'optionalAccess', _72 => _72[0], 'optionalAccess', _73 => _73.type]) === "tableHeader").length;
|
|
11144
|
+
const hasHeaderRow = _optionalChain([rows, 'access', _74 => _74[0], 'access', _75 => _75.content, 'optionalAccess', _76 => _76.length]) === rowHeaderCells;
|
|
10911
11145
|
const hasHeaderColumn = rows.length === columnHeaderCells;
|
|
10912
11146
|
const tableValue = {
|
|
10913
11147
|
showBorder: hasBorder,
|
|
@@ -10989,7 +11223,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
10989
11223
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
10990
11224
|
if (!parsedItems.success)
|
|
10991
11225
|
return null;
|
|
10992
|
-
const rawImagePropertyValue = _optionalChain([parsedItems, 'access',
|
|
11226
|
+
const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _77 => _77.data, 'access', _78 => _78[0], 'optionalAccess', _79 => _79.props, 'access', _80 => _80.image]);
|
|
10993
11227
|
if (!rawImagePropertyValue)
|
|
10994
11228
|
return null;
|
|
10995
11229
|
const imagePropertyValueParseResult = PageBlockItemImageValue.safeParse(rawImagePropertyValue);
|
|
@@ -11227,7 +11461,7 @@ function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
|
11227
11461
|
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(_zod.z.string()));
|
|
11228
11462
|
}
|
|
11229
11463
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
11230
|
-
const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access',
|
|
11464
|
+
const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _81 => _81.attrs, 'optionalAccess', _82 => _82[attributeName]]));
|
|
11231
11465
|
if (parsedAttr.success) {
|
|
11232
11466
|
return parsedAttr.data;
|
|
11233
11467
|
} else {
|
|
@@ -11527,5 +11761,8 @@ var BackendVersionRoomYDoc = class {
|
|
|
11527
11761
|
|
|
11528
11762
|
|
|
11529
11763
|
|
|
11530
|
-
exports.BackendVersionRoomYDoc = BackendVersionRoomYDoc; exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DTOAssetRenderConfiguration = DTOAssetRenderConfiguration; exports.DTOBrand = DTOBrand; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOCreateBrandInput = DTOCreateBrandInput; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateElementPropertyDefinitionInputV2 = DTOCreateElementPropertyDefinitionInputV2; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODataSource = DTODataSource; exports.DTODataSourceCreationResponse = DTODataSourceCreationResponse; exports.DTODataSourceFigma = DTODataSourceFigma; exports.DTODataSourceFigmaCloud = DTODataSourceFigmaCloud; exports.DTODataSourceFigmaVariablesPlugin = DTODataSourceFigmaVariablesPlugin; exports.DTODataSourceTokenStudio = DTODataSourceTokenStudio; exports.DTODataSourcesListResponse = DTODataSourcesListResponse; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODeleteElementPropertyDefinitionInputV2 = DTODeleteElementPropertyDefinitionInputV2; exports.DTODesignElementsDataDiffResponse = DTODesignElementsDataDiffResponse; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemUpdateInput = DTODesignSystemUpdateInput; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionJobStatusResponse = DTODesignSystemVersionJobStatusResponse; exports.DTODesignSystemVersionJobsResponse = DTODesignSystemVersionJobsResponse; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODiffCountBase = DTODiffCountBase; exports.DTODocumentationDraftChangeType = DTODocumentationDraftChangeType; exports.DTODocumentationDraftState = DTODocumentationDraftState; exports.DTODocumentationDraftStateCreated = DTODocumentationDraftStateCreated; exports.DTODocumentationDraftStateDeleted = DTODocumentationDraftStateDeleted; exports.DTODocumentationDraftStateUpdated = DTODocumentationDraftStateUpdated; exports.DTODocumentationGroupApprovalState = DTODocumentationGroupApprovalState; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupRestoreActionInput = DTODocumentationGroupRestoreActionInput; exports.DTODocumentationGroupRestoreActionOutput = DTODocumentationGroupRestoreActionOutput; exports.DTODocumentationGroupStructureV1 = DTODocumentationGroupStructureV1; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV1 = DTODocumentationGroupV1; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationItemConfigurationV1 = DTODocumentationItemConfigurationV1; exports.DTODocumentationItemConfigurationV2 = DTODocumentationItemConfigurationV2; exports.DTODocumentationItemHeaderV2 = DTODocumentationItemHeaderV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageAnchor = DTODocumentationPageAnchor; exports.DTODocumentationPageApprovalState = DTODocumentationPageApprovalState; exports.DTODocumentationPageApprovalStateChangeActionInput = DTODocumentationPageApprovalStateChangeActionInput; exports.DTODocumentationPageApprovalStateChangeActionOutput = DTODocumentationPageApprovalStateChangeActionOutput; exports.DTODocumentationPageApprovalStateChangeInput = DTODocumentationPageApprovalStateChangeInput; exports.DTODocumentationPageContent = DTODocumentationPageContent; exports.DTODocumentationPageContentGetResponse = DTODocumentationPageContentGetResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRestoreActionInput = DTODocumentationPageRestoreActionInput; exports.DTODocumentationPageRestoreActionOutput = DTODocumentationPageRestoreActionOutput; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageSnapshot = DTODocumentationPageSnapshot; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationPublishMetadata = DTODocumentationPublishMetadata; exports.DTODocumentationPublishTypeQueryParams = DTODocumentationPublishTypeQueryParams; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODownloadAssetsRequest = DTODownloadAssetsRequest; exports.DTODownloadAssetsResponse = DTODownloadAssetsResponse; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionsGetResponse = DTOElementPropertyDefinitionsGetResponse; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValuesGetResponse = DTOElementPropertyValuesGetResponse; exports.DTOElementView = DTOElementView; exports.DTOElementViewBasePropertyColumn = DTOElementViewBasePropertyColumn; exports.DTOElementViewColumn = DTOElementViewColumn; exports.DTOElementViewColumnSharedAttributes = DTOElementViewColumnSharedAttributes; exports.DTOElementViewPropertyDefinitionColumn = DTOElementViewPropertyDefinitionColumn; exports.DTOElementViewThemeColumn = DTOElementViewThemeColumn; exports.DTOElementViewsListResponse = DTOElementViewsListResponse; exports.DTOElementsGetOutput = DTOElementsGetOutput; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOExportJob = DTOExportJob; exports.DTOExportJobCreatedBy = DTOExportJobCreatedBy; exports.DTOExportJobDesignSystemPreview = DTOExportJobDesignSystemPreview; exports.DTOExportJobDesignSystemVersionPreview = DTOExportJobDesignSystemVersionPreview; exports.DTOExportJobDestinations = DTOExportJobDestinations; exports.DTOExportJobResponse = DTOExportJobResponse; exports.DTOExportJobResult = DTOExportJobResult; exports.DTOExportJobsListFilter = DTOExportJobsListFilter; exports.DTOExporter = DTOExporter; exports.DTOExporterCreateInput = DTOExporterCreateInput; exports.DTOExporterCreateOutput = DTOExporterCreateOutput; exports.DTOExporterGitProviderEnum = DTOExporterGitProviderEnum; exports.DTOExporterMembership = DTOExporterMembership; exports.DTOExporterMembershipRole = DTOExporterMembershipRole; exports.DTOExporterProperty = DTOExporterProperty; exports.DTOExporterPropertyListResponse = DTOExporterPropertyListResponse; exports.DTOExporterSource = DTOExporterSource; exports.DTOExporterType = DTOExporterType; exports.DTOExporterUpdateInput = DTOExporterUpdateInput; exports.DTOFigmaComponent = DTOFigmaComponent; exports.DTOFigmaComponentListResponse = DTOFigmaComponentListResponse; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeOrigin = DTOFigmaNodeOrigin; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderFormat = DTOFigmaNodeRenderFormat; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOGitBranch = DTOGitBranch; exports.DTOGitOrganization = DTOGitOrganization; exports.DTOGitProject = DTOGitProject; exports.DTOGitRepository = DTOGitRepository; exports.DTOIntegration = DTOIntegration; exports.DTOIntegrationCredentials = DTOIntegrationCredentials; exports.DTOIntegrationOAuthGetResponse = DTOIntegrationOAuthGetResponse; exports.DTOIntegrationPostResponse = DTOIntegrationPostResponse; exports.DTOIntegrationsGetListResponse = DTOIntegrationsGetListResponse; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOLiveblocksAuthResponse = DTOLiveblocksAuthResponse; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTONpmRegistryConfigConstants = DTONpmRegistryConfigConstants; exports.DTOPageBlockColorV2 = DTOPageBlockColorV2; exports.DTOPageBlockDefinition = DTOPageBlockDefinition; exports.DTOPageBlockDefinitionBehavior = DTOPageBlockDefinitionBehavior; exports.DTOPageBlockDefinitionItem = DTOPageBlockDefinitionItem; exports.DTOPageBlockDefinitionLayout = DTOPageBlockDefinitionLayout; exports.DTOPageBlockDefinitionProperty = DTOPageBlockDefinitionProperty; exports.DTOPageBlockDefinitionVariant = DTOPageBlockDefinitionVariant; exports.DTOPageBlockItemV2 = DTOPageBlockItemV2; exports.DTOPagination = DTOPagination; exports.DTOPipeline = DTOPipeline; exports.DTOPipelineCreateBody = DTOPipelineCreateBody; exports.DTOPipelineTriggerBody = DTOPipelineTriggerBody; exports.DTOPipelineUpdateBody = DTOPipelineUpdateBody; exports.DTOPropertyDefinitionCreateActionInputV2 = DTOPropertyDefinitionCreateActionInputV2; exports.DTOPropertyDefinitionCreateActionOutputV2 = DTOPropertyDefinitionCreateActionOutputV2; exports.DTOPropertyDefinitionDeleteActionInputV2 = DTOPropertyDefinitionDeleteActionInputV2; exports.DTOPropertyDefinitionDeleteActionOutputV2 = DTOPropertyDefinitionDeleteActionOutputV2; exports.DTOPropertyDefinitionUpdateActionInputV2 = DTOPropertyDefinitionUpdateActionInputV2; exports.DTOPropertyDefinitionUpdateActionOutputV2 = DTOPropertyDefinitionUpdateActionOutputV2; exports.DTOPublishDocumentationChanges = DTOPublishDocumentationChanges; exports.DTOPublishDocumentationRequest = DTOPublishDocumentationRequest; exports.DTOPublishDocumentationResponse = DTOPublishDocumentationResponse; exports.DTORenderedAssetFile = DTORenderedAssetFile; exports.DTORestoreDocumentationGroupInput = DTORestoreDocumentationGroupInput; exports.DTORestoreDocumentationPageInput = DTORestoreDocumentationPageInput; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateElementPropertyDefinitionInputV2 = DTOUpdateElementPropertyDefinitionInputV2; exports.DTOUpdateUserNotificationSettingsPayload = DTOUpdateUserNotificationSettingsPayload; exports.DTOUpdateVersionInput = DTOUpdateVersionInput; exports.DTOUserNotificationSettingsResponse = DTOUserNotificationSettingsResponse; exports.DTOUserProfileUpdatePayload = DTOUserProfileUpdatePayload; exports.DTOUserProfileUpdateResponse = DTOUserProfileUpdateResponse; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceIntegrationGetGitObjectsInput = DTOWorkspaceIntegrationGetGitObjectsInput; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceIntegrationPATInput = DTOWorkspaceIntegrationPATInput; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.FrontendVersionRoomYDoc = FrontendVersionRoomYDoc; exports.ListTreeBuilder = ListTreeBuilder; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.VersionRoomBaseYDoc = VersionRoomBaseYDoc; exports.VersionSQSPayload = VersionSQSPayload; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPageToDTOV2 = documentationPageToDTOV2; exports.documentationPagesFixedConfigurationToDTOV1 = documentationPagesFixedConfigurationToDTOV1; exports.documentationPagesFixedConfigurationToDTOV2 = documentationPagesFixedConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV1 = elementGroupsToDocumentationGroupFixedConfigurationDTOV1; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV2 = elementGroupsToDocumentationGroupFixedConfigurationDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.generateHash = generateHash; exports.generatePageContentHash = generatePageContentHash; exports.getDtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1; exports.getDtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.gitBranchToDto = gitBranchToDto; exports.gitOrganizationToDto = gitOrganizationToDto; exports.gitProjectToDto = gitProjectToDto; exports.gitRepositoryToDto = gitRepositoryToDto; exports.integrationCredentialToDto = integrationCredentialToDto; exports.integrationToDto = integrationToDto; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYDoc = pageToYDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pipelineToDto = pipelineToDto; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateDesignSystemVersion = validateDesignSystemVersion; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
11764
|
+
|
|
11765
|
+
|
|
11766
|
+
|
|
11767
|
+
exports.BackendVersionRoomYDoc = BackendVersionRoomYDoc; exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DTOAssetRenderConfiguration = DTOAssetRenderConfiguration; exports.DTOBrand = DTOBrand; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOCreateBrandInput = DTOCreateBrandInput; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateElementPropertyDefinitionInputV2 = DTOCreateElementPropertyDefinitionInputV2; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODataSource = DTODataSource; exports.DTODataSourceCreationResponse = DTODataSourceCreationResponse; exports.DTODataSourceFigma = DTODataSourceFigma; exports.DTODataSourceFigmaCloud = DTODataSourceFigmaCloud; exports.DTODataSourceFigmaVariablesPlugin = DTODataSourceFigmaVariablesPlugin; exports.DTODataSourceTokenStudio = DTODataSourceTokenStudio; exports.DTODataSourcesListResponse = DTODataSourcesListResponse; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODeleteElementPropertyDefinitionInputV2 = DTODeleteElementPropertyDefinitionInputV2; exports.DTODesignElementsDataDiffResponse = DTODesignElementsDataDiffResponse; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemUpdateInput = DTODesignSystemUpdateInput; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionJobStatusResponse = DTODesignSystemVersionJobStatusResponse; exports.DTODesignSystemVersionJobsResponse = DTODesignSystemVersionJobsResponse; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODiffCountBase = DTODiffCountBase; exports.DTODocumentationDraftChangeType = DTODocumentationDraftChangeType; exports.DTODocumentationDraftState = DTODocumentationDraftState; exports.DTODocumentationDraftStateCreated = DTODocumentationDraftStateCreated; exports.DTODocumentationDraftStateDeleted = DTODocumentationDraftStateDeleted; exports.DTODocumentationDraftStateUpdated = DTODocumentationDraftStateUpdated; exports.DTODocumentationGroupApprovalState = DTODocumentationGroupApprovalState; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupRestoreActionInput = DTODocumentationGroupRestoreActionInput; exports.DTODocumentationGroupRestoreActionOutput = DTODocumentationGroupRestoreActionOutput; exports.DTODocumentationGroupStructureV1 = DTODocumentationGroupStructureV1; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV1 = DTODocumentationGroupV1; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationItemConfigurationV1 = DTODocumentationItemConfigurationV1; exports.DTODocumentationItemConfigurationV2 = DTODocumentationItemConfigurationV2; exports.DTODocumentationItemHeaderV2 = DTODocumentationItemHeaderV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageAnchor = DTODocumentationPageAnchor; exports.DTODocumentationPageApprovalState = DTODocumentationPageApprovalState; exports.DTODocumentationPageApprovalStateChangeActionInput = DTODocumentationPageApprovalStateChangeActionInput; exports.DTODocumentationPageApprovalStateChangeActionOutput = DTODocumentationPageApprovalStateChangeActionOutput; exports.DTODocumentationPageApprovalStateChangeInput = DTODocumentationPageApprovalStateChangeInput; exports.DTODocumentationPageContent = DTODocumentationPageContent; exports.DTODocumentationPageContentGetResponse = DTODocumentationPageContentGetResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRestoreActionInput = DTODocumentationPageRestoreActionInput; exports.DTODocumentationPageRestoreActionOutput = DTODocumentationPageRestoreActionOutput; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageSnapshot = DTODocumentationPageSnapshot; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationPublishMetadata = DTODocumentationPublishMetadata; exports.DTODocumentationPublishTypeQueryParams = DTODocumentationPublishTypeQueryParams; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODownloadAssetsRequest = DTODownloadAssetsRequest; exports.DTODownloadAssetsResponse = DTODownloadAssetsResponse; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionsGetResponse = DTOElementPropertyDefinitionsGetResponse; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValuesGetResponse = DTOElementPropertyValuesGetResponse; exports.DTOElementView = DTOElementView; exports.DTOElementViewBasePropertyColumn = DTOElementViewBasePropertyColumn; exports.DTOElementViewColumn = DTOElementViewColumn; exports.DTOElementViewColumnSharedAttributes = DTOElementViewColumnSharedAttributes; exports.DTOElementViewPropertyDefinitionColumn = DTOElementViewPropertyDefinitionColumn; exports.DTOElementViewThemeColumn = DTOElementViewThemeColumn; exports.DTOElementViewsListResponse = DTOElementViewsListResponse; exports.DTOElementsGetOutput = DTOElementsGetOutput; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOExportJob = DTOExportJob; exports.DTOExportJobCreatedBy = DTOExportJobCreatedBy; exports.DTOExportJobDesignSystemPreview = DTOExportJobDesignSystemPreview; exports.DTOExportJobDesignSystemVersionPreview = DTOExportJobDesignSystemVersionPreview; exports.DTOExportJobDestinations = DTOExportJobDestinations; exports.DTOExportJobResponse = DTOExportJobResponse; exports.DTOExportJobResult = DTOExportJobResult; exports.DTOExportJobsListFilter = DTOExportJobsListFilter; exports.DTOExporter = DTOExporter; exports.DTOExporterCreateInput = DTOExporterCreateInput; exports.DTOExporterCreateOutput = DTOExporterCreateOutput; exports.DTOExporterGitProviderEnum = DTOExporterGitProviderEnum; exports.DTOExporterMembership = DTOExporterMembership; exports.DTOExporterMembershipRole = DTOExporterMembershipRole; exports.DTOExporterProperty = DTOExporterProperty; exports.DTOExporterPropertyListResponse = DTOExporterPropertyListResponse; exports.DTOExporterSource = DTOExporterSource; exports.DTOExporterType = DTOExporterType; exports.DTOExporterUpdateInput = DTOExporterUpdateInput; exports.DTOFigmaComponent = DTOFigmaComponent; exports.DTOFigmaComponentListResponse = DTOFigmaComponentListResponse; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeOrigin = DTOFigmaNodeOrigin; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderFormat = DTOFigmaNodeRenderFormat; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOGitBranch = DTOGitBranch; exports.DTOGitOrganization = DTOGitOrganization; exports.DTOGitProject = DTOGitProject; exports.DTOGitRepository = DTOGitRepository; exports.DTOIntegration = DTOIntegration; exports.DTOIntegrationCredentials = DTOIntegrationCredentials; exports.DTOIntegrationOAuthGetResponse = DTOIntegrationOAuthGetResponse; exports.DTOIntegrationPostResponse = DTOIntegrationPostResponse; exports.DTOIntegrationsGetListResponse = DTOIntegrationsGetListResponse; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOLiveblocksAuthResponse = DTOLiveblocksAuthResponse; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTONpmRegistryConfigConstants = DTONpmRegistryConfigConstants; exports.DTOPageBlockColorV2 = DTOPageBlockColorV2; exports.DTOPageBlockDefinition = DTOPageBlockDefinition; exports.DTOPageBlockDefinitionBehavior = DTOPageBlockDefinitionBehavior; exports.DTOPageBlockDefinitionItem = DTOPageBlockDefinitionItem; exports.DTOPageBlockDefinitionLayout = DTOPageBlockDefinitionLayout; exports.DTOPageBlockDefinitionProperty = DTOPageBlockDefinitionProperty; exports.DTOPageBlockDefinitionVariant = DTOPageBlockDefinitionVariant; exports.DTOPageBlockItemV2 = DTOPageBlockItemV2; exports.DTOPagination = DTOPagination; exports.DTOPipeline = DTOPipeline; exports.DTOPipelineCreateBody = DTOPipelineCreateBody; exports.DTOPipelineTriggerBody = DTOPipelineTriggerBody; exports.DTOPipelineUpdateBody = DTOPipelineUpdateBody; exports.DTOPropertyDefinitionCreateActionInputV2 = DTOPropertyDefinitionCreateActionInputV2; exports.DTOPropertyDefinitionCreateActionOutputV2 = DTOPropertyDefinitionCreateActionOutputV2; exports.DTOPropertyDefinitionDeleteActionInputV2 = DTOPropertyDefinitionDeleteActionInputV2; exports.DTOPropertyDefinitionDeleteActionOutputV2 = DTOPropertyDefinitionDeleteActionOutputV2; exports.DTOPropertyDefinitionUpdateActionInputV2 = DTOPropertyDefinitionUpdateActionInputV2; exports.DTOPropertyDefinitionUpdateActionOutputV2 = DTOPropertyDefinitionUpdateActionOutputV2; exports.DTOPublishDocumentationChanges = DTOPublishDocumentationChanges; exports.DTOPublishDocumentationRequest = DTOPublishDocumentationRequest; exports.DTOPublishDocumentationResponse = DTOPublishDocumentationResponse; exports.DTORenderedAssetFile = DTORenderedAssetFile; exports.DTORestoreDocumentationGroupInput = DTORestoreDocumentationGroupInput; exports.DTORestoreDocumentationPageInput = DTORestoreDocumentationPageInput; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateElementPropertyDefinitionInputV2 = DTOUpdateElementPropertyDefinitionInputV2; exports.DTOUpdateUserNotificationSettingsPayload = DTOUpdateUserNotificationSettingsPayload; exports.DTOUpdateVersionInput = DTOUpdateVersionInput; exports.DTOUserNotificationSettingsResponse = DTOUserNotificationSettingsResponse; exports.DTOUserProfileUpdatePayload = DTOUserProfileUpdatePayload; exports.DTOUserProfileUpdateResponse = DTOUserProfileUpdateResponse; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceIntegrationGetGitObjectsInput = DTOWorkspaceIntegrationGetGitObjectsInput; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceIntegrationPATInput = DTOWorkspaceIntegrationPATInput; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.FrontendVersionRoomYDoc = FrontendVersionRoomYDoc; exports.ListTreeBuilder = ListTreeBuilder; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.VersionRoomBaseYDoc = VersionRoomBaseYDoc; exports.VersionSQSPayload = VersionSQSPayload; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPageToDTOV2 = documentationPageToDTOV2; exports.documentationPagesFixedConfigurationToDTOV1 = documentationPagesFixedConfigurationToDTOV1; exports.documentationPagesFixedConfigurationToDTOV2 = documentationPagesFixedConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV1 = elementGroupsToDocumentationGroupFixedConfigurationDTOV1; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV2 = elementGroupsToDocumentationGroupFixedConfigurationDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.generateHash = generateHash; exports.generatePageContentHash = generatePageContentHash; exports.getDtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1; exports.getDtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.gitBranchToDto = gitBranchToDto; exports.gitOrganizationToDto = gitOrganizationToDto; exports.gitProjectToDto = gitProjectToDto; exports.gitRepositoryToDto = gitRepositoryToDto; exports.innerEditorProsemirrorSchema = innerEditorProsemirrorSchema; exports.integrationCredentialToDto = integrationCredentialToDto; exports.integrationToDto = integrationToDto; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.mainEditorProsemirrorSchema = mainEditorProsemirrorSchema; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYDoc = pageToYDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pipelineToDto = pipelineToDto; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorDocToRichTextPropertyValue = prosemirrorDocToRichTextPropertyValue; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.richTextPropertyValueToProsemirror = richTextPropertyValueToProsemirror; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateDesignSystemVersion = validateDesignSystemVersion; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
11531
11768
|
//# sourceMappingURL=index.js.map
|