@kurumera/editable 0.3.0 → 0.3.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/dist/index.d.ts CHANGED
@@ -13,9 +13,20 @@
13
13
  *
14
14
  * Every primitive here is a Server Component, for use in your theme's
15
15
  * page/section files. Outside the dashboard's edit mode (i.e. for every
16
- * real shopper) each renders plain output with ZERO extra client JS — the
17
- * interactive client leaf is never even included in that page's bundle,
18
- * not merely hidden.
16
+ * real shopper) each renders plain, semantic markup — no wrapper elements,
17
+ * no hydration, no editor behaviour, no network calls.
18
+ *
19
+ * PERF CAVEAT, measured not assumed: the editor leaves' CODE is still
20
+ * DOWNLOADED by shoppers (~5.5 kB gzipped per route, roughly flat no matter
21
+ * how many fields you wrap). It is never executed or hydrated for them, but
22
+ * it is in the route's client bundle. This is a Next.js constraint, not a
23
+ * choice: a Server Component statically imports its client leaf, and
24
+ * "a Server Component dynamically importing a Client Component" is
25
+ * explicitly unsupported for code splitting (see Next's lazy-loading guide).
26
+ * Eliminating it needs the editor to become one lazily-mounted overlay that
27
+ * attaches to `data-kurumera-field` markers, rather than a client leaf per
28
+ * primitive — a planned change, not yet done. Budget accordingly on
29
+ * latency-critical routes.
19
30
  *
20
31
  * Need `useEditableField()` or `EditableProvider` inside your OWN "use
21
32
  * client" component? Import those from `@kurumera/editable/client`
package/dist/index.js CHANGED
@@ -13,9 +13,20 @@
13
13
  *
14
14
  * Every primitive here is a Server Component, for use in your theme's
15
15
  * page/section files. Outside the dashboard's edit mode (i.e. for every
16
- * real shopper) each renders plain output with ZERO extra client JS — the
17
- * interactive client leaf is never even included in that page's bundle,
18
- * not merely hidden.
16
+ * real shopper) each renders plain, semantic markup — no wrapper elements,
17
+ * no hydration, no editor behaviour, no network calls.
18
+ *
19
+ * PERF CAVEAT, measured not assumed: the editor leaves' CODE is still
20
+ * DOWNLOADED by shoppers (~5.5 kB gzipped per route, roughly flat no matter
21
+ * how many fields you wrap). It is never executed or hydrated for them, but
22
+ * it is in the route's client bundle. This is a Next.js constraint, not a
23
+ * choice: a Server Component statically imports its client leaf, and
24
+ * "a Server Component dynamically importing a Client Component" is
25
+ * explicitly unsupported for code splitting (see Next's lazy-loading guide).
26
+ * Eliminating it needs the editor to become one lazily-mounted overlay that
27
+ * attaches to `data-kurumera-field` markers, rather than a client leaf per
28
+ * primitive — a planned change, not yet done. Budget accordingly on
29
+ * latency-critical routes.
19
30
  *
20
31
  * Need `useEditableField()` or `EditableProvider` inside your OWN "use
21
32
  * client" component? Import those from `@kurumera/editable/client`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kurumera/editable",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Kurumera Editable Components — inline, draft/publish, no-rebuild content editing for code themes.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",