@piedata/pieui 1.1.33 → 1.2.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/README.md +0 -10
- package/dist/cli.js +0 -146
- package/dist/components/PieBaseRoot/index.d.ts.map +1 -1
- package/dist/components/PieRoot/index.d.ts.map +1 -1
- package/dist/components/PieTelegramRoot/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +0 -3
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.esm.js +1 -2
- package/dist/components/index.js +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1 -2
- package/dist/index.js +1 -1
- package/package.json +8 -7
- package/dist/r/ajax-button-card.json +0 -68
- package/dist/r/ajax-group-card.json +0 -63
- package/dist/r/auto-redirect-card.json +0 -35
- package/dist/r/box-card.json +0 -44
- package/dist/r/chat-card.json +0 -236
- package/dist/r/hidden-card.json +0 -51
- package/dist/r/html-embed-card.json +0 -56
- package/dist/r/index.json +0 -92
- package/dist/r/io-events-card.json +0 -47
- package/dist/r/open-ai-voice-agent-card.json +0 -147
- package/dist/r/pie-card.json +0 -21
- package/dist/r/redirect-button-card.json +0 -56
- package/dist/r/sequence-card.json +0 -40
- package/dist/r/table-card.json +0 -122
- package/dist/r/ui.json +0 -21
- package/dist/r/union-card.json +0 -35
- package/dist/registry.json +0 -96
package/README.md
CHANGED
|
@@ -88,13 +88,3 @@ Type exports:
|
|
|
88
88
|
- `PieConfig`: Configuration object for Pie roots. Includes `apiServer` and optional `centrifugeServer`, `enableRenderingLog`, `pageProcessor`.
|
|
89
89
|
- `UIConfigType`: Server-driven UI configuration with `card`, `data`, and `content` (nested `UIConfigType` or array).
|
|
90
90
|
- `SetUiAjaxConfigurationType`: Setter type for updating the UI configuration or streaming UI events.
|
|
91
|
-
|
|
92
|
-
**Shadcn Registry Output**
|
|
93
|
-
|
|
94
|
-
`pieui postbuild` now also creates shadcn-compatible registry artifacts:
|
|
95
|
-
|
|
96
|
-
- `dist/registry.json`: registry source manifest.
|
|
97
|
-
- `dist/r/index.json`: index of installable items.
|
|
98
|
-
- `dist/r/<item>.json`: per-component registry item files.
|
|
99
|
-
|
|
100
|
-
Each item installs a lightweight wrapper component that re-exports the corresponding component from `@piedata/pieui/components`.
|
package/dist/cli.js
CHANGED
|
@@ -187223,10 +187223,6 @@ var TJS = __toESM(require_typescript_json_schema(), 1);
|
|
|
187223
187223
|
var __dirname = "/home/runner/work/pieui/pieui/src";
|
|
187224
187224
|
var MANIFEST_FILENAME = "pieui.components.json";
|
|
187225
187225
|
var REGISTER_FUNCTION = "registerPieComponent";
|
|
187226
|
-
var SHADCN_REGISTRY_SOURCE_FILENAME = "registry.json";
|
|
187227
|
-
var SHADCN_REGISTRY_DIRECTORY = "r";
|
|
187228
|
-
var SHADCN_REGISTRY_INDEX_FILENAME = "index.json";
|
|
187229
|
-
var SHADCN_ITEM_SCHEMA = "https://ui.shadcn.com/schema/registry-item.json";
|
|
187230
187226
|
var ts3 = TJS.ts;
|
|
187231
187227
|
var parseArgs = (argv) => {
|
|
187232
187228
|
const [command = ""] = argv;
|
|
@@ -187904,147 +187900,6 @@ export default ${componentName}
|
|
|
187904
187900
|
break;
|
|
187905
187901
|
}
|
|
187906
187902
|
};
|
|
187907
|
-
var toKebabCase = (value2) => {
|
|
187908
|
-
return value2.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z])([A-Z][a-z])/g, "$1-$2").replace(/[_\s]+/g, "-").toLowerCase();
|
|
187909
|
-
};
|
|
187910
|
-
var normalizeRepositoryUrl = (value2) => {
|
|
187911
|
-
return value2.replace(/^git\+/, "").replace(/^git@github\.com:/, "https://github.com/").replace(/\.git$/, "");
|
|
187912
|
-
};
|
|
187913
|
-
var readPackageMetadata = () => {
|
|
187914
|
-
const fallback = {
|
|
187915
|
-
name: "@piedata/pieui",
|
|
187916
|
-
homepage: "https://github.com/PieDataLabs/pieui"
|
|
187917
|
-
};
|
|
187918
|
-
const packageJsonPath = import_path.default.join(process.cwd(), "package.json");
|
|
187919
|
-
if (!import_fs2.default.existsSync(packageJsonPath)) {
|
|
187920
|
-
return fallback;
|
|
187921
|
-
}
|
|
187922
|
-
try {
|
|
187923
|
-
const packageJsonRaw = import_fs2.default.readFileSync(packageJsonPath, "utf8");
|
|
187924
|
-
const packageJson = JSON.parse(packageJsonRaw);
|
|
187925
|
-
const packageName = packageJson.name || fallback.name;
|
|
187926
|
-
const repositoryUrl = typeof packageJson.repository === "string" ? packageJson.repository : packageJson.repository?.url;
|
|
187927
|
-
const homepage = packageJson.homepage || (repositoryUrl ? normalizeRepositoryUrl(repositoryUrl) : fallback.homepage);
|
|
187928
|
-
return {
|
|
187929
|
-
name: packageName,
|
|
187930
|
-
homepage
|
|
187931
|
-
};
|
|
187932
|
-
} catch {
|
|
187933
|
-
return fallback;
|
|
187934
|
-
}
|
|
187935
|
-
};
|
|
187936
|
-
var findComponentExports = (srcDir) => {
|
|
187937
|
-
const componentsIndexPath = import_path.default.join(srcDir, "components", "index.ts");
|
|
187938
|
-
if (!import_fs2.default.existsSync(componentsIndexPath)) {
|
|
187939
|
-
console.log(`[pieui] Warning: ${componentsIndexPath} not found. Skipping shadcn registry generation.`);
|
|
187940
|
-
return [];
|
|
187941
|
-
}
|
|
187942
|
-
const sourceText = import_fs2.default.readFileSync(componentsIndexPath, "utf8");
|
|
187943
|
-
const sourceFile = ts3.createSourceFile(componentsIndexPath, sourceText, ts3.ScriptTarget.ES2020, true, ts3.ScriptKind.TS);
|
|
187944
|
-
const exports2 = [];
|
|
187945
|
-
for (const statement of sourceFile.statements) {
|
|
187946
|
-
if (!ts3.isExportDeclaration(statement) || !statement.moduleSpecifier || !ts3.isStringLiteral(statement.moduleSpecifier) || !statement.exportClause || !ts3.isNamedExports(statement.exportClause)) {
|
|
187947
|
-
continue;
|
|
187948
|
-
}
|
|
187949
|
-
const sourcePath = statement.moduleSpecifier.text;
|
|
187950
|
-
for (const element of statement.exportClause.elements) {
|
|
187951
|
-
if (element.propertyName && ts3.isIdentifier(element.propertyName) && element.propertyName.text === "default") {
|
|
187952
|
-
exports2.push({
|
|
187953
|
-
name: element.name.text,
|
|
187954
|
-
sourcePath
|
|
187955
|
-
});
|
|
187956
|
-
}
|
|
187957
|
-
}
|
|
187958
|
-
}
|
|
187959
|
-
return exports2;
|
|
187960
|
-
};
|
|
187961
|
-
var createShadcnWrapperContent = (componentName, packageName) => {
|
|
187962
|
-
return `import { ${componentName} } from '${packageName}/components'
|
|
187963
|
-
|
|
187964
|
-
export default ${componentName}
|
|
187965
|
-
`;
|
|
187966
|
-
};
|
|
187967
|
-
var writeShadcnRegistry = (outDir, srcDir, componentManifest) => {
|
|
187968
|
-
console.log("[pieui] Generating shadcn registry...");
|
|
187969
|
-
const exports2 = findComponentExports(srcDir).sort((a, b) => a.name.localeCompare(b.name));
|
|
187970
|
-
if (exports2.length === 0) {
|
|
187971
|
-
console.log("[pieui] Warning: No default exports found in src/components/index.ts");
|
|
187972
|
-
return;
|
|
187973
|
-
}
|
|
187974
|
-
const packageMetadata = readPackageMetadata();
|
|
187975
|
-
const manifestByCard = new Map(componentManifest.map((entry) => [entry.card, entry]));
|
|
187976
|
-
const usedItemNames = new Set;
|
|
187977
|
-
const getUniqueItemName = (initialName) => {
|
|
187978
|
-
if (!usedItemNames.has(initialName)) {
|
|
187979
|
-
usedItemNames.add(initialName);
|
|
187980
|
-
return initialName;
|
|
187981
|
-
}
|
|
187982
|
-
let index = 2;
|
|
187983
|
-
while (usedItemNames.has(`${initialName}-${index}`)) {
|
|
187984
|
-
index += 1;
|
|
187985
|
-
}
|
|
187986
|
-
const uniqueName = `${initialName}-${index}`;
|
|
187987
|
-
usedItemNames.add(uniqueName);
|
|
187988
|
-
return uniqueName;
|
|
187989
|
-
};
|
|
187990
|
-
const items = exports2.map((component) => {
|
|
187991
|
-
const itemName = getUniqueItemName(toKebabCase(component.name));
|
|
187992
|
-
const schemaEntry = manifestByCard.get(component.name);
|
|
187993
|
-
const description = schemaEntry ? `${component.name} card from PieUI` : `${component.name} component from PieUI`;
|
|
187994
|
-
const meta = {
|
|
187995
|
-
sourceExport: component.name,
|
|
187996
|
-
sourcePath: component.sourcePath
|
|
187997
|
-
};
|
|
187998
|
-
if (schemaEntry) {
|
|
187999
|
-
meta.pieCard = schemaEntry.card;
|
|
188000
|
-
meta.dataSchema = schemaEntry.data;
|
|
188001
|
-
}
|
|
188002
|
-
return {
|
|
188003
|
-
$schema: SHADCN_ITEM_SCHEMA,
|
|
188004
|
-
name: itemName,
|
|
188005
|
-
type: "registry:component",
|
|
188006
|
-
title: component.name,
|
|
188007
|
-
description,
|
|
188008
|
-
dependencies: [packageMetadata.name],
|
|
188009
|
-
files: [
|
|
188010
|
-
{
|
|
188011
|
-
path: `registry/${itemName}.tsx`,
|
|
188012
|
-
type: "registry:component",
|
|
188013
|
-
content: createShadcnWrapperContent(component.name, packageMetadata.name)
|
|
188014
|
-
}
|
|
188015
|
-
],
|
|
188016
|
-
meta
|
|
188017
|
-
};
|
|
188018
|
-
});
|
|
188019
|
-
const registry = {
|
|
188020
|
-
name: packageMetadata.name,
|
|
188021
|
-
homepage: packageMetadata.homepage,
|
|
188022
|
-
items: items.map((item) => ({
|
|
188023
|
-
name: item.name,
|
|
188024
|
-
type: item.type,
|
|
188025
|
-
title: item.title,
|
|
188026
|
-
description: item.description
|
|
188027
|
-
}))
|
|
188028
|
-
};
|
|
188029
|
-
const resolvedOutDir = import_path.default.resolve(process.cwd(), outDir);
|
|
188030
|
-
const registryDir = import_path.default.join(resolvedOutDir, SHADCN_REGISTRY_DIRECTORY);
|
|
188031
|
-
import_fs2.default.mkdirSync(registryDir, { recursive: true });
|
|
188032
|
-
const sourceRegistryPath = import_path.default.join(resolvedOutDir, SHADCN_REGISTRY_SOURCE_FILENAME);
|
|
188033
|
-
import_fs2.default.writeFileSync(sourceRegistryPath, JSON.stringify(registry, null, 2));
|
|
188034
|
-
const indexPath = import_path.default.join(registryDir, SHADCN_REGISTRY_INDEX_FILENAME);
|
|
188035
|
-
import_fs2.default.writeFileSync(indexPath, JSON.stringify(items.map((item) => ({
|
|
188036
|
-
name: item.name,
|
|
188037
|
-
type: item.type,
|
|
188038
|
-
title: item.title,
|
|
188039
|
-
description: item.description
|
|
188040
|
-
})), null, 2));
|
|
188041
|
-
for (const item of items) {
|
|
188042
|
-
const itemPath = import_path.default.join(registryDir, `${item.name}.json`);
|
|
188043
|
-
import_fs2.default.writeFileSync(itemPath, JSON.stringify(item, null, 2));
|
|
188044
|
-
}
|
|
188045
|
-
console.log(`[pieui] Shadcn registry saved to ${sourceRegistryPath} and ${registryDir}`);
|
|
188046
|
-
console.log(`[pieui] Shadcn components generated: ${items.length}`);
|
|
188047
|
-
};
|
|
188048
187903
|
var main = async () => {
|
|
188049
187904
|
const { command, outDir, srcDir, append, componentName, componentType } = parseArgs(process.argv.slice(2));
|
|
188050
187905
|
console.log(`[pieui] CLI started with command: "${command}"`);
|
|
@@ -188198,7 +188053,6 @@ var main = async () => {
|
|
|
188198
188053
|
import_fs2.default.writeFileSync(manifestPath, JSON.stringify(mergedEntries, null, 2), "utf8");
|
|
188199
188054
|
console.log(`[pieui] Component manifest saved to ${manifestPath}`);
|
|
188200
188055
|
console.log(`[pieui] Total components: ${mergedEntries.length} (${existingEntries.length} from pieui, ${entries.length} new/updated)`);
|
|
188201
|
-
writeShadcnRegistry(outDir, srcDir, mergedEntries);
|
|
188202
188056
|
} catch (error) {
|
|
188203
188057
|
const message = error instanceof Error ? error.message : String(error);
|
|
188204
188058
|
console.error(`[pieui] Failed to generate component manifest: ${message}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PieBaseRoot/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PieBaseRoot/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AA6D1C,QAAA,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CAY3C,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PieRoot/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PieRoot/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAqLtC,QAAA,MAAM,OAAO,GAAI,OAAO,YAAY,4CAYnC,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PieTelegramRoot/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAA;AAQjD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PieTelegramRoot/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAA;AAQjD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AA6L/C,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAY3C,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -2,11 +2,8 @@ export { default as PieCard } from './PieCard';
|
|
|
2
2
|
export { default as UI } from './UI';
|
|
3
3
|
export { default as ChatCard } from './Chats/ChatCard';
|
|
4
4
|
export { default as AjaxButtonCard } from './Buttons/AjaxButtonCard';
|
|
5
|
-
export { default as AjaxGroupCard } from './Containers/AjaxGroupCard';
|
|
6
5
|
export { default as RedirectButtonCard } from './Buttons/RedirectButtonCard';
|
|
7
6
|
export { default as SequenceCard } from './Containers/SequenceCard';
|
|
8
|
-
export { default as BoxCard } from './Containers/BoxCard';
|
|
9
|
-
export { default as TableCard } from './Containers/TableCard';
|
|
10
7
|
export { default as UnionCard } from './Containers/UnionCard';
|
|
11
8
|
export { default as HTMLEmbedCard } from './Common/HTMLEmbedCard';
|
|
12
9
|
export { default as OpenAIVoiceAgentCard } from './Agents/OpenAIVoiceAgentCard';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,MAAM,CAAA;AACpC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAA"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export{default11 as UnionCard,default3 as UI,default10 as TableCard,default8 as SequenceCard,default7 as RedirectButtonCard,default2 as PieCard,default13 as OpenAIVoiceAgentCard,default16 as IOEventsCard,default14 as HiddenCard,default12 as HTMLEmbedCard,default4 as ChatCard,default9 as BoxCard,default15 as AutoRedirectCard,default6 as AjaxGroupCard,default5 as AjaxButtonCard};
|
|
1
|
+
export{n as UnionCard,o as UI,l as SequenceCard,s as RedirectButtonCard,r as PieCard,I as OpenAIVoiceAgentCard,U as IOEventsCard,E as HiddenCard,c as HTMLEmbedCard,f as ChatCard,O as AutoRedirectCard,m as AjaxButtonCard};
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var g=Object.create;var{getPrototypeOf:h,defineProperty:d,getOwnPropertyNames:x,getOwnPropertyDescriptor:j}=Object,l=Object.prototype.hasOwnProperty;function C(e){return this[e]}var q,v,r=(e,a,t)=>{var o=e!=null&&typeof e==="object";if(o){var m=a?q??=new WeakMap:v??=new WeakMap,p=m.get(e);if(p)return p}t=e!=null?g(h(e)):{};let f=a||!e||!e.__esModule?d(t,"default",{value:e,enumerable:!0}):t;for(let u of x(e))if(!l.call(f,u))d(f,u,{get:C.bind(e,u),enumerable:!0});if(o)m.set(e,f);return f},L=(e)=>{var a=(s??=new WeakMap).get(e),t;if(a)return a;if(a=d({},"__esModule",{value:!0}),e&&typeof e==="object"||typeof e==="function"){for(var o of x(e))if(!l.call(a,o))d(a,o,{get:C.bind(e,o),enumerable:!(t=j(e,o))||t.enumerable})}return s.set(e,a),a},s;var M=(e)=>e;function P(e,a){this[e]=M.bind(null,a)}var S=(e,a)=>{for(var t in a)d(e,t,{get:a[t],enumerable:!0,configurable:!0,set:P.bind(a,t)})};var T={};S(T,{UnionCard:()=>E.default,UI:()=>i.default,SequenceCard:()=>B.default,RedirectButtonCard:()=>I.default,PieCard:()=>n.default,OpenAIVoiceAgentCard:()=>O.default,IOEventsCard:()=>b.default,HiddenCard:()=>R.default,HTMLEmbedCard:()=>H.default,ChatCard:()=>c.default,AutoRedirectCard:()=>U.default,AjaxButtonCard:()=>A.default});module.exports=L(T);
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EACH,uBAAuB,EACvB,0BAA0B,GAC7B,MAAM,6BAA6B,CAAA;AAEpC,YAAY,EACR,iBAAiB,EACjB,uBAAuB,EACvB,wBAAwB,EACxB,0BAA0B,EAC1B,iCAAiC,EACjC,SAAS,EACT,YAAY,EACZ,0BAA0B,GAC7B,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,EACH,OAAO,IAAI,eAAe,EAC1B,KAAK,WAAW,EAChB,KAAK,qBAAqB,GAC7B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,EAAE,EAAE,MAAM,4BAA4B,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA"}
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export{default7 as useOpenAIWebRTC,useAjaxSubmit,sx2radium,submitGlobalForm,registerPieComponent,isPieComponentsInitialized,initializePieComponents,cn,default2 as UI,default4 as PieTelegramRoot,default3 as PieRoot,default6 as PieCard,default5 as PieBaseRoot,PIEBREAK};
|
|
1
|
+
export{y as useOpenAIWebRTC,I as useAjaxSubmit,b as sx2radium,S as submitGlobalForm,P as registerPieComponent,u as isPieComponentsInitialized,l as initializePieComponents,T as cn,t as UI,n as PieTelegramRoot,p as PieRoot,s as PieCard,a as PieBaseRoot,E as PIEBREAK};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var S=Object.create;var{getPrototypeOf:j,defineProperty:i,getOwnPropertyNames:P,getOwnPropertyDescriptor:z}=Object,C=Object.prototype.hasOwnProperty;function l(e){return this[e]}var B,W,p=(e,o,t)=>{var r=e!=null&&typeof e==="object";if(r){var f=o?B??=new WeakMap:W??=new WeakMap,s=f.get(e);if(s)return s}t=e!=null?S(j(e)):{};let n=o||!e||!e.__esModule?i(t,"default",{value:e,enumerable:!0}):t;for(let a of P(e))if(!C.call(n,a))i(n,a,{get:l.bind(e,a),enumerable:!0});if(r)f.set(e,n);return n},c=(e)=>{var o=(x??=new WeakMap).get(e),t;if(o)return o;if(o=i({},"__esModule",{value:!0}),e&&typeof e==="object"||typeof e==="function"){for(var r of P(e))if(!C.call(o,r))i(o,r,{get:l.bind(e,r),enumerable:!(t=z(e,r))||t.enumerable})}return x.set(e,o),o},x;var v=(e)=>e;function F(e,o){this[e]=v.bind(null,o)}var G=(e,o)=>{for(var t in o)i(e,t,{get:o[t],enumerable:!0,configurable:!0,set:F.bind(o,t)})};var K={};G(K,{useOpenAIWebRTC:()=>g.default,useAjaxSubmit:()=>b.useAjaxSubmit,sx2radium:()=>T.sx2radium,submitGlobalForm:()=>O.submitGlobalForm,registerPieComponent:()=>A.registerPieComponent,isPieComponentsInitialized:()=>m.isPieComponentsInitialized,initializePieComponents:()=>m.initializePieComponents,cn:()=>U.cn,UI:()=>u.default,PieTelegramRoot:()=>I.default,PieRoot:()=>d.default,PieCard:()=>y.default,PieBaseRoot:()=>R.default,PIEBREAK:()=>E.PIEBREAK});module.exports=c(K);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@piedata/pieui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A React component library featuring PieCard component",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "rm -rf ./dist && rm -rf pieui-*.tgz && bun run build:clean && NODE_ENV=production bun run build:esm && NODE_ENV=production bun run build:cjs && NODE_ENV=production bun run build:components:esm && NODE_ENV=production bun run build:components:cjs && NODE_ENV=production bun run build:types && NODE_ENV=production bun run build:cli && bun src/cli.ts postbuild --src-dir src --out-dir dist && bun pm pack",
|
|
33
33
|
"build:clean": "rm -rf dist",
|
|
34
|
-
"build:esm": "bun build src/index.ts --outfile dist/index.esm.js --format esm --target browser --jsx=automatic --jsx-import-source=react --external react --external react-dom --external highlight.js --external rehype-highlight --external glob --external typescript --external typescript-json-schema --external @tanstack/react-query --external fsl-authorization --minify
|
|
35
|
-
"build:cjs": "bun build src/index.ts --outfile dist/index.js --format cjs --target node --jsx=automatic --jsx-import-source=react --external react --external react-dom --external highlight.js --external rehype-highlight --external glob --external typescript --external @tanstack/react-query --external typescript-json-schema --external fsl-authorization --minify
|
|
36
|
-
"build:components:esm": "bun build src/components/index.ts --outfile dist/components/index.esm.js --format esm --target browser --jsx=automatic --jsx-import-source=react --external react --external react-dom --external highlight.js --external rehype-highlight --external glob --external @tanstack/react-query --external typescript --external typescript-json-schema --external fsl-authorization --minify
|
|
37
|
-
"build:components:cjs": "bun build src/components/index.ts --outfile dist/components/index.js --format cjs --target node --jsx=automatic --jsx-import-source=react --external react --external react-dom --external highlight.js --external rehype-highlight --external glob --external typescript --external @tanstack/react-query --external typescript-json-schema --external fsl-authorization --minify
|
|
38
|
-
"build:esm:debug": "bun build src/index.ts --outfile dist/index.esm.js --format esm --target browser --jsx=automatic --jsx-import-source=react --external react --external react-dom --external highlight.js --external rehype-highlight --external glob --external typescript --external typescript-json-schema --external @tanstack/react-query --external fsl-authorization
|
|
34
|
+
"build:esm": "bun build src/index.ts --outfile dist/index.esm.js --format esm --target browser --jsx=automatic --jsx-import-source=react --external react --external react-dom --external highlight.js --external rehype-highlight --external glob --external typescript --external typescript-json-schema --external @tanstack/react-query --external fsl-authorization --minify",
|
|
35
|
+
"build:cjs": "bun build src/index.ts --outfile dist/index.js --format cjs --target node --jsx=automatic --jsx-import-source=react --external react --external react-dom --external highlight.js --external rehype-highlight --external glob --external typescript --external @tanstack/react-query --external typescript-json-schema --external fsl-authorization --minify",
|
|
36
|
+
"build:components:esm": "bun build src/components/index.ts --outfile dist/components/index.esm.js --format esm --target browser --jsx=automatic --jsx-import-source=react --external react --external react-dom --external highlight.js --external rehype-highlight --external glob --external @tanstack/react-query --external typescript --external typescript-json-schema --external fsl-authorization --minify",
|
|
37
|
+
"build:components:cjs": "bun build src/components/index.ts --outfile dist/components/index.js --format cjs --target node --jsx=automatic --jsx-import-source=react --external react --external react-dom --external highlight.js --external rehype-highlight --external glob --external typescript --external @tanstack/react-query --external typescript-json-schema --external fsl-authorization --minify",
|
|
38
|
+
"build:esm:debug": "bun build src/index.ts --outfile dist/index.esm.js --format esm --target browser --jsx=automatic --jsx-import-source=react --external react --external react-dom --external highlight.js --external rehype-highlight --external glob --external typescript --external typescript-json-schema --external @tanstack/react-query --external fsl-authorization",
|
|
39
39
|
"build:cjs:debug": "bun build src/index.ts --outfile dist/index.js --format cjs --target node --jsx=automatic --jsx-import-source=react --external react --external react-dom --external highlight.js --external rehype-highlight --external glob --external typescript --external @tanstack/react-query --external typescript-json-schema --external fsl-authorization",
|
|
40
|
-
"build:components:esm:debug": "bun build src/components/index.ts --outfile dist/components/index.esm.js --format esm --target browser --jsx=automatic --jsx-import-source=react --external react --external react-dom --external highlight.js --external rehype-highlight --external glob --external @tanstack/react-query --external typescript --external typescript-json-schema --external fsl-authorization
|
|
40
|
+
"build:components:esm:debug": "bun build src/components/index.ts --outfile dist/components/index.esm.js --format esm --target browser --jsx=automatic --jsx-import-source=react --external react --external react-dom --external highlight.js --external rehype-highlight --external glob --external @tanstack/react-query --external typescript --external typescript-json-schema --external fsl-authorization",
|
|
41
41
|
"build:components:cjs:debug": "bun build src/components/index.ts --outfile dist/components/index.js --format cjs --target node --jsx=automatic --jsx-import-source=react --external react --external react-dom --external highlight.js --external rehype-highlight --external glob --external typescript --external @tanstack/react-query --external typescript-json-schema --external fsl-authorization",
|
|
42
42
|
"build:debug": "rm -rf ./dist && rm -rf pieui-*.tgz && bun run build:clean && NODE_ENV=production bun run build:esm:debug && NODE_ENV=production bun run build:cjs:debug && NODE_ENV=production bun run build:components:esm:debug && NODE_ENV=production bun run build:components:cjs:debug && NODE_ENV=production bun run build:types && NODE_ENV=production bun run build:cli && bun src/cli.ts postbuild --src-dir src --out-dir dist && bun pm pack",
|
|
43
43
|
"build:types": "tsc --emitDeclarationOnly",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/bun": "latest",
|
|
77
77
|
"@types/glob": "^9.0.0",
|
|
78
|
+
"ajv": "^8.18.0",
|
|
78
79
|
"autoprefixer": "10",
|
|
79
80
|
"commander": "^14.0.3",
|
|
80
81
|
"eslint-plugin-no-browser-globals": "^1.0.1",
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "ajax-button-card",
|
|
4
|
-
"type": "registry:component",
|
|
5
|
-
"title": "AjaxButtonCard",
|
|
6
|
-
"description": "AjaxButtonCard card from PieUI",
|
|
7
|
-
"dependencies": [
|
|
8
|
-
"@piedata/pieui"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "registry/ajax-button-card.tsx",
|
|
13
|
-
"type": "registry:component",
|
|
14
|
-
"content": "import { AjaxButtonCard } from '@piedata/pieui/components'\n\nexport default AjaxButtonCard\n"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"meta": {
|
|
18
|
-
"sourceExport": "AjaxButtonCard",
|
|
19
|
-
"sourcePath": "./Buttons/AjaxButtonCard",
|
|
20
|
-
"pieCard": "AjaxButtonCard",
|
|
21
|
-
"dataSchema": {
|
|
22
|
-
"type": "object",
|
|
23
|
-
"properties": {
|
|
24
|
-
"name": {
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
"title": {
|
|
28
|
-
"type": "string"
|
|
29
|
-
},
|
|
30
|
-
"pathname": {
|
|
31
|
-
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
"depsNames": {
|
|
34
|
-
"type": "array",
|
|
35
|
-
"items": {
|
|
36
|
-
"type": "string"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"kwargs": {
|
|
40
|
-
"type": "object",
|
|
41
|
-
"additionalProperties": {
|
|
42
|
-
"type": "string"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"iconUrl": {
|
|
46
|
-
"type": "string"
|
|
47
|
-
},
|
|
48
|
-
"iconPosition": {
|
|
49
|
-
"enum": [
|
|
50
|
-
"end",
|
|
51
|
-
"start"
|
|
52
|
-
],
|
|
53
|
-
"type": "string"
|
|
54
|
-
},
|
|
55
|
-
"sx": {
|
|
56
|
-
"type": "object",
|
|
57
|
-
"additionalProperties": {}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"additionalProperties": false,
|
|
61
|
-
"required": [
|
|
62
|
-
"name",
|
|
63
|
-
"title"
|
|
64
|
-
],
|
|
65
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "ajax-group-card",
|
|
4
|
-
"type": "registry:component",
|
|
5
|
-
"title": "AjaxGroupCard",
|
|
6
|
-
"description": "AjaxGroupCard card from PieUI",
|
|
7
|
-
"dependencies": [
|
|
8
|
-
"@piedata/pieui"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "registry/ajax-group-card.tsx",
|
|
13
|
-
"type": "registry:component",
|
|
14
|
-
"content": "import { AjaxGroupCard } from '@piedata/pieui/components'\n\nexport default AjaxGroupCard\n"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"meta": {
|
|
18
|
-
"sourceExport": "AjaxGroupCard",
|
|
19
|
-
"sourcePath": "./Containers/AjaxGroupCard",
|
|
20
|
-
"pieCard": "AjaxGroupCard",
|
|
21
|
-
"dataSchema": {
|
|
22
|
-
"type": "object",
|
|
23
|
-
"properties": {
|
|
24
|
-
"name": {
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
"noReturn": {
|
|
28
|
-
"type": "boolean"
|
|
29
|
-
},
|
|
30
|
-
"returnType": {
|
|
31
|
-
"enum": [
|
|
32
|
-
"content",
|
|
33
|
-
"events"
|
|
34
|
-
],
|
|
35
|
-
"type": "string"
|
|
36
|
-
},
|
|
37
|
-
"useLoader": {
|
|
38
|
-
"type": "boolean"
|
|
39
|
-
},
|
|
40
|
-
"useSocketioSupport": {
|
|
41
|
-
"type": "boolean"
|
|
42
|
-
},
|
|
43
|
-
"useCentrifugeSupport": {
|
|
44
|
-
"type": "boolean"
|
|
45
|
-
},
|
|
46
|
-
"useMittSupport": {
|
|
47
|
-
"type": "boolean"
|
|
48
|
-
},
|
|
49
|
-
"centrifugeChannel": {
|
|
50
|
-
"type": "string"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"additionalProperties": false,
|
|
54
|
-
"required": [
|
|
55
|
-
"name",
|
|
56
|
-
"noReturn",
|
|
57
|
-
"returnType",
|
|
58
|
-
"useLoader"
|
|
59
|
-
],
|
|
60
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "auto-redirect-card",
|
|
4
|
-
"type": "registry:component",
|
|
5
|
-
"title": "AutoRedirectCard",
|
|
6
|
-
"description": "AutoRedirectCard card from PieUI",
|
|
7
|
-
"dependencies": [
|
|
8
|
-
"@piedata/pieui"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "registry/auto-redirect-card.tsx",
|
|
13
|
-
"type": "registry:component",
|
|
14
|
-
"content": "import { AutoRedirectCard } from '@piedata/pieui/components'\n\nexport default AutoRedirectCard\n"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"meta": {
|
|
18
|
-
"sourceExport": "AutoRedirectCard",
|
|
19
|
-
"sourcePath": "./Common/AutoRedirectCard",
|
|
20
|
-
"pieCard": "AutoRedirectCard",
|
|
21
|
-
"dataSchema": {
|
|
22
|
-
"type": "object",
|
|
23
|
-
"properties": {
|
|
24
|
-
"url": {
|
|
25
|
-
"type": "string"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"additionalProperties": false,
|
|
29
|
-
"required": [
|
|
30
|
-
"url"
|
|
31
|
-
],
|
|
32
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
package/dist/r/box-card.json
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "box-card",
|
|
4
|
-
"type": "registry:component",
|
|
5
|
-
"title": "BoxCard",
|
|
6
|
-
"description": "BoxCard card from PieUI",
|
|
7
|
-
"dependencies": [
|
|
8
|
-
"@piedata/pieui"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "registry/box-card.tsx",
|
|
13
|
-
"type": "registry:component",
|
|
14
|
-
"content": "import { BoxCard } from '@piedata/pieui/components'\n\nexport default BoxCard\n"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"meta": {
|
|
18
|
-
"sourceExport": "BoxCard",
|
|
19
|
-
"sourcePath": "./Containers/BoxCard",
|
|
20
|
-
"pieCard": "BoxCard",
|
|
21
|
-
"dataSchema": {
|
|
22
|
-
"type": "object",
|
|
23
|
-
"properties": {
|
|
24
|
-
"name": {
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
"url": {
|
|
28
|
-
"type": "string"
|
|
29
|
-
},
|
|
30
|
-
"sx": {
|
|
31
|
-
"type": "object",
|
|
32
|
-
"additionalProperties": {}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"additionalProperties": false,
|
|
36
|
-
"required": [
|
|
37
|
-
"name",
|
|
38
|
-
"sx",
|
|
39
|
-
"url"
|
|
40
|
-
],
|
|
41
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|