@fayz-ai/plugin-linkinbio 0.9.1 → 0.10.0
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/package.json +11 -11
- package/dist/index.cjs +0 -33
- package/dist/index.cjs.map +0 -1
- package/dist/public/index.cjs +0 -1984
- package/dist/public/index.cjs.map +0 -1
package/package.json
CHANGED
|
@@ -3,24 +3,23 @@
|
|
|
3
3
|
"fayz": {
|
|
4
4
|
"status": "preview"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.10.0",
|
|
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
|
-
"
|
|
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
15
|
"source": "./src/index.ts",
|
|
15
16
|
"types": "./dist/index.d.ts",
|
|
16
|
-
"import": "./dist/index.js"
|
|
17
|
-
"require": "./dist/index.cjs"
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
18
|
},
|
|
19
19
|
"./public": {
|
|
20
20
|
"source": "./src/public/index.ts",
|
|
21
21
|
"types": "./dist/public/index.d.ts",
|
|
22
|
-
"import": "./dist/public/index.js"
|
|
23
|
-
"require": "./dist/public/index.cjs"
|
|
22
|
+
"import": "./dist/public/index.js"
|
|
24
23
|
}
|
|
25
24
|
},
|
|
26
25
|
"files": [
|
|
@@ -30,12 +29,12 @@
|
|
|
30
29
|
"peerDependencies": {
|
|
31
30
|
"react": "^18.0.0 || ^19.0.0",
|
|
32
31
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
33
|
-
"react-router-dom": "^6.0.0 || ^7.0.0"
|
|
32
|
+
"react-router-dom": "^6.0.0 || ^7.0.0",
|
|
33
|
+
"lucide-react": ">=0.400.0 <1.0.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"lucide-react": "^0.400.0",
|
|
37
36
|
"react-icons": "^5.3.0",
|
|
38
|
-
"@fayz-ai/core": "^0.
|
|
37
|
+
"@fayz-ai/core": "^0.9.0"
|
|
39
38
|
},
|
|
40
39
|
"devDependencies": {
|
|
41
40
|
"@types/react": "^18.3.0",
|
|
@@ -44,8 +43,9 @@
|
|
|
44
43
|
"react-router-dom": "^6.30.0",
|
|
45
44
|
"tsup": "^8.2.0",
|
|
46
45
|
"typescript": "^5.5.0",
|
|
47
|
-
"vitest": "^
|
|
48
|
-
"@types/react-dom": "^18.3.0"
|
|
46
|
+
"vitest": "^4.1.5",
|
|
47
|
+
"@types/react-dom": "^18.3.0",
|
|
48
|
+
"lucide-react": "^0.400.0"
|
|
49
49
|
},
|
|
50
50
|
"license": "MIT",
|
|
51
51
|
"keywords": [
|
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
|
package/dist/index.cjs.map
DELETED
|
@@ -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"]}
|