@happyvertical/smrt-social 0.60.16 → 0.60.18

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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-social",
5
- "packageVersion": "0.60.16",
5
+ "packageVersion": "0.60.18",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-social:OAuthStateCollection": {
8
8
  "name": "oauthstatecollection",
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-social",
6
- "packageVersion": "0.60.16",
6
+ "packageVersion": "0.60.18",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "6efe5480996b0fadde5d2b0464f98c02bfd994f32f67bbebd58e6d4213e53cae",
11
- "packageJson": "cc38ee7db3333a94855bc336f42cb03858a407b4fdf728f2b3f5040c88f2b8a5",
10
+ "manifest": "f74cf73ff6ed1de80e24808ae30dde8c0d7c1d492697a963ede5169530339de1",
11
+ "packageJson": "89301e8102a664b499f885bb8e7c207ecba91cc6c4ed87ff341b220b535117fe",
12
12
  "agents": "dc8a1a9b42e272ff4c9c313dc9d3b6ed0db58d3dece18a2ac23d7f0610645f58"
13
13
  },
14
14
  "exports": [
@@ -40,8 +40,8 @@ function statusLabel(account: SocialAccountSettingsItem): string {
40
40
  }
41
41
  </script>
42
42
 
43
- <section class="social-settings" data-smrt-component="SocialAccountSettings">
44
- <header class="toolbar">
43
+ <section class="smrt-social-account-settings__root" data-smrt-component="SocialAccountSettings">
44
+ <header class="smrt-social-account-settings__toolbar" data-smrt-part="header">
45
45
  <div>
46
46
  <h2>{t(M['social.account_settings.heading'])}</h2>
47
47
  <p>{accounts.length === 1 ? t(M['social.account_settings.configured_one'], { count: accounts.length }) : t(M['social.account_settings.configured_other'], { count: accounts.length })}</p>
@@ -52,7 +52,7 @@ function statusLabel(account: SocialAccountSettingsItem): string {
52
52
  </header>
53
53
 
54
54
  {#if !readonly}
55
- <div class="connect-row" aria-label={t(M['social.account_settings.connect_aria'])}>
55
+ <div class="smrt-social-account-settings__connect" data-smrt-part="actions" aria-label={t(M['social.account_settings.connect_aria'])}>
56
56
  {#each platforms as item}
57
57
  {#if connectHrefs[item.platform]}
58
58
  <Button variant="primary" href={connectHrefs[item.platform]}>{item.label}</Button>
@@ -64,15 +64,15 @@ function statusLabel(account: SocialAccountSettingsItem): string {
64
64
  {/if}
65
65
 
66
66
  {#if loading}
67
- <div class="empty">{t(M['social.account_settings.loading'])}</div>
67
+ <div class="smrt-social-account-settings__empty" data-smrt-part="empty">{t(M['social.account_settings.loading'])}</div>
68
68
  {:else if accounts.length === 0}
69
- <div class="empty">{t(M['social.account_settings.empty'])}</div>
69
+ <div class="smrt-social-account-settings__empty" data-smrt-part="empty">{t(M['social.account_settings.empty'])}</div>
70
70
  {:else}
71
- <div class="account-list">
71
+ <div class="smrt-social-account-settings__list" data-smrt-part="list">
72
72
  {#each accounts as account (account.id)}
73
- <article class="account-row" data-status={account.status}>
74
- <div class="account-main">
75
- <div class="account-title">
73
+ <article class="smrt-social-account-settings__row" data-smrt-part="row" data-status={account.status}>
74
+ <div class="smrt-social-account-settings__main" data-smrt-part="body">
75
+ <div class="smrt-social-account-settings__title" data-smrt-part="title">
76
76
  <h3>{account.name}</h3>
77
77
  <span>{account.platform}</span>
78
78
  </div>
@@ -86,12 +86,12 @@ function statusLabel(account: SocialAccountSettingsItem): string {
86
86
  </p>
87
87
  {/if}
88
88
  {#if account.missingPermissions?.length}
89
- <p class="warning">Missing: {account.missingPermissions.join(', ')}</p>
89
+ <p class="smrt-social-account-settings__warning" data-smrt-part="description">Missing: {account.missingPermissions.join(', ')}</p>
90
90
  {/if}
91
91
  </div>
92
92
 
93
- <div class="account-actions">
94
- <span class:attention={account.needsAttention} class="status">{statusLabel(account)}</span>
93
+ <div class="smrt-social-account-settings__actions" data-smrt-part="actions">
94
+ <span class:smrt-social-account-settings__attention={account.needsAttention} class="smrt-social-account-settings__status" data-smrt-part="badge">{statusLabel(account)}</span>
95
95
  {#if account.platformUrl}
96
96
  <Button variant="secondary" href={account.platformUrl} target="_blank" rel="noreferrer">Open</Button>
97
97
  {/if}
@@ -110,105 +110,101 @@ function statusLabel(account: SocialAccountSettingsItem): string {
110
110
 
111
111
  <style>
112
112
  @layer smrt.reset, smrt.structure, smrt.theme;
113
- @layer smrt.theme {
114
- .social-settings {
113
+ @layer smrt.structure {
114
+ .smrt-social-account-settings__root {
115
115
  display: grid;
116
116
  gap: 1rem;
117
117
  }
118
-
119
- .toolbar,
120
- .account-row {
118
+ .smrt-social-account-settings__toolbar,
119
+ .smrt-social-account-settings__row {
121
120
  display: flex;
122
121
  align-items: flex-start;
123
122
  justify-content: space-between;
124
123
  gap: 1rem;
125
124
  }
126
-
127
125
  h2,
128
126
  h3,
129
127
  p {
130
128
  margin: 0;
131
129
  }
130
+ .smrt-social-account-settings__connect {
131
+ display: flex;
132
+ flex-wrap: wrap;
133
+ gap: 0.5rem;
134
+ }
135
+ .smrt-social-account-settings__list {
136
+ display: grid;
137
+ gap: 0.75rem;
138
+ }
139
+ .smrt-social-account-settings__row {
140
+ padding: 1rem;
141
+ }
142
+ .smrt-social-account-settings__title {
143
+ display: flex;
144
+ align-items: center;
145
+ gap: 0.5rem;
146
+ }
147
+ .smrt-social-account-settings__title span,
148
+ .smrt-social-account-settings__status {
149
+ padding: 0.15rem 0.5rem;
150
+ }
151
+ .smrt-social-account-settings__actions {
152
+ display: flex;
153
+ align-items: center;
154
+ justify-content: flex-end;
155
+ flex-wrap: wrap;
156
+ gap: 0.5rem;
157
+ }
158
+ .smrt-social-account-settings__empty {
159
+ padding: 1.25rem;
160
+ }
161
+ @media (max-width: 720px) {
162
+ .smrt-social-account-settings__toolbar,
163
+ .smrt-social-account-settings__row {
164
+ display: grid;
165
+ }
166
+ .smrt-social-account-settings__actions {
167
+ justify-content: flex-start;
168
+ }
169
+ }
170
+ }
132
171
 
172
+ @layer smrt.theme {
133
173
  h2 {
134
174
  font-size: var(--smrt-typography-title-medium-size, 1.1rem);
135
175
  color: var(--smrt-color-on-surface);
136
176
  }
137
-
138
177
  h3 {
139
178
  font-size: var(--smrt-typography-title-medium-size, 0.95rem);
140
179
  color: var(--smrt-color-on-surface);
141
180
  }
142
-
143
181
  p {
144
182
  color: var(--smrt-color-on-surface-variant);
145
183
  font-size: var(--smrt-typography-body-medium-size, 0.85rem);
146
184
  }
147
-
148
- .connect-row {
149
- display: flex;
150
- flex-wrap: wrap;
151
- gap: 0.5rem;
152
- }
153
-
154
- .account-list {
155
- display: grid;
156
- gap: 0.75rem;
157
- }
158
-
159
- .account-row {
185
+ .smrt-social-account-settings__row {
160
186
  border: var(--smrt-hairline);
161
187
  border-radius: var(--smrt-radius-md);
162
188
  background: var(--smrt-color-surface);
163
- padding: 1rem;
164
189
  }
165
-
166
- .account-title {
167
- display: flex;
168
- align-items: center;
169
- gap: 0.5rem;
170
- }
171
-
172
- .account-title span,
173
- .status {
190
+ .smrt-social-account-settings__title span,
191
+ .smrt-social-account-settings__status {
174
192
  border-radius: var(--smrt-radius-full);
175
193
  background: var(--smrt-color-surface-container);
176
194
  color: var(--smrt-color-on-surface-variant);
177
195
  font-size: var(--smrt-typography-label-medium-size, 0.75rem);
178
- padding: 0.15rem 0.5rem;
179
196
  text-transform: capitalize;
180
197
  }
181
-
182
- .status.attention,
183
- .warning {
198
+ .smrt-social-account-settings__status.smrt-social-account-settings__attention,
199
+ .smrt-social-account-settings__warning {
184
200
  color: var(--smrt-color-error);
185
201
  }
186
-
187
- .account-actions {
188
- display: flex;
189
- align-items: center;
190
- justify-content: flex-end;
191
- flex-wrap: wrap;
192
- gap: 0.5rem;
193
- }
194
-
195
- .empty {
202
+ .smrt-social-account-settings__empty {
196
203
  border: 1px dashed var(--smrt-color-outline-variant);
197
204
  border-radius: var(--smrt-radius-md);
198
205
  color: var(--smrt-color-on-surface-variant);
199
- padding: 1.25rem;
200
206
  text-align: center;
201
207
  }
202
-
203
- @media (max-width: 720px) {
204
- .toolbar,
205
- .account-row {
206
- display: grid;
207
- }
208
-
209
- .account-actions {
210
- justify-content: flex-start;
211
- }
212
- }
213
208
  }
209
+
214
210
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-social",
3
- "version": "0.60.16",
3
+ "version": "0.60.18",
4
4
  "type": "module",
5
5
  "smrtRawPrimitives": "strict",
6
6
  "description": "Social media account management for multi-platform publishing in the SMRT ecosystem",
@@ -39,19 +39,19 @@
39
39
  "AGENTS.md"
40
40
  ],
41
41
  "dependencies": {
42
- "@happyvertical/smrt-config": "0.60.16",
43
- "@happyvertical/smrt-content": "0.60.16",
44
- "@happyvertical/smrt-core": "0.60.16",
45
- "@happyvertical/smrt-secrets": "0.60.16",
46
- "@happyvertical/smrt-tenancy": "0.60.16",
47
- "@happyvertical/smrt-ui": "0.60.16",
48
- "@happyvertical/smrt-video": "0.60.16",
49
- "@happyvertical/utils": "^0.111.8"
42
+ "@happyvertical/smrt-config": "0.60.18",
43
+ "@happyvertical/smrt-content": "0.60.18",
44
+ "@happyvertical/smrt-core": "0.60.18",
45
+ "@happyvertical/smrt-secrets": "0.60.18",
46
+ "@happyvertical/smrt-tenancy": "0.60.18",
47
+ "@happyvertical/smrt-ui": "0.60.18",
48
+ "@happyvertical/smrt-video": "0.60.18",
49
+ "@happyvertical/utils": "^0.112.2"
50
50
  },
51
51
  "devDependencies": {
52
- "@happyvertical/logger": "^0.111.8",
53
- "@happyvertical/smrt-vitest": "0.60.16",
54
- "@happyvertical/sql": "^0.111.8",
52
+ "@happyvertical/logger": "^0.112.2",
53
+ "@happyvertical/smrt-vitest": "0.60.18",
54
+ "@happyvertical/sql": "^0.112.2",
55
55
  "@sveltejs/package": "^2.5.8",
56
56
  "@types/node": "24.13.6",
57
57
  "svelte": "^5.57.1",