TyphonJS
Join the TyphonJS server to ask questions!
Join ServerTyphonJS
Join the community to ask questions about TyphonJS and get answers from other members.
Join ServerChannels
Release: `svelte-standard` 0.0.20 - More Svelte sidebar apps
svelte-standard 0.0.19 the latest release further extends FVTTSidebarControl allowing you to replace an existing Foundry sidebar app w/ a Svelte powered sidebar and also the ability to remove a stock Foundry sidebar app from the core Sidebar app. The replacement aspect was requested and I had a good idea that it would be useful. Please do report any problems using this new API. Replacing existing sidebars will require you to augment required methods in the given core sidebar app being replaced. Use FVTTSidebarControl.wait().then() to augment as necessary. A very basic and incomplete example of augmenting combat tracker replacement is in the sample code below.
There is no new developer overview video as the essentials are more or less the same except there are new FVTTSidebarControl.remove and FVTTSidebarControl.replace methods. Do feel free to checkout the last update video though: https://www.youtube.com/watch?v=otmXoOtp7NQ
Basic usage:...Release: `svelte-standard` 0.0.19 - Svelte sidebar applications
svelte-standard fixing the ProseMirror library incompatibility for a corner case, but more exciting is a new API to add Svelte powered sidebar applications to the main Foundry sidebar easily and with lots of options that are all data defined.
You mainly just have to provide a component for the sidebar and the provided API does the rest.
I have made a video overview of this feature. I'll attach it to this post when it finishes processing. There is no new demo in essential-svelte-esm, but the video should give you all the info needed to get started. ...Sidebar Tab Application
Svelte error when instantiating a component that wasn't bundled in the same module
Backspace doesn't work on TJSProseMirror components if content is blank when edit button is clicked

Why is this update causing a duplicate Actor sheet to be opened?
<i class="fas fa-lock" on:click="{toggleLock}" />
<i class="fas fa-lock" on:click="{toggleLock}" />
TJSProseMirror for arrays?
fieldName={system.rulesElement[${idx}].message}...Lancer system & TRL
Why is this element not reactive?
<TJSSelect options="{manaTypes}" bind:value='{$doc.system.manaType}' />
<TJSSelect options="{manaTypes}" bind:value='{$doc.system.manaType}' />
$doc comes from context:...How does essential-esm-svelte App Position work?
Can I mix and match standard foundry views with Svelte components?
Is there a multi-select component?
How to reset filter for Embedded collection?
type of item, rather than via a text field.
My tabs are two separate components. So I have registered the typeFilter in both
Comp1 (shows all items)...Can't seem to write item values to the item database?
For my next trick, I would like to create an inventory list of items from the character
Release: TRL 0.0.22 / `svelte-standard` 0.0.18 (codename: Echo)
container queries. While this component TJSColordPicker is in svelte-standard the main export is currently commented out. I am submitting a PR tomorrow to add container query support to Svelte that I have been refining since December. It hopefully will make it through the review process and I'll post an update to TRL / svelte-standard w/ the mainline Svelte release supporting it. The color picker component made it clear that proper keyboard navigation was lacking in TRL. It's completely lacking in core Foundry; in fact you need to redefine the core key binding for the tab key from Cycle Canvas View to be able to navigate by keyboard. A comprehensive system for advanced focus management and focus trapping in applications and TJSContextMenu / TJSMenu are now enabled by default; several new options in SvelteApplication to control focus management: focusAuto, focusKeep, focusTrap with auto & trap set to true. All relevant components from svelte-standard have key activation baked into the components. Any components that needed to be brought up to solid release parity like TJSContextMenu are now complete. CSS variables were overhauled and there is now increased cohesion between all components for focus-visible / keyboard navigation with default variables that can broadly control the look and feel across your entire package. Major refactoring to TJSDialog now makes it super flexible and powerful and I'll certainly expand on the options available now.
Relevant Code Changes (these are required):...
How to integrate TyphonJS Actor sheet with 3rd party modules?
Tokenizer https://github.com/MrPrimate/tokenizer.
I'm not sure if this is a TyphonJS / Svelte question or a more basic Foundry system dev question. What I'm trying to do is to get an Actor profile image similar to the default one in D&D 5e system, which can then support 3rd party modules that allow customisation of the profile. I'm not sure what approach to take for this, so some guidance would be much appreciated!...How to include static assets?
/assets folder to the project root, and referring to it like this:
<img src="/assets/logo.webp" />
<img src="/assets/logo.webp" />

How to get dev env Hot Module Reload working?
yarn dev but it opens in a browser window and I therefor can't login as gamemaster because I'm already logged in to the main app on that account.
I created a second user also with gamemaster privs and that then seems to enable HMR in the browser, but not in the Desktop App....Is there a way to get Pug templates working?
pug to be installed. I've done that but VsCode seems to be formatting pug markup incorrectly.
Pug is an indent-senstive format but it's taking this:
```
<ApplicationShell bind:elementRoot>
.flexcol...