@lowdefy/blocks-basic 4.6.0 → 4.7.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/blocks/Anchor/e2e.js +2 -2
- package/dist/blocks/Box/e2e.js +2 -2
- package/dist/blocks/DangerousHtml/e2e.js +2 -2
- package/dist/blocks/Html/e2e.js +2 -2
- package/dist/blocks/Icon/e2e.js +2 -2
- package/dist/blocks/Img/e2e.js +2 -2
- package/dist/blocks/List/e2e.js +2 -2
- package/dist/blocks/Span/e2e.js +2 -2
- package/dist/blocks/Throw/e2e.js +2 -2
- package/package.json +5 -5
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
|
-
*/ import { createBlockHelper } from '@lowdefy/e2e-utils';
|
|
15
|
+
*/ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
|
|
16
16
|
import { expect } from '@playwright/test';
|
|
17
|
-
const locator = (page, blockId)=>page.locator(`#${blockId}`);
|
|
17
|
+
const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
|
|
18
18
|
export default createBlockHelper({
|
|
19
19
|
locator,
|
|
20
20
|
do: {
|
package/dist/blocks/Box/e2e.js
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
|
-
*/ import { createBlockHelper } from '@lowdefy/e2e-utils';
|
|
15
|
+
*/ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
|
|
16
16
|
import { expect } from '@playwright/test';
|
|
17
|
-
const locator = (page, blockId)=>page.locator(`#${blockId}`);
|
|
17
|
+
const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
|
|
18
18
|
export default createBlockHelper({
|
|
19
19
|
locator,
|
|
20
20
|
do: {
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
|
-
*/ import { createBlockHelper } from '@lowdefy/e2e-utils';
|
|
15
|
+
*/ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
|
|
16
16
|
import { expect } from '@playwright/test';
|
|
17
|
-
const locator = (page, blockId)=>page.locator(`#bl-${blockId}`);
|
|
17
|
+
const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)}`);
|
|
18
18
|
export default createBlockHelper({
|
|
19
19
|
locator,
|
|
20
20
|
expect: {
|
package/dist/blocks/Html/e2e.js
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
|
-
*/ import { createBlockHelper } from '@lowdefy/e2e-utils';
|
|
15
|
+
*/ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
|
|
16
16
|
import { expect } from '@playwright/test';
|
|
17
|
-
const locator = (page, blockId)=>page.locator(`#${blockId}`);
|
|
17
|
+
const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
|
|
18
18
|
export default createBlockHelper({
|
|
19
19
|
locator,
|
|
20
20
|
expect: {
|
package/dist/blocks/Icon/e2e.js
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
|
-
*/ import { createBlockHelper } from '@lowdefy/e2e-utils';
|
|
15
|
+
*/ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
|
|
16
16
|
// Icon renders an SVG without a blockId on the root element — use the block wrapper.
|
|
17
|
-
const locator = (page, blockId)=>page.locator(`#bl-${blockId}`);
|
|
17
|
+
const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)}`);
|
|
18
18
|
export default createBlockHelper({
|
|
19
19
|
locator,
|
|
20
20
|
do: {
|
package/dist/blocks/Img/e2e.js
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
|
-
*/ import { createBlockHelper } from '@lowdefy/e2e-utils';
|
|
15
|
+
*/ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
|
|
16
16
|
import { expect } from '@playwright/test';
|
|
17
|
-
const locator = (page, blockId)=>page.locator(`#${blockId}`);
|
|
17
|
+
const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
|
|
18
18
|
export default createBlockHelper({
|
|
19
19
|
locator,
|
|
20
20
|
expect: {
|
package/dist/blocks/List/e2e.js
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
|
-
*/ import { createBlockHelper } from '@lowdefy/e2e-utils';
|
|
15
|
+
*/ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
|
|
16
16
|
import { expect } from '@playwright/test';
|
|
17
|
-
const locator = (page, blockId)=>page.locator(`#${blockId}`);
|
|
17
|
+
const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
|
|
18
18
|
export default createBlockHelper({
|
|
19
19
|
locator,
|
|
20
20
|
expect: {
|
package/dist/blocks/Span/e2e.js
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
|
-
*/ import { createBlockHelper } from '@lowdefy/e2e-utils';
|
|
15
|
+
*/ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
|
|
16
16
|
import { expect } from '@playwright/test';
|
|
17
|
-
const locator = (page, blockId)=>page.locator(`#${blockId}`);
|
|
17
|
+
const locator = (page, blockId)=>page.locator(`#${escapeId(blockId)}`);
|
|
18
18
|
export default createBlockHelper({
|
|
19
19
|
locator,
|
|
20
20
|
do: {
|
package/dist/blocks/Throw/e2e.js
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
|
-
*/ import { createBlockHelper } from '@lowdefy/e2e-utils';
|
|
15
|
+
*/ import { createBlockHelper, escapeId } from '@lowdefy/e2e-utils';
|
|
16
16
|
// Throw intentionally throws an error on render — use the block wrapper for presence checks.
|
|
17
|
-
const locator = (page, blockId)=>page.locator(`#bl-${blockId}`);
|
|
17
|
+
const locator = (page, blockId)=>page.locator(`#bl-${escapeId(blockId)}`);
|
|
18
18
|
export default createBlockHelper({
|
|
19
19
|
locator
|
|
20
20
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/blocks-basic",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Basic html Lowdefy blocks.",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"dist/*"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@lowdefy/block-utils": "4.
|
|
46
|
-
"@lowdefy/helpers": "4.
|
|
45
|
+
"@lowdefy/block-utils": "4.7.0",
|
|
46
|
+
"@lowdefy/helpers": "4.7.0",
|
|
47
47
|
"dompurify": "3.2.4",
|
|
48
48
|
"react": "18.2.0",
|
|
49
49
|
"react-dom": "18.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@lowdefy/block-dev-e2e": "4.
|
|
53
|
-
"@lowdefy/e2e-utils": "4.
|
|
52
|
+
"@lowdefy/block-dev-e2e": "4.7.0",
|
|
53
|
+
"@lowdefy/e2e-utils": "4.7.0",
|
|
54
54
|
"@playwright/test": "1.50.1",
|
|
55
55
|
"@swc/cli": "0.1.63",
|
|
56
56
|
"@swc/core": "1.3.99",
|