@lowdefy/docs 3.23.1 → 4.0.0-alpha.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [4.0.0-alpha.1](https://github.com/lowdefy/lowdefy/compare/v3.23.1...v4.0.0-alpha.1) (2021-11-25)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **docs:** Document that _index operator is client side only. ([72c8228](https://github.com/lowdefy/lowdefy/commit/72c82282a3e6bcd3eb2eeaf3c09b395a0f152405))
12
+ * Replace all front end testing with @testing-library/react, jest and other updates. ([22ec295](https://github.com/lowdefy/lowdefy/commit/22ec2954047853096aabcddba7a2c509342f95f2))
13
+
14
+
15
+ ### Features
16
+
17
+ * **blocksAntd:** Add HolderOutlined icon. ([c39c387](https://github.com/lowdefy/lowdefy/commit/c39c38752e4a681a1146e44b6638ff8486ff9da9))
18
+ * **blocksAntd:** Convert Alert to container and add action content area. ([49c6baa](https://github.com/lowdefy/lowdefy/commit/49c6baabeedd4ed5aaaf14f1d7b4ae5d2545d6cf))
19
+ * **blocksAntd:** Drawer: Add extra content area and contentWrapperStyle property. ([9273fac](https://github.com/lowdefy/lowdefy/commit/9273facac41e5ee6341c80e698f4367b7d8686f3))
20
+ * **blocks:** Convert all context category blocks to container. ([6bc03c8](https://github.com/lowdefy/lowdefy/commit/6bc03c86b80a3506c2b85076626ae15a401bcdfc))
21
+ * **blockTools:** Update to @emotion/css, optimize makeCssClass standarise jest settings. ([947defa](https://github.com/lowdefy/lowdefy/commit/947defa3d8934e061933b1e218b79f2f97456054))
22
+ * Replace server side state with payload and _payload operator. ([1f928d9](https://github.com/lowdefy/lowdefy/commit/1f928d93db4cbe886d322a1a3998a817d769485f))
23
+
24
+
25
+ ### BREAKING CHANGES
26
+
27
+ * The _event, _global, _input, _state, and _url_query operators are no longer evaluated in connections or requests.
28
+
29
+
30
+
31
+
32
+
6
33
  ## [3.23.1](https://github.com/lowdefy/lowdefy/compare/v3.23.0...v3.23.1) (2021-11-20)
7
34
 
8
35
  **Note:** Version bump only for package @lowdefy/docs
@@ -409,6 +409,7 @@
409
409
  - { label: 'HighlightOutlined', value: 'HighlightOutlined' }
410
410
  - { label: 'HighlightTwoTone', value: 'HighlightTwoTone' }
411
411
  - { label: 'HistoryOutlined', value: 'HistoryOutlined' }
412
+ - { label: 'HolderOutlined', value: 'HolderOutlined' }
412
413
  - { label: 'HomeFilled', value: 'HomeFilled' }
413
414
  - { label: 'HomeOutlined', value: 'HomeOutlined' }
414
415
  - { label: 'HomeTwoTone', value: 'HomeTwoTone' }
@@ -16,11 +16,12 @@ _ref:
16
16
  path: templates/blocks/template.yaml.njk
17
17
  vars:
18
18
  block_type: Alert
19
- category: display
19
+ category: container
20
20
  schema: ../blocks/blocksAntd/src/blocks/Alert/Alert.json
21
21
  filePath: blocks/display/Alert.yaml
22
22
  init_property_values:
23
23
  message: Alerts help to highlight important information.
24
24
  description_content: |
25
25
  Alert is used to render user feedback messages in a Alert styled frame.
26
-
26
+ areas:
27
+ - action
@@ -16,7 +16,7 @@ _ref:
16
16
  path: templates/blocks/template.yaml.njk
17
17
  vars:
18
18
  block_type: Descriptions
19
- category: display
19
+ category: container
20
20
  schema: ../blocks/blocksAntd/src/blocks/Descriptions/Descriptions.json
21
21
  filePath: blocks/display/Descriptions.yaml
22
22
  init_state_values:
@@ -47,3 +47,5 @@ _ref:
47
47
  Location: South Africa
48
48
  Temperature: 22
49
49
  Date: 2021-02-02
50
+ areas:
51
+ - extra
@@ -26,6 +26,7 @@ _ref:
26
26
  > To open the drawer, invoke a drawer method.
27
27
  areas:
28
28
  - content
29
+ - extra
29
30
  methods:
30
31
  - name: toggleOpen
31
32
  onClick:
@@ -16,9 +16,9 @@ _ref:
16
16
  path: templates/blocks/template.yaml.njk
17
17
  vars:
18
18
  block_type: PageHCF
19
- category: context
19
+ category: container
20
20
  schema: ../blocks/blocksAntd/src/blocks/PageHCF/PageHCF.json
21
- filePath: blocks/context/PageHCF.yaml
21
+ filePath: blocks/container/PageHCF.yaml
22
22
  description_content: |
23
23
  Page HCF provides a minimal layout structure for a page container with a header, content and footer area.
24
24
 
@@ -16,9 +16,9 @@ _ref:
16
16
  path: templates/blocks/template.yaml.njk
17
17
  vars:
18
18
  block_type: PageHCSF
19
- category: context
19
+ category: container
20
20
  schema: ../blocks/blocksAntd/src/blocks/PageHCSF/PageHCSF.json
21
- filePath: blocks/context/PageHCSF.yaml
21
+ filePath: blocks/container/PageHCSF.yaml
22
22
  description_content: |
23
23
  Page HCSF provides a minimal layout structure for a page container with a header, content, sider and footer arrangement.
24
24
 
@@ -16,9 +16,9 @@ _ref:
16
16
  path: templates/blocks/template.yaml.njk
17
17
  vars:
18
18
  block_type: PageHSCF
19
- category: context
19
+ category: container
20
20
  schema: ../blocks/blocksAntd/src/blocks/PageHSCF/PageHSCF.json
21
- filePath: blocks/context/PageHSCF.yaml
21
+ filePath: blocks/container/PageHSCF.yaml
22
22
  description_content: |
23
23
  Page HSCF provides a minimal layout structure for a page container with a header, sider, content, and footer arrangement.
24
24
 
@@ -16,9 +16,9 @@ _ref:
16
16
  path: templates/blocks/template.yaml.njk
17
17
  vars:
18
18
  block_type: PageHeaderMenu
19
- category: context
19
+ category: container
20
20
  schema: ../blocks/blocksAntd/src/blocks/PageHeaderMenu/PageHeaderMenu.json
21
- filePath: blocks/context/PageHeaderMenu.yaml
21
+ filePath: blocks/container/PageHeaderMenu.yaml
22
22
  description_content: |
23
23
  The Page Header Menu block provides a structured layout for a page with a header containing a menu, content and footer area.
24
24
  init_state_values:
@@ -16,9 +16,9 @@ _ref:
16
16
  path: templates/blocks/template.yaml.njk
17
17
  vars:
18
18
  block_type: PageSHCF
19
- category: context
19
+ category: container
20
20
  schema: ../blocks/blocksAntd/src/blocks/PageSHCF/PageSHCF.json
21
- filePath: blocks/context/PageSHCF.yaml
21
+ filePath: blocks/container/PageSHCF.yaml
22
22
  description_content: |
23
23
  Page SHCF provides a minimal layout structure for a page container with a sider, header, content, and footer arrangement.
24
24
 
@@ -16,9 +16,9 @@ _ref:
16
16
  path: templates/blocks/template.yaml.njk
17
17
  vars:
18
18
  block_type: PageSiderMenu
19
- category: context
19
+ category: container
20
20
  schema: ../blocks/blocksAntd/src/blocks/PageSiderMenu/PageSiderMenu.json
21
- filePath: blocks/context/PageSiderMenu.yaml
21
+ filePath: blocks/container/PageSiderMenu.yaml
22
22
  description_content: |
23
23
  The Page Sider Menu block provides a structured layout for a page with a header, sider including menu, content and footer area.
24
24
  init_state_values:
@@ -36,5 +36,5 @@ _ref:
36
36
  type: Img
37
37
  properties:
38
38
  src: https://docs.lowdefy.com/public/logo-light-theme.png
39
- srcset: https://docs.lowdefy.com/public/logo-square-light-theme.png 40w, https://docs.lowdefy.com/public/logo-light-theme.png 577w
39
+ srcSet: https://docs.lowdefy.com/public/logo-square-light-theme.png 40w, https://docs.lowdefy.com/public/logo-light-theme.png 577w
40
40
  sizes: '(max-width: 576px) 40px, 577px'
@@ -0,0 +1,5 @@
1
+ # How to use references
2
+
3
+ When starting a new Lowdefy application, your app is simple, uncomplicated and easy to navigate between pages, blocks, requests and actions. Unfortunately as with any software application, as you add more functionality, your app code start to grow to thousands of lines of code. When writing an app using conventional tools like javascript, you'd deal with this complexity by splitting your app into methods, files and folders. A experienced programmer will make design choices to best abstract portions of the code to make the app more understandable and maintainable.
4
+
5
+ With Lowdefy the built configuration is served in one giant JSON blob. you can do the same by splitting portions of your Lowdefy config into separate files and folders, and stich them together and
package/menus.yaml CHANGED
@@ -413,31 +413,6 @@
413
413
  - id: Modal
414
414
  type: MenuLink
415
415
  pageId: Modal
416
- - id: Result
417
- type: MenuLink
418
- pageId: Result
419
- - id: Span
420
- type: MenuLink
421
- pageId: Span
422
- - id: Spin
423
- type: MenuLink
424
- pageId: Spin
425
- - id: Tabs
426
- type: MenuLink
427
- pageId: Tabs
428
- - id: Tooltip
429
- type: MenuLink
430
- pageId: Tooltip
431
-
432
- - id: blocks_context
433
- type: MenuGroup
434
- properties:
435
- title: Context Blocks
436
- icon: GroupOutlined
437
- links:
438
- - id: Context
439
- type: MenuLink
440
- pageId: Context
441
416
  - id: PageHCF
442
417
  type: MenuLink
443
418
  pageId: PageHCF
@@ -456,6 +431,22 @@
456
431
  - id: PageSiderMenu
457
432
  type: MenuLink
458
433
  pageId: PageSiderMenu
434
+ - id: Result
435
+ type: MenuLink
436
+ pageId: Result
437
+ - id: Span
438
+ type: MenuLink
439
+ pageId: Span
440
+ - id: Spin
441
+ type: MenuLink
442
+ pageId: Spin
443
+ - id: Tabs
444
+ type: MenuLink
445
+ pageId: Tabs
446
+ - id: Tooltip
447
+ type: MenuLink
448
+ pageId: Tooltip
449
+
459
450
  - id: blocks_list
460
451
  type: MenuGroup
461
452
  properties:
@@ -19,6 +19,7 @@ _ref:
19
19
  pageId: _event
20
20
  pageTitle: _event
21
21
  filePath: operators/_event.yaml
22
+ env: Client Only
22
23
  types: |
23
24
  ```
24
25
  (key: string): any
@@ -19,6 +19,7 @@ _ref:
19
19
  pageId: _global
20
20
  pageTitle: _global
21
21
  filePath: operators/_global.yaml
22
+ env: Client Only
22
23
  types: |
23
24
  ```
24
25
  (key: string): any
@@ -19,6 +19,7 @@ _ref:
19
19
  pageId: _index
20
20
  pageTitle: _index
21
21
  filePath: operators/_index.yaml
22
+ env: Client Only
22
23
  types: |
23
24
  ```
24
25
  (key: string): any
@@ -19,6 +19,7 @@ _ref:
19
19
  pageId: _input
20
20
  pageTitle: _input
21
21
  filePath: operators/_input.yaml
22
+ env: Client Only
22
23
  types: |
23
24
  ```
24
25
  (key: string): any
@@ -19,6 +19,7 @@ _ref:
19
19
  pageId: _state
20
20
  pageTitle: _state
21
21
  filePath: operators/_state.yaml
22
+ env: Client Only
22
23
  types: |
23
24
  ```
24
25
  (key: string): any
@@ -19,6 +19,7 @@ _ref:
19
19
  pageId: _url_query
20
20
  pageTitle: _url_query
21
21
  filePath: operators/_url_query.yaml
22
+ env: Client Only
22
23
  types: |
23
24
  ```
24
25
  (key: string): any
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/docs",
3
- "version": "3.23.1",
3
+ "version": "4.0.0-alpha.1",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -31,14 +31,14 @@
31
31
  "test": "jest --coverage"
32
32
  },
33
33
  "devDependencies": {
34
- "@babel/cli": "7.14.3",
35
- "@babel/core": "7.14.3",
36
- "@babel/preset-env": "7.14.4",
37
- "babel-jest": "26.6.3",
38
- "jest": "26.6.3"
34
+ "@babel/cli": "7.15.7",
35
+ "@babel/core": "7.15.8",
36
+ "@babel/preset-env": "7.15.8",
37
+ "babel-jest": "27.3.1",
38
+ "jest": "27.3.1"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "713a8323d15a70e1d6e69bb680a97f8fc20a1a3e"
43
+ "gitHead": "c97a8fa6b5a641e7d50df09f5601a9c586eeb65a"
44
44
  }
package/pages.yaml CHANGED
@@ -115,20 +115,18 @@
115
115
  - _ref: blocks/container/Drawer.yaml
116
116
  - _ref: blocks/container/Label.yaml
117
117
  - _ref: blocks/container/Modal.yaml
118
+ - _ref: blocks/container/PageHCF.yaml
119
+ - _ref: blocks/container/PageHCSF.yaml
120
+ - _ref: blocks/container/PageHeaderMenu.yaml
121
+ - _ref: blocks/container/PageHSCF.yaml
122
+ - _ref: blocks/container/PageSHCF.yaml
123
+ - _ref: blocks/container/PageSiderMenu.yaml
118
124
  - _ref: blocks/container/Result.yaml
119
125
  - _ref: blocks/container/Span.yaml
120
126
  - _ref: blocks/container/Spin.yaml
121
127
  - _ref: blocks/container/Tabs.yaml
122
128
  - _ref: blocks/container/Tooltip.yaml
123
129
 
124
- - _ref: blocks/context/Context.yaml
125
- - _ref: blocks/context/PageHCF.yaml
126
- - _ref: blocks/context/PageHCSF.yaml
127
- - _ref: blocks/context/PageHeaderMenu.yaml
128
- - _ref: blocks/context/PageHSCF.yaml
129
- - _ref: blocks/context/PageSHCF.yaml
130
- - _ref: blocks/context/PageSiderMenu.yaml
131
-
132
130
  - _ref: blocks/list/ControlledList.yaml
133
131
  - _ref: blocks/list/List.yaml
134
132
  # - _ref: blocks/list/TimelineList.yaml
package/version.yaml CHANGED
@@ -1 +1 @@
1
- v3.23.1
1
+ v4.0.0-alpha.0
@@ -1,27 +0,0 @@
1
- # Copyright 2020-2021 Lowdefy, Inc
2
-
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
-
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- _ref:
16
- path: templates/blocks/template.yaml.njk
17
- vars:
18
- block_type: Context
19
- category: context
20
- schema: ../blocks/blocksBasic/src/blocks/Context/Context.json
21
- filePath: blocks/context/Context.yaml
22
- description_content: |
23
- The `Context` block creates a new context. It can be used at a page level to create the context for the page, or it can be used inside a page to create a separate context (for example to create a new context for a web form).
24
-
25
- areas:
26
- - content
27
-