@yoamigo.com/core 0.1.13 → 0.1.14

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/index.js CHANGED
@@ -1824,7 +1824,8 @@ body.builder-selector-active .ya-text-editable:hover {
1824
1824
  color: var(--color-secondary, #5C4033);
1825
1825
  }
1826
1826
  .ProseMirror ::selection {
1827
- background: rgba(212, 165, 116, 0.3);
1827
+ background: rgba(212, 165, 116, 0.3) !important;
1828
+ color: inherit !important;
1828
1829
  }
1829
1830
  .ProseMirror p.is-editor-empty:first-child::before {
1830
1831
  content: attr(data-placeholder);
package/dist/prod.d.ts CHANGED
@@ -9,12 +9,14 @@ interface StaticLinkProps {
9
9
  fieldId: string;
10
10
  href?: string;
11
11
  className?: string;
12
+ /** Inline styles to apply to the link element */
13
+ style?: React.CSSProperties;
12
14
  as?: 'a' | 'span';
13
15
  children?: React.ReactNode;
14
16
  /** Optional click handler called after navigation */
15
17
  onClick?: () => void;
16
18
  }
17
- declare function StaticLink({ fieldId, href: defaultHref, className, as: Component, children, onClick }: StaticLinkProps): react_jsx_runtime.JSX.Element;
19
+ declare function StaticLink({ fieldId, href: defaultHref, className, style, as: Component, children, onClick }: StaticLinkProps): react_jsx_runtime.JSX.Element;
18
20
 
19
21
  /**
20
22
  * SafeHtml (Production) - Renders trusted HTML without sanitization.
package/dist/prod.js CHANGED
@@ -152,7 +152,7 @@ function isInternalPath(path) {
152
152
  if (path.startsWith("mailto:") || path.startsWith("tel:")) return false;
153
153
  return path.startsWith("/");
154
154
  }
155
- function StaticLink({ fieldId, href: defaultHref = "#", className, as: Component = "a", children, onClick }) {
155
+ function StaticLink({ fieldId, href: defaultHref = "#", className, style, as: Component = "a", children, onClick }) {
156
156
  const { getValue, mode } = useContentStore();
157
157
  const [, navigate] = useLocation();
158
158
  const textFieldId = `${fieldId}.text`;
@@ -193,6 +193,7 @@ function StaticLink({ fieldId, href: defaultHref = "#", className, as: Component
193
193
  href: Component === "a" ? href : void 0,
194
194
  onClick: handleClick,
195
195
  className,
196
+ style,
196
197
  "data-ya-restricted": "true",
197
198
  "data-field-id": fieldId,
198
199
  children: hasStoreText || hasStringChildren ? /* @__PURE__ */ jsx5(SafeHtml, { content: storeText || children || "", mode }) : hasReactChildren ? children : null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoamigo.com/core",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Core components, router, and utilities for YoAmigo templates",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",