Commit Graph

26 Commits

Author SHA1 Message Date
Niels Lyngsø
bf6cd22f22 move structure manager (#677)
* move structure helpers

* refactor usage of document type repository

* lint fixes
2023-04-28 13:33:32 +02:00
Mads Rasmussen
95167d569e implement UmbId util 2023-04-28 09:21:12 +02:00
Jacob Overgaard
796533ff11 Refactor libs into @umbraco-cms/backoffice/* (#608)
* merge libs rollup configs to one rollup

* move css from libs to src/core

* run rollup on cms build

* move test-utils to /utils folder

* move css to src/core

* mark @umbraco-cms/backoffice as external when building for CMS

* rename all models to include @umbraco-cms/backoffice in their path to allow us to publish as a single module

* rename all imports to @umbraco-cms/backoffice/*

* rename events to umb-events to avoid rollup error of protected module name(?)

* test that libs can build

* move css to src/core

* move umb-lit-element and modal elements to src/core

* move some modal interfaces back to libs/modal

* move the icon store into src/core since it is very localized to the backoffice

* comment out build:libs for now since Github runs out of memory

* rename to match tsconfig alias

* add package.json to libs

* only make libs for lib folders

* turn off emit for typescript since we are handling types for libs separately

* build libs locally

* add script to move libs to final destination with some transform

* move libs after build

* move package.json to dist folder first (so we can publish from there)

* remove inline comments

* ensure the outputDir exists

* Remove re-export of extensions-registry library from models library

* move to individual files to avoid circular imports

* check if outputDir exists before trying to create it

* write transforms first in dist file and then copy the file to outputDir

* ensure all umbraco types are external

* copy information from main package.json file
2023-03-21 11:41:06 +01:00
Jacob Overgaard
6dc4c32e6b add rollup to notification lib 2023-03-13 13:51:36 +01:00
Jacob Overgaard
d506a627e4 move notification default layout to src/core 2023-03-13 13:51:27 +01:00
Jacob Overgaard
86b6725aa4 Merge remote-tracking branch 'origin/main' into feature/slimmer-libs 2023-03-13 10:20:17 +01:00
Niels Lyngsø
b8ae10205a lint fixes 2023-03-10 10:11:20 +01:00
Warren Buckley
319d7a7c99 Add Stories for the Shared Components folder (#555)
* 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>
2023-03-09 10:12:31 +01:00
Niels Lyngsø
fdbcf7f630 Merge remote-tracking branch 'origin/main' into docs/add-draft-concept-docs
# Conflicts:
#	src/stories/umb-element.mdx
2023-03-09 09:51:45 +01:00
Jacob Overgaard
8fd2bf910c build declarations for libraries 2023-03-07 15:31:56 +01:00
Jacob Overgaard
62f3c2d6fa Feature/server packages v2 (#574)
* 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
2023-03-02 20:29:20 +01:00
Mads Rasmussen
71c60eaa59 rename notication service to notification context 2023-03-02 08:49:07 +01:00
Mads Rasmussen
1ab4230b6b rename class 2023-03-02 08:49:07 +01:00
Mads Rasmussen
3b6161c85b rename files 2023-03-02 08:49:07 +01:00
Mads Rasmussen
1129bfb486 fix merge gone bad 2023-03-01 16:54:01 +01:00
Mads Rasmussen
2488c21d10 Merge branch 'main' into docs/add-draft-concept-docs 2023-03-01 16:47:42 +01:00
Warren Buckley
864b1e01c1 Move the WebComponent/LitElement that was inside the story file to own file
ESBuild errors was not happy it was inside a story file
2023-03-01 09:10:18 +01:00
Warren Buckley
fad80b4625 Storybook V7 Upgrade (#549)
* 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>
2023-02-24 13:53:03 +01:00
Mads Rasmussen
710f1be63b remove .stories from mdx files. It can cause problems 2023-02-23 21:28:34 +01:00
Niels Lyngsø
2407ade7d8 correct imports 2023-01-27 10:26:20 +01:00
Jacob Overgaard
b4886f7c67 revert package setup (for now) 2023-01-24 08:38:24 +01:00
Jacob Overgaard
5ef2173889 move context-provider element to element package to avoid circular dependencies 2023-01-24 08:36:07 +01:00
Jacob Overgaard
c0d30be4f0 Revert "integrate @umbraco-cms/element and @umbraco-cms/context-api due to circular dependencies"
This reverts commit e87439ff5f.
2023-01-24 08:30:18 +01:00
Jacob Overgaard
e87439ff5f integrate @umbraco-cms/element and @umbraco-cms/context-api due to circular dependencies 2023-01-23 16:24:42 +01:00
Jacob Overgaard
095337245e update module of package.json [skip ci] 2023-01-23 15:39:05 +01:00
Jacob Overgaard
107339e2a4 move notification to libs 2023-01-23 15:12:48 +01:00