@lowdefy/block-dev 4.0.0-rc.0 → 4.0.0-rc.1

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
package/dist/mockBlock.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,19 +1,5 @@
1
- function _extends() {
2
- _extends = Object.assign || function(target) {
3
- for(var i = 1; i < arguments.length; i++){
4
- var source = arguments[i];
5
- for(var key in source){
6
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7
- target[key] = source[key];
8
- }
9
- }
10
- }
11
- return target;
12
- };
13
- return _extends.apply(this, arguments);
14
- }
15
1
  /*
16
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 Lowdefy, Inc
17
3
 
18
4
  Licensed under the Apache License, Version 2.0 (the "License");
19
5
  you may not use this file except in compliance with the License.
@@ -26,13 +12,27 @@ function _extends() {
26
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
13
  See the License for the specific language governing permissions and
28
14
  limitations under the License.
29
- */ import React from 'react';
15
+ */ function _extends() {
16
+ _extends = Object.assign || function(target) {
17
+ for(var i = 1; i < arguments.length; i++){
18
+ var source = arguments[i];
19
+ for(var key in source){
20
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
21
+ target[key] = source[key];
22
+ }
23
+ }
24
+ }
25
+ return target;
26
+ };
27
+ return _extends.apply(this, arguments);
28
+ }
29
+ import React from 'react';
30
30
  import { type } from '@lowdefy/helpers';
31
31
  import { render, screen } from '@testing-library/react';
32
32
  import userEvent from '@testing-library/user-event';
33
33
  import mockBlock from './mockBlock.js';
