@wraps.dev/cli 2.14.0 → 2.14.2

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.
package/dist/cli.js CHANGED
@@ -21239,7 +21239,7 @@ import {
21239
21239
  ### wraps.config.ts
21240
21240
 
21241
21241
  \`\`\`typescript
21242
- import { defineConfig } from '@wraps.dev/email';
21242
+ import { defineConfig } from '@wraps.dev/client';
21243
21243
 
21244
21244
  export default defineConfig({
21245
21245
  org: 'my-org', // Organization slug
@@ -21253,7 +21253,7 @@ export default defineConfig({
21253
21253
  ### brand.ts
21254
21254
 
21255
21255
  \`\`\`typescript
21256
- import { defineBrand } from '@wraps.dev/email';
21256
+ import { defineBrand } from '@wraps.dev/client';
21257
21257
 
21258
21258
  export default defineBrand({
21259
21259
  primaryColor: '#5046e5',
@@ -21647,7 +21647,7 @@ function generateConfigFile(org, domain, region) {
21647
21647
  const regionLine = region ? `
21648
21648
  region: '${region}',` : `
21649
21649
  // region: 'us-east-1',`;
21650
- return `import { defineConfig } from '@wraps.dev/email';
21650
+ return `import { defineConfig } from '@wraps.dev/client';
21651
21651
 
21652
21652
  export default defineConfig({
21653
21653
  org: '${org}',${fromLine}${regionLine}
@@ -21657,7 +21657,7 @@ export default defineConfig({
21657
21657
  `;
21658
21658
  }
21659
21659
  function generateBrandFile() {
21660
- return `import { defineBrand } from '@wraps.dev/email';
21660
+ return `import { defineBrand } from '@wraps.dev/client';
21661
21661
 
21662
21662
  export default defineBrand({
21663
21663
  primaryColor: '#5046e5',
@@ -26263,15 +26263,6 @@ updateContact('mark-onboarded', {
26263
26263
  })
26264
26264
  \`\`\`
26265
26265
 
26266
- ### addToSegment(id, config) / removeFromSegment(id, config)
26267
-
26268
- Manage segment membership.
26269
-
26270
- \`\`\`typescript
26271
- addToSegment('add-to-vip', { segmentId: 'vip-customers' })
26272
- removeFromSegment('remove-from-trial', { segmentId: 'trial-users' })
26273
- \`\`\`
26274
-
26275
26266
  ### subscribeTopic(id, config) / unsubscribeTopic(id, config)
26276
26267
 
26277
26268
  Manage topic subscriptions.
@@ -26311,19 +26302,6 @@ Cross-channel cascade: tries channels in order, falling back if no engagement.
26311
26302
  })
26312
26303
  \`\`\`
26313
26304
 
26314
- ### abTest(id, config)
26315
-
26316
- Split contacts into A/B test variants by weight.
26317
-
26318
- \`\`\`typescript
26319
- abTest('subject-test', {
26320
- variants: [
26321
- { weight: 50, steps: [sendEmail('variant-a', { template: 'welcome-a' })] },
26322
- { weight: 50, steps: [sendEmail('variant-b', { template: 'welcome-b' })] },
26323
- ],
26324
- })
26325
- \`\`\`
26326
-
26327
26305
  ## WorkflowSettings
26328
26306
 
26329
26307
  \`\`\`typescript
@@ -26599,7 +26577,7 @@ async function workflowsInit(options) {
26599
26577
  console.log();
26600
26578
  }
26601
26579
  function generateMinimalConfig() {
26602
- return `import { defineConfig } from '@wraps.dev/email';
26580
+ return `import { defineConfig } from '@wraps.dev/client';
26603
26581
 
26604
26582
  export default defineConfig({
26605
26583
  org: 'my-org',