testomatio-editor-blocks 0.4.13 → 0.4.14

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.
@@ -11,6 +11,7 @@ export type SnippetJsonApiAttributes = {
11
11
  body?: string | null;
12
12
  description?: string | null;
13
13
  "usage-count"?: number | string | null;
14
+ "is-snippet"?: boolean | null;
14
15
  };
15
16
  export type SnippetJsonApiResource = {
16
17
  id?: string | number | null;
@@ -79,7 +79,7 @@ function normalizeJsonApiResource(resource) {
79
79
  body: (_c = (_b = attrs === null || attrs === void 0 ? void 0 : attrs.body) !== null && _b !== void 0 ? _b : attrs === null || attrs === void 0 ? void 0 : attrs.description) !== null && _c !== void 0 ? _c : null,
80
80
  description: (_d = attrs === null || attrs === void 0 ? void 0 : attrs.description) !== null && _d !== void 0 ? _d : null,
81
81
  usageCount: coerceNumber(attrs === null || attrs === void 0 ? void 0 : attrs["usage-count"]),
82
- isSnippet: true,
82
+ isSnippet: (attrs === null || attrs === void 0 ? void 0 : attrs["is-snippet"]) === true,
83
83
  };
84
84
  }
85
85
  function isSnippetSuggestionArray(value) {
@@ -502,7 +502,7 @@ html.dark .bn-step-image-preview__content {
502
502
  top: auto;
503
503
  bottom: calc(100% + 6px);
504
504
  left: 50%;
505
- transform: translateX(-50%) rotate(-90deg);
505
+ transform: translateX(-50%);
506
506
  }
507
507
 
508
508
  .bn-teststep__horizontal-fields {
@@ -660,11 +660,13 @@ html.dark .bn-step-image-preview__content {
660
660
  outline: none;
661
661
  background: transparent;
662
662
  font-family: inherit;
663
- font-size: 14px;
663
+ font-size: 14px !important;
664
664
  font-weight: 500;
665
- line-height: normal;
665
+ line-height: normal !important;
666
666
  color: var(--text-primary);
667
667
  width: 100%;
668
+ height: auto;
669
+ display: inline !important;
668
670
  padding: 0;
669
671
  }
670
672
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testomatio-editor-blocks",
3
- "version": "0.4.13",
3
+ "version": "0.4.14",
4
4
  "description": "Custom BlockNote schema, markdown conversion helpers, and UI for Testomatio-style test cases and steps.",
5
5
  "type": "module",
6
6
  "main": "./package/index.js",
package/src/App.tsx CHANGED
@@ -254,6 +254,7 @@ const DEMO_SNIPPET_FIXTURES: SnippetJsonApiDocument = {
254
254
  body: "Open /login\nWait for form to render\nEnsure no console errors",
255
255
  description: "Navigate to login and wait for readiness",
256
256
  "usage-count": 12,
257
+ "is-snippet": true,
257
258
  },
258
259
  },
259
260
  {
@@ -264,6 +265,7 @@ const DEMO_SNIPPET_FIXTURES: SnippetJsonApiDocument = {
264
265
  body: "Type email\nType password\nClick Sign In",
265
266
  description: "Reusable credentials filler",
266
267
  "usage-count": 9,
268
+ "is-snippet": true,
267
269
  },
268
270
  },
269
271
  {
@@ -274,6 +276,7 @@ const DEMO_SNIPPET_FIXTURES: SnippetJsonApiDocument = {
274
276
  body: "Assert toast visible\nWait 3s\nAssert toast removed",
275
277
  description: "Shared assertion for ephemeral notifications",
276
278
  "usage-count": 7,
279
+ "is-snippet": true,
277
280
  },
278
281
  },
279
282
  ],
@@ -19,6 +19,7 @@ describe("snippet autocomplete", () => {
19
19
  body: "Open /login",
20
20
  description: "Ready state",
21
21
  "usage-count": 4,
22
+ "is-snippet": true,
22
23
  },
23
24
  },
24
25
  ],
@@ -14,6 +14,7 @@ export type SnippetJsonApiAttributes = {
14
14
  body?: string | null;
15
15
  description?: string | null;
16
16
  "usage-count"?: number | string | null;
17
+ "is-snippet"?: boolean | null;
17
18
  };
18
19
 
19
20
  export type SnippetJsonApiResource = {
@@ -118,7 +119,7 @@ function normalizeJsonApiResource(resource: SnippetJsonApiResource | null | unde
118
119
  body: attrs?.body ?? attrs?.description ?? null,
119
120
  description: attrs?.description ?? null,
120
121
  usageCount: coerceNumber(attrs?.["usage-count"]),
121
- isSnippet: true,
122
+ isSnippet: attrs?.["is-snippet"] === true,
122
123
  };
123
124
  }
124
125
 
@@ -502,7 +502,7 @@ html.dark .bn-step-image-preview__content {
502
502
  top: auto;
503
503
  bottom: calc(100% + 6px);
504
504
  left: 50%;
505
- transform: translateX(-50%) rotate(-90deg);
505
+ transform: translateX(-50%);
506
506
  }
507
507
 
508
508
  .bn-teststep__horizontal-fields {
@@ -660,11 +660,13 @@ html.dark .bn-step-image-preview__content {
660
660
  outline: none;
661
661
  background: transparent;
662
662
  font-family: inherit;
663
- font-size: 14px;
663
+ font-size: 14px !important;
664
664
  font-weight: 500;
665
- line-height: normal;
665
+ line-height: normal !important;
666
666
  color: var(--text-primary);
667
667
  width: 100%;
668
+ height: auto;
669
+ display: inline !important;
668
670
  padding: 0;
669
671
  }
670
672