SidebarControl musings
TJS ChatMessage doesn't include the standard chat header
[Discussion] template-svelte-ts
template-svelte-ts
.Get dynamic application width
Minimal.... Nah Maximal FVTT types for TRL
#runtime/types/fvtt
.Application
class things should be firmly defined....Can't open more than one character sheet at a time
TRL `0.2.0-next.X` Update Marathon
0.2.0-next.2
and beyond. The 0.2.x
release series of TRL is all about hardening & streamlining the API taking a solid 2nd+ pass over everything. It represents "peak TRL" for Svelte 4.
My goal is to ship 0.2.0
on Wednesday. It's API / feature complete, but receiving any early feedback and learning about any problems you have in updating will help me create a better official release video where I can mention aspects that will help others update. If you have time before Wednesday to start your effort now is appreciated. If you are having problems let me know here or get in contact directly. I can help out with a PR if necessary....Is there any way to avoid 'game' is not defined lint error for vite build?
7:09:30 PM [vite-plugin-svelte] /Users/noeldacosta/code/foundryvtt-final-fantasy/src/components/organisms/item/shared/EffectsTab.svelte:172:768 'game' is not defined
170:
7:09:30 PM [vite-plugin-svelte] /Users/noeldacosta/code/foundryvtt-final-fantasy/src/components/organisms/item/shared/EffectsTab.svelte:172:768 'game' is not defined
170:
Injecting .svelte code into existing Foundry Document
.svelte
file into existing html? In my existing code, I was able to use
html.find('.sub-nav:not(.sub-sub-nav)').append('<a data-tab="subsystems" class="">Subsystems</a>')
to add the subsystems tab in that top block, and I have an append statement prepped to get the rest of my html in the appropriate place as shown below:
html.find('.container').append('<div class="tab" data-tab="subsystems" data-region="subsystems"> CODE HERE </div>')
...Failed to resolve module specifier "#runtime/svelte/application"
Discussion: TRL 0.2.0-next.1 Pre-release
0.2.0-next.1
release to set expectations and address concerns. When released I recommend as many folks to upgrade as soon as possible to get a better testing pool. Like all of the TRL releases even the first "beta" release will be rock solid and production ready. The further next.X
series of releases will mostly be refining types particularly new Foundry core types and other odds and ends. All of the major refactoring of sub-path exports will be present from the initial release as well as various fixes reported since v12
dropped and many other useful enhancements to TRL.
The discussion below relates to 0.2.0
update concerns and not TRL 0.1.x
. ...TJSGameSettings doesn't respect `onChange` option?
Derived Store - To use or not to use
Separate components unintentionally updating one another
How can I respond to the _onDrop event in the shell?
TJSGameSettings getStore not saving properly?
game.settings.get
that the setting has been "updated"
Then I refresh and the changes made disappear. What gives?...ProseMirror UUID discussion
TJSProseMirror
component. The actual editor and such is the Foundry implementation underneath. There are additional plugins and such added, but it's not clear yet if what you are doing in regard to interaction would hit any of the aspects added by TJSProseMirror
Can you more specifically outline the problem that you are seeing and perhaps put some console.log
statements in foundry-esm.js
to verify the UUID being parsed.
The drag and drop of documents into the editor when active should be something completely controlled by the underlying Foundry implementation....TJSDocumentProperty Prototype
TJSDocument
instance that allows dynamic store access to property accessors. TJSDocumentProperty
is a complete Writable
instance allowing update
to be used when more complex modification is required for the underlying property; IE pushing to an array or modifying a nested object.
I included TJSDocumentProperty
as an attachment to this post. Also is a demo Svelte component that can be copied to BasicDocAppShell
in essential-svelte-esm
. This demo is what is shown in the video preview.
Note: That I'm using the internal 0.2.0
pre-release code and likely there are modifications necessary to get this to work with 0.1.3
which likely has slightly different context callback data. Also note that the core v12 changes for renderContext
are not normalized yet. TJSDocument
will receive a facelift for the 0.2.0
release and quite likely a solution related to TJSDocumentProperty
will be available built-in to TJSDocument
...TinyTJS Enriched options
What's the best way to control default header items in a TJS application window?