@peers-app/peers-ui 0.34.11 → 0.34.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.
Files changed (37) hide show
  1. package/dist/components/markdown-editor/editor.d.ts +36 -0
  2. package/dist/components/markdown-editor/editor.js +16 -0
  3. package/dist/components/markdown-editor/format-bar.d.ts +16 -0
  4. package/dist/components/markdown-editor/format-bar.js +132 -0
  5. package/dist/components/markdown-editor/format-commands.d.ts +25 -0
  6. package/dist/components/markdown-editor/format-commands.js +140 -0
  7. package/dist/components/markdown-editor/format.d.ts +36 -0
  8. package/dist/components/markdown-editor/format.js +47 -0
  9. package/dist/components/markdown-editor/lexical-editor.d.ts +1 -0
  10. package/dist/components/markdown-editor/lexical-editor.js +5 -1
  11. package/dist/components/markdown-editor/link-plugin.d.ts +9 -5
  12. package/dist/components/markdown-editor/link-plugin.js +47 -22
  13. package/dist/components/markdown-editor/selection-effects-plugin.d.ts +8 -1
  14. package/dist/components/markdown-editor/selection-effects-plugin.js +25 -1
  15. package/dist/components/markdown-render.js +21 -8
  16. package/dist/components/markdown-with-mentions.d.ts +6 -4
  17. package/dist/components/markdown-with-mentions.js +6 -4
  18. package/dist/host-shell/host-shell-consumer.d.ts +13 -5
  19. package/dist/host-shell/host-shell-consumer.js +31 -16
  20. package/dist/index.d.ts +4 -2
  21. package/dist/index.js +5 -1
  22. package/dist/isolated-screens/frame-runtime.js +14 -15
  23. package/dist/links/app-link-prompt.d.ts +29 -0
  24. package/dist/links/app-link-prompt.js +102 -0
  25. package/dist/links/link-schemes.d.ts +30 -0
  26. package/dist/links/link-schemes.js +46 -0
  27. package/dist/links/peers-links.d.ts +33 -0
  28. package/dist/links/peers-links.js +124 -0
  29. package/dist/mentions/mention-chooser.d.ts +12 -0
  30. package/dist/mentions/mention-chooser.js +48 -13
  31. package/dist/root-layout/root-layout-host.js +10 -1
  32. package/dist/screens/invites/accept-invite.js +3 -4
  33. package/dist/screens/invites/invite-capture.d.ts +2 -7
  34. package/dist/screens/invites/invite-capture.js +8 -25
  35. package/dist/screens/settings/settings-page.js +3 -1
  36. package/dist/theme.css +83 -0
  37. package/package.json +3 -3
package/dist/theme.css CHANGED
@@ -2689,3 +2689,86 @@
2689
2689
  --peers-viz-grid: rgba(255, 255, 255, 0.1);
2690
2690
  --peers-viz-axis: rgba(255, 255, 255, 0.25);
2691
2691
  }
2692
+
2693
+ /* The markdown editor's bar over selected text (`selectionToolbar`) and its Aa row
2694
+ * (`MarkdownFormatRow`): the same buttons, quiet until pressed. */
2695
+ .editor-container:has(> .editor-selection-bar) {
2696
+ position: relative;
2697
+ }
2698
+ .editor-selection-bar {
2699
+ position: absolute;
2700
+ z-index: 30;
2701
+ display: inline-flex;
2702
+ align-items: center;
2703
+ gap: 1px;
2704
+ padding: 3px;
2705
+ /* 16 px off the selected text, above it or below (Mark, 2026-12-03), so it never covers it.
2706
+ * As wide as its buttons, but never wider than the editor: in a narrow one it wraps. */
2707
+ width: max-content;
2708
+ max-width: 100%;
2709
+ flex-wrap: wrap;
2710
+ transform: translate(-50%, calc(-100% - 16px));
2711
+ border: 1px solid var(--bs-border-color);
2712
+ border-radius: 9px;
2713
+ background: var(--bs-tertiary-bg);
2714
+ box-shadow: 0 6px 18px rgb(0 0 0 / 0.35);
2715
+ white-space: nowrap;
2716
+ }
2717
+ .editor-selection-bar.below {
2718
+ transform: translate(-50%, 16px);
2719
+ }
2720
+ .editor-format-row {
2721
+ display: flex;
2722
+ align-items: center;
2723
+ gap: 2px;
2724
+ overflow-x: auto;
2725
+ scrollbar-width: none;
2726
+ }
2727
+ .editor-format-button {
2728
+ display: inline-flex;
2729
+ align-items: center;
2730
+ justify-content: center;
2731
+ gap: 5px;
2732
+ min-width: 32px;
2733
+ min-height: 32px;
2734
+ padding: 4px 8px;
2735
+ border: 0;
2736
+ border-radius: 7px;
2737
+ background: transparent;
2738
+ color: var(--bs-body-color);
2739
+ font-size: 13px;
2740
+ line-height: 1;
2741
+ flex: none;
2742
+ }
2743
+ /* Not on a pressed button, which would lose its look, nor on a touch screen, where :hover stays on
2744
+ * the button last tapped. */
2745
+ @media (hover: hover) {
2746
+ .editor-format-button:hover:not(:disabled, .active) {
2747
+ background: var(--bs-secondary-bg);
2748
+ }
2749
+ }
2750
+ .editor-format-button.active {
2751
+ background: var(--bs-primary-bg-subtle);
2752
+ color: var(--bs-primary-text-emphasis);
2753
+ }
2754
+ .editor-format-action {
2755
+ max-width: 100%;
2756
+ white-space: normal;
2757
+ overflow-wrap: anywhere;
2758
+ }
2759
+ .editor-format-action:disabled {
2760
+ opacity: 0.65;
2761
+ }
2762
+ .editor-format-button .bi {
2763
+ font-size: 15px;
2764
+ }
2765
+ .editor-format-row .editor-format-button {
2766
+ min-width: 36px;
2767
+ min-height: 36px;
2768
+ }
2769
+ .editor-format-divider {
2770
+ width: 1px;
2771
+ height: 18px;
2772
+ margin: 0 4px;
2773
+ background: var(--bs-border-color);
2774
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peers-app/peers-ui",
3
- "version": "0.34.11",
3
+ "version": "0.34.13",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/peers-app/peers-ui.git"
@@ -36,7 +36,7 @@
36
36
  "lint:fix": "biome check --write ."
37
37
  },
38
38
  "peerDependencies": {
39
- "@peers-app/peers-sdk": "^0.34.11",
39
+ "@peers-app/peers-sdk": "^0.34.13",
40
40
  "bootstrap": "^5.3.3",
41
41
  "react": "^18.0.0",
42
42
  "react-dom": "^18.0.0"
@@ -47,7 +47,7 @@
47
47
  "@babel/preset-react": "^7.24.1",
48
48
  "@babel/preset-typescript": "^7.27.1",
49
49
  "@biomejs/biome": "2.3.11",
50
- "@peers-app/peers-sdk": "0.34.11",
50
+ "@peers-app/peers-sdk": "0.34.13",
51
51
  "@testing-library/dom": "^10.4.0",
52
52
  "@testing-library/jest-dom": "^6.6.3",
53
53
  "@testing-library/react": "^16.3.0",