Skip to content

Commit 149a86d

Browse files
committed
Remove example projects for JS and WASM targets
The commit removes outdated example projects targeting JavaScript and WebAssembly. This includes `hello-world-js`, `hello-world-wasm`, `hydration-test`, and `portfolio-js`. These removals also include corresponding build files, resources, and documentation.
1 parent 5985f61 commit 149a86d

187 files changed

Lines changed: 1060 additions & 9151 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,24 @@ summon-core/src/jvmMain/resources/static/summon-hydration.wasm
180180
storage/admin-credentials.json
181181
.gitignore
182182
.gitignore
183+
/temp_test_gen/gradle/wrapper/gradle-wrapper.properties
184+
/temp_test_gen/src/jsMain/kotlin/com/example/app/Main.kt
185+
/temp_test_gen/src/jsMain/resources/index.html
186+
/temp_test_gen/build.gradle.kts
187+
/temp_test_gen/gradle.properties
188+
/temp_test_gen/gradlew
189+
/temp_test_gen/gradlew.bat
190+
/temp_test_gen/settings.gradle.kts
191+
/temp_test_gen_ktor/app/src/commonMain/kotlin/com/example/app/App.kt
192+
/temp_test_gen_ktor/app/src/jsMain/kotlin/com/example/app/Main.kt
193+
/temp_test_gen_ktor/app/src/jsMain/resources/index.html
194+
/temp_test_gen_ktor/app/build.gradle.kts
195+
/temp_test_gen_ktor/backend/src/main/kotlin/com/example/app/Application.kt
196+
/temp_test_gen_ktor/backend/src/main/resources/application.conf
197+
/temp_test_gen_ktor/backend/build.gradle.kts
198+
/temp_test_gen_ktor/gradle/wrapper/gradle-wrapper.properties
199+
/temp_test_gen_ktor/build.gradle.kts
200+
/temp_test_gen_ktor/gradle.properties
201+
/temp_test_gen_ktor/gradlew
202+
/temp_test_gen_ktor/gradlew.bat
203+
/temp_test_gen_ktor/settings.gradle.kts

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,39 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.6.2.2] - 2026-01-07
6+
7+
### Changed
8+
9+
- **Kotlin 2.3.0** - Updated Kotlin and Kotlin Multiplatform from 2.2.0 to 2.3.0
10+
- **AtomicFU 0.30.0-beta** - Updated from 0.29.0 to fix "Unsupported API dependency types in test source sets" warning
11+
with Kotlin 2.3.0
12+
13+
### Removed
14+
15+
- **Examples Directory** - Removed the `examples/` directory; CLI-generated projects now serve as the canonical examples
16+
17+
### Dependencies
18+
19+
- **Aether** - Updated from 0.2.0.0 to 0.4.2.1
20+
- **kotlinx-datetime** - Updated from 0.6.2 to 0.7.1
21+
- **Kotlin Wrappers** - Updated from 2025.10.14 to 2025.12.11
22+
- **Chart.js** - Updated from 4.4.1 to 4.4.7
23+
- **markdown-it** - Updated from 14.0.0 to 14.1.0
24+
- **highlight.js** - Updated from 11.9.0 to 11.11.0
25+
- **Quarkus** - Updated from 3.15.7 to 3.20.4
26+
- **Ktor** - Updated from 3.3.1 to 3.3.3
27+
- **Spring Boot** - Updated from 3.5.7 to 3.5.9
28+
- **Spring Framework** - Updated from 6.2.12 to 6.2.14
29+
- **Reactor Core** - Updated from 3.7.12 to 3.7.14
30+
- **Reactor Kotlin Extensions** - Updated from 1.2.4 to 1.2.5
31+
- **GraalVM Native Image** - Updated from 0.11.2 to 0.11.3
32+
- **kaml** - Updated from 0.102.0 to 0.104.0
33+
- **commons-io** - Updated from 2.20.0 to 2.21.0
34+
- **Kotest** - Updated from 5.9.1 to 6.0.7
35+
- **jsoup** - Updated from 1.18.3 to 1.22.1
36+
- **Binary Compatibility Validator** - Updated from 0.16.3 to 0.17.0
37+
538
## [0.6.2.1] - 2025-12-28
639

740
### Fixed

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -384,14 +384,14 @@ java -jar summon-cli-0.6.2.0.jar init my-wasm-app --mode=standalone
384384
385385
```kotlin
386386
// src/wasmJsMain/kotlin/Main.kt
387-
import code.yousef.summon.annotation.Composable
388-
import code.yousef.summon.components.display.Text
389-
import code.yousef.summon.components.input.Button
390-
import code.yousef.summon.components.layout.Column
391-
import code.yousef.summon.modifier.Modifier
392-
import code.yousef.summon.runtime.wasmMain
393-
import code.yousef.summon.state.mutableStateOf
394-
import code.yousef.summon.runtime.remember
387+
import codes.yousef.summon.annotation.Composable
388+
import codes.yousef.summon.components.display.Text
389+
import codes.yousef.summon.components.input.Button
390+
import codes.yousef.summon.components.layout.Column
391+
import codes.yousef.summon.modifier.Modifier
392+
import codes.yousef.summon.runtime.wasmMain
393+
import codes.yousef.summon.state.mutableStateOf
394+
import codes.yousef.summon.runtime.remember
395395
396396
@Composable
397397
fun App() {
@@ -513,13 +513,13 @@ Summon provides production-ready Server-Side Rendering capabilities for improved
513513
### Basic SSR Usage
514514
515515
```kotlin
516-
import code.yousef.summon.annotation.Composable
517-
import code.yousef.summon.components.display.Text
518-
import code.yousef.summon.components.layout.Column
519-
import code.yousef.summon.modifier.Modifier
520-
import code.yousef.summon.runtime.PlatformRenderer
521-
import code.yousef.summon.runtime.remember
522-
import code.yousef.summon.state.mutableStateOf
516+
import codes.yousef.summon.annotation.Composable
517+
import codes.yousef.summon.components.display.Text
518+
import codes.yousef.summon.components.layout.Column
519+
import codes.yousef.summon.modifier.Modifier
520+
import codes.yousef.summon.runtime.PlatformRenderer
521+
import codes.yousef.summon.runtime.remember
522+
import codes.yousef.summon.state.mutableStateOf
523523
524524
// Create a renderer instance
525525
val renderer = PlatformRenderer()

diagnostics/src/jmh/kotlin/codes/yousef/summon/diagnostics/SSRRenderingBenchmark.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import codes.yousef.summon.components.input.Button
55
import codes.yousef.summon.components.layout.Column
66
import codes.yousef.summon.components.layout.Row
77
import codes.yousef.summon.modifier.Modifier
8+
import codes.yousef.summon.modifier.background
9+
import codes.yousef.summon.modifier.padding
810
import codes.yousef.summon.runtime.CallbackRegistry
911
import codes.yousef.summon.runtime.PlatformRenderer
1012
import codes.yousef.summon.runtime.clearPlatformRenderer

docs/api-reference/animation.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The core animation class that manages animations in the Summon framework.
2222
### Class Definition
2323

2424
```kotlin
25-
package code.yousef.summon.animation
25+
package codes.yousef.summon.animation
2626

2727
class Animation<T>(
2828
val initialValue: T,
@@ -89,7 +89,7 @@ A component that animates the appearance and disappearance of its content.
8989
### Function Definition
9090

9191
```kotlin
92-
package code.yousef.summon.animation
92+
package codes.yousef.summon.animation
9393

