app-studio 0.7.9 → 0.7.10
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/app-studio.cjs.development.js +41 -0
- package/dist/app-studio.cjs.development.js.map +1 -1
- package/dist/app-studio.cjs.production.min.js +1 -1
- package/dist/app-studio.esm.js +41 -0
- package/dist/app-studio.esm.js.map +1 -1
- package/dist/app-studio.umd.development.js +41 -0
- package/dist/app-studio.umd.development.js.map +1 -1
- package/dist/app-studio.umd.production.min.js +1 -1
- package/package.json +1 -1
|
@@ -1812,12 +1812,53 @@ const cssProperties = /*#__PURE__*/new Set([
|
|
|
1812
1812
|
'textJustify', 'lineClamp', 'textIndent', 'perspective']);
|
|
1813
1813
|
// Common React event handlers that should not be treated as style props
|
|
1814
1814
|
const commonEventHandlers = /*#__PURE__*/new Set(['onClick', 'onChange', 'onSubmit', 'onFocus', 'onBlur', 'onKeyDown', 'onKeyUp', 'onKeyPress', 'onMouseDown', 'onMouseUp', 'onMouseMove', 'onMouseEnter', 'onMouseLeave', 'onTouchStart', 'onTouchEnd', 'onTouchMove', 'onScroll', 'onWheel', 'onDrag', 'onDragStart', 'onDragEnd', 'onDrop']);
|
|
1815
|
+
// Non-hyphenated HTML/SVG attributes that must never be treated as style props.
|
|
1816
|
+
// Hyphenated attributes (aria-*, data-*, etc.) are caught by a prefix/hyphen check below.
|
|
1817
|
+
const htmlOnlyAttributes = /*#__PURE__*/new Set([
|
|
1818
|
+
// Accessibility
|
|
1819
|
+
'role', 'tabIndex',
|
|
1820
|
+
// Global HTML attributes
|
|
1821
|
+
'id', 'title', 'lang', 'dir', 'hidden', 'draggable', 'contentEditable', 'spellCheck', 'nonce', 'slot', 'is', 'inputMode', 'enterKeyHint', 'autofocus', 'autoFocus', 'translate',
|
|
1822
|
+
// Form attributes
|
|
1823
|
+
'autoComplete', 'name', 'disabled', 'readOnly', 'required', 'checked', 'selected', 'multiple', 'value', 'defaultValue', 'defaultChecked', 'placeholder', 'htmlFor', 'type', 'accept', 'maxLength', 'minLength', 'pattern', 'noValidate', 'formAction', 'formEncType', 'formMethod', 'formNoValidate', 'formTarget',
|
|
1824
|
+
// Link/navigation attributes
|
|
1825
|
+
'href', 'target', 'rel', 'download', 'referrerPolicy', 'integrity', 'crossOrigin',
|
|
1826
|
+
// Form container attributes
|
|
1827
|
+
'action', 'method', 'encType',
|
|
1828
|
+
// Media attributes
|
|
1829
|
+
'autoPlay', 'controls', 'loop', 'muted', 'playsInline', 'poster', 'preload', 'mediaGroup',
|
|
1830
|
+
// Image/embed attributes
|
|
1831
|
+
'loading', 'decoding', 'sizes', 'srcDoc', 'srcLang', 'srcSet', 'useMap',
|
|
1832
|
+
// Table attributes
|
|
1833
|
+
'colSpan', 'rowSpan', 'cols', 'rows', 'headers', 'scope', 'span',
|
|
1834
|
+
// Iframe/embed attributes
|
|
1835
|
+
'sandbox', 'allowFullScreen', 'frameBorder', 'scrolling', 'seamless', 'allow',
|
|
1836
|
+
// Interactive attributes
|
|
1837
|
+
'open', 'cite', 'dateTime', 'reversed', 'start', 'high', 'low', 'optimum', 'wrap', 'shape', 'size', 'summary',
|
|
1838
|
+
// Script/resource attributes
|
|
1839
|
+
'async', 'defer', 'noModule', 'charSet', 'httpEquiv', 'manifest',
|
|
1840
|
+
// Microdata/RDFa attributes
|
|
1841
|
+
'about', 'datatype', 'inlist', 'prefix', 'property', 'resource', 'typeof', 'vocab', 'itemProp', 'itemScope', 'itemType', 'itemID', 'itemRef',
|
|
1842
|
+
// Deprecated but still used
|
|
1843
|
+
'classID', 'contextMenu', 'keyParams', 'keyType', 'kind', 'label', 'list', 'profile', 'radioGroup', 'wmode', 'capture', 'challenge', 'scoped', 'step', 'form',
|
|
1844
|
+
// SVG-only attributes (not CSS properties)
|
|
1845
|
+
'viewBox', 'preserveAspectRatio', 'xmlns', 'xlinkHref', 'xmlBase', 'xmlLang', 'xmlSpace', 'd', 'pathLength', 'points', 'markerEnd', 'markerMid', 'markerStart', 'clipPathUnits', 'gradientUnits', 'gradientTransform', 'patternUnits', 'patternTransform', 'patternContentUnits', 'spreadMethod', 'startOffset', 'stdDeviation', 'stitchTiles', 'surfaceScale', 'textLength', 'lengthAdjust', 'maskUnits', 'maskContentUnits', 'filterUnits', 'primitiveUnits', 'numOctaves', 'baseFrequency', 'seed', 'result', 'in2', 'values', 'keyTimes', 'keySplines', 'repeatCount', 'repeatDur', 'calcMode', 'attributeName', 'attributeType', 'begin', 'dur', 'end', 'by']);
|
|
1815
1846
|
// Improved style prop detection
|
|
1816
1847
|
const isStyleProp = prop => {
|
|
1817
1848
|
// First check if it's a common event handler (these should never be treated as style props)
|
|
1818
1849
|
if (commonEventHandlers.has(prop)) {
|
|
1819
1850
|
return false;
|
|
1820
1851
|
}
|
|
1852
|
+
// HTML attributes should never be treated as style props
|
|
1853
|
+
if (htmlOnlyAttributes.has(prop)) {
|
|
1854
|
+
return false;
|
|
1855
|
+
}
|
|
1856
|
+
// Any prop containing a hyphen is an HTML attribute (aria-*, data-*, accept-charset, etc.)
|
|
1857
|
+
// In React, CSS properties are always camelCase — only CSS custom properties use hyphens (--*),
|
|
1858
|
+
// and data-style-* is a special convention handled separately below.
|
|
1859
|
+
if (prop.includes('-') && !prop.startsWith('--') && !prop.startsWith('data-style-')) {
|
|
1860
|
+
return false;
|
|
1861
|
+
}
|
|
1821
1862
|
// Check if it's a valid CSS property or custom style prop
|
|
1822
1863
|
if (cssProperties.has(prop) || extraKeys.has(prop) || prop.startsWith('--') || prop.startsWith('data-style-') && !includeKeys.has(prop)) {
|
|
1823
1864
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-studio.cjs.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-studio.cjs.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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