@vibes.diy/base 14.3.331 → 14.3.333

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.
@@ -8,7 +8,7 @@ import { Row } from "../parts/Row.js";
8
8
  import { AccessToggle } from "../parts/AccessToggle.js";
9
9
  import { ShareAppDrill } from "./ShareAppDrill.js";
10
10
  import { CopyLinkChip, shareCopied } from "./share-copy.js";
11
- import { ANON_WRITES_LINE, EDITOR_WRITES_ONLY_LABEL, EDITOR_WRITES_ONLY_LINE, AUTO_ENHANCE_LABEL, AUTO_ENHANCE_LINE, REMIX_ALLOWED_DOWNGRADE_LINE, REMIX_ALLOWED_LABEL, REMIX_ALLOWED_OFF_LINE, REMIX_ALLOWED_ON_LINE, REMIX_ALLOWED_PRO_TAG, ESCAPE_LABEL, FailureLines, INVITE_KEY, MEMBERS_EMPTY_LINE, MEMBERS_ON_CARD, OwnerMemberRow, RequestBlock, RosterRow, YourAccessRow, listedMembers, showEscape, withArticle, } from "./share-parts.js";
11
+ import { ANON_WRITES_LINE, EDITOR_WRITES_ONLY_LABEL, EDITOR_WRITES_ONLY_LINE, AUTO_ENHANCE_LABEL, AUTO_ENHANCE_LINE, REMIX_ALLOWED_DOWNGRADE_LINE, REMIX_ALLOWED_LABEL, REMIX_ALLOWED_OFF_LINE, REMIX_ALLOWED_ON_LINE, REMIX_ALLOWED_PRO_TAG, ESCAPE_LABEL, FailureLines, INVITE_KEY, MEMBERS_ON_CARD, OwnerMemberRow, RequestBlock, RosterRow, YourAccessRow, listedMembers, membersEmptyLine, showEscape, withArticle, } from "./share-parts.js";
12
12
  export const SHARE_SETTINGS_LABEL = "Share settings";
13
13
  export function shareDrill(viewer, share, view) {
14
14
  if (view === null)
@@ -144,7 +144,7 @@ export function MembersDrill({ share, nav, actions, parent = "Share", }) {
144
144
  manage ? (React.createElement(InviteField, { onInvite: (text) => actions.run(INVITE_KEY, `Couldn't invite ${text}. Try again`, () => share.members.onInvite(text)), onLookup: share.members.onLookup })) : null,
145
145
  manage ? React.createElement(FailureLines, { failures: actions.failures }) : null,
146
146
  invited.length > 0 ? (React.createElement("div", { className: "vm-people", "data-invited": true }, invited.map((m, index) => (React.createElement(InvitedRow, { key: m.key, member: m, inviteNumber: index + 1, share: share, actions: actions }))))) : null,
147
- manage && invited.length === 0 && members.length === 0 ? React.createElement("p", { className: "vm-sub" }, MEMBERS_EMPTY_LINE) : null,
147
+ manage && invited.length === 0 && members.length === 0 ? (React.createElement("p", { className: "vm-sub" }, membersEmptyLine(share.posture))) : null,
148
148
  React.createElement("div", { className: "vm-people" }, members.map((m) => manage ? (React.createElement(OwnerMemberRow, { key: m.key, member: m, share: share, actions: actions, nav: nav })) : (React.createElement(MemberRow, { key: m.key, member: m, readOnly: share.canManage === false }))))),
149
149
  React.createElement(DoneButton, { onDone: leave })));
150
150
  }
@@ -15,6 +15,8 @@ export declare const REMIX_ALLOWED_PRO_TAG = "Pro";
15
15
  export declare const REMIX_ALLOWED_DOWNGRADE_LINE = "Remixing turns back on at your next publish. Vibes Pro keeps it off.";
16
16
  export declare const INVITE_KEY = "invite";
17
17
  export declare const MEMBERS_EMPTY_LINE = "Invite someone by handle or email and they'll show up here.";
18
+ export declare const MEMBERS_EMPTY_PUBLIC_LINE = "Anyone with the link can open this app, friends you email included. Invite someone by handle or email here to make them a member and choose what they can change.";
19
+ export declare function membersEmptyLine(posture: ShareSlice["posture"]): string;
18
20
  export declare const PUBLISH_COPY: Readonly<Record<"draft" | "old" | "locked", {
19
21
  readonly lead: string;
20
22
  readonly line: string;
@@ -17,6 +17,10 @@ export const REMIX_ALLOWED_PRO_TAG = "Pro";
17
17
  export const REMIX_ALLOWED_DOWNGRADE_LINE = "Remixing turns back on at your next publish. Vibes Pro keeps it off.";
18
18
  export const INVITE_KEY = "invite";
19
19
  export const MEMBERS_EMPTY_LINE = "Invite someone by handle or email and they'll show up here.";
20
+ export const MEMBERS_EMPTY_PUBLIC_LINE = "Anyone with the link can open this app, friends you email included. Invite someone by handle or email here to make them a member and choose what they can change.";
21
+ export function membersEmptyLine(posture) {
22
+ return posture === "public" ? MEMBERS_EMPTY_PUBLIC_LINE : MEMBERS_EMPTY_LINE;
23
+ }
20
24
  export const PUBLISH_COPY = {
21
25
  draft: { lead: "Draft", line: "Your latest changes aren't live yet." },
22
26
  old: { lead: "Older", line: "This isn't what visitors currently see." },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/base",
3
- "version": "14.3.331",
3
+ "version": "14.3.333",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -10,10 +10,10 @@
10
10
  "dependencies": {
11
11
  "@adviser/cement": "~0.5.37",
12
12
  "@emotion/css": "~11.13.5",
13
- "@vibes.diy/api-types": "14.3.331",
14
- "@vibes.diy/use-vibes-types": "14.3.331",
15
- "@vibes.diy/vibe-runtime": "14.3.331",
16
- "@vibes.diy/vibe-types": "14.3.331",
13
+ "@vibes.diy/api-types": "14.3.333",
14
+ "@vibes.diy/use-vibes-types": "14.3.333",
15
+ "@vibes.diy/vibe-runtime": "14.3.333",
16
+ "@vibes.diy/vibe-types": "14.3.333",
17
17
  "arktype": "~2.2.9",
18
18
  "officeparser": "~8.7.1",
19
19
  "qrcode-generator": "~2.0.4",