@supernova-studio/client 0.9.2 → 0.10.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/index.d.mts +145 -244
- package/dist/index.d.ts +145 -244
- package/dist/index.js +256 -99
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +245 -88
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-system.ts +11 -0
- package/src/api/dto/index.ts +1 -0
- package/src/docs-editor/blocks-to-prosemirror.ts +8 -4
- package/src/docs-editor/mock.ts +2 -1374
- package/src/docs-editor/prosemirror-to-blocks.ts +20 -25
package/dist/index.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }//
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// ../model/dist/index.mjs
|
|
2
2
|
var _zod = require('zod');
|
|
3
3
|
|
|
4
|
-
// ../model/dist/index.mjs
|
|
5
|
-
|
|
6
|
-
|
|
7
4
|
|
|
8
5
|
|
|
9
6
|
|
|
@@ -880,7 +877,7 @@ var PageBlockV1 = PageBlockBaseV1.extend({
|
|
|
880
877
|
)
|
|
881
878
|
});
|
|
882
879
|
var PageBlockLinkType = _zod.z.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
883
|
-
var PageBlockImageType = _zod.z.enum(["Upload", "Asset", "
|
|
880
|
+
var PageBlockImageType = _zod.z.enum(["Upload", "Asset", "FigmaNode"]);
|
|
884
881
|
var PageBlockImageAlignment = _zod.z.enum(["Left", "Center", "Stretch"]);
|
|
885
882
|
var PageBlockTableCellAlignment = _zod.z.enum(["Left", "Center", "Right"]);
|
|
886
883
|
var PageBlockPreviewContainerSize = _zod.z.enum(["Centered", "NaturalHeight"]);
|
|
@@ -979,6 +976,21 @@ var PageBlockItemEmbedValue = _zod.z.object({
|
|
|
979
976
|
caption: _zod.z.string().optional(),
|
|
980
977
|
height: _zod.z.number().optional()
|
|
981
978
|
});
|
|
979
|
+
var PageBlockItemFigmaNodeValue = _zod.z.object({
|
|
980
|
+
selectedPropertyIds: _zod.z.array(_zod.z.string()).optional(),
|
|
981
|
+
showSearch: _zod.z.boolean().optional(),
|
|
982
|
+
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
983
|
+
backgroundColor: _zod.z.string().optional(),
|
|
984
|
+
value: _zod.z.array(
|
|
985
|
+
_zod.z.object({
|
|
986
|
+
entityId: _zod.z.string(),
|
|
987
|
+
entityMeta: _zod.z.object({
|
|
988
|
+
title: _zod.z.string().optional(),
|
|
989
|
+
description: _zod.z.string().optional()
|
|
990
|
+
}).optional()
|
|
991
|
+
})
|
|
992
|
+
)
|
|
993
|
+
});
|
|
982
994
|
var PageBlockItemImageValue = _zod.z.object({
|
|
983
995
|
alt: _zod.z.string().optional(),
|
|
984
996
|
caption: _zod.z.string().optional(),
|
|
@@ -1898,6 +1910,7 @@ var PageBlockDefinitionTextPropertyStyle = _zod.z.enum([
|
|
|
1898
1910
|
"SmallBold",
|
|
1899
1911
|
"SmallSemibold"
|
|
1900
1912
|
]);
|
|
1913
|
+
var PageBlockDefinitionTextPropertyColor = _zod.z.enum(["Neutral", "NeutralFaded"]);
|
|
1901
1914
|
var PageBlockDefinitionBooleanPropertyStyle = _zod.z.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
1902
1915
|
var PageBlockDefinitionSingleSelectPropertyStyle = _zod.z.enum([
|
|
1903
1916
|
"SegmentedControl",
|
|
@@ -1906,20 +1919,60 @@ var PageBlockDefinitionSingleSelectPropertyStyle = _zod.z.enum([
|
|
|
1906
1919
|
"Checkbox"
|
|
1907
1920
|
]);
|
|
1908
1921
|
var PageBlockDefinitionMultiSelectPropertyStyle = _zod.z.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
1909
|
-
var
|
|
1910
|
-
|
|
1911
|
-
|
|
1922
|
+
var PageBlockDefinitionImageAspectRatio = _zod.z.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
1923
|
+
var PageBlockDefinitionImageWidth = _zod.z.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
1924
|
+
var PageBlockDefinitionSelectChoice = _zod.z.object({
|
|
1925
|
+
value: _zod.z.string(),
|
|
1926
|
+
name: _zod.z.string(),
|
|
1927
|
+
icon: _zod.z.string().optional()
|
|
1928
|
+
});
|
|
1929
|
+
var PageBlockDefinitionUntypedPropertyOptions = _zod.z.record(_zod.z.any());
|
|
1930
|
+
var PageBlockDefinitionRichTextOptions = _zod.z.object({
|
|
1931
|
+
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
|
|
1932
|
+
});
|
|
1933
|
+
var PageBlockDefinitionMutiRichTextOptions = _zod.z.object({
|
|
1934
|
+
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
1935
|
+
});
|
|
1936
|
+
var PageBlockDefinitionTextOptions = _zod.z.object({
|
|
1937
|
+
placeholder: _zod.z.string().optional(),
|
|
1938
|
+
defaultValue: _zod.z.string().optional(),
|
|
1912
1939
|
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
1940
|
+
color: PageBlockDefinitionTextPropertyColor.optional()
|
|
1941
|
+
});
|
|
1942
|
+
var PageBlockDefinitionSelectOptions = _zod.z.object({
|
|
1943
|
+
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
1944
|
+
defaultChoice: _zod.z.string(),
|
|
1945
|
+
choices: _zod.z.array(PageBlockDefinitionSelectChoice)
|
|
1946
|
+
});
|
|
1947
|
+
var PageBlockDefinitionImageOptions = _zod.z.object({
|
|
1948
|
+
width: PageBlockDefinitionImageWidth.optional(),
|
|
1949
|
+
aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
|
|
1950
|
+
allowCaption: _zod.z.boolean().optional(),
|
|
1951
|
+
recommendation: _zod.z.string().optional()
|
|
1952
|
+
});
|
|
1953
|
+
var PageBlockDefinitionBooleanOptions = _zod.z.object({
|
|
1954
|
+
defaultvalue: _zod.z.boolean().optional(),
|
|
1955
|
+
booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
|
|
1956
|
+
});
|
|
1957
|
+
var PageBlockDefinitionNumberOptions = _zod.z.object({
|
|
1958
|
+
defaultValue: _zod.z.number(),
|
|
1959
|
+
min: _zod.z.number().optional(),
|
|
1960
|
+
max: _zod.z.number().optional(),
|
|
1961
|
+
step: _zod.z.number().optional(),
|
|
1913
1962
|
placeholder: _zod.z.string().optional()
|
|
1914
|
-
})
|
|
1963
|
+
});
|
|
1964
|
+
var PageBlockDefinitionComponentOptions = _zod.z.object({
|
|
1965
|
+
renderLayoutAs: _zod.z.enum(["List", "Table"]).optional(),
|
|
1966
|
+
allowPropertySelection: _zod.z.boolean().optional()
|
|
1967
|
+
});
|
|
1915
1968
|
var PageBlockDefinitionProperty = _zod.z.object({
|
|
1916
1969
|
id: _zod.z.string(),
|
|
1917
1970
|
name: _zod.z.string(),
|
|
1918
1971
|
type: PageBlockDefinitionPropertyType,
|
|
1919
1972
|
description: _zod.z.string().optional(),
|
|
1920
1973
|
// TODO Docs
|
|
1921
|
-
options:
|
|
1922
|
-
variantOptions: _zod.z.record(
|
|
1974
|
+
options: PageBlockDefinitionUntypedPropertyOptions.optional(),
|
|
1975
|
+
variantOptions: _zod.z.record(PageBlockDefinitionUntypedPropertyOptions).optional()
|
|
1923
1976
|
});
|
|
1924
1977
|
var PageBlockDefinitionItem = _zod.z.object({
|
|
1925
1978
|
properties: _zod.z.array(PageBlockDefinitionProperty),
|
|
@@ -1941,7 +1994,7 @@ var PageBlockCategory = _zod.z.enum([
|
|
|
1941
1994
|
"Data",
|
|
1942
1995
|
"Other"
|
|
1943
1996
|
]);
|
|
1944
|
-
var PageBlockBehaviorDataType = _zod.z.enum(["Item", "Token", "Asset", "Component", "
|
|
1997
|
+
var PageBlockBehaviorDataType = _zod.z.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
|
|
1945
1998
|
var PageBlockBehaviorSelectionType = _zod.z.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
1946
1999
|
var PageBlockDefinitionBehavior = _zod.z.object({
|
|
1947
2000
|
dataType: PageBlockBehaviorDataType,
|
|
@@ -2134,22 +2187,22 @@ var UpdateMembershipRolesInput = _zod.z.object({
|
|
|
2134
2187
|
});
|
|
2135
2188
|
var DesignSystemSwitcher = _zod.z.object({
|
|
2136
2189
|
isEnabled: _zod.z.boolean(),
|
|
2137
|
-
designSystemIds: _zod.z.string()
|
|
2190
|
+
designSystemIds: _zod.z.array(_zod.z.string())
|
|
2138
2191
|
});
|
|
2139
2192
|
var DesignSystem = _zod.z.object({
|
|
2140
2193
|
id: _zod.z.string(),
|
|
2141
2194
|
workspaceId: _zod.z.string(),
|
|
2142
2195
|
name: _zod.z.string(),
|
|
2143
2196
|
description: _zod.z.string(),
|
|
2144
|
-
docExporterId: _zod.z.string()
|
|
2197
|
+
docExporterId: nullishToOptional(_zod.z.string()),
|
|
2145
2198
|
docSlug: _zod.z.string(),
|
|
2146
|
-
docUserSlug: _zod.z.string()
|
|
2199
|
+
docUserSlug: nullishToOptional(_zod.z.string()),
|
|
2147
2200
|
docSlugDeprecated: _zod.z.string(),
|
|
2148
2201
|
isPublic: _zod.z.boolean(),
|
|
2149
2202
|
isMultibrand: _zod.z.boolean(),
|
|
2150
|
-
docViewUrl: _zod.z.string()
|
|
2203
|
+
docViewUrl: nullishToOptional(_zod.z.string()),
|
|
2151
2204
|
basePrefixes: _zod.z.array(_zod.z.string()),
|
|
2152
|
-
designSystemSwitcher: DesignSystemSwitcher
|
|
2205
|
+
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
2153
2206
|
createdAt: _zod.z.date(),
|
|
2154
2207
|
updatedAt: _zod.z.date()
|
|
2155
2208
|
});
|
|
@@ -2212,25 +2265,120 @@ var PublishedDoc = _zod.z.object({
|
|
|
2212
2265
|
usesLocalizations: _zod.z.boolean(),
|
|
2213
2266
|
wasPublishedWithLocalizations: _zod.z.boolean()
|
|
2214
2267
|
});
|
|
2215
|
-
var
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
_zod.z.
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
finishedAt: _zod.z.date().nullish()
|
|
2268
|
+
var ExporterJobDestination = _zod.z.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
|
|
2269
|
+
var ExporterJobStatus = _zod.z.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
2270
|
+
var ExporterJobLogEntryType = _zod.z.enum(["success", "info", "warning", "error", "user"]);
|
|
2271
|
+
var ExporterJobLogEntry = _zod.z.object({
|
|
2272
|
+
id: _zod.z.string().optional(),
|
|
2273
|
+
time: _zod.z.coerce.date(),
|
|
2274
|
+
type: ExporterJobLogEntryType,
|
|
2275
|
+
message: _zod.z.string()
|
|
2276
|
+
});
|
|
2277
|
+
var ExporterJobResultPullRequestDestination = _zod.z.object({
|
|
2278
|
+
pullRequestUrl: _zod.z.string()
|
|
2279
|
+
});
|
|
2280
|
+
var ExporterJobResultS3Destination = _zod.z.object({
|
|
2281
|
+
bucket: _zod.z.string(),
|
|
2282
|
+
urlPrefix: _zod.z.string().optional(),
|
|
2283
|
+
path: _zod.z.string(),
|
|
2284
|
+
files: _zod.z.array(_zod.z.string())
|
|
2233
2285
|
});
|
|
2286
|
+
var ExporterJobResultDocsDestination = _zod.z.object({
|
|
2287
|
+
url: _zod.z.string()
|
|
2288
|
+
});
|
|
2289
|
+
var ExporterJobResult = _zod.z.object({
|
|
2290
|
+
error: _zod.z.string().optional(),
|
|
2291
|
+
logs: _zod.z.array(ExporterJobLogEntry).optional(),
|
|
2292
|
+
s3: ExporterJobResultS3Destination.optional(),
|
|
2293
|
+
github: ExporterJobResultPullRequestDestination.optional(),
|
|
2294
|
+
azure: ExporterJobResultPullRequestDestination.optional(),
|
|
2295
|
+
gitlab: ExporterJobResultPullRequestDestination.optional(),
|
|
2296
|
+
bitbucket: ExporterJobResultPullRequestDestination.optional(),
|
|
2297
|
+
sndocs: ExporterJobResultDocsDestination.optional()
|
|
2298
|
+
});
|
|
2299
|
+
var ExporterDestinationSnDocs = _zod.z.object({
|
|
2300
|
+
environment: PublishedDocEnvironment
|
|
2301
|
+
});
|
|
2302
|
+
var ExporterDestinationS3 = _zod.z.object({});
|
|
2303
|
+
var ExporterDestinationGithub = _zod.z.object({
|
|
2304
|
+
connectionId: _zod.z.string(),
|
|
2305
|
+
url: _zod.z.string(),
|
|
2306
|
+
branch: _zod.z.string(),
|
|
2307
|
+
relativePath: _zod.z.string(),
|
|
2308
|
+
// +
|
|
2309
|
+
userId: _zod.z.coerce.string()
|
|
2310
|
+
});
|
|
2311
|
+
var ExporterDestinationAzure = _zod.z.object({
|
|
2312
|
+
connectionId: _zod.z.string(),
|
|
2313
|
+
organizationId: _zod.z.string(),
|
|
2314
|
+
projectId: _zod.z.string(),
|
|
2315
|
+
repositoryId: _zod.z.string(),
|
|
2316
|
+
branch: _zod.z.string(),
|
|
2317
|
+
relativePath: _zod.z.string(),
|
|
2318
|
+
// +
|
|
2319
|
+
userId: _zod.z.coerce.string(),
|
|
2320
|
+
url: _zod.z.string()
|
|
2321
|
+
});
|
|
2322
|
+
var ExporterDestinationGitlab = _zod.z.object({
|
|
2323
|
+
connectionId: _zod.z.string(),
|
|
2324
|
+
projectId: _zod.z.string(),
|
|
2325
|
+
branch: _zod.z.string(),
|
|
2326
|
+
relativePath: _zod.z.string(),
|
|
2327
|
+
// +
|
|
2328
|
+
userId: _zod.z.coerce.string(),
|
|
2329
|
+
url: _zod.z.string()
|
|
2330
|
+
});
|
|
2331
|
+
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
2332
|
+
var BITBUCKET_MAX_LENGTH = 64;
|
|
2333
|
+
var ExporterDestinationBitbucket = _zod.z.object({
|
|
2334
|
+
connectionId: _zod.z.string(),
|
|
2335
|
+
workspaceSlug: _zod.z.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2336
|
+
projectKey: _zod.z.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2337
|
+
repoSlug: _zod.z.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2338
|
+
branch: _zod.z.string(),
|
|
2339
|
+
relativePath: _zod.z.string(),
|
|
2340
|
+
// +
|
|
2341
|
+
userId: _zod.z.coerce.string(),
|
|
2342
|
+
url: _zod.z.string()
|
|
2343
|
+
});
|
|
2344
|
+
var ExporterJob = _zod.z.object({
|
|
2345
|
+
id: _zod.z.coerce.string(),
|
|
2346
|
+
createdAt: _zod.z.coerce.date(),
|
|
2347
|
+
finishedAt: _zod.z.coerce.date().optional(),
|
|
2348
|
+
designSystemId: _zod.z.coerce.string(),
|
|
2349
|
+
designSystemVersionId: _zod.z.coerce.string(),
|
|
2350
|
+
workspaceId: _zod.z.coerce.string(),
|
|
2351
|
+
scheduleId: _zod.z.coerce.string().nullish(),
|
|
2352
|
+
exporterId: _zod.z.coerce.string(),
|
|
2353
|
+
brandId: _zod.z.coerce.string().optional(),
|
|
2354
|
+
themeId: _zod.z.coerce.string().optional(),
|
|
2355
|
+
estimatedExecutionTime: _zod.z.number().optional(),
|
|
2356
|
+
status: ExporterJobStatus,
|
|
2357
|
+
result: ExporterJobResult.optional(),
|
|
2358
|
+
createdByUserId: _zod.z.string().optional(),
|
|
2359
|
+
// CodegenDestinationsModel
|
|
2360
|
+
webhookUrl: _zod.z.string().optional(),
|
|
2361
|
+
destinationSnDocs: ExporterDestinationSnDocs.optional(),
|
|
2362
|
+
destinationS3: ExporterDestinationS3.optional(),
|
|
2363
|
+
destinationGithub: ExporterDestinationGithub.optional(),
|
|
2364
|
+
destinationAzure: ExporterDestinationAzure.optional(),
|
|
2365
|
+
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
2366
|
+
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
2367
|
+
});
|
|
2368
|
+
var ExporterJobFindByFilter = ExporterJob.pick({
|
|
2369
|
+
exporterId: true,
|
|
2370
|
+
designSystemVersionId: true,
|
|
2371
|
+
destinations: true,
|
|
2372
|
+
createdByUserId: true,
|
|
2373
|
+
status: true,
|
|
2374
|
+
scheduleId: true,
|
|
2375
|
+
designSystemId: true,
|
|
2376
|
+
themeId: true,
|
|
2377
|
+
brandId: true
|
|
2378
|
+
}).extend({
|
|
2379
|
+
destinations: _zod.z.array(ExporterJobDestination),
|
|
2380
|
+
docsEnvironment: PublishedDocEnvironment
|
|
2381
|
+
}).partial();
|
|
2234
2382
|
var ExporterWorkspaceMembershipRole = _zod.z.enum(["Owner", "OwnerArchived", "User"]);
|
|
2235
2383
|
var ExporterWorkspaceMembership = _zod.z.object({
|
|
2236
2384
|
id: _zod.z.string(),
|
|
@@ -2246,13 +2394,6 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
|
2246
2394
|
return GitProviderNames2;
|
|
2247
2395
|
})(GitProviderNames || {});
|
|
2248
2396
|
var GitProvider = _zod.z.nativeEnum(GitProviderNames);
|
|
2249
|
-
var PulsarContributionVariant = _zod.z.object({
|
|
2250
|
-
key: _zod.z.string(),
|
|
2251
|
-
name: _zod.z.string(),
|
|
2252
|
-
isDefault: _zod.z.boolean().optional(),
|
|
2253
|
-
description: _zod.z.string().optional(),
|
|
2254
|
-
thumbnailURL: _zod.z.string().optional()
|
|
2255
|
-
});
|
|
2256
2397
|
var PulsarPropertyType = _zod.z.enum([
|
|
2257
2398
|
"string",
|
|
2258
2399
|
"number",
|
|
@@ -2266,47 +2407,56 @@ var PulsarPropertyType = _zod.z.enum([
|
|
|
2266
2407
|
"tokenProperties",
|
|
2267
2408
|
"tokenType"
|
|
2268
2409
|
]);
|
|
2269
|
-
var
|
|
2410
|
+
var PulsarBaseProperty = _zod.z.object({
|
|
2270
2411
|
label: _zod.z.string(),
|
|
2271
2412
|
key: _zod.z.string(),
|
|
2272
|
-
description: _zod.z.string().
|
|
2413
|
+
description: _zod.z.string().nullish(),
|
|
2273
2414
|
type: PulsarPropertyType,
|
|
2274
|
-
values: _zod.z.array(_zod.z.string()).
|
|
2415
|
+
values: _zod.z.array(_zod.z.string()).nullish(),
|
|
2275
2416
|
default: _zod.z.union([_zod.z.string(), _zod.z.boolean(), _zod.z.number()]).nullish(),
|
|
2276
2417
|
// PulsarPropertyValueType //is optional?
|
|
2277
2418
|
inputType: _zod.z.enum(["code", "plain"]).optional(),
|
|
2278
2419
|
//is optional?
|
|
2279
|
-
isMultiline: _zod.z.boolean().
|
|
2420
|
+
isMultiline: _zod.z.boolean().nullish()
|
|
2280
2421
|
});
|
|
2281
|
-
var
|
|
2422
|
+
var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
|
|
2423
|
+
category: _zod.z.string()
|
|
2424
|
+
});
|
|
2425
|
+
var PulsarContributionVariant = _zod.z.object({
|
|
2426
|
+
key: _zod.z.string(),
|
|
2427
|
+
name: _zod.z.string(),
|
|
2428
|
+
isDefault: _zod.z.boolean().nullish(),
|
|
2429
|
+
description: _zod.z.string().nullish(),
|
|
2430
|
+
thumbnailURL: _zod.z.string().nullish()
|
|
2431
|
+
});
|
|
2432
|
+
var PulsarCustomBlock = _zod.z.object({
|
|
2282
2433
|
title: _zod.z.string(),
|
|
2283
2434
|
key: _zod.z.string(),
|
|
2284
2435
|
category: _zod.z.string(),
|
|
2285
|
-
description: _zod.z.string()
|
|
2436
|
+
description: nullishToOptional(_zod.z.string()),
|
|
2286
2437
|
iconURL: _zod.z.string(),
|
|
2287
2438
|
mode: _zod.z.enum(["array", "block"]),
|
|
2288
|
-
properties: _zod.z.array(
|
|
2439
|
+
properties: _zod.z.array(PulsarBaseProperty)
|
|
2289
2440
|
});
|
|
2290
|
-
var PulsarContributionConfigurationProperty = BasePulsarProperty.extend({ category: _zod.z.string() });
|
|
2291
2441
|
var ExporterType = _zod.z.enum(["code", "documentation"]);
|
|
2292
2442
|
var ExporterSource = _zod.z.enum(["git", "upload"]);
|
|
2293
2443
|
var ExporterTag = _zod.z.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
|
|
2294
2444
|
var ExporterDetails = _zod.z.object({
|
|
2295
|
-
packageId: _zod.z.string().max(255),
|
|
2296
|
-
version: _zod.z.string(),
|
|
2297
2445
|
description: _zod.z.string(),
|
|
2446
|
+
version: _zod.z.string(),
|
|
2447
|
+
routingVersion: nullishToOptional(_zod.z.string()),
|
|
2298
2448
|
author: nullishToOptional(_zod.z.string()),
|
|
2299
2449
|
organization: nullishToOptional(_zod.z.string()),
|
|
2300
2450
|
homepage: nullishToOptional(_zod.z.string()),
|
|
2301
2451
|
readme: nullishToOptional(_zod.z.string()),
|
|
2302
|
-
tags: _zod.z.array(ExporterTag).default([]),
|
|
2303
|
-
|
|
2452
|
+
tags: nullishToOptional(_zod.z.array(ExporterTag)).default([]),
|
|
2453
|
+
packageId: nullishToOptional(_zod.z.string().max(255)),
|
|
2304
2454
|
iconURL: nullishToOptional(_zod.z.string()),
|
|
2305
|
-
configurationProperties: _zod.z.array(PulsarContributionConfigurationProperty).default([]),
|
|
2306
|
-
customBlocks: _zod.z.array(
|
|
2307
|
-
blockVariants: _zod.z.record(_zod.z.string(), _zod.z.array(PulsarContributionVariant)).default({}),
|
|
2308
|
-
usesBrands: _zod.z.boolean().default(false),
|
|
2309
|
-
usesThemes: _zod.z.boolean().default(false),
|
|
2455
|
+
configurationProperties: nullishToOptional(_zod.z.array(PulsarContributionConfigurationProperty)).default([]),
|
|
2456
|
+
customBlocks: nullishToOptional(_zod.z.array(PulsarCustomBlock)).default([]),
|
|
2457
|
+
blockVariants: nullishToOptional(_zod.z.record(_zod.z.string(), _zod.z.array(PulsarContributionVariant))).default({}),
|
|
2458
|
+
usesBrands: nullishToOptional(_zod.z.boolean()).default(false),
|
|
2459
|
+
usesThemes: nullishToOptional(_zod.z.boolean()).default(false),
|
|
2310
2460
|
source: ExporterSource,
|
|
2311
2461
|
gitProvider: nullishToOptional(GitProvider),
|
|
2312
2462
|
gitUrl: nullishToOptional(_zod.z.string()),
|
|
@@ -2319,8 +2469,8 @@ var Exporter = _zod.z.object({
|
|
|
2319
2469
|
name: _zod.z.string(),
|
|
2320
2470
|
isPrivate: _zod.z.boolean(),
|
|
2321
2471
|
details: ExporterDetails,
|
|
2322
|
-
exporterType: ExporterType.default("code"),
|
|
2323
|
-
storagePath: _zod.z.string().default("")
|
|
2472
|
+
exporterType: nullishToOptional(ExporterType).default("code"),
|
|
2473
|
+
storagePath: nullishToOptional(_zod.z.string()).default("")
|
|
2324
2474
|
});
|
|
2325
2475
|
var CustomDomain = _zod.z.object({
|
|
2326
2476
|
id: _zod.z.string(),
|
|
@@ -2517,7 +2667,16 @@ var ContentLoaderPayload = _zod.z.object({
|
|
|
2517
2667
|
})
|
|
2518
2668
|
);
|
|
2519
2669
|
|
|
2670
|
+
// src/api/dto/design-system.ts
|
|
2671
|
+
var DesignSystemDTO = DesignSystem.omit({
|
|
2672
|
+
name: true,
|
|
2673
|
+
description: true
|
|
2674
|
+
}).extend({
|
|
2675
|
+
meta: ObjectMeta
|
|
2676
|
+
});
|
|
2677
|
+
|
|
2520
2678
|
// src/api/dto/documentation-v1.ts
|
|
2679
|
+
|
|
2521
2680
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
2522
2681
|
data: true,
|
|
2523
2682
|
meta: true,
|
|
@@ -4131,7 +4290,8 @@ function serializeAsRichTextBlock(input) {
|
|
|
4131
4290
|
const blockItem = BlockParsingUtils.singleBlockItem(block);
|
|
4132
4291
|
const textPropertyValue = BlockParsingUtils.richTextPropertyValue(blockItem, richTextProperty.id);
|
|
4133
4292
|
const enrichedInput = { ...input, richTextPropertyValue: textPropertyValue };
|
|
4134
|
-
const
|
|
4293
|
+
const parsedOptions = PageBlockDefinitionRichTextOptions.optional().parse(richTextProperty.options);
|
|
4294
|
+
const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _2 => _2.richTextStyle]), () => ( "Default"));
|
|
4135
4295
|
switch (style) {
|
|
4136
4296
|
case "Callout":
|
|
4137
4297
|
return serializeAsCallout(enrichedInput);
|
|
@@ -4183,11 +4343,12 @@ function serializeAsCallout(input) {
|
|
|
4183
4343
|
};
|
|
4184
4344
|
}
|
|
4185
4345
|
function serializeAsMultiRichTextBlock(input) {
|
|
4186
|
-
const { block, definition, property:
|
|
4346
|
+
const { block, definition, property: multiRichTextProperty } = input;
|
|
4187
4347
|
const blockItem = BlockParsingUtils.singleBlockItem(block);
|
|
4188
|
-
const textPropertyValue = BlockParsingUtils.multiRichTextPropertyValue(blockItem,
|
|
4348
|
+
const textPropertyValue = BlockParsingUtils.multiRichTextPropertyValue(blockItem, multiRichTextProperty.id);
|
|
4189
4349
|
const enrichedInput = { ...input, multiRichTextPropertyValue: textPropertyValue };
|
|
4190
|
-
const
|
|
4350
|
+
const parsedOptions = PageBlockDefinitionMutiRichTextOptions.optional().parse(multiRichTextProperty.options);
|
|
4351
|
+
const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _3 => _3.multiRichTextStyle]), () => ( "Default"));
|
|
4191
4352
|
switch (style) {
|
|
4192
4353
|
case "Default":
|
|
4193
4354
|
return serializeAsMultiParagraph(enrichedInput);
|
|
@@ -4309,7 +4470,7 @@ function serializeTableNode(node) {
|
|
|
4309
4470
|
return {
|
|
4310
4471
|
type: "image",
|
|
4311
4472
|
attrs: {
|
|
4312
|
-
src: _optionalChain([node, 'access',
|
|
4473
|
+
src: _optionalChain([node, 'access', _4 => _4.value, 'optionalAccess', _5 => _5.url])
|
|
4313
4474
|
}
|
|
4314
4475
|
};
|
|
4315
4476
|
}
|
|
@@ -4355,7 +4516,7 @@ function serializeBlockNodeAttributes(input) {
|
|
|
4355
4516
|
};
|
|
4356
4517
|
}
|
|
4357
4518
|
function richTextHeadingLevel(property) {
|
|
4358
|
-
const style = _optionalChain([property, 'access',
|
|
4519
|
+
const style = _optionalChain([property, 'access', _6 => _6.options, 'optionalAccess', _7 => _7.richTextStyle]);
|
|
4359
4520
|
if (!style)
|
|
4360
4521
|
return void 0;
|
|
4361
4522
|
switch (style) {
|
|
@@ -4451,7 +4612,7 @@ function serializeAsCustomBlock(block, definition) {
|
|
|
4451
4612
|
linksTo: i.linksTo
|
|
4452
4613
|
};
|
|
4453
4614
|
});
|
|
4454
|
-
const columns = _optionalChain([block, 'access',
|
|
4615
|
+
const columns = _optionalChain([block, 'access', _8 => _8.data, 'access', _9 => _9.appearance, 'optionalAccess', _10 => _10.numberOfColumns]);
|
|
4455
4616
|
return {
|
|
4456
4617
|
type: "blockNode",
|
|
4457
4618
|
attrs: {
|
|
@@ -6644,7 +6805,7 @@ var blocks = [
|
|
|
6644
6805
|
}
|
|
6645
6806
|
},
|
|
6646
6807
|
{
|
|
6647
|
-
id: "io.supernova.block.figma-
|
|
6808
|
+
id: "io.supernova.block.figma-nodes",
|
|
6648
6809
|
name: "Figma frames",
|
|
6649
6810
|
description: "Display Figma frames as images",
|
|
6650
6811
|
category: "Figma",
|
|
@@ -6707,7 +6868,7 @@ var blocks = [
|
|
|
6707
6868
|
defaultVariantKey: "bordered"
|
|
6708
6869
|
},
|
|
6709
6870
|
behavior: {
|
|
6710
|
-
dataType: "
|
|
6871
|
+
dataType: "FigmaNode",
|
|
6711
6872
|
entities: {
|
|
6712
6873
|
selectionType: "Entity",
|
|
6713
6874
|
maxSelected: 0
|
|
@@ -7020,7 +7181,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
7020
7181
|
if (!id)
|
|
7021
7182
|
return null;
|
|
7022
7183
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
7023
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", _zod.z.string()));
|
|
7184
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", _zod.z.string().optional()));
|
|
7024
7185
|
return {
|
|
7025
7186
|
// TODO Artem: indent
|
|
7026
7187
|
id,
|
|
@@ -7079,7 +7240,7 @@ function parseAsMultiRichText(prosemirrorNode, definition, property) {
|
|
|
7079
7240
|
value: (_nullishCoalesce(prosemirrorNode.content, () => ( []))).map((listItem) => {
|
|
7080
7241
|
if (listItem.type !== "listitem")
|
|
7081
7242
|
return null;
|
|
7082
|
-
if (!_optionalChain([listItem, 'access',
|
|
7243
|
+
if (!_optionalChain([listItem, 'access', _11 => _11.content, 'optionalAccess', _12 => _12.length]))
|
|
7083
7244
|
return parseRichText([]);
|
|
7084
7245
|
const paragraph = listItem.content[0];
|
|
7085
7246
|
if (paragraph.type !== "paragraph")
|
|
@@ -7118,11 +7279,11 @@ function parseRichTextAttribute(mark) {
|
|
|
7118
7279
|
case "code":
|
|
7119
7280
|
return { type: "Code" };
|
|
7120
7281
|
case "link":
|
|
7121
|
-
const itemId = getProsemirrorAttribute(mark, "itemId", _zod.z.string());
|
|
7122
|
-
const href = getProsemirrorAttribute(mark, "href", _zod.z.string());
|
|
7282
|
+
const itemId = getProsemirrorAttribute(mark, "itemId", _zod.z.string().optional());
|
|
7283
|
+
const href = getProsemirrorAttribute(mark, "href", _zod.z.string().optional());
|
|
7123
7284
|
return {
|
|
7124
7285
|
type: "Link",
|
|
7125
|
-
openInNewWindow: _optionalChain([mark, 'access',
|
|
7286
|
+
openInNewWindow: _optionalChain([mark, 'access', _13 => _13.attrs, 'optionalAccess', _14 => _14.target]) !== "_self",
|
|
7126
7287
|
documentationItemId: itemId,
|
|
7127
7288
|
link: href
|
|
7128
7289
|
};
|
|
@@ -7134,18 +7295,18 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
7134
7295
|
if (!id)
|
|
7135
7296
|
return null;
|
|
7136
7297
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
7137
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", _zod.z.boolean()) !== false;
|
|
7138
|
-
const tableChild = _optionalChain([prosemirrorNode, 'access',
|
|
7298
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", _zod.z.boolean().optional()) !== false;
|
|
7299
|
+
const tableChild = _optionalChain([prosemirrorNode, 'access', _15 => _15.content, 'optionalAccess', _16 => _16.find, 'call', _17 => _17((c) => c.type === "table")]);
|
|
7139
7300
|
if (!tableChild) {
|
|
7140
7301
|
return emptyTable(id, variantId, 0);
|
|
7141
7302
|
}
|
|
7142
|
-
const rows = _nullishCoalesce(_optionalChain([tableChild, 'access',
|
|
7303
|
+
const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _18 => _18.content, 'optionalAccess', _19 => _19.filter, 'call', _20 => _20((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _21 => _21.content, 'optionalAccess', _22 => _22.length]))]), () => ( []));
|
|
7143
7304
|
if (!rows.length) {
|
|
7144
7305
|
return emptyTable(id, variantId, 0);
|
|
7145
7306
|
}
|
|
7146
|
-
const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access',
|
|
7147
|
-
const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access',
|
|
7148
|
-
const hasHeaderRow = _optionalChain([rows, 'access',
|
|
7307
|
+
const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _23 => _23[0], 'access', _24 => _24.content, 'optionalAccess', _25 => _25.filter, 'call', _26 => _26((c) => c.type === "tableHeader"), 'access', _27 => _27.length]), () => ( 0));
|
|
7308
|
+
const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _28 => _28.content, 'optionalAccess', _29 => _29[0], 'optionalAccess', _30 => _30.type]) === "tableHeader").length;
|
|
7309
|
+
const hasHeaderRow = _optionalChain([rows, 'access', _31 => _31[0], 'access', _32 => _32.content, 'optionalAccess', _33 => _33.length]) === rowHeaderCells;
|
|
7149
7310
|
const hasHeaderColumn = rows.length === columnHeaderCells;
|
|
7150
7311
|
const tableValue = {
|
|
7151
7312
|
showBorder: hasBorder,
|
|
@@ -7179,9 +7340,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
7179
7340
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
7180
7341
|
if (!id)
|
|
7181
7342
|
return null;
|
|
7182
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", _zod.z.string());
|
|
7343
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", _zod.z.string().optional());
|
|
7183
7344
|
let columnWidth;
|
|
7184
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", _zod.z.array(_zod.z.number()));
|
|
7345
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", _zod.z.array(_zod.z.number()).optional());
|
|
7185
7346
|
if (columnWidthArray) {
|
|
7186
7347
|
columnWidth = columnWidthArray[0];
|
|
7187
7348
|
}
|
|
@@ -7215,7 +7376,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
7215
7376
|
value: parseRichText(_nullishCoalesce(prosemirrorNode.content, () => ( [])))
|
|
7216
7377
|
};
|
|
7217
7378
|
case "image":
|
|
7218
|
-
const url = getProsemirrorAttribute(prosemirrorNode, "src", _zod.z.string());
|
|
7379
|
+
const url = getProsemirrorAttribute(prosemirrorNode, "src", _zod.z.string().optional());
|
|
7219
7380
|
if (!url)
|
|
7220
7381
|
return null;
|
|
7221
7382
|
return {
|
|
@@ -7278,9 +7439,9 @@ function parseAsEmbed(prosemirrorNode, definition, property) {
|
|
|
7278
7439
|
if (!id)
|
|
7279
7440
|
return null;
|
|
7280
7441
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
7281
|
-
const url = getProsemirrorAttribute(prosemirrorNode, "url", _zod.z.string());
|
|
7282
|
-
const caption = getProsemirrorAttribute(prosemirrorNode, "caption", _zod.z.string());
|
|
7283
|
-
const height = getProsemirrorAttribute(prosemirrorNode, "height", _zod.z.number());
|
|
7442
|
+
const url = getProsemirrorAttribute(prosemirrorNode, "url", _zod.z.string().optional());
|
|
7443
|
+
const caption = getProsemirrorAttribute(prosemirrorNode, "caption", _zod.z.string().optional());
|
|
7444
|
+
const height = getProsemirrorAttribute(prosemirrorNode, "height", _zod.z.number().optional());
|
|
7284
7445
|
return {
|
|
7285
7446
|
id,
|
|
7286
7447
|
data: {
|
|
@@ -7294,7 +7455,7 @@ function parseAsEmbed(prosemirrorNode, definition, property) {
|
|
|
7294
7455
|
[property.id]: {
|
|
7295
7456
|
value: url,
|
|
7296
7457
|
caption,
|
|
7297
|
-
height
|
|
7458
|
+
height: _nullishCoalesce(height, () => ( 200))
|
|
7298
7459
|
}
|
|
7299
7460
|
}
|
|
7300
7461
|
}
|
|
@@ -7350,11 +7511,11 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
7350
7511
|
}
|
|
7351
7512
|
function parseAppearance(prosemirrorNode) {
|
|
7352
7513
|
const appearance = {};
|
|
7353
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", _zod.z.number());
|
|
7514
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", _zod.z.number().optional());
|
|
7354
7515
|
if (columns) {
|
|
7355
7516
|
appearance.numberOfColumns = columns;
|
|
7356
7517
|
}
|
|
7357
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", _zod.z.string());
|
|
7518
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", _zod.z.string().optional());
|
|
7358
7519
|
if (backgroundColor) {
|
|
7359
7520
|
const parsedColor = ColorValue.safeParse(JSON.parse(backgroundColor));
|
|
7360
7521
|
if (parsedColor.success) {
|
|
@@ -7449,19 +7610,14 @@ function getProsemirrorBlockId(prosemirrorNode) {
|
|
|
7449
7610
|
return id;
|
|
7450
7611
|
}
|
|
7451
7612
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
7452
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", _zod.z.string());
|
|
7613
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(_zod.z.string()));
|
|
7453
7614
|
}
|
|
7454
7615
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
7455
|
-
const
|
|
7456
|
-
if (!attr) {
|
|
7457
|
-
console.warn(`Prosemirror attribute ${attributeName} on ${prosemirrorNode.type} was not defined`);
|
|
7458
|
-
return void 0;
|
|
7459
|
-
}
|
|
7460
|
-
const parsedAttr = validationSchema.safeParse(attr);
|
|
7616
|
+
const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _34 => _34.attrs, 'optionalAccess', _35 => _35[attributeName]]));
|
|
7461
7617
|
if (parsedAttr.success) {
|
|
7462
7618
|
return parsedAttr.data;
|
|
7463
7619
|
} else {
|
|
7464
|
-
console.warn(`Prosemirror attribute ${attributeName} on ${prosemirrorNode.type} is
|
|
7620
|
+
console.warn(`Prosemirror attribute ${attributeName} on ${prosemirrorNode.type} is invalid`);
|
|
7465
7621
|
console.warn(parsedAttr.error.flatten());
|
|
7466
7622
|
return void 0;
|
|
7467
7623
|
}
|
|
@@ -7509,5 +7665,6 @@ function mapByUnique(items, keyFn) {
|
|
|
7509
7665
|
|
|
7510
7666
|
|
|
7511
7667
|
|
|
7512
|
-
|
|
7668
|
+
|
|
7669
|
+
exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.BulkEditDocPageElementsInput = BulkEditDocPageElementsInput; exports.CreateBulkElementsInput = CreateBulkElementsInput; exports.DeleteBulkElementsInput = DeleteBulkElementsInput; exports.DesignSystemDTO = DesignSystemDTO; exports.DocumentationGroupDTO = DocumentationGroupDTO; exports.DocumentationGroupStructureDTO = DocumentationGroupStructureDTO; exports.DocumentationHierarchyV2DTO = DocumentationHierarchyV2DTO; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageStructureV2DTO = DocumentationPageStructureV2DTO; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.DocumentationPageV2DTO = DocumentationPageV2DTO; exports.DuplicateBulkElementsInput = DuplicateBulkElementsInput; exports.GetBlockDefinitionsResponse = GetBlockDefinitionsResponse; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PostLiveblocksAuth = PostLiveblocksAuth; exports.UpdateBulkElementsInput = UpdateBulkElementsInput; exports.blockDefinitionForBlock = blockDefinitionForBlock; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.documentationHierarchyToYjs = documentationHierarchyToYjs; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToBlock = prosemirrorNodeToBlock; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
7513
7670
|
//# sourceMappingURL=index.js.map
|