@fayz-ai/plugin-linkinbio 0.9.1 → 0.10.1

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 (62) hide show
  1. package/dist/public/{data.d.ts → data/index.d.ts} +2 -2
  2. package/dist/public/data/index.d.ts.map +1 -0
  3. package/dist/public/{data.supabase.d.ts → data/supabase.d.ts} +2 -2
  4. package/dist/public/data/supabase.d.ts.map +1 -0
  5. package/dist/public/index.d.ts +8 -8
  6. package/dist/public/index.d.ts.map +1 -1
  7. package/dist/public/index.js +2 -2
  8. package/dist/public/index.js.map +1 -1
  9. package/dist/public/{registry.d.ts → lib/registry.d.ts} +1 -1
  10. package/dist/public/lib/registry.d.ts.map +1 -0
  11. package/dist/public/{utils.d.ts → lib/utils.d.ts} +1 -1
  12. package/dist/public/lib/utils.d.ts.map +1 -0
  13. package/dist/public/views/BioPage.d.ts.map +1 -0
  14. package/dist/public/{BioPageRenderer.d.ts → views/BioPageRenderer.d.ts} +1 -1
  15. package/dist/public/views/BioPageRenderer.d.ts.map +1 -0
  16. package/package.json +12 -15
  17. package/dist/index.cjs +0 -33
  18. package/dist/index.cjs.map +0 -1
  19. package/dist/public/BioPage.d.ts.map +0 -1
  20. package/dist/public/BioPageRenderer.d.ts.map +0 -1
  21. package/dist/public/__tests__/manifest.test.d.ts +0 -2
  22. package/dist/public/__tests__/manifest.test.d.ts.map +0 -1
  23. package/dist/public/data.d.ts.map +0 -1
  24. package/dist/public/data.supabase.d.ts.map +0 -1
  25. package/dist/public/index.cjs +0 -1984
  26. package/dist/public/index.cjs.map +0 -1
  27. package/dist/public/registry.d.ts.map +0 -1
  28. package/dist/public/utils.d.ts.map +0 -1
  29. package/src/index.ts +0 -56
  30. package/src/public/BioPage.tsx +0 -123
  31. package/src/public/BioPageRenderer.tsx +0 -251
  32. package/src/public/__tests__/manifest.test.ts +0 -39
  33. package/src/public/blocks/BioSection.tsx +0 -66
  34. package/src/public/blocks/CTASection.tsx +0 -56
  35. package/src/public/blocks/EmbedSection.tsx +0 -53
  36. package/src/public/blocks/FeaturedBlock.tsx +0 -70
  37. package/src/public/blocks/GallerySection.tsx +0 -148
  38. package/src/public/blocks/HeroSection.tsx +0 -107
  39. package/src/public/blocks/LinksBlock.tsx +0 -80
  40. package/src/public/blocks/MusicReleasesBlock.tsx +0 -83
  41. package/src/public/blocks/ProfileHeader.tsx +0 -174
  42. package/src/public/blocks/ProjectSection.tsx +0 -158
  43. package/src/public/blocks/SocialLinksSection.tsx +0 -125
  44. package/src/public/blocks/StatsSection.tsx +0 -46
  45. package/src/public/blocks/TextSection.tsx +0 -29
  46. package/src/public/blocks/TourDatesBlock.tsx +0 -83
  47. package/src/public/blocks/VenueListSection.tsx +0 -91
  48. package/src/public/blocks/VideoGridSection.tsx +0 -105
  49. package/src/public/blocks/index.ts +0 -16
  50. package/src/public/components/Carousel.tsx +0 -90
  51. package/src/public/components/MediaKit.tsx +0 -249
  52. package/src/public/components/PlatformIcon.tsx +0 -56
  53. package/src/public/components/Reveal.tsx +0 -58
  54. package/src/public/context.tsx +0 -30
  55. package/src/public/createPublicLinkInBioPlugin.ts +0 -81
  56. package/src/public/data.supabase.ts +0 -31
  57. package/src/public/data.ts +0 -29
  58. package/src/public/index.ts +0 -75
  59. package/src/public/registry.ts +0 -40
  60. package/src/public/utils.ts +0 -102
  61. package/src/types.ts +0 -337
  62. /package/dist/public/{BioPage.d.ts → views/BioPage.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import type { ComponentType } from 'react';
2
- import type { BioBlock, BioPage } from '../types';
2
+ import type { BioBlock, BioPage } from '../../types';
3
3
  /** Uniform props every registered block component receives. */
4
4
  export interface BlockRenderProps<B = BioBlock> {
5
5
  block: B;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/public/lib/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAerD,+DAA+D;AAC/D,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,QAAQ;IAC5C,KAAK,EAAE,CAAC,CAAC;IACT,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,QAAQ,IAAI,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAI9E,yFAAyF;AACzF,wBAAgB,aAAa,CAAC,CAAC,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI,CAE7G;AAED,yFAAyF;AACzF,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAExE;AAED,kGAAkG;AAClG,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE9C"}
@@ -1,5 +1,5 @@
1
1
  import { Instagram } from 'lucide-react';
2
- import type { BioBranding } from '../types';
2
+ import type { BioBranding } from '../../types';
3
3
  export declare function renderMarkdown(md: string): string;
4
4
  export declare const platformColors: Record<string, string>;
5
5
  export declare const platformLabels: Record<string, string>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/public/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAyD,MAAM,cAAc,CAAC;AAChG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAajD;AAED,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAkBjD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAkBjD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,SAAS,CAkB5D,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAMlD,CAAC;AAEF,wBAAgB,eAAe,CAAC,QAAQ,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAc7E"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BioPage.d.ts","sourceRoot":"","sources":["../../../src/public/views/BioPage.tsx"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,gCA6G9B"}
@@ -1,4 +1,4 @@
1
- import type { BioPage } from '../types';
1
+ import type { BioPage } from '../../types';
2
2
  export interface BioPageRendererProps {
3
3
  page: BioPage;
4
4
  /** Optional "made with" footer link. Omit for just the copyright line. */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BioPageRenderer.d.ts","sourceRoot":"","sources":["../../../src/public/views/BioPageRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAY,MAAM,aAAa,CAAC;AAqBrD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,OAAO,CAAC;IACd,0EAA0E;IAC1E,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5C;AAKD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,oBAAoB,+BA0NhF"}
package/package.json CHANGED
@@ -3,49 +3,46 @@
3
3
  "fayz": {
4
4
  "status": "preview"
5
5
  },
6
- "version": "0.9.1",
6
+ "version": "0.10.1",
7
7
  "description": "Fayz SDK — plugin-linkinbio: komi/linktree-style link-in-bio pages for any creator (public bio page + modular block registry)",
8
8
  "type": "module",
9
- "main": "./dist/index.cjs",
9
+ "sideEffects": false,
10
+ "main": "./dist/index.js",
10
11
  "module": "./dist/index.js",
11
12
  "types": "./dist/index.d.ts",
12
13
  "exports": {
13
14
  ".": {
14
- "source": "./src/index.ts",
15
15
  "types": "./dist/index.d.ts",
16
- "import": "./dist/index.js",
17
- "require": "./dist/index.cjs"
16
+ "import": "./dist/index.js"
18
17
  },
19
18
  "./public": {
20
- "source": "./src/public/index.ts",
21
19
  "types": "./dist/public/index.d.ts",
22
- "import": "./dist/public/index.js",
23
- "require": "./dist/public/index.cjs"
20
+ "import": "./dist/public/index.js"
24
21
  }
25
22
  },
26
23
  "files": [
27
- "dist",
28
- "src"
24
+ "dist"
29
25
  ],
30
26
  "peerDependencies": {
27
+ "lucide-react": ">=0.400.0 <1.0.0",
31
28
  "react": "^18.0.0 || ^19.0.0",
32
29
  "react-dom": "^18.0.0 || ^19.0.0",
33
30
  "react-router-dom": "^6.0.0 || ^7.0.0"
34
31
  },
35
32
  "dependencies": {
36
- "lucide-react": "^0.400.0",
37
33
  "react-icons": "^5.3.0",
38
- "@fayz-ai/core": "^0.8.0"
34
+ "@fayz-ai/core": "^0.10.0"
39
35
  },
40
36
  "devDependencies": {
41
37
  "@types/react": "^18.3.0",
38
+ "@types/react-dom": "^18.3.0",
39
+ "lucide-react": "^0.400.0",
42
40
  "react": "^18.3.0",
43
41
  "react-dom": "^18.3.0",
44
42
  "react-router-dom": "^6.30.0",
45
43
  "tsup": "^8.2.0",
46
44
  "typescript": "^5.5.0",
47
- "vitest": "^2.1.9",
48
- "@types/react-dom": "^18.3.0"
45
+ "vitest": "^4.1.5"
49
46
  },
50
47
  "license": "MIT",
51
48
  "keywords": [
@@ -62,7 +59,7 @@
62
59
  "scripts": {
63
60
  "build": "tsup && tsc --emitDeclarationOnly --declaration --declarationMap --noEmit false",
64
61
  "dev": "tsup --watch",
65
- "typecheck": "tsc --noEmit",
62
+ "typecheck": "tsc --noEmit -p tsconfig.test.json",
66
63
  "clean": "rm -rf dist",
67
64
  "test": "vitest run"
68
65
  }
package/dist/index.cjs DELETED
@@ -1,33 +0,0 @@
1
- 'use strict';
2
-
3
- var react = require('react');
4
-
5
- // src/index.ts
6
- function EditorPlaceholder() {
7
- return react.createElement(
8
- "div",
9
- { className: "p-8 text-sm text-muted-foreground" },
10
- "O editor de Link in Bio chega no v2. A p\xE1gina p\xFAblica j\xE1 est\xE1 dispon\xEDvel em /p/:slug."
11
- );
12
- }
13
- function createLinkInBioPlugin(options = {}) {
14
- const basePath = options.basePath ?? "/link-in-bio";
15
- return {
16
- id: "linkinbio",
17
- name: "Link in Bio",
18
- icon: "Link",
19
- version: "0.1.0",
20
- scope: options.scope ?? "universal",
21
- verticalId: options.verticalId,
22
- scaffolds: ["saas", "website"],
23
- defaultEnabled: options.defaultEnabled ?? false,
24
- dependencies: [],
25
- navigation: [{ section: "main", position: 10, label: "Link in Bio", route: basePath, icon: "Link" }],
26
- routes: [{ path: basePath, component: EditorPlaceholder, guard: "authenticated" }],
27
- widgets: []
28
- };
29
- }
30
-
31
- exports.createLinkInBioPlugin = createLinkInBioPlugin;
32
- //# sourceMappingURL=index.cjs.map
33
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":["createElement"],"mappings":";;;;;AAoBA,SAAS,iBAAA,GAAoB;AAC3B,EAAA,OAAOA,mBAAA;AAAA,IACL,KAAA;AAAA,IACA,EAAE,WAAW,mCAAA,EAAoC;AAAA,IACjD;AAAA,GACF;AACF;AAEO,SAAS,qBAAA,CAAsB,OAAA,GAAkC,EAAC,EAAmB;AAC1F,EAAA,MAAM,QAAA,GAAW,QAAQ,QAAA,IAAY,cAAA;AACrC,EAAA,OAAO;AAAA,IACL,EAAA,EAAI,WAAA;AAAA,IACJ,IAAA,EAAM,aAAA;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS,OAAA;AAAA,IACT,KAAA,EAAO,QAAQ,KAAA,IAAS,WAAA;AAAA,IACxB,YAAY,OAAA,CAAQ,UAAA;AAAA,IACpB,SAAA,EAAW,CAAC,MAAA,EAAQ,SAAS,CAAA;AAAA,IAC7B,cAAA,EAAgB,QAAQ,cAAA,IAAkB,KAAA;AAAA,IAC1C,cAAc,EAAC;AAAA,IACf,UAAA,EAAY,CAAC,EAAE,OAAA,EAAS,MAAA,EAAQ,QAAA,EAAU,EAAA,EAAI,KAAA,EAAO,aAAA,EAAe,KAAA,EAAO,QAAA,EAAU,IAAA,EAAM,QAAQ,CAAA;AAAA,IACnG,MAAA,EAAQ,CAAC,EAAE,IAAA,EAAM,UAAU,SAAA,EAAW,iBAAA,EAAmB,KAAA,EAAO,eAAA,EAAiB,CAAA;AAAA,IACjF,SAAS;AAAC,GACZ;AACF","file":"index.cjs","sourcesContent":["// ---------------------------------------------------------------------------\n// @fayz-ai/plugin-linkinbio — admin entry (v1 stub).\n//\n// The public bio page ships today via the `/public` entry\n// (createPublicLinkInBioPlugin). The in-app editor / settings surface is a v2\n// follow-up: this factory returns a minimal manifest with a placeholder view so\n// the plugin can be listed in an admin shell without shipping the editor yet.\n//\n// For the customer-facing page, import from '@fayz-ai/plugin-linkinbio/public'.\n// ---------------------------------------------------------------------------\nimport { createElement } from 'react';\nimport type { PluginManifest, PluginScope, VerticalId } from '@fayz-ai/core';\n\nexport interface LinkInBioPluginOptions {\n basePath?: string;\n scope?: PluginScope;\n verticalId?: VerticalId;\n defaultEnabled?: boolean;\n}\n\nfunction EditorPlaceholder() {\n return createElement(\n 'div',\n { className: 'p-8 text-sm text-muted-foreground' },\n 'O editor de Link in Bio chega no v2. A página pública já está disponível em /p/:slug.',\n );\n}\n\nexport function createLinkInBioPlugin(options: LinkInBioPluginOptions = {}): PluginManifest {\n const basePath = options.basePath ?? '/link-in-bio';\n return {\n id: 'linkinbio',\n name: 'Link in Bio',\n icon: 'Link',\n version: '0.1.0',\n scope: options.scope ?? 'universal',\n verticalId: options.verticalId,\n scaffolds: ['saas', 'website'],\n defaultEnabled: options.defaultEnabled ?? false,\n dependencies: [],\n navigation: [{ section: 'main', position: 10, label: 'Link in Bio', route: basePath, icon: 'Link' }],\n routes: [{ path: basePath, component: EditorPlaceholder, guard: 'authenticated' }],\n widgets: [],\n };\n}\n\nexport type {\n BioPage,\n BioBlock,\n BioBranding,\n BioIdentity,\n BioSEO,\n BioSocialLink,\n BioMediaItem,\n BioFloatingCTA,\n} from './types';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BioPage.d.ts","sourceRoot":"","sources":["../../src/public/BioPage.tsx"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,gCA6G9B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BioPageRenderer.d.ts","sourceRoot":"","sources":["../../src/public/BioPageRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAY,MAAM,UAAU,CAAC;AAqBlD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,OAAO,CAAC;IACd,0EAA0E;IAC1E,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5C;AAKD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,oBAAoB,+BA0NhF"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=manifest.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manifest.test.d.ts","sourceRoot":"","sources":["../../../src/public/__tests__/manifest.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/public/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAWxC,MAAM,WAAW,mBAAmB;IAClC,yFAAyF;IACzF,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,kBAAkB;IACjC,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,wBAAgB,yBAAyB,CAAC,OAAO,GAAE,kBAAuB,GAAG,mBAAmB,CAO/F"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.supabase.d.ts","sourceRoot":"","sources":["../../src/public/data.supabase.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAElD,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,6BAA6B,CAAC,OAAO,GAAE,sBAA2B,GAAG,mBAAmB,CAgBvG"}