34
- const runMockMethodTests = ({ Block: Block1 , examples , mocks , schema , testConfig })=>{
35
- const meta = Block1.meta;
34
+ const runMockMethodTests = ({ Block , examples , mocks , schema , testConfig })=>{
35
+ const meta = Block.meta;
36
36
  const { before , methods , getProps } = mockBlock({
37
37
  meta,
38
38
  schema
@@ -1,19 +1,5 @@
1
- function _extends() {
2
- _extends = Object.assign || function(target) {
3
- for(var i = 1; i < arguments.length; i++){
4
- var source = arguments[i];
5
- for(var key in source){
6
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7
- target[key] = source[key];
8
- }
9
- }
10
- }
11
- return target;
12
- };
13
- return _extends.apply(this, arguments);
14
- }
15
1
  /*
16
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 Lowdefy, Inc
17
3
 
18
4
  Licensed under the Apache License, Version 2.0 (the "License");
19
5
  you may not use this file except in compliance with the License.
@@ -26,13 +12,27 @@ function _extends() {
26
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
13
  See the License for the specific language governing permissions and
28
14
  limitations under the License.
29
- */ import React from 'react';
15
+ */ function _extends() {
16
+ _extends = Object.assign || function(target) {
17
+ for(var i = 1; i < arguments.length; i++){
18
+ var source = arguments[i];
19
+ for(var key in source){
20
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
21
+ target[key] = source[key];
22
+ }
23
+ }
24
+ }
25
+ return target;
26
+ };
27
+ return _extends.apply(this, arguments);
28
+ }
29
+ import React from 'react';
30
30
  import { type } from '@lowdefy/helpers';
31
31
  import { render, waitFor } from '@testing-library/react';
32
32
  import mockBlock from './mockBlock.js';
33
- const runMockRenderTests = ({ Block: Block1 , examples , logger , mocks , reset =()=>null , schema , testConfig , })=>{
33
+ const runMockRenderTests = ({ Block , examples , logger , mocks , reset =()=>null , schema , testConfig })=>{
34
34
  const { before , getProps } = mockBlock({
35
- meta: Block1.meta,
35
+ meta: Block.meta,
36
36
  logger,
37
37
  schema
38
38
  });
@@ -49,7 +49,7 @@ const runMockRenderTests = ({ Block: Block1 , examples , logger , mocks , reset
49
49
  });
50
50
  examples.forEach((ex)=>{
51
51
  const values = [
52
- type.enforceType(Block1.meta.valueType, null)
52
+ type.enforceType(Block.meta.valueType, null)
53
53
  ];
54
54
  if (!type.isNone(ex.value)) {
55
55
  values.push(ex.value);
@@ -1,19 +1,5 @@
1
- function _extends() {
2
- _extends = Object.assign || function(target) {
3
- for(var i = 1; i < arguments.length; i++){
4
- var source = arguments[i];
5
- for(var key in source){
6
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7
- target[key] = source[key];
8
- }
9
- }
10
- }
11
- return target;
12
- };
13
- return _extends.apply(this, arguments);
14
- }
15
1
  /*
16
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 Lowdefy, Inc
17
3
 
18
4
  Licensed under the Apache License, Version 2.0 (the "License");
19
5
  you may not use this file except in compliance with the License.
@@ -26,11 +12,25 @@ function _extends() {
26
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
13
  See the License for the specific language governing permissions and
28
14
  limitations under the License.
29
- */ import React from 'react';
15
+ */ function _extends() {
16
+ _extends = Object.assign || function(target) {
17
+ for(var i = 1; i < arguments.length; i++){
18
+ var source = arguments[i];
19
+ for(var key in source){
20
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
21
+ target[key] = source[key];
22
+ }
23
+ }
24
+ }
25
+ return target;
26
+ };
27
+ return _extends.apply(this, arguments);
28
+ }
29
+ import React from 'react';
30
30
  import { render, waitFor } from '@testing-library/react';
31
31
  import { type } from '@lowdefy/helpers';
32
32
  import mockBlock from './mockBlock.js';
33
- const runRenderTests = ({ Block , examples , logger , reset =()=>null , schema , testConfig , validationsExamples , })=>{
33
+ const runRenderTests = ({ Block , examples , logger , reset =()=>null , schema , testConfig , validationsExamples })=>{
34
34
  const { before , methods , getProps } = mockBlock({
35
35
  meta: Block.meta,
36
36
  logger,
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/block-dev",
3
- "version": "4.0.0-rc.0",
3
+ "version": "4.0.0-rc.1",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Lowdefy Block Development Tools",
6
6
  "homepage": "https://lowdefy.com",
@@ -36,13 +36,13 @@
36
36
  "prepublishOnly": "pnpm build"
37
37
  },
38
38
  "dependencies": {
39
- "@emotion/jest": "11.9.1",
40
- "@lowdefy/block-utils": "4.0.0-rc.0",
41
- "@lowdefy/helpers": "4.0.0-rc.0",
42
- "@testing-library/dom": "8.13.0",
43
- "@testing-library/react": "13.3.0",
44
- "@testing-library/user-event": "14.2.0",
45
- "ajv": "8.11.0",
39
+ "@emotion/jest": "11.10.5",
40
+ "@lowdefy/block-utils": "4.0.0-rc.1",
41
+ "@lowdefy/helpers": "4.0.0-rc.1",
42
+ "@testing-library/dom": "8.19.1",
43
+ "@testing-library/react": "13.4.0",
44
+ "@testing-library/user-event": "14.4.3",
45
+ "ajv": "8.12.0",
46
46
  "ajv-errors": "3.0.0",
47
47
  "jest": "28.1.0",
48
48
  "jest-serializer-html": "7.1.0",
@@ -51,11 +51,11 @@
51
51
  "yaml-loader": "0.8.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@swc/cli": "0.1.57",
55
- "@swc/core": "1.2.194"
54
+ "@swc/cli": "0.1.59",
55
+ "@swc/core": "1.3.24"
56
56
  },
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "f6872d7ff6da421710096536fce7b2016ef8f35c"
60
+ "gitHead": "ecc4f16c19eede929eda177db524cf13a8053379"
61
61
  }