* install app auth
* add service to handle auth
* add openid handling to general app
* move props to constructor
* update default api url to https
* add support for adjusting umbracoUrl from outside
* use origin url for redirect if empty from env
* merge origin/main
* merge origin/main
* add redirect uri support
* only check auth on firstUpdated
* merge origin/main
* fix redirect_uri
* listen for auth-success events before anything else
* save current route to restore after login
* set token function for all OpenAPI requests
* include credentials after login
* update openapi-typescript-codegen
* generate new models with bugfixes for CancelablePromise and request
* remove auth-success event
* wait with fetchServiceConfiguration until we actually need to query the server
* revert change where service configuration was delayed
* use LocalStorageBackend to save/restore token state
* improve documentation
* cleanup todos
* improve docs
* update documentation and set everything to private fields
* remove undefined
* add a token to provide server url
* add more docs
* provide the base url of the server through a token
* add more docs
* fix import
* allow to override the backoffice base url through a property
* use private modifier
* duplicate login image
* make generic error element to use as error page
* check for initialisation errors and show error page if necessary
* rename class to UmbAuthFlow
* control the notification manually with runtime status call
* add styling
* add stack to problemdetails
* forward all errors
* support problemdetails rendering
* allow passthrough without a token
* move error logic to function
* add support for BOOT_FAILED and default errors
* rename background img
* remove false character
* check for isMocking to simplify auth flow
* add support for generic ApiErrors
* make sure all errors from api controllers are ApiError or CancelError to be able to fine-tune the handling of them
* remove unused legacy method
* show notifications (for now) after session expiration
* break early on CancelErrors
* revert options argument
* remove login token after a 401 is detected
* catch api errors
* prefix class with Umb
* throw errors instead of using ProblemDetailsModel
* add TODO
* add TODO
---------
Co-authored-by: Mads Rasmussen <madsr@hey.com>
* update vite to 4.3.1
* re-export router-slot/model as types to avoid warning in vite
* add named type exports to avoid typescript + vite + esm funny business (warnings)
---------
Co-authored-by: Mads Rasmussen <madsr@hey.com>
* create component
* import styles correctly
* import component
* show code editor element on the template workspace
* wire input event
* sync code property with editor value
* move workers to a separate file
* create class for code editor
* add very simple insert method
* focus after insert
* make scroll bar bit nicer
* add markdown example and fancier template
* make insert work with multiple cursors and selections
* now really make it works with selections and multiple cursors
* map options
* add hack to fix the jumpy cursor
* Observe themes
* add own model for range, return array of ranges from find
* add backoffice-fit dark mode
* add theme story
* add themes folder
* add new methods
insertAtPosition
getValueInRange
select
* add documentation to editor class
* add docs
* rename file
* rename donut files
* cleanup
* add some more imports
* test heap size fix
* heap error test 2
* fix imports
* node fail error test
* rename
---------
Co-authored-by: Mads Rasmussen <madsr@hey.com>
* Input Color Picker Stories
* Set autodocs to true
* Write story as CSF3 format
* Bit of JSDoc to give some description for autodocs
* Show to use a MDX to override the autodocs generated content - may want to be more specific or show/use different DocBlocks
* umb-input-checkbox-list
* Adds codeblock stories
* Bit of tidy up
* Rewrite umb-body-layout to CSF & move to Components folder
* Group into Components/Inputs
* Culture Select
* Document Picker
* Eye Dropper
* Fix error
* umb-input-language-picker
* input-media-picker
* Empty State
* NOTE: Nothing renders and does not seem to be used anywhere?
* input-multi-url-picker
* input-number-range
* input-radio-button-list
Unable to set selected & value
* input-section-stories
Uses the argTypes to give better controls to play around with story
* input-slider
* Rename to be .element.ts like other files as opposed to -element.ts
* input-toggle stories
* input-user
* input-userr-group stories
* ref-property-editor-ui.stories updated & rewritten to CSF3 style
* Rewrite table stories to CSF3 format and add new story
* tooltip-menu stories
* Fix error with wrong type for ToolTip Menu Item
* Update previous MDX files to use correct import for new doc blocks
* umb-tree story does not display anything
* Tree Item stories
* Stubs variant-selector stories but nothing rendered
* variantable-property stories stub
* export all manifest from each area
* provide document stores + import document manifests
* format
* Update package-lock.json
---------
Co-authored-by: Mads Rasmussen <madsr@hey.com>
* new api models
* use new PackageResource
* do not error out on missing default exports (esmodules auto-execute)
* do not check for js extensions (they might have been registered on the client without a js file)
* prepend the api baseurl to any relataive server JS dependencies
* ignore tsbuildinfo
* create base file for tsconfig
* extend from base config and optimise include/exclude paths
* install rollup plugin to handle json files
* use plugin to bundle json files
* call script for cms builds that builds libs
* add rollup config to utils lib
* add a context token to the extension registry instance itself and provide it through BackofficeElement
* add rollup node resolve
* add node resolve
* only include element mixin in element library
* add error description to module load error
* add types to UmbExtensionRegistry token
* set UmbNotificationService as string in its token to avoid minification
* correct comment
* reverse order of checks
* add host to server extensions and support life-cycle check
* add imports
* use lit rather than lit-html
* correct comment
* add PackageManifestModel
* add import
* run libs build for cms
* revert reorder
* use string name for NotificationContext token
* make alias public readonly of UmbContextToken
* remove TODO
* use UmbContextToken::toString() for all stores
* use string alias for contexts
* move default data so we avoid importing a big lit library just to get default data interface
* add rollup to two extra libraries
* make sure we build uui and lit into our libraries for the few cases we import something
* add lockfile
* add separate options for .js files
* add function to install types of module
* add types output
* remove unused tsconfig-base file for now
* update to Node 18 (latest LTS) and add .nvmrc for CLI instructions
* update vite to latest minor
* update github workflows to Node 18.x
---------
Co-authored-by: Mads Rasmussen <madsr@hey.com>
* sb@next upgrade --prerelease
Run the storybook upgrade command to get 7.0.0 beta 53 - From the community Discord to try & get MDX code syntax working
* Storybook did not boot due to duplicate story IDs
Fix stories that had duplicate IDs - clearly copy/paste error
* Convert storybook.js to TypeScript
* WIP in trying to get the MDX files happy & working
* fresh package lock file. It fixes the js error with syntax highlighting in mdx files
* add code language to examples
* remove .stories from mdx files. It can cause problems
* story store is now the default
* Put the content of the ContextAPI MDX back & update codefences with typescript lang
* Put GettingStarted.mdx content back to include links
* Rename to .ts file extension
* Update MDX codefences to use typescript lang
* Fix order of stories and don't auto generate docs for every story - its tooooo much
* Fixup links to other MDX docs pages from Getting Started
---------
Co-authored-by: Mads Rasmussen <madsr@hey.com>