1584 Commits

Author SHA1 Message Date
9668f8d417
refactor(source): svg files & heroicons (#144)
* support for svg files

Support to load svg files and include them as bas64 encoded images in
the bundle.

* navbar svgs

* replace NavBar SVGs with heroicons

* layercontrol icons

* lint fix

* quest - questionmark

* plusbutton - plus

* linkeditem - elipse-vertical - link-slash

* contactinfo - envelope & phone

* avatar - arrow-up-tray

* ActionButton - link & plus

* StartEndView - calendar x2

* HeaderView - ellipse-vertical & pencil & trash

* SidebarControl - bars-3

* SearchControl - flag & magnifying-glass

* GratitudeControl - heart

* FilterControl - funnel

* AddButton - plus

* reduce test coverage requirements

* remove wrongfully commit dummy svg

* updated obsolete package.lock

* migrate more svgs from code to file, use hero icons where it seems applicable

* moved share icons to subfolder

* fixed layout

---------

Co-authored-by: Anton Tranelis <mail@antontranelis.de>
2025-02-24 14:58:31 +00:00
12fd624780
refactor(source): define more types (#149)
* define more types

* lint fixes

* update snapshot and reduce coverage

* revert role change, since it incompatible with directus
2025-02-22 16:09:38 +00:00
63e864ff81
fix delayed build (#150)
We noticed that the build was outdated and lagged behind 1 build.

Reason for this is rollup and its second config.
Solved by
https://github.com/rollup/rollup/issues/1666#issuecomment-1163091988

This could cause problems when types change
2025-02-22 15:54:34 +00:00
Max
1357a18b65
Don't crash when text field is not set (#147) 2025-02-22 15:49:50 +00:00
0ec0f13c74
refactor(source): define types and remove file-wide eslint disables (#133)
* types: define types and remove file-wide eslint disables

* reduce coverage requirement
2025-02-20 15:24:21 +00:00
Anton Tranelis
f8a0f36d54
docs(docu): update README.md (#143)
* Update README.md

* Update examples/1-basic-map/README.md

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>

---------

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2025-02-20 14:12:12 +00:00
Anton Tranelis
656fbb3ffc
refactor(source): get rid of item type (#142)
* started

* removed replaced itemType on all the places where it was used to identyfi the user profile layer

* removed unused property from NavBar

* removed unused property from AppShell

* removed userType from app state

* 3.0.60

* set version to 3.0.64 to publish package to include it in utopia-map

---------

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2025-02-20 11:04:05 +00:00
27e4282624
types for all auth related things (#135) 2025-02-20 09:45:58 +00:00
ba27c3f560
refactor(source): remove packages unused (#139)
* remove unused packages

Remove packages not in use (anymore) in the project.

* fix type
2025-02-20 09:30:23 +00:00
2d79bb464c updated to utopia-ui@3.0.64 2025-02-20 09:07:23 +00:00
Anton Tranelis
c02efb9a41
docs(source): add tags example (#131)
* added tags example

* changed page title

* updated github workflows to test new example

* fixed yaml syntax

* fixed yaml syntax

* fixed packagenames in package.json
2025-02-19 15:58:48 +01:00
e2beb712bf
refactor(source): export point type (#138)
* bind the local utopia-ui lib

To ensure the examples still work with the latest utopia-ui, it is now
bound to the current code and does no longer depend on publishing the
library first

* replaced number by uuid as item ids in examples

* remove link mechanic from workflow

* also build utopia-ui

* fix example2

for some reason this stopped working on maaster.

* export geojson point to remove this external dependency

By exporting this type another package is not needed. This is especially
important, since there are different Point definitions which are
partially incompatible.

---------

Co-authored-by: Anton Tranelis <31516529+antontranelis@users.noreply.github.com>
Co-authored-by: Anton Tranelis <mail@antontranelis.de>
2025-02-19 14:44:56 +00:00
1b5df93313
fix example2 (#137)
for some reason this stopped working on maaster.
2025-02-19 15:05:39 +01:00
feae3dc482
fix(source): type export via rollup plugin by using the correct input (#122)
* fix typeexport via rollup plugin by using the correct input

The rollup plugin dts requires a d.ts tree as input not the txs sources.

This change points the plugin into the right direction and removes the
type export hacks.

* corrected types path

apparently this was not properly adjusted accross the board when moving
the folder

* fix rollup config

properly export types

* use export * where needed

Since we now export types alongside with defintions we use the `export *
from` syntax to simplify things

* export types alongside with interfaces

export types so we can properly use them in external projects alongside
the exported function/module/...

* fix type-problems uncovered by utopia-map

When including types properly in the utopia-map several missing typings
showed up.

* fix typing

fix an inhereted type

* dummy restructure code

to properly be able to compile things we are not allowed to have unsed
parameters/props

* assigne types to category types
2025-02-19 12:05:42 +00:00
5e628d6e4d
docs: include internal types (#121)
Include internal types, not exposed.
For this purpose the typedoc plugin `typedoc-plugin-missing-exports` is
utilized,

It looks like there is trouble with the type export in general.
2025-02-18 15:04:24 +01:00
f9b079c2bf
docs: include version in the title (#123)
Include the version according to the package.json in the title of docs
page.
2025-02-18 13:17:10 +01:00
93eabedd16
docs: group by category (#124)
Groups the docs by categories and assigns all exported Components a
category (except types).
2025-02-18 11:11:06 +01:00
876d5925e0
refactor(docu): reference the docu URL in the README.md (#125)
* docs: reference the URL in the README.md

Link to the docs published on github when pushing to `main` and include
percentage badge for documentation coverage.

* corrected typo

* corrected typo
2025-02-18 10:15:14 +01:00
Max
d6c7481661
Merge pull request #78 from utopia-os/eslint-react-refresh
fix(workflow): add eslint-react-refresh
2025-02-17 18:34:59 +01:00
Maximilian Harz
a3d7fa8496 Merge main 2025-02-17 18:32:14 +01:00
Max
c38d1283e1
Merge pull request #90 from utopia-os/remove-get-value
Improves typing of items
Removes getValue because it is super hard to type and was introduced for a customisation which is not used anymore. if needed, we could have a cleaner solution to offer that functionality.
2025-02-17 18:28:15 +01:00
Maximilian Harz
83d65b0107 Fix package-lock.json 2025-02-17 18:21:45 +01:00
Maximilian Harz
8f624b90fa Make item optional 2025-02-17 18:07:01 +01:00
Maximilian Harz
10e81c38c2 Use item in TextView when given 2025-02-17 18:07:01 +01:00
Maximilian Harz
b9295128fd Add ? to item references 2025-02-17 18:07:01 +01:00
Maximilian Harz
23145b0a14 Remove unnecessary eslint disable 2025-02-17 18:07:01 +01:00
Maximilian Harz
134d2ef123 Use ?? instead of || 2025-02-17 18:07:01 +01:00
Maximilian Harz
2556d8c047 item.text is optional 2025-02-17 18:07:01 +01:00
Maximilian Harz
cb727d433d Fix paranthesis in ProfileForm 2025-02-17 18:07:01 +01:00
Maximilian Harz
aa616ed295 Refactor background style 2025-02-17 18:07:00 +01:00
Maximilian Harz
f71929b4d8 Fix paranthesis in ActionsButton 2025-02-17 18:07:00 +01:00
Maximilian Harz
0395c6393b Fix package-lock 2025-02-17 18:06:58 +01:00
Maximilian Harz
bface9c397 Lower test coverage 2025-02-17 18:05:06 +01:00
Maximilian Harz
5835a71588 Type item.gallery 2025-02-17 18:05:06 +01:00
Maximilian Harz
990f837aaf Use radash.get to support deep properties in ProfileTextView 2025-02-17 18:05:06 +01:00
Maximilian Harz
876aa65f4f Ignore any 2025-02-17 18:05:06 +01:00
Maximilian Harz
a949df25c2 Simplify conditional and fix color calculation 2025-02-17 18:05:06 +01:00
Maximilian Harz
7e326590bb Don't type api for now; re-add hasColor 2025-02-17 18:05:06 +01:00
Maximilian Harz
bc0aa25cd2 Make updateItem type partial 2025-02-17 18:05:06 +01:00
Maximilian Harz
a3acf592dd Allow item.position to be null 2025-02-17 18:05:06 +01:00
Maximilian Harz
f0a3cbada7 Hide empty avatar 2025-02-17 18:05:06 +01:00
Maximilian Harz
5846637747 Improve api type 2025-02-17 18:05:06 +01:00
Maximilian Harz
5741070854 Remove unused props and comment 2025-02-17 18:05:06 +01:00
Maximilian Harz
bbd6e2dd61 Remove unneeded props 2025-02-17 18:05:06 +01:00
Maximilian Harz
9511dc0408 Use .image as avatar 2025-02-17 18:05:06 +01:00
Maximilian Harz
d096ffe456 Fix PopupButton 2025-02-17 18:05:04 +01:00
Maximilian Harz
ea80e6e94c Use better type name for tag ids 2025-02-17 18:03:30 +01:00
Maximilian Harz
7f4594ad53 Fix functionality of ProfileTextView 2025-02-17 18:03:30 +01:00
Maximilian Harz
4316387ecb Improve typing of items, remove getValue 2025-02-17 18:03:25 +01:00
Maximilian Harz
f5b7b9267f Try to type Item and getValue (WIP) 2025-02-17 17:56:56 +01:00