Commit Graph

1031 Commits

Author SHA1 Message Date
rijkvanzanten
3390430c04 v9.0.0-rc.86 2021-07-26 18:20:42 -04:00
renovate[bot]
5be0c2ca8c pin dependency lodash to 4.17.21 (#6985)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-26 18:20:27 -04:00
renovate[bot]
e3a3735621 pin dependency joi to 17.4.1 (#6983)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-26 18:08:33 -04:00
Rijk van Zanten
92e1ee77bd Add support for Conditional Fields (#6864)
* Add conditions field to directus_fields

* Add conditions configuration

* Apply conditional overrides

* Handle conditions in nested groups

* Fix reverse mutating conditions

* Start on filter setup interface

* Move field types/constants to shared

* [WIP] Updated client side filter validation

* Support logical operators in client validation step

* Use new validation util in conditions check

* Add nesting in filter seutp

* Add filter rule setup configurator

* Fixes that should've been done in the merge

* Strip out filter-settings interface

TBD in a new PR

* Move browser to index
2021-07-26 18:02:24 -04:00
renovate[bot]
5222e01d84 update dependency @rollup/plugin-node-resolve to v13.0.4 (#6951)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-07-26 15:21:23 -04:00
Aiden Foxx
27037f95c7 Fix quotes with schema default values (#6968)
* Added quote trimming to schema default values

* Add return type to stripQuotes function

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-07-26 16:37:45 +00:00
renovate[bot]
961bc80e13 update dependency knex-schema-inspector to v1.5.12 (#6976)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-26 12:20:31 -04:00
renovate[bot]
42a11c49a8 update dependency @rollup/plugin-commonjs to v19.0.2 (#6973)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-26 11:18:59 -04:00
renovate[bot]
72acb832d1 update dependency rollup to v2.54.0 (#6954)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-07-26 10:46:50 -04:00
Nicola Krumschmidt
32972f4c01 Move define extension functions to shared and expose them through extension-sdk (#6880)
* Move defineInterface to shared

* Split up utils into node and browser utils

* Move defineDisplay to shared

* Move defineLayout to shared

* Move defineModule to shared

* Add defineEndpoint and defineHook to define-extensions

* Expose define extension functions through extension-sdk

* Make route type of defineEndpoint more specific

* Simplify define extension functions

* Deduplicate types and local types definition

* Do not allow functional components in display handler

* Make interface options nullable

* Deduplicate extension types definition

* Fix utils/node exports
2021-07-22 17:02:29 +02:00
Bart van der Meeren
3a9475fba5 Fix SDK invite accept (#6925)
Post instead of patch.
2021-07-22 09:20:29 -04:00
Adrian Dimitrov
efe7b076a3 Add default-folder option (#3209)
* Allow set folder for imported files

* Allow passing folder in file/files component; Allow pick folder for file/files/image interfaces.

* Added folder system component for picking folders; Move folder picker the field from data to interface (file, files, image).

* Add custom folder interface; use props for interfaces file/files/image in upload component

* Allow set folder for imported files

* Allow passing folder in file/files component; Allow pick folder for file/files/image interfaces.

* Added folder system component for picking folders; Move folder picker the field from data to interface (file, files, image).

* Add custom folder interface; use props for interfaces file/files/image in upload component

* Update after rebase

* Add storage_default_folder setting, use folder when deploy file

* Fix files options; Add default label option for folder interface.

* Fix set folder for file

* UX

* Add migration for column, undo seed change

* Update nomanclature

* Make sure file library always submits folder, cleanup setting retrieval

* Use indexName on down migrate

* Fix import default folder, rename customPresets->folderPreset

* Rename interface import

* Use undefined as default folder

* Remove deprecated lang file

* Fix display of folder interface, treat null as value

* Move shared composable

* Remove unused ref

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-07-21 17:29:21 -04:00
Tim
2c9ff3bca6 Allow custom transformations of assets (#6593)
* Allow custom transformations of assets

This exposes one query parameter `transforms`, which is a JSON array of
shard transformation operations.

It also updates the asset presets. The UX for this still needs some work

* Rename options to arguments for presets

More explicit

* options -> arguments in setting spec

* Better errors for invalid JSON in asset presets

* Add limit to transforms query parameter

* Use flattened option for extra transforms

* Fix placeholder color of code input

* Allow "simple mode" aliases

* Add documentation

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-07-21 15:57:47 -04:00
renovate[bot]
89c981cb99 update dependency ts-jest to v27.0.4 (#6913)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-21 10:22:16 -04:00
renovate[bot]
8b2d19ddc6 update dependency rollup to v2.53.3 (#6903)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-21 10:00:34 -04:00
renovate[bot]
32fb5e3790 update dependency gatsby-source-filesystem to v3.10.0 (#6894)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-20 13:17:27 -04:00
Nicola Krumschmidt
b61543c0e9 Move DeepPartial to shared (#6886)
Also cleans it up and adds support for readonly arrays.
2021-07-20 11:40:59 -04:00
renovate[bot]
947cc1d47e update vue monorepo to v3.1.5 (#6863)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-19 09:41:14 -04:00
Nicola Krumschmidt
d3a960a0a0 Make extension loading more robust (#6845)
* Make extension loading more robust

* Remove unnecessary path joining
2021-07-16 13:57:18 -04:00
Nicola Krumschmidt
7898f3ee92 Fix extension loading on Windows (#6862)
Extension path and entrypoint are win32 paths, so they have to be
converted to posix last.
2021-07-16 13:56:51 -04:00
renovate[bot]
992b3845c8 update dependency @rollup/plugin-node-resolve to v13.0.2 (#6849)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-16 09:36:54 -04:00
Nicola Krumschmidt
f96eeb2c83 v9.0.0-rc.85 2021-07-15 21:22:54 +02:00
Nicola Krumschmidt
a65c3d3df9 Fix production build on node versions <16 (#6836) 2021-07-15 15:19:04 -04:00
rijkvanzanten
92d15a2fef Remove prepare script from schema package 2021-07-15 14:32:48 -04:00
rijkvanzanten
f60deb9ca2 Remove prepublish build step, handled in CI 2021-07-15 14:23:48 -04:00
rijkvanzanten
ddab55d190 v9.0.0-rc.84 2021-07-15 14:10:01 -04:00
renovate[bot]
9ad0540861 update dependency @rollup/plugin-node-resolve to v13.0.1 (#6828)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-15 10:33:49 -04:00
renovate[bot]
e89372b1a2 update dependency @rollup/plugin-commonjs to v19.0.1 (#6826)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-15 14:32:04 +00:00
rijkvanzanten
2a60a0fd88 Revert "v9.0.0-rc.84"
This reverts commit a4945a64fd.
2021-07-15 10:29:18 -04:00
Matteo Gazzoni
25fa4f12bc add updateByQuery to js sdk (#6824)
* add updateByQuery to js sdk

https://github.com/directus/directus/discussions/6822

* Update items.ts
2021-07-15 10:11:02 -04:00
renovate[bot]
47ce605690 update dependency rollup to v2.53.2 (#6812)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-15 09:15:29 -04:00
Saad Irfan ⚡️
643d7d7977 feat: global installation and update check (#6795)
* Add global installation option

* Add update check for global install
2021-07-14 23:02:30 +00:00
rijkvanzanten
a4945a64fd v9.0.0-rc.84 2021-07-14 17:26:35 -04:00
rijkvanzanten
628b4efc29 Revert "v9.0.0-rc.84"
This reverts commit 18e62086f7.
2021-07-14 17:25:52 -04:00
rijkvanzanten
18e62086f7 v9.0.0-rc.84 2021-07-14 16:57:41 -04:00
rijkvanzanten
f6807767e4 Handle monorepos in extension discovery 2021-07-14 16:53:28 -04:00
Rijk van Zanten
5af7b4fe1e Catch and show errors in execa calls (#6791) 2021-07-14 17:23:47 +02:00
renovate[bot]
0c203b2722 update vue monorepo to v3.1.4 (#6612)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-13 10:11:32 -04:00
renovate[bot]
c8dd6e1527 update dependency gatsby-source-filesystem to v3.9.0 (#6711)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-12 15:07:36 +02:00
Nicola Krumschmidt
4986962523 Add readme files to shared and extension-sdk (#6719) 2021-07-12 14:59:28 +02:00
renovate[bot]
0965ee4c37 update dependency @types/marked-terminal to v3.1.2 (#6724)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-11 10:08:06 +02:00
renovate[bot]
4a94a98948 update dependency @types/figlet to v1.5.4 (#6726)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-11 10:07:03 +02:00
Nicola Krumschmidt
1989760ccc Allow extension-sdk to bundle API extensions as well (#6735)
This also converts the API extension templates to ESM syntax.
2021-07-11 10:01:18 +02:00
Pascal Jufer
c599c076c0 Support invite_url in SDK invite method (#6742)
Fixes #6731
2021-07-11 09:52:20 +02:00
renovate[bot]
d1a2bfb7f9 update dependency ts-node to v10.1.0 (#6744)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-11 09:02:17 +02:00
renovate[bot]
246b4a3917 update dependency rollup to v2.53.1 (#6710)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-11 07:01:07 +00:00
Nicola Krumschmidt
1436340163 Rename ensure-extensions-dirs.ts to align with function name (#6737) 2021-07-09 15:23:04 +00:00
Nicola Krumschmidt
b7a50c5012 Optimize extension-sdk CLI types (#6718)
* Add extension type guards

* Rename validate-extension-package util

* Optimize extension-sdk CLI types
2021-07-09 12:32:07 +02:00
Nicola Krumschmidt
f64ad3335c Configure build command based on extension manifest (#6706)
* Add simple logger to extension-sdk CLI

* Configure build command based on extension manifest

The configuration can be overwritten by command line options.
Adds a "force" option to ignore if there is no package.json in the cwd.
2021-07-07 19:26:50 +00:00
Nicola Krumschmidt
ff393eab3b Add create command to extension-sdk CLI (#6590)
* Add create command to extension-sdk CLI

* Extract extension package.json key name to shared

* Check package.json before building extensions

* Add source field to package.json

* Pin extension-sdk verson in scaffolded package

* Change options color to magenta
2021-07-07 12:34:51 +00:00