@lowdefy/client 0.0.0-experimental-20240111121545 → 0.0.0-experimental-20241107140648
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/BrandTag.js +3 -3
- package/dist/Client.js +3 -2
- package/dist/Context.js +3 -2
- package/dist/DisplayMessage.js +1 -1
- package/dist/Head.js +1 -1
- package/dist/MountEvents.js +1 -1
- package/dist/auth/createAuthMethods.js +1 -1
- package/dist/block/Block.js +1 -1
- package/dist/block/CategorySwitch.js +1 -3
- package/dist/block/Container.js +12 -16
- package/dist/block/List.js +12 -16
- package/dist/block/LoadingBlock.js +1 -2
- package/dist/block/LoadingContainer.js +5 -9
- package/dist/block/LoadingList.js +5 -9
- package/dist/createCallAPI.js +30 -0
- package/dist/createCallRequest.js +1 -1
- package/dist/createIcon.js +1 -1
- package/dist/index.js +1 -1
- package/dist/initLowdefyContext.js +5 -2
- package/dist/request.js +1 -1
- package/dist/setupLink.js +1 -1
- package/dist/style.less +1 -1
- package/package.json +6 -6
package/dist/BrandTag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 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.
|
|
@@ -22,7 +22,7 @@ const containerStyle = {
|
|
|
22
22
|
const brandStyle = {
|
|
23
23
|
flex: '0 1 auto',
|
|
24
24
|
contentAlign: 'middle',
|
|
25
|
-
padding:
|
|
25
|
+
padding: 4,
|
|
26
26
|
background: '#1990FF',
|
|
27
27
|
borderRadius: 6,
|
|
28
28
|
margin: 4
|
|
@@ -40,7 +40,7 @@ const textStyle = {
|
|
|
40
40
|
};
|
|
41
41
|
const checkEntitlement = async ({ setShowBranding })=>{
|
|
42
42
|
const license = await (await fetch('/api/license')).json();
|
|
43
|
-
setShowBranding(!license.entitlements.includes
|
|
43
|
+
setShowBranding(!license.entitlements.includes('NO_BRANDING'));
|
|
44
44
|
};
|
|
45
45
|
const BrandTag = ()=>{
|
|
46
46
|
const [showBranding, setShowBranding] = useState(false);
|
package/dist/Client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 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.
|
|
@@ -21,7 +21,7 @@ import DisplayMessage from './DisplayMessage.js';
|
|
|
21
21
|
import Head from './Head.js';
|
|
22
22
|
import ProgressBarController from './ProgressBarController.js';
|
|
23
23
|
import initLowdefyContext from './initLowdefyContext.js';
|
|
24
|
-
const Client = ({ auth, Components, config: rawConfig, lowdefy, resetContext = {
|
|
24
|
+
const Client = ({ auth, Components, config: rawConfig, jsMap, lowdefy, resetContext = {
|
|
25
25
|
reset: false,
|
|
26
26
|
setReset: ()=>undefined
|
|
27
27
|
}, router, stage, types, window })=>{
|
|
@@ -53,6 +53,7 @@ const Client = ({ auth, Components, config: rawConfig, lowdefy, resetContext = {
|
|
|
53
53
|
}), /*#__PURE__*/ React.createElement(Context, {
|
|
54
54
|
key: config.pageConfig.id,
|
|
55
55
|
config: config.pageConfig,
|
|
56
|
+
jsMap: jsMap,
|
|
56
57
|
lowdefy: lowdefy,
|
|
57
58
|
resetContext: resetContext
|
|
58
59
|
}, (context)=>{
|
package/dist/Context.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 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.
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
*/ import React from 'react';
|
|
16
16
|
import getContext from '@lowdefy/engine';
|
|
17
17
|
import MountEvents from './MountEvents.js';
|
|
18
|
-
const Context = ({ children, config, lowdefy, resetContext })=>{
|
|
18
|
+
const Context = ({ children, config, jsMap, lowdefy, resetContext })=>{
|
|
19
19
|
const context = getContext({
|
|
20
20
|
config,
|
|
21
|
+
jsMap,
|
|
21
22
|
lowdefy,
|
|
22
23
|
resetContext
|
|
23
24
|
});
|
package/dist/DisplayMessage.js
CHANGED
package/dist/Head.js
CHANGED
package/dist/MountEvents.js
CHANGED
package/dist/block/Block.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 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.
|
|
@@ -61,7 +61,6 @@ const CategorySwitch = ({ block, Blocks, context, loading, lowdefy })=>{
|
|
|
61
61
|
return /*#__PURE__*/ React.createElement(BlockLayout, {
|
|
62
62
|
id: `bl-${block.blockId}`,
|
|
63
63
|
blockStyle: block.eval.style,
|
|
64
|
-
highlightBorders: lowdefy.lowdefyGlobal.highlightBorders,
|
|
65
64
|
layout: block.eval.layout,
|
|
66
65
|
makeCssClass: makeCssClass
|
|
67
66
|
}, /*#__PURE__*/ React.createElement(Component, {
|
|
@@ -89,7 +88,6 @@ const CategorySwitch = ({ block, Blocks, context, loading, lowdefy })=>{
|
|
|
89
88
|
return /*#__PURE__*/ React.createElement(BlockLayout, {
|
|
90
89
|
id: `bl-${block.blockId}`,
|
|
91
90
|
blockStyle: block.eval.style,
|
|
92
|
-
highlightBorders: lowdefy.lowdefyGlobal.highlightBorders,
|
|
93
91
|
layout: block.eval.layout,
|
|
94
92
|
makeCssClass: makeCssClass
|
|
95
93
|
}, /*#__PURE__*/ React.createElement(Component, {
|
package/dist/block/Container.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 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.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import React from 'react';
|
|
16
|
-
import { Area, BlockLayout
|
|
16
|
+
import { Area, BlockLayout } from '@lowdefy/layout';
|
|
17
17
|
import { makeCssClass } from '@lowdefy/block-utils';
|
|
18
18
|
import Block from './Block.js';
|
|
19
19
|
const Container = ({ block, Blocks, Component, context, loading, lowdefy })=>{
|
|
@@ -22,32 +22,28 @@ const Container = ({ block, Blocks, Component, context, loading, lowdefy })=>{
|
|
|
22
22
|
const areas = Blocks.subBlocks[block.id][0].areas;
|
|
23
23
|
Object.keys(areas).forEach((areaKey, i)=>{
|
|
24
24
|
content[areaKey] = (areaStyle)=>/*#__PURE__*/ React.createElement(Area, {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
area: layoutParamsToArea({
|
|
28
|
-
area: block.eval.areas[areaKey],
|
|
29
|
-
areaKey,
|
|
30
|
-
layout: block.eval.layout
|
|
31
|
-
}),
|
|
25
|
+
area: block.eval.areas[areaKey],
|
|
26
|
+
areaKey: areaKey,
|
|
32
27
|
areaStyle: [
|
|
33
28
|
areaStyle,
|
|
34
29
|
block.eval.areas[areaKey]?.style
|
|
35
30
|
],
|
|
36
|
-
|
|
31
|
+
id: `ar-${block.blockId}-${areaKey}`,
|
|
32
|
+
key: `ar-${block.blockId}-${areaKey}-${i}`,
|
|
33
|
+
layout: block.eval.layout,
|
|
37
34
|
makeCssClass: makeCssClass
|
|
38
35
|
}, areas[areaKey].blocks.map((bl, k)=>/*#__PURE__*/ React.createElement(Block, {
|
|
39
|
-
key: `co-${bl.blockId}-${k}`,
|
|
40
|
-
Blocks: Blocks.subBlocks[block.id][0],
|
|
41
36
|
block: bl,
|
|
37
|
+
Blocks: Blocks.subBlocks[block.id][0],
|
|
42
38
|
context: context,
|
|
43
|
-
|
|
44
|
-
lowdefy: lowdefy
|
|
39
|
+
key: `co-${bl.blockId}-${k}`,
|
|
40
|
+
lowdefy: lowdefy,
|
|
41
|
+
parentLoading: loading
|
|
45
42
|
})));
|
|
46
43
|
});
|
|
47
44
|
return /*#__PURE__*/ React.createElement(BlockLayout, {
|
|
48
|
-
id: `bl-${block.blockId}`,
|
|
49
45
|
blockStyle: block.eval.style,
|
|
50
|
-
|
|
46
|
+
id: `bl-${block.blockId}`,
|
|
51
47
|
layout: block.eval.layout,
|
|
52
48
|
makeCssClass: makeCssClass
|
|
53
49
|
}, /*#__PURE__*/ React.createElement(Component, {
|
package/dist/block/List.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 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.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import React from 'react';
|
|
16
|
-
import { Area, BlockLayout
|
|
16
|
+
import { Area, BlockLayout } from '@lowdefy/layout';
|
|
17
17
|
import { makeCssClass } from '@lowdefy/block-utils';
|
|
18
18
|
import Block from './Block.js';
|
|
19
19
|
const List = ({ block, Blocks, Component, context, loading, lowdefy })=>{
|
|
@@ -22,26 +22,23 @@ const List = ({ block, Blocks, Component, context, loading, lowdefy })=>{
|
|
|
22
22
|
Blocks.subBlocks[block.id].forEach((SBlock)=>{
|
|
23
23
|
Object.keys(SBlock.areas).forEach((areaKey)=>{
|
|
24
24
|
content[areaKey] = (areaStyle)=>/*#__PURE__*/ React.createElement(Area, {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
area: layoutParamsToArea({
|
|
28
|
-
area: block.eval.areas[areaKey],
|
|
29
|
-
areaKey,
|
|
30
|
-
layout: block.eval.layout
|
|
31
|
-
}),
|
|
25
|
+
area: block.eval.areas[areaKey],
|
|
26
|
+
areaKey: areaKey,
|
|
32
27
|
areaStyle: [
|
|
33
28
|
areaStyle,
|
|
34
29
|
block.eval.areas[areaKey]?.style
|
|
35
30
|
],
|
|
36
|
-
|
|
31
|
+
id: `ar-${block.blockId}-${SBlock.id}-${areaKey}`,
|
|
32
|
+
key: `ar-${block.blockId}-${SBlock.id}-${areaKey}`,
|
|
33
|
+
layout: block.eval.layout,
|
|
37
34
|
makeCssClass: makeCssClass
|
|
38
35
|
}, SBlock.areas[areaKey].blocks.map((bl)=>/*#__PURE__*/ React.createElement(Block, {
|
|
39
|
-
key: `ls-${bl.blockId}`,
|
|
40
|
-
Blocks: SBlock,
|
|
41
36
|
block: bl,
|
|
37
|
+
Blocks: SBlock,
|
|
42
38
|
context: context,
|
|
43
|
-
|
|
44
|
-
lowdefy: lowdefy
|
|
39
|
+
key: `ls-${bl.blockId}`,
|
|
40
|
+
lowdefy: lowdefy,
|
|
41
|
+
parentLoading: loading
|
|
45
42
|
})));
|
|
46
43
|
});
|
|
47
44
|
contentList.push({
|
|
@@ -49,9 +46,8 @@ const List = ({ block, Blocks, Component, context, loading, lowdefy })=>{
|
|
|
49
46
|
});
|
|
50
47
|
});
|
|
51
48
|
return /*#__PURE__*/ React.createElement(BlockLayout, {
|
|
52
|
-
id: `bl-${block.blockId}`,
|
|
53
49
|
blockStyle: block.eval.style,
|
|
54
|
-
|
|
50
|
+
id: `bl-${block.blockId}`,
|
|
55
51
|
layout: block.eval.layout,
|
|
56
52
|
makeCssClass: makeCssClass
|
|
57
53
|
}, /*#__PURE__*/ React.createElement(Component, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 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.
|
|
@@ -64,7 +64,6 @@ const LoadingBlock = ({ blockId, blockLayout, blockProperties, blockStyle, conte
|
|
|
64
64
|
default:
|
|
65
65
|
return /*#__PURE__*/ React.createElement(BlockLayout, {
|
|
66
66
|
blockStyle: skeleton.style ?? blockStyle,
|
|
67
|
-
highlightBorders: lowdefy.lowdefyGlobal.highlightBorders,
|
|
68
67
|
id: `s-bl-${blockId}-${skeleton.id}`,
|
|
69
68
|
layout: skeleton.layout ?? blockLayout,
|
|
70
69
|
makeCssClass: makeCssClass
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 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.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import React from 'react';
|
|
16
|
-
import { Area, BlockLayout
|
|
16
|
+
import { Area, BlockLayout } from '@lowdefy/layout';
|
|
17
17
|
import { makeCssClass } from '@lowdefy/block-utils';
|
|
18
18
|
import LoadingBlock from './LoadingBlock.js';
|
|
19
19
|
const LoadingContainer = ({ blockId, blockLayout, blockProperties, blockStyle, Component, context, lowdefy, skeleton })=>{
|
|
@@ -21,18 +21,15 @@ const LoadingContainer = ({ blockId, blockLayout, blockProperties, blockStyle, C
|
|
|
21
21
|
// eslint-disable-next-line prefer-destructuring
|
|
22
22
|
Object.keys(skeleton.areas).forEach((areaKey, i)=>{
|
|
23
23
|
content[areaKey] = (areaStyle)=>/*#__PURE__*/ React.createElement(Area, {
|
|
24
|
-
area:
|
|
25
|
-
|
|
26
|
-
areaKey,
|
|
27
|
-
layout: skeleton.layout ?? blockLayout
|
|
28
|
-
}),
|
|
24
|
+
area: skeleton.areas[areaKey],
|
|
25
|
+
areaKey: areaKey,
|
|
29
26
|
areaStyle: [
|
|
30
27
|
areaStyle,
|
|
31
28
|
skeleton.areas[areaKey]?.style
|
|
32
29
|
],
|
|
33
|
-
highlightBorders: lowdefy.lowdefyGlobal.highlightBorders,
|
|
34
30
|
id: `s-ar-${blockId}-${skeleton.id}-${areaKey}`,
|
|
35
31
|
key: `s-ar-${blockId}-${skeleton.id}-${areaKey}-${i}`,
|
|
32
|
+
layout: skeleton.layout ?? blockLayout,
|
|
36
33
|
makeCssClass: makeCssClass
|
|
37
34
|
}, skeleton.areas[areaKey].blocks.map((skl, k)=>/*#__PURE__*/ React.createElement(LoadingBlock, {
|
|
38
35
|
blockId: blockId,
|
|
@@ -44,7 +41,6 @@ const LoadingContainer = ({ blockId, blockLayout, blockProperties, blockStyle, C
|
|
|
44
41
|
});
|
|
45
42
|
return /*#__PURE__*/ React.createElement(BlockLayout, {
|
|
46
43
|
blockStyle: skeleton.style ?? blockStyle,
|
|
47
|
-
highlightBorders: lowdefy.lowdefyGlobal.highlightBorders,
|
|
48
44
|
id: `s-bl-${blockId}-${skeleton.id}`,
|
|
49
45
|
layout: skeleton.layout ?? blockLayout,
|
|
50
46
|
makeCssClass: makeCssClass
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 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.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import React from 'react';
|
|
16
|
-
import { Area, BlockLayout
|
|
16
|
+
import { Area, BlockLayout } from '@lowdefy/layout';
|
|
17
17
|
import { makeCssClass } from '@lowdefy/block-utils';
|
|
18
18
|
import LoadingBlock from './LoadingBlock.js';
|
|
19
19
|
const LoadingList = ({ blockId, blockLayout, blockProperties, blockStyle, Component, context, lowdefy, skeleton })=>{
|
|
@@ -22,18 +22,15 @@ const LoadingList = ({ blockId, blockLayout, blockProperties, blockStyle, Compon
|
|
|
22
22
|
new Array(3).forEach(()=>{
|
|
23
23
|
Object.keys(skeleton.areas).forEach((areaKey, i)=>{
|
|
24
24
|
content[areaKey] = (areaStyle)=>/*#__PURE__*/ React.createElement(Area, {
|
|
25
|
-
area:
|
|
26
|
-
|
|
27
|
-
areaKey,
|
|
28
|
-
layout: skeleton.layout ?? blockLayout
|
|
29
|
-
}),
|
|
25
|
+
area: skeleton.areas[areaKey],
|
|
26
|
+
areaKey: areaKey,
|
|
30
27
|
areaStyle: [
|
|
31
28
|
areaStyle,
|
|
32
29
|
skeleton.areas[areaKey]?.style
|
|
33
30
|
],
|
|
34
|
-
highlightBorders: lowdefy.lowdefyGlobal.highlightBorders,
|
|
35
31
|
id: `s-ar-${blockId}-${skeleton.id}-${areaKey}`,
|
|
36
32
|
key: `s-ar-${blockId}-${skeleton.id}-${areaKey}-${i}`,
|
|
33
|
+
layout: skeleton.layout ?? blockLayout,
|
|
37
34
|
makeCssClass: makeCssClass
|
|
38
35
|
}, skeleton.areas[areaKey].blocks.map((skl, k)=>/*#__PURE__*/ React.createElement(LoadingBlock, {
|
|
39
36
|
blockId: blockId,
|
|
@@ -49,7 +46,6 @@ const LoadingList = ({ blockId, blockLayout, blockProperties, blockStyle, Compon
|
|
|
49
46
|
});
|
|
50
47
|
return /*#__PURE__*/ React.createElement(BlockLayout, {
|
|
51
48
|
blockStyle: skeleton.style ?? blockStyle,
|
|
52
|
-
highlightBorders: lowdefy.lowdefyGlobal.highlightBorders,
|
|
53
49
|
id: `s-bl-${blockId}-${skeleton.id}`,
|
|
54
50
|
layout: skeleton.layout ?? blockLayout,
|
|
55
51
|
makeCssClass: makeCssClass
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2024 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ import request from './request.js';
|
|
16
|
+
function createCallAPI({ basePath }) {
|
|
17
|
+
function callAPI({ payload, endpointId, pageId, blockId }) {
|
|
18
|
+
return request({
|
|
19
|
+
url: `${basePath}/api/endpoints/${endpointId}`,
|
|
20
|
+
method: 'POST',
|
|
21
|
+
body: {
|
|
22
|
+
payload,
|
|
23
|
+
pageId,
|
|
24
|
+
blockId
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
return callAPI;
|
|
29
|
+
}
|
|
30
|
+
export default createCallAPI;
|
package/dist/createIcon.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 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.
|
|
@@ -12,7 +12,8 @@
|
|
|
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
|
|
15
|
+
*/ import createCallAPI from './createCallAPI.js';
|
|
16
|
+
import createAuthMethods from './auth/createAuthMethods.js';
|
|
16
17
|
import createCallRequest from './createCallRequest.js';
|
|
17
18
|
import createIcon from './createIcon.js';
|
|
18
19
|
import createLinkComponent from './createLinkComponent.js';
|
|
@@ -46,10 +47,12 @@ function initLowdefyContext({ auth, Components, config, lowdefy, router, stage,
|
|
|
46
47
|
router,
|
|
47
48
|
updaters: {}
|
|
48
49
|
};
|
|
50
|
+
lowdefy.apiResponses = {};
|
|
49
51
|
lowdefy.basePath = router.basePath;
|
|
50
52
|
lowdefy.contexts = {};
|
|
51
53
|
lowdefy.inputs = {};
|
|
52
54
|
lowdefy.lowdefyGlobal = config.rootConfig.lowdefyGlobal;
|
|
55
|
+
lowdefy._internal.callAPI = createCallAPI(lowdefy);
|
|
53
56
|
lowdefy._internal.auth = createAuthMethods(lowdefy, auth);
|
|
54
57
|
lowdefy._internal.callRequest = createCallRequest(lowdefy);
|
|
55
58
|
lowdefy._internal.components.Link = createLinkComponent(lowdefy, Components.Link);
|
package/dist/request.js
CHANGED
package/dist/setupLink.js
CHANGED
package/dist/style.less
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/client",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-20241107140648",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Lowdefy Client",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@ant-design/icons": "4.8.0",
|
|
37
|
-
"@lowdefy/block-utils": "0.0.0-experimental-
|
|
38
|
-
"@lowdefy/engine": "0.0.0-experimental-
|
|
39
|
-
"@lowdefy/helpers": "0.0.0-experimental-
|
|
40
|
-
"@lowdefy/layout": "0.0.0-experimental-
|
|
37
|
+
"@lowdefy/block-utils": "0.0.0-experimental-20241107140648",
|
|
38
|
+
"@lowdefy/engine": "0.0.0-experimental-20241107140648",
|
|
39
|
+
"@lowdefy/helpers": "0.0.0-experimental-20241107140648",
|
|
40
|
+
"@lowdefy/layout": "0.0.0-experimental-20241107140648",
|
|
41
41
|
"classnames": "2.3.2",
|
|
42
42
|
"react": "18.2.0",
|
|
43
43
|
"react-dom": "18.2.0"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@emotion/jest": "11.10.5",
|
|
47
47
|
"@jest/globals": "28.1.3",
|
|
48
|
-
"@lowdefy/jest-yaml-transform": "0.0.0-experimental-
|
|
48
|
+
"@lowdefy/jest-yaml-transform": "0.0.0-experimental-20241107140648",
|
|
49
49
|
"@swc/cli": "0.1.63",
|
|
50
50
|
"@swc/core": "1.3.99",
|
|
51
51
|
"@swc/jest": "0.2.29",
|