lynkow 1.31.12 → 1.31.13

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/dist/index.d.mts CHANGED
@@ -2250,9 +2250,12 @@ interface JsonLdNode {
2250
2250
  /**
2251
2251
  * Stable `@id` for this node. Server-generated (pattern `own-<8hex>`) when
2252
2252
  * the caller omits it on create. Safe to treat as an opaque string; the
2253
- * public API rewrites it to an absolute URL (`<pageUrl>#<id>`) in the
2254
- * resolved graph. Never starts with the reserved `auto:` prefix, which is
2255
- * reserved for nodes Lynkow injects automatically.
2253
+ * public API rewrites it to an absolute URL in the resolved graph,
2254
+ * with the prefix determined by the node's effective {@link scope}
2255
+ * (`<site-url>#<id>` for site-scoped entries like `Organization`,
2256
+ * `<page-url>#<id>` for page-scoped entries like `Article`).
2257
+ * Never starts with the reserved `auto:` prefix, which is reserved
2258
+ * for nodes Lynkow injects automatically.
2256
2259
  */
2257
2260
  id: string;
2258
2261
  /**
@@ -2276,6 +2279,19 @@ interface JsonLdNode {
2276
2279
  data: Record<string, unknown>;
2277
2280
  /** Whether the node was created from a Lynkow typed preset or from raw JSON-LD. */
2278
2281
  source: JsonLdNodeSource;
2282
+ /**
2283
+ * Optional `@id` scope override. When omitted, the cascade infers
2284
+ * the default from the level the entry was declared at:
2285
+ * - `site` for entries at site or category level (Organization,
2286
+ * LocalBusiness for a section, Publisher).
2287
+ * - `page` for entries at page or content level (Article, Product,
2288
+ * custom Person).
2289
+ * Set explicitly to opt out of the default - e.g. `scope: 'site'`
2290
+ * on a content-level Organization that should still be stable
2291
+ * across pages. The resolved `@id` becomes `<site-url>#<id>` for
2292
+ * `site` scope and `<page-url>#<id>` for `page` scope.
2293
+ */
2294
+ scope?: 'site' | 'page';
2279
2295
  }
2280
2296
  /**
2281
2297
  * Cascade configuration stored at any level (site, category, page, content).
package/dist/index.d.ts CHANGED
@@ -2250,9 +2250,12 @@ interface JsonLdNode {
2250
2250
  /**
2251
2251
  * Stable `@id` for this node. Server-generated (pattern `own-<8hex>`) when
2252
2252
  * the caller omits it on create. Safe to treat as an opaque string; the
2253
- * public API rewrites it to an absolute URL (`<pageUrl>#<id>`) in the
2254
- * resolved graph. Never starts with the reserved `auto:` prefix, which is
2255
- * reserved for nodes Lynkow injects automatically.
2253
+ * public API rewrites it to an absolute URL in the resolved graph,
2254
+ * with the prefix determined by the node's effective {@link scope}
2255
+ * (`<site-url>#<id>` for site-scoped entries like `Organization`,
2256
+ * `<page-url>#<id>` for page-scoped entries like `Article`).
2257
+ * Never starts with the reserved `auto:` prefix, which is reserved
2258
+ * for nodes Lynkow injects automatically.
2256
2259
  */
2257
2260
  id: string;
2258
2261
  /**
@@ -2276,6 +2279,19 @@ interface JsonLdNode {
2276
2279
  data: Record<string, unknown>;
2277
2280
  /** Whether the node was created from a Lynkow typed preset or from raw JSON-LD. */
2278
2281
  source: JsonLdNodeSource;
2282
+ /**
2283
+ * Optional `@id` scope override. When omitted, the cascade infers
2284
+ * the default from the level the entry was declared at:
2285
+ * - `site` for entries at site or category level (Organization,
2286
+ * LocalBusiness for a section, Publisher).
2287
+ * - `page` for entries at page or content level (Article, Product,
2288
+ * custom Person).
2289
+ * Set explicitly to opt out of the default - e.g. `scope: 'site'`
2290
+ * on a content-level Organization that should still be stable
2291
+ * across pages. The resolved `@id` becomes `<site-url>#<id>` for
2292
+ * `site` scope and `<page-url>#<id>` for `page` scope.
2293
+ */
2294
+ scope?: 'site' | 'page';
2279
2295
  }
2280
2296
  /**
2281
2297
  * Cascade configuration stored at any level (site, category, page, content).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lynkow",
3
- "version": "1.31.12",
3
+ "version": "1.31.13",
4
4
  "description": "Official SDK for Lynkow Headless",
5
5
  "author": "Lynkow",
6
6
  "license": "SEE LICENSE IN LICENSE",