@crossworks/share-ui 0.232.362 → 0.232.366

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/styles/app.css +25 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossworks/share-ui",
3
- "version": "0.232.362",
3
+ "version": "0.232.366",
4
4
  "description": "The server-rendered share surface — the /s/<token> presenters, view-payload contract, mini-app sandbox, and the few primitives they need. Lives in MANTLE (the server renders these), published for jackdaw to consume; may depend only on @mantle/{client-types,content-core} (the jackdaw-repo-split boundary).",
5
5
  "exports": {
6
6
  "./app-presenter": "./src/app-presenter.tsx",
@@ -38,8 +38,8 @@
38
38
  "@dicebear/core": "^10.7.0",
39
39
  "@dicebear/styles": "^10.6.0",
40
40
  "@firecms/neat": "1.0.2",
41
- "@mantle/client-types": "npm:@crossworks/client-types@0.232.362",
42
- "@mantle/content-core": "npm:@crossworks/content-core@0.232.362",
41
+ "@mantle/client-types": "npm:@crossworks/client-types@0.232.366",
42
+ "@mantle/content-core": "npm:@crossworks/content-core@0.232.366",
43
43
  "@radix-ui/react-label": "^2.1.15",
44
44
  "@radix-ui/react-slot": "^1.3.3",
45
45
  "class-variance-authority": "^0.7.1",
package/styles/app.css CHANGED
@@ -801,9 +801,11 @@
801
801
  overflow-wrap: anywhere;
802
802
  }
803
803
 
804
- /* Sub-page card on the raw/public render. In-app it's a React NodeView (a
805
- Link); the public surface emits an inert [data-child-page] div (sub-pages
806
- aren't part of a shared subtree), styled to match the in-app card. */
804
+ /* Page link card on the raw/public render. In-app it's a React NodeView (a
805
+ Link); the public surface emits an inert [data-child-page] div (the linked
806
+ page is not part of what the link shares), styled to match the in-app
807
+ card. The node is named from when pages nested; they no longer do (folder
808
+ phase 7). */
807
809
  .ProseMirror [data-child-page] {
808
810
  display: flex;
809
811
  align-items: center;
@@ -827,6 +829,26 @@
827
829
  white-space: nowrap;
828
830
  }
829
831
 
832
+ /* Folder index block (folder phase 7) on the raw/public render: a live list
833
+ of a folder's pages for a signed-in reader; an open link has no reader to
834
+ list for, so the public surface emits an inert label. In-app the block is
835
+ filled after rendering (StaticDoc) or drawn by a NodeView. */
836
+ .ProseMirror [data-folder-index] {
837
+ margin-block: 0.5rem;
838
+ border: 1px solid var(--border);
839
+ border-radius: var(--radius);
840
+ background-color: var(--card);
841
+ padding: 0.625rem 0.75rem;
842
+ font-size: 0.75rem;
843
+ font-weight: 500;
844
+ letter-spacing: 0.05em;
845
+ text-transform: uppercase;
846
+ color: var(--muted-foreground);
847
+ }
848
+ .ProseMirror [data-folder-index]:empty::before {
849
+ content: 'Folder index';
850
+ }
851
+
830
852
  /* ============================================================================
831
853
  Theme-accented prose (`.prose-accent`) — opt-in markdown brightening.
832
854
  Used by the docs reader (/docs) and Notes (read view + public share).