121 Commits

Author SHA1 Message Date
Rijk van Zanten
e5ba369c24 v10.13.2 2024-08-06 14:26:11 -04:00
Brainslug
4094e938b0 SDK remove dependency on system-data package (#23146)
* Added local isSystemCollection check for SDK

* prettier

* Create cool-peaches-enjoy.md

* resolve lockfile

* resolve lockfile
2024-08-02 13:49:10 -04:00
dependabot[bot]
cdfae6e365 Bump tsup from 8.1.2 to 8.2.2 (#23079)
Bumps [tsup](https://github.com/egoist/tsup) from 8.1.2 to 8.2.2.
- [Release notes](https://github.com/egoist/tsup/releases)
- [Changelog](https://github.com/egoist/tsup/blob/dev/.releaserc.json)
- [Commits](https://github.com/egoist/tsup/compare/v8.1.2...v8.2.2)

---
updated-dependencies:
- dependency-name: tsup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-23 13:06:47 +02:00
ian
4cb3ff37a5 Disable websocket reconnection after manual disconnection (#23065)
* Disable websocket reconnection after manual disconnection

* Add changeset
2024-07-19 10:28:27 -04:00
dependabot[bot]
b77a3857e6 Bump tsup from 8.1.0 to 8.1.2 (#23060)
Bumps [tsup](https://github.com/egoist/tsup) from 8.1.0 to 8.1.2.
- [Release notes](https://github.com/egoist/tsup/releases)
- [Changelog](https://github.com/egoist/tsup/blob/dev/.releaserc.json)
- [Commits](https://github.com/egoist/tsup/compare/v8.1.0...v8.1.2)

---
updated-dependencies:
- dependency-name: tsup
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-19 09:28:52 +02:00
Brainslug
3aef9bbc48 SDK Core Field type checking fails (#21089)
* updated relational fields to use the complete schema

* prettier

* Create few-horses-join.md

* Revert "updated relational fields to use the complete schema"

This reverts commit ac839c0ec8.

* Added type test for the core collection fallback

* fixed core collection fallback

* QoL set default schema for core collections

* prettier

* removed docs reference

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-07-16 17:01:25 -04:00
Brainslug
844d4e7f33 v10.13.0 (#22903) 2024-07-02 17:38:58 +02:00
Brainslug
3c1076654b SDK Custom Storage async setters (#22672)
* colored a bunch of functions with async

* Add changeset

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-06-14 15:12:01 -04:00
dependabot[bot]
2333f812b3 Bump tsup from 8.0.2 to 8.1.0 (#22678)
Bumps [tsup](https://github.com/egoist/tsup) from 8.0.2 to 8.1.0.
- [Release notes](https://github.com/egoist/tsup/releases)
- [Changelog](https://github.com/egoist/tsup/blob/dev/.releaserc.json)
- [Commits](https://github.com/egoist/tsup/compare/v8.0.2...v8.1.0)

---
updated-dependencies:
- dependency-name: tsup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-06 14:53:54 +02:00
Brainslug
e469b49583 release 10.12 (#22652) 2024-06-04 17:34:36 +02:00
Brainslug
62db7f4f15 Implement missing batch functions SDK (#22564)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-29 21:51:57 +00:00
Brainslug
c401a4ea99 Implemented random string command in the SDK (#22604)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-29 18:25:39 +00:00
Niklas Postulart
9b6b00534e Fix sdk api endpoint for registration verification (#22599)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-29 07:43:06 +00:00
Brainslug
b7794870f5 release update (#22594) 2024-05-28 17:01:27 +00:00
Daniel Biegler
78db52949c Add support for custom URLs for email verification (#22565)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-28 15:30:41 +00:00
Brainslug
7b212f8f1e v10.11.1 (#22537) 2024-05-21 16:51:19 +00:00
Brainslug
f5b95ca222 Fix running SDK in dev mode (#22432) 2024-05-08 13:43:34 +00:00
Rijk van Zanten
0d6c6b90b0 v10.11.0 2024-05-07 18:01:38 -04:00
Daniel Biegler
c893b9fa65 Add public registration (#22125)
* WIP: add new register dummy-route

* fix notice on register route

* WIP register form

* WIP: registering ui and controller for testing

* fix lint ordering problem

* wip: users service

* add migration, initial style for fields in settings

* redo how emails will be filtered

* WIP add filter in the register handler

* conditionally render register link depending on settings

* WIP: add email validation

* wip add email sending

* make clicking the email link work

* rm console log

* update controller

* dont send emails for existing emails

* add translation

* only show register link when unauthenticated

* add different redirects

* only allow selecting non-admin roles

* redirect to users page

* update translation

* move logic from controller to usersservice

* rm remnant of logic from controller

* add stall time to registration

* update translation

* rm comments

* rm unused var

* add changeset

* update translation for success

* remove sso related stuff from registration

* also allow setting first and last name

* update error check

* add @directus/errors to app

* replace error strings with enum

* rename to public_registration

* rename to public_registration_verify_email

* add notes to fields

* add types package to changeset

* dont stall if no work is being done

* allow null-role and resending of reg. email

* add public registration env vars, rm RATE_LIMITER_GLOBAL_STORE

RATE_LIMITER_GLOBAL_STORE wasnt being used. Lets just stick to RATE_LIMITER_STORE for all rate limiters. TODO: also remove from docs!

* use ratelimiter for registration, use stall time env var

* add registration limiter docs, rm global store variable from docs

* update changeset

* add ignore-notice

Co-authored-by: Hannes Küttner <4376726+hanneskuettner@users.noreply.github.com>

* use and document new `EMAIL_VERIFICATION_TOKEN_TTL`, also doc `REGISTER_STALL_TIME`

* change variable name

Co-authored-by: ian <licitdev@gmail.com>

* apply variable rename to usage

* change backticks to single quote

Co-authored-by: ian <licitdev@gmail.com>

* inline variables

* add fields to server info, update types

- The other ratelimiters also expose points and duration, done
- Add `public_registration_verify_email` so that we can render different success messages

* tiny wording tweak of registration mail

* add new user status 'unverified' and check for it

* add unverified status translation

* decouple email verification and validation

* enable register rate limiter by default and up its config

* add autocomplete=new-password on the registration form

* added sdk functions

* add gql query for new fields

* added register api reference

* updated verify sdk function name

* added reference block for email verify endpoint

* updated reference examples

* WIP: add gql resolvers

* add ratelimiter to mutation

* remove ratelimiter registration point+duration info

* rm points and duration from gql

* Update docs/reference/system/users.md

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

---------

Co-authored-by: Hannes Küttner <4376726+hanneskuettner@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-07 23:20:24 +02:00
Pascal Jufer
537d7f1e36 Revert "Consolidate content versioning (#22227)" (#22412)
This reverts commit 5a258dd406.
2024-05-07 17:25:19 +08:00
ian
5a258dd406 Consolidate content versioning (#22227)
* Add migration

* Use the new delta field

* Add cast-json flag

* Fix typing

* Fetch existing deltas if version created during migration

* Add changeset

* Add version delta field into sdk schema
2024-05-06 21:02:23 +02:00
Brainslug
6bacead457 [SDK] Fix inferred partial field types, when using _and/_or filters in queries (#22288)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-03 15:28:00 +00:00
Pascal Jufer
cf83f33939 Patch Tuesday 🐸 (Light Edition) (#22376) 2024-05-03 11:19:23 +02:00
Pascal Jufer
160b982928 Patch Tuesday 🐸 (#22063)
Co-authored-by: Hannes Küttner <4376726+hanneskuettner@users.noreply.github.com>
2024-04-30 10:49:20 +02:00
Pascal Jufer
721de01992 Make SDK realtime composable compatible with React Native (#22105)
* Make SDK realtime compatible with React Native

* Add changeset

* Explicit toString convertion for URL

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* Make it a major change

* updated realtime strict auth helper

* prettier

* Update sdk/src/realtime/composable.ts

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* updated comment

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
2024-04-25 18:49:59 +00:00
Brainslug
a182087dd0 [SDK] Added "_icontains" string operator (#22309) 2024-04-24 17:59:40 +02:00
Miguel Angel Echeverri Quiroz
157a4c4b79 22269 singleton gql response type (#22270)
* added singleton response type for graphql queries

* Add changeset

* sign cla

* Updated naming

---------

Co-authored-by: Brainslug <tim@brainslug.nl>
2024-04-23 10:54:50 +00:00
Brainslug
d37a16a31e SDK TypeScript 5.4 compatibility (#22211)
* replaced "a few" type constraints

* updated lockfile

* prettier

* Fixed fields infer issue

* Added schema fallback tests

* Create soft-pigs-applaud.md
2024-04-18 09:16:31 -04:00
Rijk van Zanten
bd4b8b5949 v10.10.5 2024-04-03 15:47:12 -04:00
Brainslug
988bc8762e [App] Migrate authentication and refreshing to the SDK (#21938)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-03-31 14:28:11 +02:00
Daniel Biegler
9900957f9e Update copyright year (#22011)
* Update readme.md

* also update license and sdk-license
2024-03-28 13:07:33 -04:00
Brainslug
5650cdd33c Hiding non session SSO providers from the app (#21874) 2024-03-25 11:55:53 +01:00
Brainslug
545c381a6a SDK websocket handshake messages not emitted (#21956)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-03-25 10:38:20 +00:00
Brainslug
1398692c1c SDK relational field type validation fails (#21803)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-03-15 15:23:59 +00:00
Brainslug
75c6e2b092 SDK Custom Endpoint Helper (#21850)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-03-14 17:19:13 +01:00
daedalus
7bea23b7f5 Add the ability to configure the error, bug and feature URLs (#21174)
* add report url fields

* update field template to be agnostic

* add changeset

* various fixes

* rename handler to load path level

* add translations

* updated docs

* fix tests

* add placeholder support for system-display-template

* refactor project to report and move to their own settings section

* example urls should be more concrete

Co-Authored-By: Pascal Jufer <5363448+paescuj@users.noreply.github.com>

* move hardcoded default report urls to constants

Co-Authored-By: Pascal Jufer <5363448+paescuj@users.noreply.github.com>

* Make nav reactive, so URL changes are immediate

* change order of report urls

* change icon to feedback

* move composable to top level

* remove ref, use from prop

* Update .changeset/tender-timers-develop.md

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* rm select_a_collection_or_tree_fields translation key

---------

Co-authored-by: Pascal Jufer <5363448+paescuj@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
2024-03-13 15:04:25 +01:00
Rijk van Zanten
c09ebbacd4 v10.10.3 2024-03-11 17:29:21 -04:00
Pascal Jufer
09a6775746 Fix logout SDK auth composable to include auth mode (#21793)
* Fix logout of SDK auth composable to include mode

* Add changeset

* Update sdk/src/auth/composable.ts

* stricter type in refresh

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
2024-03-10 18:59:06 +01:00
Rijk van Zanten
9d88df621f v10.10.0 2024-03-05 16:45:58 -05:00
Brainslug
285f942393 Fixed Incorrect docstring for readGraphqlSdl (#21697)
* Fixed incorrect docblock

* Update sdk/src/rest/commands/server/graphql.ts

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-03-05 15:06:26 +00:00
Azri Kahar
a9b628baa6 Deep merge relational fields in content versions (#21386)
* deep merge content version saves

* update content version graphql

* moved version merging to its own middleware

* added query param to request the unmodified version

* make sure the App uses the raw version format

* prettier

* removed unused middleware

* initial recursive version merging

* use loop instead of spreading

* cleanup

* accept boolean strings as versionRaw query value

* added middleware sanity check

* initial mergeVersionsRaw tests

* initial mergeVersionsRaw tests

* started merge tests

* initial m2o tests

* initial tests

* fixed logic for initial tests

* prettier

* more tests

* fixed brought up by tests

* first level relational tests

* testing nested relations

* fixed recursiveness

* more prettier

* namin consistency

* the prettiest

* Create chilled-icons-provide.md

* Add breaking change note

* updated graphql for version merging

* prettier

* added new sdk query param

* implemented judds feedback

* Enable singleton

* Slightly reformat/reword breaking change

Thanks @w0kyj!

* Clarify comment about primitive type substitution

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

* replaced for in loops

* applied isObject check

* prettier

* Short issue link

* Update changeset

* added sso guide warning

* pretttier

* update sso guide instead of warning

* prettier

* reverted SSO guide from other PR, nothing to see here

* Added cloneDeep to be safe

* removed snake case

---------

Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
2024-03-04 11:57:51 -05:00
Brainslug
77d73398f1 Session Based Authentication (#21239)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-03-04 01:59:45 +01:00
Brainslug
838c841a65 Add CJS exports for system-data package (#21614)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-02-29 02:13:29 +00:00
dependabot[bot]
09baade4e9 Bump vitest from 1.3.0 to 1.3.1 (#21559)
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v1.3.1/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-26 11:28:04 +01:00
dependabot[bot]
01d3b3f524 Bump vitest from 1.2.2 to 1.3.0 (#21468)
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 1.2.2 to 1.3.0.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v1.3.0/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-19 09:59:45 +01:00
Rijk van Zanten
bad22bf1ff v10.9.2 2024-02-14 11:21:02 -05:00
Brainslug
2c4883ae42 Filter system collections based on the system property (#21197)
Co-authored-by: Jan Arends <jan.arends@mailbox.org>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-02-14 14:40:57 +01:00
dependabot[bot]
42c3d83b14 Bump tsup from 8.0.1 to 8.0.2 (#21410)
Bumps [tsup](https://github.com/egoist/tsup) from 8.0.1 to 8.0.2.
- [Release notes](https://github.com/egoist/tsup/releases)
- [Changelog](https://github.com/egoist/tsup/blob/dev/.releaserc.json)
- [Commits](https://github.com/egoist/tsup/compare/v8.0.1...v8.0.2)

---
updated-dependencies:
- dependency-name: tsup
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-13 09:07:07 +01:00
Rijk van Zanten
1136c20628 Support video files in public background (#21291)
* Return type information about public background

* Render public backgrounds as video as per type

* Don't authenticate the files service

* Add changeset

* Fix css layering

* Update types

* Update assets.ts

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2024-02-09 14:09:45 +01:00
Pascal Jufer
56b809abe4 Fix item permissions check (#21152)
* Introduce permissions API endpoint to fix item permissions check

* Add changeset

* Revision

- Wrap API response in 'data' prop
- Split-up usePermissions composables & add tests
- Rework all permission checks

* Remove obsolete test

* Revision 2

- Singleton support
- Bug fixes
- Use permission composables wherever applicable
- Complete tests

* Update mock path in archive test

* Move remaining checks to usePermissions composables

* Update docs

* Lint & spelling fix

* Add SDK method

* Require authentication for getItemPermissions service

* Add blackbox tests

* Use multi-line if

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

* Format JSON code blocks

* Use correct type for computed values

Co-authored-by: Brainslug <tim@brainslug.nl>

* More explicit check & add comments

---------

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
2024-02-07 21:50:35 +01:00