cmx-sdk 0.2.19 → 0.2.21

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.
File without changes
File without changes
File without changes
File without changes
@@ -112,8 +112,6 @@
112
112
  * Card-like components (shared pattern)
113
113
  * Twitter, Instagram, Bluesky, Audio, TableOfContents, FileDownload
114
114
  * ================================================================ */
115
- .cmx-mdx__twitter,
116
- .cmx-mdx__instagram,
117
115
  .cmx-mdx__bluesky,
118
116
  .cmx-mdx__audio,
119
117
  .cmx-mdx__toc,
@@ -127,32 +125,36 @@
127
125
  }
128
126
 
129
127
  /* ─── Twitter ─── */
130
- .cmx-mdx__twitter-label {
131
- font-size: var(--cmx-mdx-font-size-sm);
132
- color: var(--cmx-mdx-muted-fg);
133
- margin-bottom: 0.25rem;
128
+ .cmx-mdx__twitter {
129
+ margin-block: var(--cmx-mdx-spacing);
134
130
  }
135
- .cmx-mdx__twitter-link {
131
+ .cmx-mdx__twitter-fallback-link {
136
132
  font-size: var(--cmx-mdx-font-size-sm);
137
133
  color: var(--cmx-mdx-twitter-link);
138
134
  }
139
- .cmx-mdx__twitter-link:hover {
135
+ .cmx-mdx__twitter-fallback-link:hover {
140
136
  text-decoration: underline;
141
137
  }
142
138
 
143
139
  /* ─── Instagram ─── */
144
- .cmx-mdx__instagram-label {
145
- font-size: var(--cmx-mdx-font-size-sm);
146
- color: var(--cmx-mdx-muted-fg);
147
- margin-bottom: 0.25rem;
140
+ .cmx-mdx__instagram {
141
+ margin-block: var(--cmx-mdx-spacing);
142
+ }
143
+ .cmx-mdx__instagram-embed {
144
+ background: #fff;
145
+ border: 0;
146
+ border-radius: 3px;
147
+ box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.5), 0 1px 10px 0 rgba(0, 0, 0, 0.15);
148
+ margin: 1px auto;
149
+ max-width: 540px;
150
+ width: calc(100% - 2px);
151
+ min-width: 0;
152
+ padding: 0;
148
153
  }
149
154
  .cmx-mdx__instagram-link {
150
155
  font-size: var(--cmx-mdx-font-size-sm);
151
156
  color: var(--cmx-mdx-instagram-link);
152
157
  }
153
- .cmx-mdx__instagram-link:hover {
154
- text-decoration: underline;
155
- }
156
158
 
157
159
  /* ─── Bluesky ─── */
158
160
  .cmx-mdx__bluesky-label {
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmx-sdk",
3
- "version": "0.2.19",
3
+ "version": "0.2.21",
4
4
  "description": "CMX SDK - Official SDK for building content-driven websites with CMX",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -35,20 +35,6 @@
35
35
  },
36
36
  "./styles/cmx-mdx.css": "./dist/styles/cmx-mdx.css"
37
37
  },
38
- "scripts": {
39
- "prebuild": "node scripts/copy-api-client.js",
40
- "sync:starter-kit-docs": "pnpm --filter @cmx/api-server generate:openapi && node scripts/sync-starter-kit-docs.mjs --write",
41
- "sync:starter-kit-docs:check": "pnpm --filter @cmx/api-server generate:openapi && node scripts/sync-starter-kit-docs.mjs --check",
42
- "check:sdk-command-api-usage": "node scripts/check-sdk-command-api-usage.mjs",
43
- "check:generated-sync": "node scripts/check-generated-sync.mjs",
44
- "test:contracts": "tsx scripts/check-cli-contracts.ts",
45
- "verify:release": "pnpm run check:sdk-command-api-usage && pnpm run check:generated-sync && pnpm run test:contracts",
46
- "build": "tsup",
47
- "postbuild": "rm -rf dist/styles && cp -r src/mdx/styles dist/styles",
48
- "dev": "tsup --watch",
49
- "typecheck": "tsc --noEmit",
50
- "prepublishOnly": "pnpm run verify:release && pnpm run sync:starter-kit-docs:check && pnpm run build"
51
- },
52
38
  "dependencies": {
53
39
  "@inquirer/prompts": "^8.2.1",
54
40
  "@mdx-js/mdx": "^3.1.1",
@@ -57,6 +43,7 @@
57
43
  "dotenv": "^16.6.1",
58
44
  "lucide-react": "^0.468.0",
59
45
  "remark-gfm": "^4.0.1",
46
+ "safe-mdx": "^1.3.9",
60
47
  "strip-json-comments": "^5.0.3",
61
48
  "tar": "^7.5.9",
62
49
  "zod": "^4.3.6"
@@ -72,5 +59,18 @@
72
59
  "tsup": "^8.5.1",
73
60
  "tsx": "^4.21.0",
74
61
  "typescript": "^5.9.3"
62
+ },
63
+ "scripts": {
64
+ "prebuild": "node scripts/copy-api-client.js",
65
+ "sync:starter-kit-docs": "pnpm --filter @cmx/api-server generate:openapi && node scripts/sync-starter-kit-docs.mjs --write",
66
+ "sync:starter-kit-docs:check": "pnpm --filter @cmx/api-server generate:openapi && node scripts/sync-starter-kit-docs.mjs --check",
67
+ "check:sdk-command-api-usage": "node scripts/check-sdk-command-api-usage.mjs",
68
+ "check:generated-sync": "node scripts/check-generated-sync.mjs",
69
+ "test:contracts": "tsx scripts/check-cli-contracts.ts",
70
+ "verify:release": "pnpm run check:sdk-command-api-usage && pnpm run check:generated-sync && pnpm run test:contracts",
71
+ "build": "tsup",
72
+ "postbuild": "rm -rf dist/styles && cp -r src/mdx/styles dist/styles",
73
+ "dev": "tsup --watch",
74
+ "typecheck": "tsc --noEmit"
75
75
  }
76
- }
76
+ }