@domain-first/project-structure 8.11.0 → 8.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -276,7 +276,7 @@ With Next.js, a new page also gets its App Router route, `app/admin/panel/users/
276
276
 
277
277
  ### How to scaffold Svelte modules
278
278
 
279
- With `frontend.svelte` configured (Svelte or SvelteKit), run `npx df-svelte`: the same pages, widgets, UI-kit components and shared hooks as `df-react`, written as Svelte 5 components with runes into `presentation/svelte`. Shared hooks and widget UI models are `.svelte.ts` modules, components export their props types from `<script lang="ts" module>`, and stories follow `@storybook/svelte-vite` or `@storybook/sveltekit`.
279
+ With `frontend.svelte` configured (Svelte or SvelteKit), run `npx df-svelte`: the same pages, widgets and UI-kit components as `df-react`, written as Svelte 5 components with runes into `presentation/svelte`. Svelte has no hooks: reusable logic is a shared model, `shared/model/create-<name>.svelte.ts`, and a widget maps its props to UI props with `toUIProps`, called in its markup (`<OrdersWidgetUI {...toUIProps()} />`), so the UI follows props and state. Components export their props types from `<script lang="ts" module>`, and stories follow `@storybook/svelte-vite` or `@storybook/sveltekit`.
280
280
 
281
281
  ```text
282
282
  admin/panel/users → pages/admin/panel/admin-panel-users-page.svelte (AdminPanelUsersPage)