@supernova-studio/client 0.55.13 → 0.55.15
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 +34 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +37 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/design-system.ts +7 -0
- package/src/yjs/docs-editor/mock.ts +32 -6
package/package.json
CHANGED
|
@@ -14,6 +14,13 @@ export const DTODesignSystem = DesignSystem.omit({
|
|
|
14
14
|
meta: ObjectMeta,
|
|
15
15
|
docExporterId: z.string(),
|
|
16
16
|
sources: z.array(z.any()),
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Whether or not user who is requesting the design system
|
|
20
|
+
* has access to the design system's contents.
|
|
21
|
+
*/
|
|
22
|
+
isAvailableToUser: z.boolean(),
|
|
23
|
+
|
|
17
24
|
role: WorkspaceRoleSchema.optional(),
|
|
18
25
|
});
|
|
19
26
|
|
|
@@ -1486,18 +1486,34 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1486
1486
|
{
|
|
1487
1487
|
id: "io.supernova.block.code",
|
|
1488
1488
|
name: "Code",
|
|
1489
|
-
description: "
|
|
1489
|
+
description: "Display simple code examples",
|
|
1490
1490
|
category: "Code",
|
|
1491
1491
|
icon: "https://cdn-assets.supernova.io/blocks/icons/code.svg",
|
|
1492
1492
|
searchKeywords: ["code"],
|
|
1493
1493
|
item: {
|
|
1494
|
-
properties: [
|
|
1495
|
-
|
|
1494
|
+
properties: [
|
|
1495
|
+
{
|
|
1496
|
+
id: "code",
|
|
1497
|
+
name: "Code",
|
|
1498
|
+
type: "Code",
|
|
1499
|
+
options: {},
|
|
1500
|
+
},
|
|
1501
|
+
],
|
|
1502
|
+
appearance: {
|
|
1503
|
+
isBordered: true,
|
|
1504
|
+
hasBackground: false,
|
|
1505
|
+
},
|
|
1496
1506
|
variants: [
|
|
1497
1507
|
{
|
|
1498
1508
|
id: "default",
|
|
1499
1509
|
name: "Default",
|
|
1500
|
-
layout: {
|
|
1510
|
+
layout: {
|
|
1511
|
+
type: "Column",
|
|
1512
|
+
children: ["code"],
|
|
1513
|
+
columnAlign: "Start",
|
|
1514
|
+
columnResizing: "Fill",
|
|
1515
|
+
gap: "Medium",
|
|
1516
|
+
},
|
|
1501
1517
|
maxColumns: 1,
|
|
1502
1518
|
defaultColumns: 1,
|
|
1503
1519
|
appearance: {},
|
|
@@ -1505,8 +1521,18 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1505
1521
|
],
|
|
1506
1522
|
defaultVariantKey: "default",
|
|
1507
1523
|
},
|
|
1508
|
-
behavior: {
|
|
1509
|
-
|
|
1524
|
+
behavior: {
|
|
1525
|
+
dataType: "Item",
|
|
1526
|
+
items: {
|
|
1527
|
+
numberOfItems: 1,
|
|
1528
|
+
allowLinks: false,
|
|
1529
|
+
},
|
|
1530
|
+
},
|
|
1531
|
+
editorOptions: {
|
|
1532
|
+
onboarding: {
|
|
1533
|
+
helpText: "Display simple code examples",
|
|
1534
|
+
},
|
|
1535
|
+
},
|
|
1510
1536
|
appearance: {
|
|
1511
1537
|
isBordered: false,
|
|
1512
1538
|
hasBackground: false,
|