@tatamicks/text 0.1.2 → 0.1.3
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -30
- package/dist/index.mjs.map +1 -1
- package/dist/src/TextRenderer.d.ts.map +1 -1
- package/dist/text.css +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ee;function ae(){return ee||(ee=1,process.env.NODE_ENV!=="production"&&(function(){function t(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===V?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case Y:return"Profiler";case z:return"StrictMode";case r:return"Suspense";case c:return"SuspenseList";case b:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case v:return"Portal";case H:return e.displayName||"Context";case y:return(e._context.displayName||"Context")+".Consumer";case M:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case
|
|
17
|
+
*/var ee;function ae(){return ee||(ee=1,process.env.NODE_ENV!=="production"&&(function(){function t(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===V?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case Y:return"Profiler";case z:return"StrictMode";case r:return"Suspense";case c:return"SuspenseList";case b:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case v:return"Portal";case H:return e.displayName||"Context";case y:return(e._context.displayName||"Context")+".Consumer";case M:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _:return n=e.displayName||null,n!==null?n:t(e.type)||"Memo";case p:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function s(e){return""+e}function h(e){try{s(e);var n=!1}catch{n=!0}if(n){n=console;var o=n.error,i=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",i),s(e)}}function m(e){if(e===j)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===p)return"<...>";try{var n=t(e);return n?"<"+n+">":"<...>"}catch{return"<...>"}}function u(){var e=N.A;return e===null?null:e.getOwner()}function d(){return Error("react-stack-top-frame")}function g(e){if(S.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function x(e,n){function o(){T||(T=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n))}o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}function D(){var e=t(this.type);return G[e]||(G[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function $(e,n,o,i,L,q){var l=o.ref;return e={$$typeof:O,type:e,key:n,props:o,_owner:i},(l!==void 0?l:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:D}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:L}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:q}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function P(e,n,o,i,L,q){var l=n.children;if(l!==void 0)if(i)if(U(l)){for(i=0;i<l.length;i++)R(l[i]);Object.freeze&&Object.freeze(l)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else R(l);if(S.call(n,"key")){l=t(e);var w=Object.keys(n).filter(function(ne){return ne!=="key"});i=0<w.length?"{key: someKey, "+w.join(": ..., ")+": ...}":"{key: someKey}",Q[l+i]||(w=0<w.length?"{"+w.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,i,l,w,l),Q[l+i]=!0)}if(l=null,o!==void 0&&(h(o),l=""+o),g(n)&&(h(n.key),l=""+n.key),"key"in n){o={};for(var J in n)J!=="key"&&(o[J]=n[J])}else o=n;return l&&x(o,typeof e=="function"?e.displayName||e.name||"Unknown":e),$(e,l,o,u(),L,q)}function R(e){A(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===
|
|
22
|
+
<%s key={someKey} {...props} />`,i,l,w,l),Q[l+i]=!0)}if(l=null,o!==void 0&&(h(o),l=""+o),g(n)&&(h(n.key),l=""+n.key),"key"in n){o={};for(var J in n)J!=="key"&&(o[J]=n[J])}else o=n;return l&&x(o,typeof e=="function"?e.displayName||e.name||"Unknown":e),$(e,l,o,u(),L,q)}function R(e){A(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===p&&(e._payload.status==="fulfilled"?A(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function A(e){return typeof e=="object"&&e!==null&&e.$$typeof===O}var E=f,O=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),H=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),r=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),V=Symbol.for("react.client.reference"),N=E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,S=Object.prototype.hasOwnProperty,U=Array.isArray,k=console.createTask?console.createTask:function(){return null};E={react_stack_bottom_frame:function(e){return e()}};var T,G={},X=E.react_stack_bottom_frame.bind(E,d)(),Z=k(m(d)),Q={};I.Fragment=j,I.jsx=function(e,n,o){var i=1e4>N.recentlyCreatedOwnerStacks++;return P(e,n,o,!1,i?Error("react-stack-top-frame"):X,i?k(m(e)):Z)},I.jsxs=function(e,n,o){var i=1e4>N.recentlyCreatedOwnerStacks++;return P(e,n,o,!0,i?Error("react-stack-top-frame"):X,i?k(m(e)):Z)}})()),I}var te;function ie(){return te||(te=1,process.env.NODE_ENV==="production"?W.exports=oe():W.exports=ae()),W.exports}var F=ie();const le="_ghost_1acb7_15",se={ghost:le},B=f.forwardRef(({props:t,value:s,onChange:h,onBlur:m,readOnly:u},d)=>{const g=f.useRef(null),x=f.useRef(null),D=f.useRef(null),$=f.useRef(null),[P,R]=f.useState({top:0,bottom:0}),[A,E]=f.useState(null);f.useEffect(()=>{if(!t.multiline)return;const r=$.current,c=D.current;if(!r||!c)return;r.value=s??"";const _=window.getComputedStyle(c),p=Number.parseFloat(_.paddingTop),b=Number.parseFloat(_.paddingBottom),V=Number.parseFloat(_.paddingLeft),N=Number.parseFloat(_.paddingRight),S=c.clientHeight-p-b,U=c.clientWidth-V-N;r.style.width=`${U}px`,r.style.paddingTop="0px",r.style.paddingBottom="0px";const k=r.scrollHeight;if(E(S),k<S){const T=S-k;switch(t.alignItems){case a.VerticalAlign.top:R({top:0,bottom:T});break;case a.VerticalAlign.bottom:R({top:T,bottom:0});break;default:R({top:T/2,bottom:T/2});break}}else R({top:0,bottom:0})},[t,s]),f.useImperativeHandle(d,()=>({focus:()=>{var r;(r=g.current)==null||r.focus()}}),[]);const O=f.useMemo(()=>{const r={width:"100%",height:"100%",display:"flex",boxSizing:"border-box",overflow:"hidden"};switch(t.justifyContent){case a.HorizontalAlign.center:r.justifyContent="center";break;case a.HorizontalAlign.right:r.justifyContent="flex-end";break;default:r.justifyContent="flex-start";break}switch(t.alignItems){case a.VerticalAlign.top:r.alignItems="flex-start";break;case a.VerticalAlign.bottom:r.alignItems="flex-end";break;default:r.alignItems="center";break}if(t.isIndividual)t.top&&(r.paddingTop=a.toPx.fromDim(t.top)),t.right&&(r.paddingRight=a.toPx.fromDim(t.right)),t.bottom&&(r.paddingBottom=a.toPx.fromDim(t.bottom)),t.left&&(r.paddingLeft=a.toPx.fromDim(t.left));else if(t.all){const c=a.toPx.fromDim(t.all);r.padding=`${c}px`}return r},[t]),v=f.useMemo(()=>{const r={background:"transparent",border:"none",outline:"none",resize:"none",padding:0,margin:0,width:"100%",boxSizing:"border-box",fontFamily:"inherit",color:"inherit"};t.fontSize&&(r.fontSize=`${a.toPx.fromDim(t.fontSize)}px`),t.fontFamily&&(r.fontFamily=t.fontFamily),t.color&&(r.color=t.color),r.fontWeight=t.fontWeight?"bold":"normal",r.fontStyle=t.italic?"italic":"normal";const c=[];switch(t.underline&&c.push("underline"),t.lineThrough&&c.push("line-through"),r.textDecoration=c.length>0?c.join(" "):"none",t.lineHeight&&(r.lineHeight=t.lineHeight),t.justifyContent){case a.HorizontalAlign.center:r.textAlign="center";break;case a.HorizontalAlign.right:r.textAlign="right";break;default:r.textAlign="left";break}return r},[t]),j=f.useMemo(()=>({...v,position:"absolute",top:0,left:0,width:"100%",height:"auto",visibility:"hidden",pointerEvents:"none",overflow:"hidden",whiteSpace:"pre-wrap",wordWrap:"break-word",overflowWrap:"break-word",padding:0,border:"none",boxSizing:"border-box",resize:"none"}),[v]),z=r=>{h(r.target.value)},Y=()=>{m==null||m(s)},y=!u;if(t.multiline){const r={...v,resize:"none",overflow:"auto",height:A!==null?`${A}px`:"100%",paddingTop:`${P.top}px`,paddingBottom:`${P.bottom}px`},p={ref:b=>{x.current=b,g.current=b},value:s??"",onChange:b=>{z(b)},onBlur:Y,style:r,placeholder:t.placeholder,readOnly:!y,tabIndex:y?0:-1};return F.jsxs("div",{ref:D,style:O,children:[F.jsx("textarea",{ref:$,className:se.ghost,style:j,"aria-hidden":"true",readOnly:!0,tabIndex:-1,rows:1,value:s??""}),F.jsx("textarea",{...p})]})}const H={...v,height:"100%"},M={ref:g,value:s??"",onChange:z,onBlur:Y,style:H,placeholder:t.placeholder,readOnly:!y,tabIndex:y?0:-1};return F.jsx("div",{style:O,children:F.jsx("input",{type:"text",...M})})});B.displayName="TextRenderer";function re(t=a.DEFAULT_FONT_FAMILY){return{kind:"text",meta:{displayName:"テキスト",description:"リッチなテキスト編集ブロック",defaultSize:{w:4,h:2}},Renderer:B,properties:{...a.universalProperties,...a.placeholderDefinition,...a.fontStyleDefinition,...a.multilineDefinition,...a.validationDefinition,fontFamily:{defaultValue:"sans-serif",label:"フォント",group:"フォント",Component:a.Select,config:{placeholder:"フォントを選択",options:t}}},validateProps:s=>s,validateValue:s=>typeof s=="string"?s:typeof s=="number"?String(s):null}}const ce=re();exports.TextPlugin=ce;exports.TextRenderer=B;exports.createTextPlugin=re;
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/jsx-runtime.js","../src/TextRenderer.tsx","../src/TextPlugin.ts"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import {\n\ttype CSSProperties,\n\tforwardRef,\n\tuseEffect,\n\tuseImperativeHandle,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from \"react\";\nimport {\n\ttype BlockRef,\n\tHorizontalAlign,\n\ttype RendererProps,\n\ttoPx,\n\tVerticalAlign,\n} from \"@tatamicks/core\";\n\nimport type { TextProps, TextValue } from \"./types\";\nimport \"./TextRenderer.module.css\";\n\nexport const TextRenderer = forwardRef<\n\tBlockRef,\n\tRendererProps<TextProps, TextValue>\n>(({ props, value, onChange, onBlur, readOnly }, ref) => {\n\t// 入力要素への参照\n\tconst inputRef = useRef<HTMLInputElement | HTMLTextAreaElement>(null);\n\tconst textareaRef = useRef<HTMLTextAreaElement>(null);\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst ghostRef = useRef<HTMLTextAreaElement>(null);\n\n\tconst [textareaPadding, setTextareaPadding] = useState({ top: 0, bottom: 0 });\n\tconst [textareaHeight, setTextareaHeight] = useState<number | null>(null);\n\n\tuseEffect(() => {\n\t\tif (!props.multiline) return;\n\n\t\tconst ghost = ghostRef.current;\n\t\tconst container = containerRef.current;\n\t\tif (!ghost || !container) return;\n\n\t\tghost.value = value ?? \"\";\n\n\t\tconst containerStyle = window.getComputedStyle(container);\n\t\tconst paddingTop = Number.parseFloat(containerStyle.paddingTop);\n\t\tconst paddingBottom = Number.parseFloat(containerStyle.paddingBottom);\n\t\tconst paddingLeft = Number.parseFloat(containerStyle.paddingLeft);\n\t\tconst paddingRight = Number.parseFloat(containerStyle.paddingRight);\n\n\t\tconst containerHeight = container.clientHeight - paddingTop - paddingBottom;\n\t\tconst availableWidth = container.clientWidth - paddingLeft - paddingRight;\n\n\t\tghost.style.width = `${availableWidth}px`;\n\t\tghost.style.paddingTop = \"0px\";\n\t\tghost.style.paddingBottom = \"0px\";\n\n\t\tconst contentHeight = ghost.scrollHeight;\n\n\t\tsetTextareaHeight(containerHeight);\n\n\t\tif (contentHeight < containerHeight) {\n\t\t\tconst availableSpace = containerHeight - contentHeight;\n\n\t\t\tswitch (props.alignItems) {\n\t\t\t\tcase VerticalAlign.top:\n\t\t\t\t\tsetTextareaPadding({ top: 0, bottom: availableSpace });\n\t\t\t\t\tbreak;\n\t\t\t\tcase VerticalAlign.bottom:\n\t\t\t\t\tsetTextareaPadding({ top: availableSpace, bottom: 0 });\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tsetTextareaPadding({\n\t\t\t\t\t\ttop: availableSpace / 2,\n\t\t\t\t\t\tbottom: availableSpace / 2,\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t} else {\n\t\t\tsetTextareaPadding({ top: 0, bottom: 0 });\n\t\t}\n\t}, [props, value]);\n\n\tuseImperativeHandle(\n\t\tref,\n\t\t() => ({\n\t\t\tfocus: () => {\n\t\t\t\tinputRef.current?.focus();\n\t\t\t},\n\t\t}),\n\t\t[],\n\t);\n\n\tconst containerStyle = useMemo((): CSSProperties => {\n\t\tconst css: CSSProperties = {\n\t\t\twidth: \"100%\",\n\t\t\theight: \"100%\",\n\t\t\tdisplay: \"flex\",\n\t\t\tboxSizing: \"border-box\",\n\t\t\toverflow: \"hidden\",\n\t\t};\n\n\t\tswitch (props.justifyContent) {\n\t\t\tcase HorizontalAlign.center:\n\t\t\t\tcss.justifyContent = \"center\";\n\t\t\t\tbreak;\n\t\t\tcase HorizontalAlign.right:\n\t\t\t\tcss.justifyContent = \"flex-end\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tcss.justifyContent = \"flex-start\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\tswitch (props.alignItems) {\n\t\t\tcase VerticalAlign.top:\n\t\t\t\tcss.alignItems = \"flex-start\";\n\t\t\t\tbreak;\n\t\t\tcase VerticalAlign.bottom:\n\t\t\t\tcss.alignItems = \"flex-end\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tcss.alignItems = \"center\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif (props.isIndividual) {\n\t\t\tif (props.top) css.paddingTop = toPx.fromDim(props.top);\n\t\t\tif (props.right) css.paddingRight = toPx.fromDim(props.right);\n\t\t\tif (props.bottom) css.paddingBottom = toPx.fromDim(props.bottom);\n\t\t\tif (props.left) css.paddingLeft = toPx.fromDim(props.left);\n\t\t} else if (props.all) {\n\t\t\tconst p = toPx.fromDim(props.all);\n\t\t\tcss.padding = `${p}px`;\n\t\t}\n\n\t\treturn css;\n\t}, [props]);\n\n\tconst inputStyle = useMemo((): CSSProperties => {\n\t\tconst css: CSSProperties = {\n\t\t\tbackground: \"transparent\",\n\t\t\tborder: \"none\",\n\t\t\toutline: \"none\",\n\t\t\tresize: \"none\",\n\t\t\tpadding: 0,\n\t\t\tmargin: 0,\n\t\t\twidth: \"100%\",\n\t\t\tboxSizing: \"border-box\",\n\t\t\tfontFamily: \"inherit\",\n\t\t\tcolor: \"inherit\",\n\t\t};\n\n\t\tif (props.fontSize) {\n\t\t\tcss.fontSize = `${toPx.fromDim(props.fontSize)}px`;\n\t\t}\n\n\t\tif (props.fontFamily) css.fontFamily = props.fontFamily;\n\t\tif (props.color) css.color = props.color;\n\n\t\tcss.fontWeight = props.fontWeight ? \"bold\" : \"normal\";\n\t\tcss.fontStyle = props.italic ? \"italic\" : \"normal\";\n\n\t\tconst decorations: string[] = [];\n\t\tif (props.underline) decorations.push(\"underline\");\n\t\tif (props.lineThrough) decorations.push(\"line-through\");\n\t\tcss.textDecoration =\n\t\t\tdecorations.length > 0 ? decorations.join(\" \") : \"none\";\n\n\t\tif (props.lineHeight) css.lineHeight = props.lineHeight;\n\n\t\tswitch (props.justifyContent) {\n\t\t\tcase HorizontalAlign.center:\n\t\t\t\tcss.textAlign = \"center\";\n\t\t\t\tbreak;\n\t\t\tcase HorizontalAlign.right:\n\t\t\t\tcss.textAlign = \"right\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tcss.textAlign = \"left\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn css;\n\t}, [props]);\n\n\tconst ghostStyle = useMemo((): CSSProperties => {\n\t\treturn {\n\t\t\t...inputStyle,\n\t\t\tposition: \"absolute\",\n\t\t\ttop: 0,\n\t\t\tleft: 0,\n\t\t\twidth: \"100%\",\n\t\t\theight: \"auto\",\n\t\t\tvisibility: \"hidden\",\n\t\t\tpointerEvents: \"none\",\n\t\t\toverflow: \"hidden\",\n\t\t\twhiteSpace: \"pre-wrap\",\n\t\t\twordWrap: \"break-word\",\n\t\t\toverflowWrap: \"break-word\",\n\t\t\tpadding: 0,\n\t\t\tborder: \"none\",\n\t\t\tboxSizing: \"border-box\",\n\t\t\tresize: \"none\",\n\t\t};\n\t}, [inputStyle]);\n\n\tconst handleChange = (\n\t\te: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>,\n\t) => {\n\t\tonChange(e.target.value);\n\t};\n\n\tconst handleBlur = () => {\n\t\tonBlur?.(value);\n\t};\n\n\tconst isEditable = !readOnly;\n\n\tif (props.multiline) {\n\t\tconst textareaStyle: CSSProperties = {\n\t\t\t...inputStyle,\n\t\t\tresize: \"none\",\n\t\t\toverflow: \"auto\",\n\t\t\theight: textareaHeight !== null ? `${textareaHeight}px` : \"100%\",\n\t\t\tpaddingTop: `${textareaPadding.top}px`,\n\t\t\tpaddingBottom: `${textareaPadding.bottom}px`,\n\t\t};\n\n\t\tconst handleTextareaChange = (\n\t\t\te: React.ChangeEvent<HTMLTextAreaElement>,\n\t\t) => {\n\t\t\thandleChange(e);\n\t\t};\n\n\t\tconst setTextareaRefs = (el: HTMLTextAreaElement | null) => {\n\t\t\ttextareaRef.current = el;\n\t\t\tinputRef.current = el;\n\t\t};\n\n\t\tconst textareaProps = {\n\t\t\tref: setTextareaRefs,\n\t\t\tvalue: value ?? \"\",\n\t\t\tonChange: handleTextareaChange,\n\t\t\tonBlur: handleBlur,\n\t\t\tstyle: textareaStyle,\n\t\t\tplaceholder: props.placeholder,\n\t\t\treadOnly: !isEditable,\n\t\t\ttabIndex: isEditable ? 0 : -1,\n\t\t};\n\n\t\treturn (\n\t\t\t<div ref={containerRef} style={containerStyle}>\n\t\t\t\t<textarea\n\t\t\t\t\tref={ghostRef}\n\t\t\t\t\tstyle={ghostStyle}\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\treadOnly\n\t\t\t\t\ttabIndex={-1}\n\t\t\t\t\trows={1}\n\t\t\t\t\tvalue={value ?? \"\"}\n\t\t\t\t/>\n\t\t\t\t<textarea {...textareaProps} />\n\t\t\t</div>\n\t\t);\n\t}\n\n\tconst singleLineStyle: CSSProperties = {\n\t\t...inputStyle,\n\t\theight: \"100%\",\n\t};\n\n\tconst commonInputProps = {\n\t\tref: inputRef as React.RefObject<HTMLInputElement>,\n\t\tvalue: value ?? \"\",\n\t\tonChange: handleChange,\n\t\tonBlur: handleBlur,\n\t\tstyle: singleLineStyle,\n\t\tplaceholder: props.placeholder,\n\t\treadOnly: !isEditable,\n\t\ttabIndex: isEditable ? 0 : -1,\n\t};\n\n\treturn (\n\t\t<div style={containerStyle}>\n\t\t\t<input type=\"text\" {...commonInputProps} />\n\t\t</div>\n\t);\n});\n\nTextRenderer.displayName = \"TextRenderer\";\n","import {\n\ttype BlockPlugin,\n\tDEFAULT_FONT_FAMILY,\n\tfontStyleDefinition,\n\tmultilineDefinition,\n\tplaceholderDefinition,\n\tSelect,\n\ttype SelectOption,\n\tuniversalProperties,\n\tvalidationDefinition,\n} from \"@tatamicks/core\";\n\nimport { TextRenderer } from \"./TextRenderer\";\n\nimport type { TextProps, TextValue } from \"./types\";\n\nexport function createTextPlugin(\n\tfontFamilyOptions: readonly SelectOption[] = DEFAULT_FONT_FAMILY,\n): BlockPlugin<TextProps, TextValue> {\n\treturn {\n\t\tkind: \"text\",\n\n\t\tmeta: {\n\t\t\tdisplayName: \"テキスト\",\n\t\t\tdescription: \"リッチなテキスト編集ブロック\",\n\t\t\tdefaultSize: { w: 4, h: 2 }, // デフォルトサイズ\n\t\t},\n\n\t\tRenderer: TextRenderer,\n\n\t\tproperties: {\n\t\t\t...universalProperties,\n\t\t\t...placeholderDefinition,\n\t\t\t...fontStyleDefinition,\n\t\t\t...multilineDefinition,\n\t\t\t...validationDefinition,\n\n\t\t\tfontFamily: {\n\t\t\t\tdefaultValue: \"sans-serif\",\n\t\t\t\tlabel: \"フォント\",\n\t\t\t\tgroup: \"フォント\",\n\t\t\t\tComponent: Select,\n\t\t\t\tconfig: {\n\t\t\t\t\tplaceholder: \"フォントを選択\",\n\t\t\t\t\toptions: fontFamilyOptions,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\n\t\t// バリデーション (Propsの型チェックと初期化)\n\t\tvalidateProps: (props: unknown): TextProps => {\n\t\t\t// createInitialPropsを通すので、基本的にはキャストでOKですが、\n\t\t\t// 必要に応じて厳密なチェックを行います\n\t\t\treturn props as TextProps;\n\t\t},\n\n\t\t// 値のバリデーション\n\t\tvalidateValue: (value: unknown): TextValue | null => {\n\t\t\tif (typeof value === \"string\") return value;\n\t\t\tif (typeof value === \"number\") return String(value);\n\t\t\treturn null;\n\t\t},\n\t};\n}\n\nexport const TextPlugin: BlockPlugin<TextProps, TextValue> = createTextPlugin();\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","owner","debugStack","debugTask","refProp","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","isValidElement","object","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1","TextRenderer","forwardRef","onChange","onBlur","readOnly","ref","inputRef","useRef","textareaRef","containerRef","ghostRef","textareaPadding","setTextareaPadding","useState","textareaHeight","setTextareaHeight","useEffect","ghost","container","containerStyle","paddingTop","paddingBottom","paddingLeft","paddingRight","containerHeight","availableWidth","contentHeight","availableSpace","VerticalAlign","useImperativeHandle","_a","useMemo","css","HorizontalAlign","toPx","p","inputStyle","decorations","ghostStyle","handleChange","e","handleBlur","isEditable","textareaStyle","textareaProps","el","jsxs","jsx","singleLineStyle","commonInputProps","createTextPlugin","fontFamilyOptions","DEFAULT_FONT_FAMILY","universalProperties","placeholderDefinition","fontStyleDefinition","multilineDefinition","validationDefinition","Select","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AAA,CACA,IAAKrC,EACL,MAAO4B,EACP,cAAY,OACZ,SAAQ,GACR,SAAU,GACV,KAAM,EACN,MAAOtF,GAAS,EAAA,CAAA,EAEjB+F,MAAC,WAAA,CAAU,GAAGH,CAAA,CAAe,CAAA,EAC9B,CAEF,CAEA,MAAMI,EAAiC,CACtC,GAAGZ,EACH,OAAQ,MAAA,EAGHa,EAAmB,CACxB,IAAK3C,EACL,MAAOtD,GAAS,GAChB,SAAUuF,EACV,OAAQE,EACR,MAAOO,EACP,YAAajF,EAAM,YACnB,SAAU,CAAC2E,EACX,SAAUA,EAAa,EAAI,EAAA,EAG5B,OACCK,EAAAA,IAAC,MAAA,CAAI,MAAO5B,EACX,SAAA4B,EAAAA,IAAC,SAAM,KAAK,OAAQ,GAAGE,CAAA,CAAkB,CAAA,CAC1C,CAEF,CAAC,EAEDjD,EAAa,YAAc,eChRpB,SAASkD,GACfC,EAA6CC,sBACT,CACpC,MAAO,CACN,KAAM,OAEN,KAAM,CACL,YAAa,OACb,YAAa,iBACb,YAAa,CAAE,EAAG,EAAG,EAAG,CAAA,CAAE,EAG3B,SAAUpD,EAEV,WAAY,CACX,GAAGqD,EAAAA,oBACH,GAAGC,EAAAA,sBACH,GAAGC,EAAAA,oBACH,GAAGC,EAAAA,oBACH,GAAGC,EAAAA,qBAEH,WAAY,CACX,aAAc,aACd,MAAO,OACP,MAAO,OACP,UAAWC,EAAAA,OACX,OAAQ,CACP,YAAa,UACb,QAASP,CAAA,CACV,CACD,EAID,cAAgBpF,GAGRA,EAIR,cAAgBf,GACX,OAAOA,GAAU,SAAiBA,EAClC,OAAOA,GAAU,SAAiB,OAAOA,CAAK,EAC3C,IACR,CAEF,CAEO,MAAM2G,GAAgDT,GAAA","x_google_ignoreList":[0,1,2]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/jsx-runtime.js","../src/TextRenderer.tsx","../src/TextPlugin.ts"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import {\n\ttype CSSProperties,\n\tforwardRef,\n\tuseEffect,\n\tuseImperativeHandle,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from \"react\";\nimport {\n\ttype BlockRef,\n\tHorizontalAlign,\n\ttype RendererProps,\n\ttoPx,\n\tVerticalAlign,\n} from \"@tatamicks/core\";\n\nimport styles from \"./TextRenderer.module.css\";\n\nimport type { TextProps, TextValue } from \"./types\";\n\nexport const TextRenderer = forwardRef<\n\tBlockRef,\n\tRendererProps<TextProps, TextValue>\n>(({ props, value, onChange, onBlur, readOnly }, ref) => {\n\t// 入力要素への参照\n\tconst inputRef = useRef<HTMLInputElement | HTMLTextAreaElement>(null);\n\tconst textareaRef = useRef<HTMLTextAreaElement>(null);\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst ghostRef = useRef<HTMLTextAreaElement>(null);\n\n\tconst [textareaPadding, setTextareaPadding] = useState({ top: 0, bottom: 0 });\n\tconst [textareaHeight, setTextareaHeight] = useState<number | null>(null);\n\n\tuseEffect(() => {\n\t\tif (!props.multiline) return;\n\n\t\tconst ghost = ghostRef.current;\n\t\tconst container = containerRef.current;\n\t\tif (!ghost || !container) return;\n\n\t\tghost.value = value ?? \"\";\n\n\t\tconst containerStyle = window.getComputedStyle(container);\n\t\tconst paddingTop = Number.parseFloat(containerStyle.paddingTop);\n\t\tconst paddingBottom = Number.parseFloat(containerStyle.paddingBottom);\n\t\tconst paddingLeft = Number.parseFloat(containerStyle.paddingLeft);\n\t\tconst paddingRight = Number.parseFloat(containerStyle.paddingRight);\n\n\t\tconst containerHeight = container.clientHeight - paddingTop - paddingBottom;\n\t\tconst availableWidth = container.clientWidth - paddingLeft - paddingRight;\n\n\t\tghost.style.width = `${availableWidth}px`;\n\t\tghost.style.paddingTop = \"0px\";\n\t\tghost.style.paddingBottom = \"0px\";\n\n\t\tconst contentHeight = ghost.scrollHeight;\n\n\t\tsetTextareaHeight(containerHeight);\n\n\t\tif (contentHeight < containerHeight) {\n\t\t\tconst availableSpace = containerHeight - contentHeight;\n\n\t\t\tswitch (props.alignItems) {\n\t\t\t\tcase VerticalAlign.top:\n\t\t\t\t\tsetTextareaPadding({ top: 0, bottom: availableSpace });\n\t\t\t\t\tbreak;\n\t\t\t\tcase VerticalAlign.bottom:\n\t\t\t\t\tsetTextareaPadding({ top: availableSpace, bottom: 0 });\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tsetTextareaPadding({\n\t\t\t\t\t\ttop: availableSpace / 2,\n\t\t\t\t\t\tbottom: availableSpace / 2,\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t} else {\n\t\t\tsetTextareaPadding({ top: 0, bottom: 0 });\n\t\t}\n\t}, [props, value]);\n\n\tuseImperativeHandle(\n\t\tref,\n\t\t() => ({\n\t\t\tfocus: () => {\n\t\t\t\tinputRef.current?.focus();\n\t\t\t},\n\t\t}),\n\t\t[],\n\t);\n\n\tconst containerStyle = useMemo((): CSSProperties => {\n\t\tconst css: CSSProperties = {\n\t\t\twidth: \"100%\",\n\t\t\theight: \"100%\",\n\t\t\tdisplay: \"flex\",\n\t\t\tboxSizing: \"border-box\",\n\t\t\toverflow: \"hidden\",\n\t\t};\n\n\t\tswitch (props.justifyContent) {\n\t\t\tcase HorizontalAlign.center:\n\t\t\t\tcss.justifyContent = \"center\";\n\t\t\t\tbreak;\n\t\t\tcase HorizontalAlign.right:\n\t\t\t\tcss.justifyContent = \"flex-end\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tcss.justifyContent = \"flex-start\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\tswitch (props.alignItems) {\n\t\t\tcase VerticalAlign.top:\n\t\t\t\tcss.alignItems = \"flex-start\";\n\t\t\t\tbreak;\n\t\t\tcase VerticalAlign.bottom:\n\t\t\t\tcss.alignItems = \"flex-end\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tcss.alignItems = \"center\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif (props.isIndividual) {\n\t\t\tif (props.top) css.paddingTop = toPx.fromDim(props.top);\n\t\t\tif (props.right) css.paddingRight = toPx.fromDim(props.right);\n\t\t\tif (props.bottom) css.paddingBottom = toPx.fromDim(props.bottom);\n\t\t\tif (props.left) css.paddingLeft = toPx.fromDim(props.left);\n\t\t} else if (props.all) {\n\t\t\tconst p = toPx.fromDim(props.all);\n\t\t\tcss.padding = `${p}px`;\n\t\t}\n\n\t\treturn css;\n\t}, [props]);\n\n\tconst inputStyle = useMemo((): CSSProperties => {\n\t\tconst css: CSSProperties = {\n\t\t\tbackground: \"transparent\",\n\t\t\tborder: \"none\",\n\t\t\toutline: \"none\",\n\t\t\tresize: \"none\",\n\t\t\tpadding: 0,\n\t\t\tmargin: 0,\n\t\t\twidth: \"100%\",\n\t\t\tboxSizing: \"border-box\",\n\t\t\tfontFamily: \"inherit\",\n\t\t\tcolor: \"inherit\",\n\t\t};\n\n\t\tif (props.fontSize) {\n\t\t\tcss.fontSize = `${toPx.fromDim(props.fontSize)}px`;\n\t\t}\n\n\t\tif (props.fontFamily) css.fontFamily = props.fontFamily;\n\t\tif (props.color) css.color = props.color;\n\n\t\tcss.fontWeight = props.fontWeight ? \"bold\" : \"normal\";\n\t\tcss.fontStyle = props.italic ? \"italic\" : \"normal\";\n\n\t\tconst decorations: string[] = [];\n\t\tif (props.underline) decorations.push(\"underline\");\n\t\tif (props.lineThrough) decorations.push(\"line-through\");\n\t\tcss.textDecoration =\n\t\t\tdecorations.length > 0 ? decorations.join(\" \") : \"none\";\n\n\t\tif (props.lineHeight) css.lineHeight = props.lineHeight;\n\n\t\tswitch (props.justifyContent) {\n\t\t\tcase HorizontalAlign.center:\n\t\t\t\tcss.textAlign = \"center\";\n\t\t\t\tbreak;\n\t\t\tcase HorizontalAlign.right:\n\t\t\t\tcss.textAlign = \"right\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tcss.textAlign = \"left\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn css;\n\t}, [props]);\n\n\tconst ghostStyle = useMemo((): CSSProperties => {\n\t\treturn {\n\t\t\t...inputStyle,\n\t\t\tposition: \"absolute\",\n\t\t\ttop: 0,\n\t\t\tleft: 0,\n\t\t\twidth: \"100%\",\n\t\t\theight: \"auto\",\n\t\t\tvisibility: \"hidden\",\n\t\t\tpointerEvents: \"none\",\n\t\t\toverflow: \"hidden\",\n\t\t\twhiteSpace: \"pre-wrap\",\n\t\t\twordWrap: \"break-word\",\n\t\t\toverflowWrap: \"break-word\",\n\t\t\tpadding: 0,\n\t\t\tborder: \"none\",\n\t\t\tboxSizing: \"border-box\",\n\t\t\tresize: \"none\",\n\t\t};\n\t}, [inputStyle]);\n\n\tconst handleChange = (\n\t\te: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>,\n\t) => {\n\t\tonChange(e.target.value);\n\t};\n\n\tconst handleBlur = () => {\n\t\tonBlur?.(value);\n\t};\n\n\tconst isEditable = !readOnly;\n\n\tif (props.multiline) {\n\t\tconst textareaStyle: CSSProperties = {\n\t\t\t...inputStyle,\n\t\t\tresize: \"none\",\n\t\t\toverflow: \"auto\",\n\t\t\theight: textareaHeight !== null ? `${textareaHeight}px` : \"100%\",\n\t\t\tpaddingTop: `${textareaPadding.top}px`,\n\t\t\tpaddingBottom: `${textareaPadding.bottom}px`,\n\t\t};\n\n\t\tconst handleTextareaChange = (\n\t\t\te: React.ChangeEvent<HTMLTextAreaElement>,\n\t\t) => {\n\t\t\thandleChange(e);\n\t\t};\n\n\t\tconst setTextareaRefs = (el: HTMLTextAreaElement | null) => {\n\t\t\ttextareaRef.current = el;\n\t\t\tinputRef.current = el;\n\t\t};\n\n\t\tconst textareaProps = {\n\t\t\tref: setTextareaRefs,\n\t\t\tvalue: value ?? \"\",\n\t\t\tonChange: handleTextareaChange,\n\t\t\tonBlur: handleBlur,\n\t\t\tstyle: textareaStyle,\n\t\t\tplaceholder: props.placeholder,\n\t\t\treadOnly: !isEditable,\n\t\t\ttabIndex: isEditable ? 0 : -1,\n\t\t};\n\n\t\treturn (\n\t\t\t<div ref={containerRef} style={containerStyle}>\n\t\t\t\t<textarea\n\t\t\t\t\tref={ghostRef}\n\t\t\t\t\tclassName={styles.ghost}\n\t\t\t\t\tstyle={ghostStyle}\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\treadOnly\n\t\t\t\t\ttabIndex={-1}\n\t\t\t\t\trows={1}\n\t\t\t\t\tvalue={value ?? \"\"}\n\t\t\t\t/>\n\t\t\t\t<textarea {...textareaProps} />\n\t\t\t</div>\n\t\t);\n\t}\n\n\tconst singleLineStyle: CSSProperties = {\n\t\t...inputStyle,\n\t\theight: \"100%\",\n\t};\n\n\tconst commonInputProps = {\n\t\tref: inputRef as React.RefObject<HTMLInputElement>,\n\t\tvalue: value ?? \"\",\n\t\tonChange: handleChange,\n\t\tonBlur: handleBlur,\n\t\tstyle: singleLineStyle,\n\t\tplaceholder: props.placeholder,\n\t\treadOnly: !isEditable,\n\t\ttabIndex: isEditable ? 0 : -1,\n\t};\n\n\treturn (\n\t\t<div style={containerStyle}>\n\t\t\t<input type=\"text\" {...commonInputProps} />\n\t\t</div>\n\t);\n});\n\nTextRenderer.displayName = \"TextRenderer\";\n","import {\n\ttype BlockPlugin,\n\tDEFAULT_FONT_FAMILY,\n\tfontStyleDefinition,\n\tmultilineDefinition,\n\tplaceholderDefinition,\n\tSelect,\n\ttype SelectOption,\n\tuniversalProperties,\n\tvalidationDefinition,\n} from \"@tatamicks/core\";\n\nimport { TextRenderer } from \"./TextRenderer\";\n\nimport type { TextProps, TextValue } from \"./types\";\n\nexport function createTextPlugin(\n\tfontFamilyOptions: readonly SelectOption[] = DEFAULT_FONT_FAMILY,\n): BlockPlugin<TextProps, TextValue> {\n\treturn {\n\t\tkind: \"text\",\n\n\t\tmeta: {\n\t\t\tdisplayName: \"テキスト\",\n\t\t\tdescription: \"リッチなテキスト編集ブロック\",\n\t\t\tdefaultSize: { w: 4, h: 2 }, // デフォルトサイズ\n\t\t},\n\n\t\tRenderer: TextRenderer,\n\n\t\tproperties: {\n\t\t\t...universalProperties,\n\t\t\t...placeholderDefinition,\n\t\t\t...fontStyleDefinition,\n\t\t\t...multilineDefinition,\n\t\t\t...validationDefinition,\n\n\t\t\tfontFamily: {\n\t\t\t\tdefaultValue: \"sans-serif\",\n\t\t\t\tlabel: \"フォント\",\n\t\t\t\tgroup: \"フォント\",\n\t\t\t\tComponent: Select,\n\t\t\t\tconfig: {\n\t\t\t\t\tplaceholder: \"フォントを選択\",\n\t\t\t\t\toptions: fontFamilyOptions,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\n\t\t// バリデーション (Propsの型チェックと初期化)\n\t\tvalidateProps: (props: unknown): TextProps => {\n\t\t\t// createInitialPropsを通すので、基本的にはキャストでOKですが、\n\t\t\t// 必要に応じて厳密なチェックを行います\n\t\t\treturn props as TextProps;\n\t\t},\n\n\t\t// 値のバリデーション\n\t\tvalidateValue: (value: unknown): TextValue | null => {\n\t\t\tif (typeof value === \"string\") return value;\n\t\t\tif (typeof value === \"number\") return String(value);\n\t\t\treturn null;\n\t\t},\n\t};\n}\n\nexport const TextPlugin: BlockPlugin<TextProps, TextValue> = createTextPlugin();\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","owner","debugStack","debugTask","refProp","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","isValidElement","object","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1","TextRenderer","forwardRef","onChange","onBlur","readOnly","ref","inputRef","useRef","textareaRef","containerRef","ghostRef","textareaPadding","setTextareaPadding","useState","textareaHeight","setTextareaHeight","useEffect","ghost","container","containerStyle","paddingTop","paddingBottom","paddingLeft","paddingRight","containerHeight","availableWidth","contentHeight","availableSpace","VerticalAlign","useImperativeHandle","_a","useMemo","css","HorizontalAlign","toPx","p","inputStyle","decorations","ghostStyle","handleChange","e","handleBlur","isEditable","textareaStyle","textareaProps","el","jsxs","jsx","styles","singleLineStyle","commonInputProps","createTextPlugin","fontFamilyOptions","DEFAULT_FONT_FAMILY","universalProperties","placeholderDefinition","fontStyleDefinition","multilineDefinition","validationDefinition","Select","TextPlugin"],"mappings":";;;;;;;;yCAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,CAAA,EACX,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EACjE,MAASF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,EAEX,CACA,OAAAG,EAAA,SAAmBP,EACnBO,EAAA,IAAcN,EACdM,EAAA,KAAeN;;;;;;;;yCCtBE,QAAQ,IAAI,WAA7B,eACG,UAAY,CACX,SAASO,EAAyBN,EAAM,CACtC,GAAYA,GAAR,KAAc,OAAO,KACzB,GAAmB,OAAOA,GAAtB,WACF,OAAOA,EAAK,WAAaO,EACrB,KACAP,EAAK,aAAeA,EAAK,MAAQ,KACvC,GAAiB,OAAOA,GAApB,SAA0B,OAAOA,EACrC,OAAQA,EAAI,CACV,KAAKF,EACH,MAAO,WACT,KAAKU,EACH,MAAO,WACT,KAAKC,EACH,MAAO,aACT,KAAKC,EACH,MAAO,WACT,KAAKC,EACH,MAAO,eACT,KAAKC,EACH,MAAO,UACjB,CACM,GAAiB,OAAOZ,GAApB,SACF,OACgB,OAAOA,EAAK,KAAzB,UACC,QAAQ,MACN,qHAEJA,EA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AEF,CAEO,MAAM4G,GAAgDT,GAAA","x_google_ignoreList":[0,1,2]}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VerticalAlign as L, HorizontalAlign as W, toPx as S, DEFAULT_FONT_FAMILY as le, Select as se, validationDefinition as ce, multilineDefinition as ue, fontStyleDefinition as fe, placeholderDefinition as de, universalProperties as me } from "@tatamicks/core";
|
|
2
|
-
import
|
|
2
|
+
import ge, { forwardRef as be, useRef as H, useState as te, useEffect as he, useImperativeHandle as xe, useMemo as X } from "react";
|
|
3
3
|
var M = { exports: {} }, N = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
@@ -15,12 +15,12 @@ function pe() {
|
|
|
15
15
|
if (re) return N;
|
|
16
16
|
re = 1;
|
|
17
17
|
var t = Symbol.for("react.transitional.element"), l = Symbol.for("react.fragment");
|
|
18
|
-
function
|
|
18
|
+
function g(f, c, u) {
|
|
19
19
|
var d = null;
|
|
20
20
|
if (u !== void 0 && (d = "" + u), c.key !== void 0 && (d = "" + c.key), "key" in c) {
|
|
21
21
|
u = {};
|
|
22
|
-
for (var
|
|
23
|
-
|
|
22
|
+
for (var b in c)
|
|
23
|
+
b !== "key" && (u[b] = c[b]);
|
|
24
24
|
} else u = c;
|
|
25
25
|
return c = u.ref, {
|
|
26
26
|
$$typeof: t,
|
|
@@ -30,7 +30,7 @@ function pe() {
|
|
|
30
30
|
props: u
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
return N.Fragment = l, N.jsx =
|
|
33
|
+
return N.Fragment = l, N.jsx = g, N.jsxs = g, N;
|
|
34
34
|
}
|
|
35
35
|
var C = {};
|
|
36
36
|
/**
|
|
@@ -68,7 +68,7 @@ function Re() {
|
|
|
68
68
|
switch (typeof e.tag == "number" && console.error(
|
|
69
69
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
70
|
), e.$$typeof) {
|
|
71
|
-
case
|
|
71
|
+
case E:
|
|
72
72
|
return "Portal";
|
|
73
73
|
case U:
|
|
74
74
|
return e.displayName || "Context";
|
|
@@ -91,7 +91,7 @@ function Re() {
|
|
|
91
91
|
function l(e) {
|
|
92
92
|
return "" + e;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function g(e) {
|
|
95
95
|
try {
|
|
96
96
|
l(e);
|
|
97
97
|
var n = !1;
|
|
@@ -133,7 +133,7 @@ function Re() {
|
|
|
133
133
|
}
|
|
134
134
|
return e.key !== void 0;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function b(e, n) {
|
|
137
137
|
function a() {
|
|
138
138
|
R || (R = !0, console.error(
|
|
139
139
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
@@ -215,12 +215,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
215
215
|
i
|
|
216
216
|
), ee[i + o] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (i = null, a !== void 0 && (
|
|
218
|
+
if (i = null, a !== void 0 && (g(a), i = "" + a), d(n) && (g(n.key), i = "" + n.key), "key" in n) {
|
|
219
219
|
a = {};
|
|
220
220
|
for (var G in n)
|
|
221
221
|
G !== "key" && (a[G] = n[G]);
|
|
222
222
|
} else a = n;
|
|
223
|
-
return i &&
|
|
223
|
+
return i && b(
|
|
224
224
|
a,
|
|
225
225
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
226
226
|
), D(
|
|
@@ -238,16 +238,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
238
238
|
function A(e) {
|
|
239
239
|
return typeof e == "object" && e !== null && e.$$typeof === P;
|
|
240
240
|
}
|
|
241
|
-
var
|
|
241
|
+
var _ = ge, P = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), $ = Symbol.for("react.strict_mode"), Y = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), U = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), r = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.activity"), q = Symbol.for("react.client.reference"), j = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, T = Object.prototype.hasOwnProperty, J = Array.isArray, y = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
|
-
|
|
244
|
+
_ = {
|
|
245
245
|
react_stack_bottom_frame: function(e) {
|
|
246
246
|
return e();
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
var R, Z = {}, Q =
|
|
250
|
-
|
|
249
|
+
var R, Z = {}, Q = _.react_stack_bottom_frame.bind(
|
|
250
|
+
_,
|
|
251
251
|
u
|
|
252
252
|
)(), K = y(f(u)), ee = {};
|
|
253
253
|
C.Fragment = O, C.jsx = function(e, n, a) {
|
|
@@ -274,12 +274,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
274
274
|
})()), C;
|
|
275
275
|
}
|
|
276
276
|
var ae;
|
|
277
|
-
function
|
|
277
|
+
function _e() {
|
|
278
278
|
return ae || (ae = 1, process.env.NODE_ENV === "production" ? M.exports = pe() : M.exports = Re()), M.exports;
|
|
279
279
|
}
|
|
280
|
-
var I =
|
|
281
|
-
const
|
|
282
|
-
|
|
280
|
+
var I = _e();
|
|
281
|
+
const Ee = "_ghost_1acb7_15", ve = {
|
|
282
|
+
ghost: Ee
|
|
283
|
+
}, oe = be(({ props: t, value: l, onChange: g, onBlur: f, readOnly: c }, u) => {
|
|
284
|
+
const d = H(null), b = H(null), F = H(null), D = H(null), [w, h] = te({ top: 0, bottom: 0 }), [A, _] = te(null);
|
|
283
285
|
he(() => {
|
|
284
286
|
if (!t.multiline) return;
|
|
285
287
|
const r = D.current, s = F.current;
|
|
@@ -288,7 +290,7 @@ const oe = ge(({ props: t, value: l, onChange: b, onBlur: f, readOnly: c }, u) =
|
|
|
288
290
|
const x = window.getComputedStyle(s), p = Number.parseFloat(x.paddingTop), m = Number.parseFloat(x.paddingBottom), q = Number.parseFloat(x.paddingLeft), j = Number.parseFloat(x.paddingRight), T = s.clientHeight - p - m, J = s.clientWidth - q - j;
|
|
289
291
|
r.style.width = `${J}px`, r.style.paddingTop = "0px", r.style.paddingBottom = "0px";
|
|
290
292
|
const y = r.scrollHeight;
|
|
291
|
-
if (
|
|
293
|
+
if (_(T), y < T) {
|
|
292
294
|
const R = T - y;
|
|
293
295
|
switch (t.alignItems) {
|
|
294
296
|
case L.top:
|
|
@@ -353,7 +355,7 @@ const oe = ge(({ props: t, value: l, onChange: b, onBlur: f, readOnly: c }, u) =
|
|
|
353
355
|
r.padding = `${s}px`;
|
|
354
356
|
}
|
|
355
357
|
return r;
|
|
356
|
-
}, [t]),
|
|
358
|
+
}, [t]), E = X(() => {
|
|
357
359
|
const r = {
|
|
358
360
|
background: "transparent",
|
|
359
361
|
border: "none",
|
|
@@ -381,7 +383,7 @@ const oe = ge(({ props: t, value: l, onChange: b, onBlur: f, readOnly: c }, u) =
|
|
|
381
383
|
}
|
|
382
384
|
return r;
|
|
383
385
|
}, [t]), O = X(() => ({
|
|
384
|
-
...
|
|
386
|
+
...E,
|
|
385
387
|
position: "absolute",
|
|
386
388
|
top: 0,
|
|
387
389
|
left: 0,
|
|
@@ -397,14 +399,14 @@ const oe = ge(({ props: t, value: l, onChange: b, onBlur: f, readOnly: c }, u) =
|
|
|
397
399
|
border: "none",
|
|
398
400
|
boxSizing: "border-box",
|
|
399
401
|
resize: "none"
|
|
400
|
-
}), [
|
|
401
|
-
|
|
402
|
+
}), [E]), $ = (r) => {
|
|
403
|
+
g(r.target.value);
|
|
402
404
|
}, Y = () => {
|
|
403
405
|
f == null || f(l);
|
|
404
406
|
}, v = !c;
|
|
405
407
|
if (t.multiline) {
|
|
406
408
|
const r = {
|
|
407
|
-
...
|
|
409
|
+
...E,
|
|
408
410
|
resize: "none",
|
|
409
411
|
overflow: "auto",
|
|
410
412
|
height: A !== null ? `${A}px` : "100%",
|
|
@@ -412,7 +414,7 @@ const oe = ge(({ props: t, value: l, onChange: b, onBlur: f, readOnly: c }, u) =
|
|
|
412
414
|
paddingBottom: `${w.bottom}px`
|
|
413
415
|
}, p = {
|
|
414
416
|
ref: (m) => {
|
|
415
|
-
|
|
417
|
+
b.current = m, d.current = m;
|
|
416
418
|
},
|
|
417
419
|
value: l ?? "",
|
|
418
420
|
onChange: (m) => {
|
|
@@ -429,6 +431,7 @@ const oe = ge(({ props: t, value: l, onChange: b, onBlur: f, readOnly: c }, u) =
|
|
|
429
431
|
"textarea",
|
|
430
432
|
{
|
|
431
433
|
ref: D,
|
|
434
|
+
className: ve.ghost,
|
|
432
435
|
style: O,
|
|
433
436
|
"aria-hidden": "true",
|
|
434
437
|
readOnly: !0,
|
|
@@ -441,7 +444,7 @@ const oe = ge(({ props: t, value: l, onChange: b, onBlur: f, readOnly: c }, u) =
|
|
|
441
444
|
] });
|
|
442
445
|
}
|
|
443
446
|
const U = {
|
|
444
|
-
...
|
|
447
|
+
...E,
|
|
445
448
|
height: "100%"
|
|
446
449
|
}, V = {
|
|
447
450
|
ref: d,
|
|
@@ -456,7 +459,7 @@ const oe = ge(({ props: t, value: l, onChange: b, onBlur: f, readOnly: c }, u) =
|
|
|
456
459
|
return /* @__PURE__ */ I.jsx("div", { style: P, children: /* @__PURE__ */ I.jsx("input", { type: "text", ...V }) });
|
|
457
460
|
});
|
|
458
461
|
oe.displayName = "TextRenderer";
|
|
459
|
-
function
|
|
462
|
+
function Te(t = le) {
|
|
460
463
|
return {
|
|
461
464
|
kind: "text",
|
|
462
465
|
meta: {
|
|
@@ -489,10 +492,10 @@ function _e(t = le) {
|
|
|
489
492
|
validateValue: (l) => typeof l == "string" ? l : typeof l == "number" ? String(l) : null
|
|
490
493
|
};
|
|
491
494
|
}
|
|
492
|
-
const
|
|
495
|
+
const Se = Te();
|
|
493
496
|
export {
|
|
494
|
-
|
|
497
|
+
Se as TextPlugin,
|
|
495
498
|
oe as TextRenderer,
|
|
496
|
-
|
|
499
|
+
Te as createTextPlugin
|
|
497
500
|
};
|
|
498
501
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/jsx-runtime.js","../src/TextRenderer.tsx","../src/TextPlugin.ts"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import {\n\ttype CSSProperties,\n\tforwardRef,\n\tuseEffect,\n\tuseImperativeHandle,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from \"react\";\nimport {\n\ttype BlockRef,\n\tHorizontalAlign,\n\ttype RendererProps,\n\ttoPx,\n\tVerticalAlign,\n} from \"@tatamicks/core\";\n\nimport type { TextProps, TextValue } from \"./types\";\nimport \"./TextRenderer.module.css\";\n\nexport const TextRenderer = forwardRef<\n\tBlockRef,\n\tRendererProps<TextProps, TextValue>\n>(({ props, value, onChange, onBlur, readOnly }, ref) => {\n\t// 入力要素への参照\n\tconst inputRef = useRef<HTMLInputElement | HTMLTextAreaElement>(null);\n\tconst textareaRef = useRef<HTMLTextAreaElement>(null);\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst ghostRef = useRef<HTMLTextAreaElement>(null);\n\n\tconst [textareaPadding, setTextareaPadding] = useState({ top: 0, bottom: 0 });\n\tconst [textareaHeight, setTextareaHeight] = useState<number | null>(null);\n\n\tuseEffect(() => {\n\t\tif (!props.multiline) return;\n\n\t\tconst ghost = ghostRef.current;\n\t\tconst container = containerRef.current;\n\t\tif (!ghost || !container) return;\n\n\t\tghost.value = value ?? \"\";\n\n\t\tconst containerStyle = window.getComputedStyle(container);\n\t\tconst paddingTop = Number.parseFloat(containerStyle.paddingTop);\n\t\tconst paddingBottom = Number.parseFloat(containerStyle.paddingBottom);\n\t\tconst paddingLeft = Number.parseFloat(containerStyle.paddingLeft);\n\t\tconst paddingRight = Number.parseFloat(containerStyle.paddingRight);\n\n\t\tconst containerHeight = container.clientHeight - paddingTop - paddingBottom;\n\t\tconst availableWidth = container.clientWidth - paddingLeft - paddingRight;\n\n\t\tghost.style.width = `${availableWidth}px`;\n\t\tghost.style.paddingTop = \"0px\";\n\t\tghost.style.paddingBottom = \"0px\";\n\n\t\tconst contentHeight = ghost.scrollHeight;\n\n\t\tsetTextareaHeight(containerHeight);\n\n\t\tif (contentHeight < containerHeight) {\n\t\t\tconst availableSpace = containerHeight - contentHeight;\n\n\t\t\tswitch (props.alignItems) {\n\t\t\t\tcase VerticalAlign.top:\n\t\t\t\t\tsetTextareaPadding({ top: 0, bottom: availableSpace });\n\t\t\t\t\tbreak;\n\t\t\t\tcase VerticalAlign.bottom:\n\t\t\t\t\tsetTextareaPadding({ top: availableSpace, bottom: 0 });\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tsetTextareaPadding({\n\t\t\t\t\t\ttop: availableSpace / 2,\n\t\t\t\t\t\tbottom: availableSpace / 2,\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t} else {\n\t\t\tsetTextareaPadding({ top: 0, bottom: 0 });\n\t\t}\n\t}, [props, value]);\n\n\tuseImperativeHandle(\n\t\tref,\n\t\t() => ({\n\t\t\tfocus: () => {\n\t\t\t\tinputRef.current?.focus();\n\t\t\t},\n\t\t}),\n\t\t[],\n\t);\n\n\tconst containerStyle = useMemo((): CSSProperties => {\n\t\tconst css: CSSProperties = {\n\t\t\twidth: \"100%\",\n\t\t\theight: \"100%\",\n\t\t\tdisplay: \"flex\",\n\t\t\tboxSizing: \"border-box\",\n\t\t\toverflow: \"hidden\",\n\t\t};\n\n\t\tswitch (props.justifyContent) {\n\t\t\tcase HorizontalAlign.center:\n\t\t\t\tcss.justifyContent = \"center\";\n\t\t\t\tbreak;\n\t\t\tcase HorizontalAlign.right:\n\t\t\t\tcss.justifyContent = \"flex-end\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tcss.justifyContent = \"flex-start\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\tswitch (props.alignItems) {\n\t\t\tcase VerticalAlign.top:\n\t\t\t\tcss.alignItems = \"flex-start\";\n\t\t\t\tbreak;\n\t\t\tcase VerticalAlign.bottom:\n\t\t\t\tcss.alignItems = \"flex-end\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tcss.alignItems = \"center\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif (props.isIndividual) {\n\t\t\tif (props.top) css.paddingTop = toPx.fromDim(props.top);\n\t\t\tif (props.right) css.paddingRight = toPx.fromDim(props.right);\n\t\t\tif (props.bottom) css.paddingBottom = toPx.fromDim(props.bottom);\n\t\t\tif (props.left) css.paddingLeft = toPx.fromDim(props.left);\n\t\t} else if (props.all) {\n\t\t\tconst p = toPx.fromDim(props.all);\n\t\t\tcss.padding = `${p}px`;\n\t\t}\n\n\t\treturn css;\n\t}, [props]);\n\n\tconst inputStyle = useMemo((): CSSProperties => {\n\t\tconst css: CSSProperties = {\n\t\t\tbackground: \"transparent\",\n\t\t\tborder: \"none\",\n\t\t\toutline: \"none\",\n\t\t\tresize: \"none\",\n\t\t\tpadding: 0,\n\t\t\tmargin: 0,\n\t\t\twidth: \"100%\",\n\t\t\tboxSizing: \"border-box\",\n\t\t\tfontFamily: \"inherit\",\n\t\t\tcolor: \"inherit\",\n\t\t};\n\n\t\tif (props.fontSize) {\n\t\t\tcss.fontSize = `${toPx.fromDim(props.fontSize)}px`;\n\t\t}\n\n\t\tif (props.fontFamily) css.fontFamily = props.fontFamily;\n\t\tif (props.color) css.color = props.color;\n\n\t\tcss.fontWeight = props.fontWeight ? \"bold\" : \"normal\";\n\t\tcss.fontStyle = props.italic ? \"italic\" : \"normal\";\n\n\t\tconst decorations: string[] = [];\n\t\tif (props.underline) decorations.push(\"underline\");\n\t\tif (props.lineThrough) decorations.push(\"line-through\");\n\t\tcss.textDecoration =\n\t\t\tdecorations.length > 0 ? decorations.join(\" \") : \"none\";\n\n\t\tif (props.lineHeight) css.lineHeight = props.lineHeight;\n\n\t\tswitch (props.justifyContent) {\n\t\t\tcase HorizontalAlign.center:\n\t\t\t\tcss.textAlign = \"center\";\n\t\t\t\tbreak;\n\t\t\tcase HorizontalAlign.right:\n\t\t\t\tcss.textAlign = \"right\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tcss.textAlign = \"left\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn css;\n\t}, [props]);\n\n\tconst ghostStyle = useMemo((): CSSProperties => {\n\t\treturn {\n\t\t\t...inputStyle,\n\t\t\tposition: \"absolute\",\n\t\t\ttop: 0,\n\t\t\tleft: 0,\n\t\t\twidth: \"100%\",\n\t\t\theight: \"auto\",\n\t\t\tvisibility: \"hidden\",\n\t\t\tpointerEvents: \"none\",\n\t\t\toverflow: \"hidden\",\n\t\t\twhiteSpace: \"pre-wrap\",\n\t\t\twordWrap: \"break-word\",\n\t\t\toverflowWrap: \"break-word\",\n\t\t\tpadding: 0,\n\t\t\tborder: \"none\",\n\t\t\tboxSizing: \"border-box\",\n\t\t\tresize: \"none\",\n\t\t};\n\t}, [inputStyle]);\n\n\tconst handleChange = (\n\t\te: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>,\n\t) => {\n\t\tonChange(e.target.value);\n\t};\n\n\tconst handleBlur = () => {\n\t\tonBlur?.(value);\n\t};\n\n\tconst isEditable = !readOnly;\n\n\tif (props.multiline) {\n\t\tconst textareaStyle: CSSProperties = {\n\t\t\t...inputStyle,\n\t\t\tresize: \"none\",\n\t\t\toverflow: \"auto\",\n\t\t\theight: textareaHeight !== null ? `${textareaHeight}px` : \"100%\",\n\t\t\tpaddingTop: `${textareaPadding.top}px`,\n\t\t\tpaddingBottom: `${textareaPadding.bottom}px`,\n\t\t};\n\n\t\tconst handleTextareaChange = (\n\t\t\te: React.ChangeEvent<HTMLTextAreaElement>,\n\t\t) => {\n\t\t\thandleChange(e);\n\t\t};\n\n\t\tconst setTextareaRefs = (el: HTMLTextAreaElement | null) => {\n\t\t\ttextareaRef.current = el;\n\t\t\tinputRef.current = el;\n\t\t};\n\n\t\tconst textareaProps = {\n\t\t\tref: setTextareaRefs,\n\t\t\tvalue: value ?? \"\",\n\t\t\tonChange: handleTextareaChange,\n\t\t\tonBlur: handleBlur,\n\t\t\tstyle: textareaStyle,\n\t\t\tplaceholder: props.placeholder,\n\t\t\treadOnly: !isEditable,\n\t\t\ttabIndex: isEditable ? 0 : -1,\n\t\t};\n\n\t\treturn (\n\t\t\t<div ref={containerRef} style={containerStyle}>\n\t\t\t\t<textarea\n\t\t\t\t\tref={ghostRef}\n\t\t\t\t\tstyle={ghostStyle}\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\treadOnly\n\t\t\t\t\ttabIndex={-1}\n\t\t\t\t\trows={1}\n\t\t\t\t\tvalue={value ?? \"\"}\n\t\t\t\t/>\n\t\t\t\t<textarea {...textareaProps} />\n\t\t\t</div>\n\t\t);\n\t}\n\n\tconst singleLineStyle: CSSProperties = {\n\t\t...inputStyle,\n\t\theight: \"100%\",\n\t};\n\n\tconst commonInputProps = {\n\t\tref: inputRef as React.RefObject<HTMLInputElement>,\n\t\tvalue: value ?? \"\",\n\t\tonChange: handleChange,\n\t\tonBlur: handleBlur,\n\t\tstyle: singleLineStyle,\n\t\tplaceholder: props.placeholder,\n\t\treadOnly: !isEditable,\n\t\ttabIndex: isEditable ? 0 : -1,\n\t};\n\n\treturn (\n\t\t<div style={containerStyle}>\n\t\t\t<input type=\"text\" {...commonInputProps} />\n\t\t</div>\n\t);\n});\n\nTextRenderer.displayName = \"TextRenderer\";\n","import {\n\ttype BlockPlugin,\n\tDEFAULT_FONT_FAMILY,\n\tfontStyleDefinition,\n\tmultilineDefinition,\n\tplaceholderDefinition,\n\tSelect,\n\ttype SelectOption,\n\tuniversalProperties,\n\tvalidationDefinition,\n} from \"@tatamicks/core\";\n\nimport { TextRenderer } from \"./TextRenderer\";\n\nimport type { TextProps, TextValue } from \"./types\";\n\nexport function createTextPlugin(\n\tfontFamilyOptions: readonly SelectOption[] = DEFAULT_FONT_FAMILY,\n): BlockPlugin<TextProps, TextValue> {\n\treturn {\n\t\tkind: \"text\",\n\n\t\tmeta: {\n\t\t\tdisplayName: \"テキスト\",\n\t\t\tdescription: \"リッチなテキスト編集ブロック\",\n\t\t\tdefaultSize: { w: 4, h: 2 }, // デフォルトサイズ\n\t\t},\n\n\t\tRenderer: TextRenderer,\n\n\t\tproperties: {\n\t\t\t...universalProperties,\n\t\t\t...placeholderDefinition,\n\t\t\t...fontStyleDefinition,\n\t\t\t...multilineDefinition,\n\t\t\t...validationDefinition,\n\n\t\t\tfontFamily: {\n\t\t\t\tdefaultValue: \"sans-serif\",\n\t\t\t\tlabel: \"フォント\",\n\t\t\t\tgroup: \"フォント\",\n\t\t\t\tComponent: Select,\n\t\t\t\tconfig: {\n\t\t\t\t\tplaceholder: \"フォントを選択\",\n\t\t\t\t\toptions: fontFamilyOptions,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\n\t\t// バリデーション (Propsの型チェックと初期化)\n\t\tvalidateProps: (props: unknown): TextProps => {\n\t\t\t// createInitialPropsを通すので、基本的にはキャストでOKですが、\n\t\t\t// 必要に応じて厳密なチェックを行います\n\t\t\treturn props as TextProps;\n\t\t},\n\n\t\t// 値のバリデーション\n\t\tvalidateValue: (value: unknown): TextValue | null => {\n\t\t\tif (typeof value === \"string\") return value;\n\t\t\tif (typeof value === \"number\") return String(value);\n\t\t\treturn null;\n\t\t},\n\t};\n}\n\nexport const TextPlugin: BlockPlugin<TextProps, TextValue> = createTextPlugin();\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","owner","debugStack","debugTask","refProp","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","isValidElement","object","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1","TextRenderer","forwardRef","onChange","onBlur","readOnly","ref","inputRef","useRef","textareaRef","containerRef","ghostRef","textareaPadding","setTextareaPadding","useState","textareaHeight","setTextareaHeight","useEffect","ghost","container","containerStyle","paddingTop","paddingBottom","paddingLeft","paddingRight","containerHeight","availableWidth","contentHeight","availableSpace","VerticalAlign","useImperativeHandle","_a","useMemo","css","HorizontalAlign","toPx","p","inputStyle","decorations","ghostStyle","handleChange","e","handleBlur","isEditable","textareaStyle","textareaProps","el","jsxs","jsx","singleLineStyle","commonInputProps","createTextPlugin","fontFamilyOptions","DEFAULT_FONT_FAMILY","universalProperties","placeholderDefinition","fontStyleDefinition","multilineDefinition","validationDefinition","Select","TextPlugin"],"mappings":";;;;;;;;;;;;;;;;AAWA,MAAIA,IAAqB,OAAO,IAAI,4BAA4B,GAC9DC,IAAsB,OAAO,IAAI,gBAAgB;AACnD,WAASC,EAAQC,GAAMC,GAAQC,GAAU;AACvC,QAAIC,IAAM;AAGV,QAFWD,MAAX,WAAwBC,IAAM,KAAKD,IACxBD,EAAO,QAAlB,WAA0BE,IAAM,KAAKF,EAAO,MACxC,SAASA,GAAQ;AACnB,MAAAC,IAAW,CAAA;AACX,eAASE,KAAYH;AACnB,QAAUG,MAAV,UAAuBF,EAASE,CAAQ,IAAIH,EAAOG,CAAQ;AAAA,IACjE,MAAS,CAAAF,IAAWD;AAClB,WAAAA,IAASC,EAAS,KACX;AAAA,MACL,UAAUL;AAAA,MACV,MAAMG;AAAA,MACN,KAAKG;AAAA,MACL,KAAgBF,MAAX,SAAoBA,IAAS;AAAA,MAClC,OAAOC;AAAA;EAEX;AACA,SAAAG,EAAA,WAAmBP,GACnBO,EAAA,MAAcN,GACdM,EAAA,OAAeN;;;;;;;;;;;;;;wBCtBE,QAAQ,IAAI,aAA7B,iBACG,WAAY;AACX,aAASO,EAAyBN,GAAM;AACtC,UAAYA,KAAR,KAAc,QAAO;AACzB,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AI;AAAA,EAAA;AAG5B,SACCK,gBAAAA,EAAAA,IAAC,OAAA,EAAI,OAAO5B,GACX,UAAA4B,gBAAAA,EAAAA,IAAC,WAAM,MAAK,QAAQ,GAAGE,EAAA,CAAkB,EAAA,CAC1C;AAEF,CAAC;AAEDjD,GAAa,cAAc;AChRpB,SAASkD,GACfC,IAA6CC,IACT;AACpC,SAAO;AAAA,IACN,MAAM;AAAA,IAEN,MAAM;AAAA,MACL,aAAa;AAAA,MACb,aAAa;AAAA,MACb,aAAa,EAAE,GAAG,GAAG,GAAG,EAAA;AAAA;AAAA,IAAE;AAAA,IAG3B,UAAUpD;AAAA,IAEV,YAAY;AAAA,MACX,GAAGqD;AAAA,MACH,GAAGC;AAAA,MACH,GAAGC;AAAA,MACH,GAAGC;AAAA,MACH,GAAGC;AAAA,MAEH,YAAY;AAAA,QACX,cAAc;AAAA,QACd,OAAO;AAAA,QACP,OAAO;AAAA,QACP,WAAWC;AAAA,QACX,QAAQ;AAAA,UACP,aAAa;AAAA,UACb,SAASP;AAAA,QAAA;AAAA,MACV;AAAA,IACD;AAAA;AAAA,IAID,eAAe,CAACpF,MAGRA;AAAA;AAAA,IAIR,eAAe,CAACf,MACX,OAAOA,KAAU,WAAiBA,IAClC,OAAOA,KAAU,WAAiB,OAAOA,CAAK,IAC3C;AAAA,EACR;AAEF;AAEO,MAAM2G,KAAgDT,GAAA;","x_google_ignoreList":[0,1,2]}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/jsx-runtime.js","../src/TextRenderer.tsx","../src/TextPlugin.ts"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import {\n\ttype CSSProperties,\n\tforwardRef,\n\tuseEffect,\n\tuseImperativeHandle,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from \"react\";\nimport {\n\ttype BlockRef,\n\tHorizontalAlign,\n\ttype RendererProps,\n\ttoPx,\n\tVerticalAlign,\n} from \"@tatamicks/core\";\n\nimport styles from \"./TextRenderer.module.css\";\n\nimport type { TextProps, TextValue } from \"./types\";\n\nexport const TextRenderer = forwardRef<\n\tBlockRef,\n\tRendererProps<TextProps, TextValue>\n>(({ props, value, onChange, onBlur, readOnly }, ref) => {\n\t// 入力要素への参照\n\tconst inputRef = useRef<HTMLInputElement | HTMLTextAreaElement>(null);\n\tconst textareaRef = useRef<HTMLTextAreaElement>(null);\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst ghostRef = useRef<HTMLTextAreaElement>(null);\n\n\tconst [textareaPadding, setTextareaPadding] = useState({ top: 0, bottom: 0 });\n\tconst [textareaHeight, setTextareaHeight] = useState<number | null>(null);\n\n\tuseEffect(() => {\n\t\tif (!props.multiline) return;\n\n\t\tconst ghost = ghostRef.current;\n\t\tconst container = containerRef.current;\n\t\tif (!ghost || !container) return;\n\n\t\tghost.value = value ?? \"\";\n\n\t\tconst containerStyle = window.getComputedStyle(container);\n\t\tconst paddingTop = Number.parseFloat(containerStyle.paddingTop);\n\t\tconst paddingBottom = Number.parseFloat(containerStyle.paddingBottom);\n\t\tconst paddingLeft = Number.parseFloat(containerStyle.paddingLeft);\n\t\tconst paddingRight = Number.parseFloat(containerStyle.paddingRight);\n\n\t\tconst containerHeight = container.clientHeight - paddingTop - paddingBottom;\n\t\tconst availableWidth = container.clientWidth - paddingLeft - paddingRight;\n\n\t\tghost.style.width = `${availableWidth}px`;\n\t\tghost.style.paddingTop = \"0px\";\n\t\tghost.style.paddingBottom = \"0px\";\n\n\t\tconst contentHeight = ghost.scrollHeight;\n\n\t\tsetTextareaHeight(containerHeight);\n\n\t\tif (contentHeight < containerHeight) {\n\t\t\tconst availableSpace = containerHeight - contentHeight;\n\n\t\t\tswitch (props.alignItems) {\n\t\t\t\tcase VerticalAlign.top:\n\t\t\t\t\tsetTextareaPadding({ top: 0, bottom: availableSpace });\n\t\t\t\t\tbreak;\n\t\t\t\tcase VerticalAlign.bottom:\n\t\t\t\t\tsetTextareaPadding({ top: availableSpace, bottom: 0 });\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tsetTextareaPadding({\n\t\t\t\t\t\ttop: availableSpace / 2,\n\t\t\t\t\t\tbottom: availableSpace / 2,\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t} else {\n\t\t\tsetTextareaPadding({ top: 0, bottom: 0 });\n\t\t}\n\t}, [props, value]);\n\n\tuseImperativeHandle(\n\t\tref,\n\t\t() => ({\n\t\t\tfocus: () => {\n\t\t\t\tinputRef.current?.focus();\n\t\t\t},\n\t\t}),\n\t\t[],\n\t);\n\n\tconst containerStyle = useMemo((): CSSProperties => {\n\t\tconst css: CSSProperties = {\n\t\t\twidth: \"100%\",\n\t\t\theight: \"100%\",\n\t\t\tdisplay: \"flex\",\n\t\t\tboxSizing: \"border-box\",\n\t\t\toverflow: \"hidden\",\n\t\t};\n\n\t\tswitch (props.justifyContent) {\n\t\t\tcase HorizontalAlign.center:\n\t\t\t\tcss.justifyContent = \"center\";\n\t\t\t\tbreak;\n\t\t\tcase HorizontalAlign.right:\n\t\t\t\tcss.justifyContent = \"flex-end\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tcss.justifyContent = \"flex-start\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\tswitch (props.alignItems) {\n\t\t\tcase VerticalAlign.top:\n\t\t\t\tcss.alignItems = \"flex-start\";\n\t\t\t\tbreak;\n\t\t\tcase VerticalAlign.bottom:\n\t\t\t\tcss.alignItems = \"flex-end\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tcss.alignItems = \"center\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif (props.isIndividual) {\n\t\t\tif (props.top) css.paddingTop = toPx.fromDim(props.top);\n\t\t\tif (props.right) css.paddingRight = toPx.fromDim(props.right);\n\t\t\tif (props.bottom) css.paddingBottom = toPx.fromDim(props.bottom);\n\t\t\tif (props.left) css.paddingLeft = toPx.fromDim(props.left);\n\t\t} else if (props.all) {\n\t\t\tconst p = toPx.fromDim(props.all);\n\t\t\tcss.padding = `${p}px`;\n\t\t}\n\n\t\treturn css;\n\t}, [props]);\n\n\tconst inputStyle = useMemo((): CSSProperties => {\n\t\tconst css: CSSProperties = {\n\t\t\tbackground: \"transparent\",\n\t\t\tborder: \"none\",\n\t\t\toutline: \"none\",\n\t\t\tresize: \"none\",\n\t\t\tpadding: 0,\n\t\t\tmargin: 0,\n\t\t\twidth: \"100%\",\n\t\t\tboxSizing: \"border-box\",\n\t\t\tfontFamily: \"inherit\",\n\t\t\tcolor: \"inherit\",\n\t\t};\n\n\t\tif (props.fontSize) {\n\t\t\tcss.fontSize = `${toPx.fromDim(props.fontSize)}px`;\n\t\t}\n\n\t\tif (props.fontFamily) css.fontFamily = props.fontFamily;\n\t\tif (props.color) css.color = props.color;\n\n\t\tcss.fontWeight = props.fontWeight ? \"bold\" : \"normal\";\n\t\tcss.fontStyle = props.italic ? \"italic\" : \"normal\";\n\n\t\tconst decorations: string[] = [];\n\t\tif (props.underline) decorations.push(\"underline\");\n\t\tif (props.lineThrough) decorations.push(\"line-through\");\n\t\tcss.textDecoration =\n\t\t\tdecorations.length > 0 ? decorations.join(\" \") : \"none\";\n\n\t\tif (props.lineHeight) css.lineHeight = props.lineHeight;\n\n\t\tswitch (props.justifyContent) {\n\t\t\tcase HorizontalAlign.center:\n\t\t\t\tcss.textAlign = \"center\";\n\t\t\t\tbreak;\n\t\t\tcase HorizontalAlign.right:\n\t\t\t\tcss.textAlign = \"right\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tcss.textAlign = \"left\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn css;\n\t}, [props]);\n\n\tconst ghostStyle = useMemo((): CSSProperties => {\n\t\treturn {\n\t\t\t...inputStyle,\n\t\t\tposition: \"absolute\",\n\t\t\ttop: 0,\n\t\t\tleft: 0,\n\t\t\twidth: \"100%\",\n\t\t\theight: \"auto\",\n\t\t\tvisibility: \"hidden\",\n\t\t\tpointerEvents: \"none\",\n\t\t\toverflow: \"hidden\",\n\t\t\twhiteSpace: \"pre-wrap\",\n\t\t\twordWrap: \"break-word\",\n\t\t\toverflowWrap: \"break-word\",\n\t\t\tpadding: 0,\n\t\t\tborder: \"none\",\n\t\t\tboxSizing: \"border-box\",\n\t\t\tresize: \"none\",\n\t\t};\n\t}, [inputStyle]);\n\n\tconst handleChange = (\n\t\te: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>,\n\t) => {\n\t\tonChange(e.target.value);\n\t};\n\n\tconst handleBlur = () => {\n\t\tonBlur?.(value);\n\t};\n\n\tconst isEditable = !readOnly;\n\n\tif (props.multiline) {\n\t\tconst textareaStyle: CSSProperties = {\n\t\t\t...inputStyle,\n\t\t\tresize: \"none\",\n\t\t\toverflow: \"auto\",\n\t\t\theight: textareaHeight !== null ? `${textareaHeight}px` : \"100%\",\n\t\t\tpaddingTop: `${textareaPadding.top}px`,\n\t\t\tpaddingBottom: `${textareaPadding.bottom}px`,\n\t\t};\n\n\t\tconst handleTextareaChange = (\n\t\t\te: React.ChangeEvent<HTMLTextAreaElement>,\n\t\t) => {\n\t\t\thandleChange(e);\n\t\t};\n\n\t\tconst setTextareaRefs = (el: HTMLTextAreaElement | null) => {\n\t\t\ttextareaRef.current = el;\n\t\t\tinputRef.current = el;\n\t\t};\n\n\t\tconst textareaProps = {\n\t\t\tref: setTextareaRefs,\n\t\t\tvalue: value ?? \"\",\n\t\t\tonChange: handleTextareaChange,\n\t\t\tonBlur: handleBlur,\n\t\t\tstyle: textareaStyle,\n\t\t\tplaceholder: props.placeholder,\n\t\t\treadOnly: !isEditable,\n\t\t\ttabIndex: isEditable ? 0 : -1,\n\t\t};\n\n\t\treturn (\n\t\t\t<div ref={containerRef} style={containerStyle}>\n\t\t\t\t<textarea\n\t\t\t\t\tref={ghostRef}\n\t\t\t\t\tclassName={styles.ghost}\n\t\t\t\t\tstyle={ghostStyle}\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\treadOnly\n\t\t\t\t\ttabIndex={-1}\n\t\t\t\t\trows={1}\n\t\t\t\t\tvalue={value ?? \"\"}\n\t\t\t\t/>\n\t\t\t\t<textarea {...textareaProps} />\n\t\t\t</div>\n\t\t);\n\t}\n\n\tconst singleLineStyle: CSSProperties = {\n\t\t...inputStyle,\n\t\theight: \"100%\",\n\t};\n\n\tconst commonInputProps = {\n\t\tref: inputRef as React.RefObject<HTMLInputElement>,\n\t\tvalue: value ?? \"\",\n\t\tonChange: handleChange,\n\t\tonBlur: handleBlur,\n\t\tstyle: singleLineStyle,\n\t\tplaceholder: props.placeholder,\n\t\treadOnly: !isEditable,\n\t\ttabIndex: isEditable ? 0 : -1,\n\t};\n\n\treturn (\n\t\t<div style={containerStyle}>\n\t\t\t<input type=\"text\" {...commonInputProps} />\n\t\t</div>\n\t);\n});\n\nTextRenderer.displayName = \"TextRenderer\";\n","import {\n\ttype BlockPlugin,\n\tDEFAULT_FONT_FAMILY,\n\tfontStyleDefinition,\n\tmultilineDefinition,\n\tplaceholderDefinition,\n\tSelect,\n\ttype SelectOption,\n\tuniversalProperties,\n\tvalidationDefinition,\n} from \"@tatamicks/core\";\n\nimport { TextRenderer } from \"./TextRenderer\";\n\nimport type { TextProps, TextValue } from \"./types\";\n\nexport function createTextPlugin(\n\tfontFamilyOptions: readonly SelectOption[] = DEFAULT_FONT_FAMILY,\n): BlockPlugin<TextProps, TextValue> {\n\treturn {\n\t\tkind: \"text\",\n\n\t\tmeta: {\n\t\t\tdisplayName: \"テキスト\",\n\t\t\tdescription: \"リッチなテキスト編集ブロック\",\n\t\t\tdefaultSize: { w: 4, h: 2 }, // デフォルトサイズ\n\t\t},\n\n\t\tRenderer: TextRenderer,\n\n\t\tproperties: {\n\t\t\t...universalProperties,\n\t\t\t...placeholderDefinition,\n\t\t\t...fontStyleDefinition,\n\t\t\t...multilineDefinition,\n\t\t\t...validationDefinition,\n\n\t\t\tfontFamily: {\n\t\t\t\tdefaultValue: \"sans-serif\",\n\t\t\t\tlabel: \"フォント\",\n\t\t\t\tgroup: \"フォント\",\n\t\t\t\tComponent: Select,\n\t\t\t\tconfig: {\n\t\t\t\t\tplaceholder: \"フォントを選択\",\n\t\t\t\t\toptions: fontFamilyOptions,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\n\t\t// バリデーション (Propsの型チェックと初期化)\n\t\tvalidateProps: (props: unknown): TextProps => {\n\t\t\t// createInitialPropsを通すので、基本的にはキャストでOKですが、\n\t\t\t// 必要に応じて厳密なチェックを行います\n\t\t\treturn props as TextProps;\n\t\t},\n\n\t\t// 値のバリデーション\n\t\tvalidateValue: (value: unknown): TextValue | null => {\n\t\t\tif (typeof value === \"string\") return value;\n\t\t\tif (typeof value === \"number\") return String(value);\n\t\t\treturn null;\n\t\t},\n\t};\n}\n\nexport const TextPlugin: BlockPlugin<TextProps, TextValue> = createTextPlugin();\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","owner","debugStack","debugTask","refProp","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","isValidElement","object","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1","TextRenderer","forwardRef","onChange","onBlur","readOnly","ref","inputRef","useRef","textareaRef","containerRef","ghostRef","textareaPadding","setTextareaPadding","useState","textareaHeight","setTextareaHeight","useEffect","ghost","container","containerStyle","paddingTop","paddingBottom","paddingLeft","paddingRight","containerHeight","availableWidth","contentHeight","availableSpace","VerticalAlign","useImperativeHandle","_a","useMemo","css","HorizontalAlign","toPx","p","inputStyle","decorations","ghostStyle","handleChange","e","handleBlur","isEditable","textareaStyle","textareaProps","el","jsxs","jsx","styles","singleLineStyle","commonInputProps","createTextPlugin","fontFamilyOptions","DEFAULT_FONT_FAMILY","universalProperties","placeholderDefinition","fontStyleDefinition","multilineDefinition","validationDefinition","Select","TextPlugin"],"mappings":";;;;;;;;;;;;;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AAAA,MACH,GAAGC;AAAA,MAEH,YAAY;AAAA,QACX,cAAc;AAAA,QACd,OAAO;AAAA,QACP,OAAO;AAAA,QACP,WAAWC;AAAA,QACX,QAAQ;AAAA,UACP,aAAa;AAAA,UACb,SAASP;AAAA,QAAA;AAAA,MACV;AAAA,IACD;AAAA;AAAA,IAID,eAAe,CAACrF,MAGRA;AAAA;AAAA,IAIR,eAAe,CAACf,MACX,OAAOA,KAAU,WAAiBA,IAClC,OAAOA,KAAU,WAAiB,OAAOA,CAAK,IAC3C;AAAA,EACR;AAEF;AAEO,MAAM4G,KAAgDT,GAAA;","x_google_ignoreList":[0,1,2]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextRenderer.d.ts","sourceRoot":"","sources":["../../src/TextRenderer.tsx"],"names":[],"mappings":"AASA,OAAO,EACN,KAAK,QAAQ,EAEb,KAAK,aAAa,EAGlB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"TextRenderer.d.ts","sourceRoot":"","sources":["../../src/TextRenderer.tsx"],"names":[],"mappings":"AASA,OAAO,EACN,KAAK,QAAQ,EAEb,KAAK,aAAa,EAGlB,MAAM,iBAAiB,CAAC;AAIzB,OAAO,KAAK,EAAE,SAAS,EAAa,MAAM,SAAS,CAAC;AAEpD,eAAO,MAAM,YAAY,uHA2QvB,CAAC"}
|
package/dist/text.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[contenteditable][data-placeholder]:empty:before{content:attr(data-placeholder);color:#999;pointer-events:none;position:absolute}[contenteditable=false]{cursor:default}@media print{._ghost_1acb7_15{display:none}}
|