@yoamigo.com/core 1.1.0 → 1.3.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/dist/{icon-metadata-CVUpe16i.d.ts → icon-metadata-D-2LGr22.d.ts} +7 -7
- package/dist/icons.d.ts +6009 -0
- package/dist/icons.js +12008 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -2
- package/dist/prod.d.ts +4 -4
- package/dist/prod.js +10 -2
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { C as ChangeSource, Q as QueryFilter, b as CollectionRecord, o as CartItem, E as EditMode } from './cart-storage-DFdGPcwm.js';
|
|
2
2
|
export { a as CollectionClient, d as CollectionClientConfig, t as ContentStoreContextType, v as ContentStoreMode, p as ContentStoreProvider, L as ListOptions, c as ListResponse, S as SingleResponse, f as clearSessionId, g as getCollectionClient, n as getLocalCartItemCount, k as getLocalCartItems, e as getSessionId, i as initBuilderSelection, r as resetCollectionClient, q as useContentStore } from './cart-storage-DFdGPcwm.js';
|
|
3
|
-
export { a1 as BackgroundConfig, a2 as BackgroundImageConfig, C as ContentStoreProviderProd, D as DynamicIcon, a as DynamicIconProps, T as EmbedFieldValue, U as EmbedType, x as ICON_CATEGORIES, w as ICON_METADATA, B as IconCategory, I as IconComponent, h as IconLoader, F as IconMeta, J as ImageFieldValue, o as MarkdownText, q as MarkdownTextProps, a3 as OverlayConfig, P as PageInfo, m as StaticImage, n as StaticImageProps, M as StaticText, S as StaticTextProps, V as VideoFieldValue, Z as YaContainer, a0 as YaContainerProps, O as YaEmbed, R as YaEmbedProps, Y as YaImage, H as YaImageProps, W as YaLink, X as YaLinkProps, K as YaVideo, N as YaVideoProps, b as background, e as embed, g as getIcon, j as getIconLabel, A as getIconMeta, y as getIconsByCategory, i as image, f as isIconLoaded, l as link, d as loadIcon, _ as parseBackgroundConfig, s as parseEmbedUrl, p as preloadIcons, r as registerIcon, c as registerIcons, z as searchIcons, $ as serializeBackgroundConfig, Q as serializeEmbedValue, G as serializeImageValue, L as serializeVideoValue, t as text, u as useContentStoreProd, v as video } from './icon-metadata-
|
|
3
|
+
export { a1 as BackgroundConfig, a2 as BackgroundImageConfig, C as ContentStoreProviderProd, D as DynamicIcon, a as DynamicIconProps, T as EmbedFieldValue, U as EmbedType, x as ICON_CATEGORIES, w as ICON_METADATA, B as IconCategory, I as IconComponent, h as IconLoader, F as IconMeta, J as ImageFieldValue, o as MarkdownText, q as MarkdownTextProps, a3 as OverlayConfig, P as PageInfo, m as StaticImage, n as StaticImageProps, M as StaticText, S as StaticTextProps, V as VideoFieldValue, Z as YaContainer, a0 as YaContainerProps, O as YaEmbed, R as YaEmbedProps, Y as YaImage, H as YaImageProps, W as YaLink, X as YaLinkProps, K as YaVideo, N as YaVideoProps, b as background, e as embed, g as getIcon, j as getIconLabel, A as getIconMeta, y as getIconsByCategory, i as image, f as isIconLoaded, l as link, d as loadIcon, _ as parseBackgroundConfig, s as parseEmbedUrl, p as preloadIcons, r as registerIcon, c as registerIcons, z as searchIcons, $ as serializeBackgroundConfig, Q as serializeEmbedValue, G as serializeImageValue, L as serializeVideoValue, t as text, u as useContentStoreProd, v as video } from './icon-metadata-D-2LGr22.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import
|
|
5
|
+
import React__default, { ReactNode } from 'react';
|
|
6
6
|
export { Link, LinkProps, NavigateFunction, RouteDefinition, Router, RouterProps, ScrollRestoration, createRouteDefinition, extractRouteParams, filePathToRoutePath, generatePath, sortRoutesBySpecificity, useNavigate } from './router.js';
|
|
7
7
|
export { Route, Switch, useLocation, useParams } from 'wouter';
|
|
8
8
|
export { A as AssetResolverFn, C as ContentRegistry, c as contentRegistry, a as getAllContent, g as getContent, h as hasContent, r as registerContent, b as resolveAssetUrl, s as setAssetResolver } from './asset-resolver-BnIvDkVv.js';
|
|
@@ -15,7 +15,7 @@ interface YaTextProps {
|
|
|
15
15
|
className?: string;
|
|
16
16
|
as?: YaTextElement;
|
|
17
17
|
/** Optional fallback content (used if fieldId not in store) */
|
|
18
|
-
children?:
|
|
18
|
+
children?: React__default.ReactNode;
|
|
19
19
|
}
|
|
20
20
|
declare module '@tiptap/core' {
|
|
21
21
|
interface Commands<ReturnType> {
|
package/dist/index.js
CHANGED
|
@@ -6463,8 +6463,16 @@ async function loadIcon(name) {
|
|
|
6463
6463
|
const module = await loader();
|
|
6464
6464
|
IconComponent = module.default;
|
|
6465
6465
|
} else {
|
|
6466
|
-
|
|
6467
|
-
|
|
6466
|
+
try {
|
|
6467
|
+
const module = await import(
|
|
6468
|
+
/* @vite-ignore */
|
|
6469
|
+
`@tabler/icons-react/dist/esm/icons/${name}.mjs`
|
|
6470
|
+
);
|
|
6471
|
+
IconComponent = module.default;
|
|
6472
|
+
} catch {
|
|
6473
|
+
console.warn(`Icon "${name}" not found in @tabler/icons-react`);
|
|
6474
|
+
return null;
|
|
6475
|
+
}
|
|
6468
6476
|
}
|
|
6469
6477
|
if (!IconComponent) {
|
|
6470
6478
|
console.warn(`Icon "${name}" not found in @tabler/icons-react or custom icons`);
|
package/dist/prod.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { k as ContentStore, E as ContentStoreMode, C as ContentStoreProvider, D as DynamicIcon, a as DynamicIconProps, I as IconComponent, h as IconLoader, o as MarkdownText, q as MarkdownTextProps, P as PageInfo, m as StaticImage, n as StaticImageProps, M as StaticText, S as StaticTextProps, m as YaImage, n as YaImageProps, M as YaText, S as YaTextProps, b as background, e as embed, g as getIcon, j as getIconLabel, i as image, f as isIconLoaded, l as link, d as loadIcon, s as parseEmbedUrl, p as preloadIcons, r as registerIcon, c as registerIcons, t as text, u as useContentStore, v as video } from './icon-metadata-
|
|
1
|
+
export { k as ContentStore, E as ContentStoreMode, C as ContentStoreProvider, D as DynamicIcon, a as DynamicIconProps, I as IconComponent, h as IconLoader, o as MarkdownText, q as MarkdownTextProps, P as PageInfo, m as StaticImage, n as StaticImageProps, M as StaticText, S as StaticTextProps, m as YaImage, n as YaImageProps, M as YaText, S as YaTextProps, b as background, e as embed, g as getIcon, j as getIconLabel, i as image, f as isIconLoaded, l as link, d as loadIcon, s as parseEmbedUrl, p as preloadIcons, r as registerIcon, c as registerIcons, t as text, u as useContentStore, v as video } from './icon-metadata-D-2LGr22.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import
|
|
3
|
+
import React__default, { CSSProperties, ReactNode } from 'react';
|
|
4
4
|
export { Link, LinkProps, NavigateFunction, RouteDefinition, Router, RouterProps, ScrollRestoration, createRouteDefinition, extractRouteParams, filePathToRoutePath, generatePath, sortRoutesBySpecificity, useNavigate } from './router.js';
|
|
5
5
|
export { Route, Switch, useLocation, useParams } from 'wouter';
|
|
6
6
|
export { A as AssetResolverFn, C as ContentRegistry, c as contentRegistry, a as getAllContent, g as getContent, h as hasContent, r as registerContent, b as resolveAssetUrl, s as setAssetResolver } from './asset-resolver-BnIvDkVv.js';
|
|
@@ -11,9 +11,9 @@ interface StaticLinkProps {
|
|
|
11
11
|
href?: string;
|
|
12
12
|
className?: string;
|
|
13
13
|
/** Inline styles to apply to the link element */
|
|
14
|
-
style?:
|
|
14
|
+
style?: React__default.CSSProperties;
|
|
15
15
|
as?: 'a' | 'span';
|
|
16
|
-
children?:
|
|
16
|
+
children?: React__default.ReactNode;
|
|
17
17
|
/** Optional click handler called after navigation */
|
|
18
18
|
onClick?: () => void;
|
|
19
19
|
/**
|
package/dist/prod.js
CHANGED
|
@@ -270,8 +270,16 @@ async function loadIcon(name) {
|
|
|
270
270
|
const module = await loader();
|
|
271
271
|
IconComponent = module.default;
|
|
272
272
|
} else {
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
try {
|
|
274
|
+
const module = await import(
|
|
275
|
+
/* @vite-ignore */
|
|
276
|
+
`@tabler/icons-react/dist/esm/icons/${name}.mjs`
|
|
277
|
+
);
|
|
278
|
+
IconComponent = module.default;
|
|
279
|
+
} catch {
|
|
280
|
+
console.warn(`Icon "${name}" not found in @tabler/icons-react`);
|
|
281
|
+
return null;
|
|
282
|
+
}
|
|
275
283
|
}
|
|
276
284
|
if (!IconComponent) {
|
|
277
285
|
console.warn(`Icon "${name}" not found in @tabler/icons-react or custom icons`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoamigo.com/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Core components, router, and utilities for YoAmigo templates",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
"./lib/prod": {
|
|
31
31
|
"types": "./dist/lib-prod.d.ts",
|
|
32
32
|
"import": "./dist/lib-prod.js"
|
|
33
|
+
},
|
|
34
|
+
"./icons": {
|
|
35
|
+
"types": "./dist/icons.d.ts",
|
|
36
|
+
"import": "./dist/icons.js"
|
|
33
37
|
}
|
|
34
38
|
},
|
|
35
39
|
"files": [
|
|
@@ -64,12 +68,12 @@
|
|
|
64
68
|
"prepublishOnly": "pnpm build"
|
|
65
69
|
},
|
|
66
70
|
"dependencies": {
|
|
71
|
+
"@tabler/icons-react": "^3.36.1",
|
|
67
72
|
"clsx": "^2.1.1",
|
|
68
73
|
"html2canvas-pro": "^1.6.1",
|
|
69
74
|
"wouter": "^3.8.0"
|
|
70
75
|
},
|
|
71
76
|
"devDependencies": {
|
|
72
|
-
"@tabler/icons-react": "^3.36.1",
|
|
73
77
|
"@tiptap/core": "^3.11.1",
|
|
74
78
|
"@tiptap/extension-link": "^3.11.1",
|
|
75
79
|
"@tiptap/extension-text-style": "^3.11.1",
|
|
@@ -89,7 +93,6 @@
|
|
|
89
93
|
"vite": "^7.2.4"
|
|
90
94
|
},
|
|
91
95
|
"peerDependencies": {
|
|
92
|
-
"@tabler/icons-react": "^3.0.0",
|
|
93
96
|
"@tiptap/core": "^3.0.0",
|
|
94
97
|
"@tiptap/extension-link": "^3.0.0",
|
|
95
98
|
"@tiptap/extension-text-style": "^3.0.0",
|
|
@@ -103,9 +106,6 @@
|
|
|
103
106
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
104
107
|
},
|
|
105
108
|
"peerDependenciesMeta": {
|
|
106
|
-
"@tabler/icons-react": {
|
|
107
|
-
"optional": true
|
|
108
|
-
},
|
|
109
109
|
"react": {
|
|
110
110
|
"optional": true
|
|
111
111
|
},
|