Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 992bec7

Browse files
committed
updated agile version
1 parent b39e24f commit 992bec7

File tree

10 files changed

+57
-67
lines changed

10 files changed

+57
-67
lines changed

docs/main/Installation.md

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Below you find quick start guides for already supported UI-Frameworks.
2121

2222
- [React / React-Native](../quick_start/React.md)
2323
- [Vue](../quick_start/Vue.md)
24-
- Svelte (coming soon)
2524

2625
### 📁 Packages
2726

docs/main/Introduction.md

-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ It's only one click away. Just select your preferred UI-Framework below.
118118
- [React](https://codesandbox.io/s/agilets-first-state-f12cz)
119119
- [React-Native](https://snack.expo.io/@bennodev/agilets-first-state)
120120
- [Vue](https://codesandbox.io/s/agilets-first-state-i5xxs)
121-
- Svelte (coming soon)
122121

123122
More examples can be found in the [Example section](../examples/Introduction.md).
124123

docs/packages/core/api/collection/Introduction.md

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ we remove the todo related to the id `1` from the Collection and all Groups (->
7070
Test the Collection yourself. It's only one click away. Just select your preferred Framework below.
7171
- [React](https://codesandbox.io/s/agilets-first-collection-uyi9g)
7272
- [Vue](https://codesandbox.io/s/agilets-first-state-i5xxs)
73-
- Angular (coming soon)
7473

7574

7675
## 🗂️ Collection Classes

docs/packages/core/api/collection/group/Introduction.md

-2
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ We can collect posts specific to a user and automatically group them by the user
127127
## ⛳️ Sandbox
128128
Test the Group yourself. It's only one click away. Just select your preferred Framework below.
129129
- [React](https://codesandbox.io/s/agilets-first-group-z5cnk)
130-
- Vue (coming soon)
131-
- Angular (coming soon)
132130

133131

134132
## 📭 Props

docs/packages/core/api/collection/selector/Introduction.md

-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ CURRENT_USER.select(/* another userId */);
121121
## ⛳️ Sandbox
122122
Test the Selector yourself. It's only one click away. Just select your preferred Framework below.
123123
- [React](https://codesandbox.io/s/agilets-first-selector-rmrxf)
124-
- Vue (coming soon)
125-
- Angular (coming soon)
126124

127125

128126
## 📭 Props

docs/packages/core/api/computed/Introduction.md

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ IS_AUTHENTICATE.value; // Returns 'false'
8080
Test the Computed Class yourself. It's only one click away. Just select your preferred Framework below.
8181
- [React](https://codesandbox.io/s/agilets-first-computed-kisgr)
8282
- Vue (no example yet :/)
83-
- Angular (coming soon)
8483

8584

8685
## 📭 Props

docs/packages/core/api/state/Introduction.md

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ Test the State yourself. It's only one click away. Just select your preferred Fr
6969
- [React](https://codesandbox.io/s/agilets-first-state-f12cz)
7070
- [React-Native](https://snack.expo.io/@bennodev/agilets-first-state)
7171
- [Vue](https://codesandbox.io/s/agilets-first-state-i5xxs)
72-
- Angular (coming soon)
7372

7473

7574
## 👟 Light State

docs/packages/multieditor/Introduction.md

+19-20
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,29 @@ The `multieditor` package is an extension for AgileTs, that makes creating relia
3030

3131
### ⏰ Short Example
3232
```ts
33-
// Let's create our first MultiEditor
34-
const multiEditor = new MultiEditor(editor => ({
35-
data: {
36-
id: "myId", // Inital Id
37-
email: undefined, // Inital Email
38-
name: undefined, // Inital Name
39-
},
40-
onSubmit: async (data) => {
41-
console.log("Submitted ", data); // <-------------------------------------------
42-
}, // |
43-
fixedProperties: ["id"], // Properties that always get passed as data into the onSubmit function
44-
validateMethods: {
45-
email: editor.Validator().string().email().required(), // Email is requiered, a string and follows the Email regex
46-
name: editor.Validator().string().max(10).min(2).required(), // Name is required, a string, has to be shorter than 10 and longer than 2 chars
47-
},
48-
editableProperties: ["email", "name"], // Properties that can be edited
33+
// Create Multieditior
34+
const multiEditor = createMultieditor(editor => ({
35+
data: {
36+
id: "myId", // Initial Id
37+
email: undefined, // Inital Email
38+
name: undefined, // Inital Name
39+
},
40+
onSubmit: async (data) => {
41+
console.log("Submitted ", data); // <---------------------------------
42+
}, // |
43+
fixedProperties: ["id"], // Properties that are always passed to the 'onSubmit()' method
44+
validateMethods: {
45+
email: agileResolver(isString, isEmail, isRequired), // Validation with tree shakable validation methods
46+
name: yupResolver(Yup.string().max(10).min(2).required()), // Validation with external validatiors like Yup
47+
},
48+
editableProperties: ["email", "name"], // Properties that can be edited
4949
}));
5050

51-
// Lets update the requiered properties to validate the Editor
51+
// Update Multieditor values in the UI-Form
5252
multiEditor.setValue("email", "[email protected]");
5353
multiEditor.setValue("name", "Jeff");
5454

55-
// Now we can submit the Editor and see what the onSubmit will log
55+
// Submit Multieditor and see what the 'onSubmit()' method will log
5656
multiEditor.submit();
5757
// Submited {
5858
// id: "myId",
@@ -62,8 +62,7 @@ multiEditor.submit();
6262
```
6363

6464
### ⛳️ Sandbox
65-
Test the MultiEditor Extension yourself, it's only one click away. Just select your preferred Framework below.
65+
Test the Multieditor yourself. It's only one click away. Just select your preferred Framework below.
6666
- [React](https://codesandbox.io/s/multieditor-yxt4x)
6767
- Vue (coming soon)
68-
- Angular (coming soon)
6968

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"install:prod:agile": "yarn add @agile-ts/core @agile-ts/react @agile-ts/api @agile-ts/event @agile-ts/proxytree @agile-ts/logger @agile-ts/utils & yarn install"
2020
},
2121
"dependencies": {
22-
"@agile-ts/api": "^0.0.23",
23-
"@agile-ts/core": "^0.2.5",
24-
"@agile-ts/event": "^0.0.12",
25-
"@agile-ts/logger": "^0.0.9",
26-
"@agile-ts/proxytree": "^0.0.7",
27-
"@agile-ts/react": "^0.2.1",
28-
"@agile-ts/utils": "^0.0.9",
22+
"@agile-ts/api": "^0.0.24",
23+
"@agile-ts/core": "^0.2.6",
24+
"@agile-ts/event": "^0.0.13",
25+
"@agile-ts/logger": "^0.0.10",
26+
"@agile-ts/proxytree": "^0.0.8",
27+
"@agile-ts/react": "^0.2.2",
28+
"@agile-ts/utils": "^0.0.10",
2929
"@docusaurus/core": "2.0.0-beta.6",
3030
"@docusaurus/module-type-aliases": "2.0.0-beta.6",
3131
"@docusaurus/preset-classic": "2.0.0-beta.6",

yarn.lock

+31-31
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,46 @@
22
# yarn lockfile v1
33

44

5-
"@agile-ts/api@^0.0.23":
6-
version "0.0.23"
7-
resolved "https://registry.yarnpkg.com/@agile-ts/api/-/api-0.0.23.tgz#159e7615046cf580b10ac3eaed8f981a38a808ec"
8-
integrity sha512-gVTGYfQROMAZd7rJ0kiptJjulW4gibwkCtBrfFufio08DrxoBEvLJAROYLix1V/5M1sbkz2DkheIoFEw009vxg==
5+
"@agile-ts/api@^0.0.24":
6+
version "0.0.24"
7+
resolved "https://registry.yarnpkg.com/@agile-ts/api/-/api-0.0.24.tgz#ad56628fc5f9abea8b696fd2ddab19dfd8732c60"
8+
integrity sha512-P+jhOq3CDRqu/KoO3DXmBwIcpVmFTLNBvTsNmTxLMLDwOh7HmFl0YMrHgqIRviYFfiJUdG1ItSryFG/zTpFSrg==
99
dependencies:
10-
"@agile-ts/utils" "^0.0.9"
10+
"@agile-ts/utils" "^0.0.10"
1111

12-
"@agile-ts/core@^0.2.5":
13-
version "0.2.5"
14-
resolved "https://registry.yarnpkg.com/@agile-ts/core/-/core-0.2.5.tgz#70dd4c4551aad599993f5007fe14436ada9f3b08"
15-
integrity sha512-oWJIvzPrd4meu7xbq+K591twnm+EKSvXM/xM6sCuIB1avpELt4WQ8iHEy3VRBcJw0qnYWL+tvJPo5OIXOwaG/A==
12+
"@agile-ts/core@^0.2.6":
13+
version "0.2.6"
14+
resolved "https://registry.yarnpkg.com/@agile-ts/core/-/core-0.2.6.tgz#341ad19a759ce90511a0a531eb8a8161ca422fef"
15+
integrity sha512-kSWs0zdJjGpGYC+YryaggCdhRNgnespzW4kTq4YAl+5QWnfJb4bVFp0B7lQtC7AnS2AOcKrCkVRsI9hP2MjBTw==
1616
dependencies:
17-
"@agile-ts/utils" "^0.0.9"
17+
"@agile-ts/utils" "^0.0.10"
1818

19-
"@agile-ts/event@^0.0.12":
20-
version "0.0.12"
21-
resolved "https://registry.yarnpkg.com/@agile-ts/event/-/event-0.0.12.tgz#b94761b49aab834b7caef9749d627435aa4a2f87"
22-
integrity sha512-7nLsLB3ErdM45LA+IXrVCoXYOUvwpJiODRwek0N27Eins0oTTCmUFXk+fM52d1WPEUS6X01RXJ8YocQ2mmV/Xw==
19+
"@agile-ts/event@^0.0.13":
20+
version "0.0.13"
21+
resolved "https://registry.yarnpkg.com/@agile-ts/event/-/event-0.0.13.tgz#e5dd2e7e9c71a95948f8c531fc43c520b240fc88"
22+
integrity sha512-msdIvSIRUIKxDoNHatl4NCuGosrviOmLkwJK499APud1YYyW0NPzJCQPuEVt/Ysk5s7CctzIsycNI1rTTIhz6Q==
2323

24-
"@agile-ts/logger@^0.0.9":
25-
version "0.0.9"
26-
resolved "https://registry.yarnpkg.com/@agile-ts/logger/-/logger-0.0.9.tgz#ad4b508147f54c9be9e447577d90ea4ad30e66ea"
27-
integrity sha512-oyCAscRug4jhmcBeF7lhKfFi3ocQlZDYzSslHWKxfmXg1X9fdC/dAQBb1P3sYKS3MyhNa2pKeDQZe4s9v8neFg==
24+
"@agile-ts/logger@^0.0.10":
25+
version "0.0.10"
26+
resolved "https://registry.yarnpkg.com/@agile-ts/logger/-/logger-0.0.10.tgz#649872739ff78c942c2de364b8ea1e05a433ae9a"
27+
integrity sha512-DgfafRgMy1pD0HFVQSl6MOVUkCt9z/m4eEURcGoX6P2DkWd9HHW9Vhd+knkBcy79rbAgSJYquu3AGo9BLfEjjA==
2828
dependencies:
29-
"@agile-ts/utils" "^0.0.9"
29+
"@agile-ts/utils" "^0.0.10"
3030

31-
"@agile-ts/proxytree@^0.0.7":
32-
version "0.0.7"
33-
resolved "https://registry.yarnpkg.com/@agile-ts/proxytree/-/proxytree-0.0.7.tgz#1de71db7252fb2d2f10dddffb2913322e018b65c"
34-
integrity sha512-xZtZOS/iD6jSM60Vag/r+25VALP3sOimZPOuVCrKcUTxx/dYd9+Kc/HkL8LURyiU0SSErKX9MTXGddykiPGZHg==
31+
"@agile-ts/proxytree@^0.0.8":
32+
version "0.0.8"
33+
resolved "https://registry.yarnpkg.com/@agile-ts/proxytree/-/proxytree-0.0.8.tgz#0ad726fa087a214b93d55689b34373bb7e121add"
34+
integrity sha512-3Bb5Wjtpe8nT/XLxU5c4wArhImlHCJpn7jTYnJUGrRR0EIjq5ncRvJlC6geM2OWn1msbUtlegnZ/BHO+RX26XA==
3535

36-
"@agile-ts/react@^0.2.1":
37-
version "0.2.1"
38-
resolved "https://registry.yarnpkg.com/@agile-ts/react/-/react-0.2.1.tgz#0d288cb99ac8fc4a9077061f5568f193ad1969fd"
39-
integrity sha512-/jK/p2XAIdUNb3b5MGz05eY5CWKBefk8ZIW1+Gp30m9bwi9un4klq/3M2QMAjpdUwsUC4K2f0gaW6+Va+JTRGQ==
36+
"@agile-ts/react@^0.2.2":
37+
version "0.2.2"
38+
resolved "https://registry.yarnpkg.com/@agile-ts/react/-/react-0.2.2.tgz#e265c86b61662b716b76e5194131f9efe6df38a8"
39+
integrity sha512-BpFynpmVNqg1lGom1WfUoY0ZIR6Sj/RZVngp3w7f3BxOmxr2rIwYYVt1qEuGupoT9RtXYQ4nTHo/Mrw1abbJzw==
4040

41-
"@agile-ts/utils@^0.0.9":
42-
version "0.0.9"
43-
resolved "https://registry.yarnpkg.com/@agile-ts/utils/-/utils-0.0.9.tgz#b20d03cc450d1a916bb7d8836c3451cb06cc882c"
44-
integrity sha512-M9/QQjX+I5r11MwztfK371/kfInmJS7kLlAKmG8ZkgqG/x8LdCxD7tOTwqMa9Dc1p1ZJqSvNzL/Y8l7boi/3IQ==
41+
"@agile-ts/utils@^0.0.10":
42+
version "0.0.10"
43+
resolved "https://registry.yarnpkg.com/@agile-ts/utils/-/utils-0.0.10.tgz#5eb2d7b7faefc00c416165ad93c79237e8448bbd"
44+
integrity sha512-eVJZS60H8HaD8atTfswObihdDxjcxNlaoHk8Crmz85KOrdIMBMdrGx41p+Zf15s+dSfal1gbgM2In3bw4zjSww==
4545

4646
"@algolia/[email protected]":
4747
version "1.2.2"

0 commit comments

Comments
 (0)