@colixsystems/widget-sdk 0.315.0 → 0.315.1

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
@@ -90,7 +90,11 @@ See the design reference for the full architecture: [`docs/architecture/widget-m
90
90
 
91
91
  ## Status
92
92
 
93
- `v0.315.0` — pre-publish. The package surface (types, function names, export paths) is the v1 contract; runtime behaviour for some hooks is stubbed (each hook documents what's wired and what isn't). It is **not yet published to npm**.
93
+ `v0.315.1` — pre-publish. The package surface (types, function names, export paths) is the v1 contract; runtime behaviour for some hooks is stubbed (each hook documents what's wired and what isn't). It is **not yet published to npm**.
94
+
95
+ ### What's new in 0.315.1 (contract 1.255.0)
96
+
97
+ **`text-literal-unexposed` points at translation.** The rule still flags copy pinned in a `<Text>`; its message now says to render each line through `t("key", "<that text>")` so it translates, instead of moving it into a `propertySchema` string, whose default has one value for every language.
94
98
 
95
99
  ### What's new in 0.315.0 (contract 1.255.0)
96
100
 
package/dist/linter.cjs CHANGED
@@ -3248,8 +3248,7 @@ function _textLiteralFindings(occurrences) {
3248
3248
  label:
3249
3249
  `Copy pinned in a <Text> reaches neither author nor translation: ` +
3250
3250
  `${listed.join(", ")}${more > 0 ? `, …(+${more} more)` : ""}. ` +
3251
- `Declare each as a propertySchema string defaulting to that text ` +
3252
- `and render the prop; fixed chrome uses t().`,
3251
+ `Render each through t("key", "<that text>") so it translates.`,
3253
3252
  line: occurrences[0].line,
3254
3253
  snippet: _clip(occurrences[0].text, 12),
3255
3254
  },
package/dist/linter.js CHANGED
@@ -3243,8 +3243,7 @@ function _textLiteralFindings(occurrences) {
3243
3243
  label:
3244
3244
  `Copy pinned in a <Text> reaches neither author nor translation: ` +
3245
3245
  `${listed.join(", ")}${more > 0 ? `, …(+${more} more)` : ""}. ` +
3246
- `Declare each as a propertySchema string defaulting to that text ` +
3247
- `and render the prop; fixed chrome uses t().`,
3246
+ `Render each through t("key", "<that text>") so it translates.`,
3248
3247
  line: occurrences[0].line,
3249
3248
  snippet: _clip(occurrences[0].text, 12),
3250
3249
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colixsystems/widget-sdk",
3
- "version": "0.315.0",
3
+ "version": "0.315.1",
4
4
  "description": "Common widget interface for AppStudio. Implements WidgetManifest, WidgetContext, property schema, and helper hooks.",
5
5
  "homepage": "https://github.com/Colix-AB/AppStudio",
6
6
  "type": "module",