9494
@Composable
9595
fun AnimatedVisibility(
@@ -139,7 +139,7 @@ A component that animates between different content states.
139139
### Function Definition
140140

141141
```kotlin
142-
package code.yousef.summon.animation
142+
package codes.yousef.summon.animation
143143

144144
@Composable
145145
fun <T> AnimatedContent(
@@ -202,7 +202,7 @@ Components for creating transitions between different states.
202202
### Function Definitions
203203

204204
```kotlin
205-
package code.yousef.summon.animation
205+
package codes.yousef.summon.animation
206206

207207
// Create transitions
208208
fun <T> createTransition(initialState: T): Transition<T>
@@ -277,7 +277,7 @@ Predefined easing functions for controlling animation timing.
277277
### Constants and Functions
278278

279279
```kotlin
280-
package code.yousef.summon.animation
280+
package codes.yousef.summon.animation
281281

282282
object EasingFunctions {
283283
val Linear: EasingFunction
@@ -340,7 +340,7 @@ Modifiers for applying animations to components.
340340
### Modifier Functions
341341

342342
```kotlin
343-
package code.yousef.summon.modifier
343+
package codes.yousef.summon.modifier
344344

345345
// Animate CSS properties
346346
fun Modifier.animate(
@@ -413,7 +413,7 @@ API for defining keyframe animations.
413413
### Functions and Classes
414414

415415
```kotlin
416-
package code.yousef.summon.animation
416+
package codes.yousef.summon.animation
417417

418418
class KeyframesBuilder {
419419
fun at(percentage: Int, block: KeyframeBuilder.() -> Unit)
@@ -486,7 +486,7 @@ API for creating custom animations.
486486
### Functions
487487

488488
```kotlin
489-
package code.yousef.summon.animation
489+
package codes.yousef.summon.animation
490490

491491
// Create a custom animation
492492
fun createCustomAnimation(builder: CustomAnimationBuilder.() -> Unit): CustomAnimation
@@ -541,7 +541,7 @@ Convenient extension functions for common animation scenarios.
541541
### Extension Functions
542542

543543
```kotlin
544-
package code.yousef.summon.animation
544+
package codes.yousef.summon.animation
545545

546546
// Animate numeric properties
547547
@Composable
@@ -641,7 +641,7 @@ Utility functions and classes for working with animations.
641641
### Functions
642642

643643
```kotlin
644-
package code.yousef.summon.animation
644+
package codes.yousef.summon.animation
645645

646646
// Create animated values
647647
fun Animatable(
@@ -709,7 +709,7 @@ Advanced keyframe generation utilities.
709709
### Functions
710710

711711
```kotlin
712-
package code.yousef.summon.animation
712+
package codes.yousef.summon.animation
713713

714714
// Generate keyframes from a sequence
715715
fun generateKeyframes(

docs/api-reference/auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Authentication in Summon provides a flexible system for handling user identity v
3232
The primary class representing an authenticated session.
3333

3434
```kotlin
35-
package code.yousef.summon.security
35+
package codes.yousef.summon.security
3636

3737
interface Authentication {
3838
val principal: Principal

docs/api-reference/components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ built with type-safe styling, accessibility features, and cross-platform compati
1818

1919
## Foundation Components
2020

21-
Foundation components (package `code.yousef.summon.components.foundation`) provide theming and other low-level building
21+
Foundation components (package `codes.yousef.summon.components.foundation`) provide theming and other low-level building
2222
blocks shared across the design system.
2323

2424
### ThemeProvider
@@ -635,7 +635,7 @@ data class TabItem(
635635

636636
## Styling Components
637637

638-
Components that manage global CSS and animation styling concerns live under `code.yousef.summon.components.styles`.
638+
Components that manage global CSS and animation styling concerns live under `codes.yousef.summon.components.styles`.
639639

640640
### GlobalStyle
641641

docs/api-reference/components/display/Icon.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Icons are essential UI elements that provide visual cues and enhance user experi
1919
### Simple Icon
2020

2121
```kotlin
22-
import code.yousef.summon.components.display.Icon
23-
import code.yousef.summon.components.display.IconType
22+
import codes.yousef.summon.components.display.Icon
23+
import codes.yousef.summon.components.display.IconType
2424

2525
@Composable
2626
fun SimpleIconExample() {
@@ -36,7 +36,7 @@ fun SimpleIconExample() {
3636
### Material Design Icon
3737

3838
```kotlin
39-
import code.yousef.summon.components.display.MaterialIcon
39+
import codes.yousef.summon.components.display.MaterialIcon
4040

4141
@Composable
4242
fun MaterialIconExample() {
@@ -52,7 +52,7 @@ fun MaterialIconExample() {
5252
### SVG Icon
5353

5454
```kotlin
55-
import code.yousef.summon.components.display.SvgIcon
55+
import codes.yousef.summon.components.display.SvgIcon
5656

5757
@Composable
5858
fun SvgIconExample() {

docs/api-reference/components/display/Image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Images are fundamental visual elements in modern web applications. The Summon Im
1818
### Simple Image
1919

2020
```kotlin
21-
import code.yousef.summon.components.display.Image
21+
import codes.yousef.summon.components.display.Image
2222

2323
@Composable
2424
fun SimpleImageExample() {

docs/api-reference/components/display/TextUtils.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Typography is fundamental to good user experience. TextUtils components provide:
2020
Semantic heading components that correspond to HTML heading elements.
2121

2222
```kotlin
23-
import code.yousef.summon.components.display.*
23+
import codes.yousef.summon.components.display.*
2424

2525
@Composable
2626
fun HeadingExample() {

0 commit comments

Comments
 (0)