gs2-studio-dsl 2026.11.22 → 2026.12.2

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/LLM.md CHANGED
@@ -112,7 +112,17 @@ MUST:
112
112
  changes the prefix, see [Item options](REFERENCE.md#item-options)). Each entry also gives what the item shows: a
113
113
  `templateLabel`'s `template` (per locale when it has several), the `fallbackText` shown while its value is unset, and
114
114
  the author's `description`. Reuse a listed item instead of adding one that shows the same, and give new items
115
- unlisted class names: a listed one replaces that item.
115
+ unlisted class names: a listed one replaces that item. A new item may show the type's published properties too, as
116
+ their `bindingHint` in `propertyDetails` allows ([UI components](REFERENCE.md#ui-components)).
117
+ - A UI component, a delegated action, a `UiCond.rowElement` or a `UiSource.rowProp` on a dependency's type uses your overlay of that type when
118
+ you declare one, and otherwise one overlay they all share. They never fail with `duplicateOverlaySource`, which is two
119
+ `defineOverlayDomainType` of the same type. When you declare an overlay, give `defineUiComponent` its handle.
120
+ - Write the screens' fixed text in the DSL while you write their UI: headings, button captions and words around values
121
+ that the game shows in the player's language are `UiItem.templateLabel`s you add (no placeholders and `{}` sources
122
+ for fixed text, [Localized templates](REFERENCE.md#localized-templates)), and a dependency ships them only where its
123
+ surface lists one. Put each on a type whose `<Type>Handler` or `<Type>ListItemHandler` sits above that text in the
124
+ scene, such as the type of the row it heads. A `<Type>ListHandler` does not count: a heading over a list goes on the
125
+ type of a `<Type>Handler` above the list. Text that no such Handler sits above is the game's own.
116
126
  - Give a single-entry type's row the type name in lower case as its id (`GameSettings` → `gamesettings`). The same id
117
127
  is the row its Handler holds and the row id to pass to `UiSource.rowProp`. For a dependency's type, read it from
118
128
  `types.<Type>.singleEntryRowId` of the surface, also when the surface lists no row (a player's own data that nobody
package/README.md CHANGED
@@ -9,11 +9,11 @@ type-check; use these declarations in your editor and with `tsc --noEmit`.
9
9
  - For LLM coding agents: [LLM.md](LLM.md)
10
10
 
11
11
  ```sh
12
- npm install --save-dev gs2-studio-dsl@2026.11.22
12
+ npm install --save-dev gs2-studio-dsl@2026.12.2
13
13
  ```
14
14
 
15
15
  The version is the GS2 Studio version whose DSL these declarations describe: a DSL written
16
- against gs2-studio-dsl 2026.11.22 builds with GS2 Studio 2026.11.22 and later. Install the version that
16
+ against gs2-studio-dsl 2026.12.2 builds with GS2 Studio 2026.12.2 and later. Install the version that
17
17
  matches the oldest GS2 Studio you build with.
18
18
 
19
19
  ```ts
package/REFERENCE.md CHANGED
@@ -661,7 +661,9 @@ Inherited properties are addressed by the names the dependency publishes, for ex
661
661
 
662
662
  Names in `sort`, `compositeKey`, `targetProperty` and a transform argument's `propertyName` resolve against the
663
663
  overlay's own properties and the published ones; `tsc` refuses a name that resolves to neither, and so does `dsl build`
664
- (`unresolvedPropertySlot`). Two overlays of the same source type fail with `duplicateOverlaySource`.
664
+ (`unresolvedPropertySlot`). Two overlays of the same source type fail with `duplicateOverlaySource`. The overlay that
665
+ `defineUiComponent`, `delegatedActions`, `UiCond.rowElement` and `UiSource.rowProp` create for a dependency type is not a
666
+ second one: they use your declared overlay of the type when there is one, and share one overlay otherwise.
665
667
 
666
668
  `example-gift-sale` overlays `example-gift-shop`'s `GiftBox`, whose published `cost` is a `list<consumeAction>`. It adds
667
669
  a `price` and appends `example-inventory`'s `ConsumeItem` to `cost`, so every box costs `price` coins. Each row of the type
@@ -1199,6 +1201,12 @@ the time left until a timestamp, and `value` for a value the game formats or use
1199
1201
  apart from the table band sources of `gauge`; a condition also reads the parent row with `UiCond.rowElement` and one row
1200
1202
  of any type with `UiSource.rowProp`.
1201
1203
 
1204
+ On a dependency's type, `UiSource.prop` reads the properties its surface publishes as well as those an overlay adds.
1205
+ Whether the client holds a value follows each property's `bindingHint` (`types.<Type>.propertyDetails` of the
1206
+ surface), as for your own properties ([Property modifiers](#property-modifiers)): an `assetDelivery` or `userData`
1207
+ value reaches the client, a `masterData` value does too unless code generation warns that it cannot read it back from
1208
+ the GS2 resource that holds it, and an item that shows a property with hint `none` shows its default.
1209
+
1202
1210
  `UiCond` builds the conditions of `UiItem.activeToggle` and `UiItem.interactable`:
1203
1211
 
1204
1212
  | Member | Holds when |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-studio-dsl",
3
- "version": "2026.11.22",
3
+ "version": "2026.12.2",
4
4
  "description": "Type definitions for the GS2 Studio package DSL.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {