@nocobase/app 2.1.0-beta.23 → 2.1.0-beta.25
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/client/assets/{7531-44e119c3.js → 7531-6421c08c.js} +1 -1
- package/dist/client/assets/{index-6dab1e57.js → index-0ddad0c1.js} +101 -101
- package/dist/client/assets/{runtime-53264ccc.js → runtime-cded108b.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.tpl +1 -1
- package/dist/client/v2/assets/6157-8e763248.js +1 -0
- package/dist/client/v2/assets/{7531-fe28b61d.js → 7531-8bbed383.js} +1 -1
- package/dist/client/v2/assets/{7835-be87c260.js → 7835-e6bc3477.js} +1 -1
- package/dist/client/v2/assets/8289-9faf2c9c.js +2 -0
- package/dist/client/v2/assets/{3990-48026493.js.LICENSE.txt → 8289-9faf2c9c.js.LICENSE.txt} +14 -0
- package/dist/client/v2/assets/{index-d4fe6945.js → index-40cd7568.js} +130 -130
- package/dist/client/v2/assets/{runtime-2c46c8fa.js → runtime-134591aa.js} +1 -1
- package/dist/client/v2/index.html +1 -1
- package/package.json +7 -7
- package/dist/client/v2/assets/3990-48026493.js +0 -2
- package/dist/client/v2/assets/6157-e2f9e9a3.js +0 -1
- /package/dist/client/assets/{index-6dab1e57.js.LICENSE.txt → index-0ddad0c1.js.LICENSE.txt} +0 -0
- /package/dist/client/v2/assets/{3990-5c7b4a6f.css → 8289-5c7b4a6f.css} +0 -0
- /package/dist/client/v2/assets/{index-d4fe6945.js.LICENSE.txt → index-40cd7568.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id="6157";export const __rspack_esm_ids=["6157"];export const __webpack_modules__={2404(t,e,o){var n=o(60270);t.exports=function(t,e){return n(t,e)}},45708(t,e,o){var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;for(var n=Array(t),i=0,e=0;e<o;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,i++)n[i]=r[s];return n},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},l=a(o(96540)),d=a(o(40961)),h=a(o(2404)),p=a(o(91574));function u(t){Promise.resolve().then(t)}t.exports=function(t){function e(e){var o=t.call(this,e)||this;o.dirtyProps=["modules","formats","bounds","theme","children"],o.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],o.state={generation:0},o.selection=null,o.onEditorChange=function(t,e,n,i){var r,s;"text-change"===t?null==(r=o.onEditorChangeText)||r.call(o,o.editor.root.innerHTML,e,i,o.unprivilegedEditor):"selection-change"===t&&(null==(s=o.onEditorChangeSelection)||s.call(o,e,i,o.unprivilegedEditor))};var n=o.isControlled()?e.value:e.defaultValue;return o.value=null!=n?n:"",o}return i(e,t),e.prototype.validateProps=function(t){if(l.default.Children.count(t.children)>1)throw Error("The Quill editing area can only be composed of a single React element.");if(l.default.Children.count(t.children)){var e=l.default.Children.only(t.children);if((null==e?void 0:e.type)==="textarea")throw Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&t.value===this.lastDeltaChangeSet)throw Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},e.prototype.shouldComponentUpdate=function(t,e){var o,n=this;if(this.validateProps(t),!this.editor||this.state.generation!==e.generation)return!0;if("value"in t){var i=this.getEditorContents(),r=null!=(o=t.value)?o:"";this.isEqualValue(r,i)||this.setEditorContents(this.editor,r)}return t.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,t.readOnly),s(this.cleanProps,this.dirtyProps).some(function(e){return!h.default(t[e],n.props[e])})},e.prototype.shouldComponentRegenerate=function(t){var e=this;return this.dirtyProps.some(function(o){return!h.default(t[o],e.props[o])})},e.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},e.prototype.componentWillUnmount=function(){this.destroyEditor()},e.prototype.componentDidUpdate=function(t,e){var o=this;if(this.editor&&this.shouldComponentRegenerate(t)){var n=this.editor.getContents(),i=this.editor.getSelection();this.regenerationSnapshot={delta:n,selection:i},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==e.generation){var r=this.regenerationSnapshot,n=r.delta,s=r.selection;delete this.regenerationSnapshot,this.instantiateEditor();var a=this.editor;a.setContents(n),u(function(){return o.setEditorSelection(a,s)})}},e.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},e.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},e.prototype.isControlled=function(){return"value"in this.props},e.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},e.prototype.getEditor=function(){if(!this.editor)throw Error("Accessing non-instantiated editor");return this.editor},e.prototype.createEditor=function(t,e){var o=new p.default(t,e);return null!=e.tabIndex&&this.setEditorTabIndex(o,e.tabIndex),this.hookEditor(o),o},e.prototype.hookEditor=function(t){this.unprivilegedEditor=this.makeUnprivilegedEditor(t),t.on("editor-change",this.onEditorChange)},e.prototype.unhookEditor=function(t){t.off("editor-change",this.onEditorChange)},e.prototype.getEditorContents=function(){return this.value},e.prototype.getEditorSelection=function(){return this.selection},e.prototype.isDelta=function(t){return t&&t.ops},e.prototype.isEqualValue=function(t,e){return this.isDelta(t)&&this.isDelta(e)?h.default(t.ops,e.ops):h.default(t,e)},e.prototype.setEditorContents=function(t,e){var o=this;this.value=e;var n=this.getEditorSelection();"string"==typeof e?t.setContents(t.clipboard.convert(e)):t.setContents(e),u(function(){return o.setEditorSelection(t,n)})},e.prototype.setEditorSelection=function(t,e){if(this.selection=e,e){var o=t.getLength();e.index=Math.max(0,Math.min(e.index,o-1)),e.length=Math.max(0,Math.min(e.length,o-1-e.index)),t.setSelection(e)}},e.prototype.setEditorTabIndex=function(t,e){var o;(null==(o=null==t?void 0:t.scroll)?void 0:o.domNode)&&(t.scroll.domNode.tabIndex=e)},e.prototype.setEditorReadOnly=function(t,e){e?t.disable():t.enable()},e.prototype.makeUnprivilegedEditor=function(t){return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},e.prototype.getEditingArea=function(){if(!this.editingArea)throw Error("Instantiating on missing editing area");var t=d.default.findDOMNode(this.editingArea);if(!t)throw Error("Cannot find element for editing area");if(3===t.nodeType)throw Error("Editing area cannot be a text node");return t},e.prototype.renderEditingArea=function(){var t=this,e=this.props,o=e.children,n=e.preserveWhitespace,i={key:this.state.generation,ref:function(e){t.editingArea=e}};return l.default.Children.count(o)?l.default.cloneElement(l.default.Children.only(o),i):n?l.default.createElement("pre",r({},i)):l.default.createElement("div",r({},i))},e.prototype.render=function(){var t;return l.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(null!=(t=this.props.className)?t:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},e.prototype.onEditorChangeText=function(t,e,o,n){if(this.editor){var i,r,s=this.isDelta(this.value)?n.getContents():n.getHTML();s!==this.getEditorContents()&&(this.lastDeltaChangeSet=e,this.value=s,null==(r=(i=this.props).onChange)||r.call(i,t,e,o,n))}},e.prototype.onEditorChangeSelection=function(t,e,o){if(this.editor){var n,i,r,s,a,l,d=this.getEditorSelection(),p=!d&&t,u=d&&!t;!h.default(t,d)&&(this.selection=t,null==(i=(n=this.props).onChangeSelection)||i.call(n,t,e,o),p?null==(s=(r=this.props).onFocus)||s.call(r,t,e,o):u&&(null==(l=(a=this.props).onBlur)||l.call(a,d,e,o)))}},e.prototype.focus=function(){this.editor&&this.editor.focus()},e.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},e.displayName="React Quill",e.Quill=p.default,e.defaultProps={theme:"snow",modules:{},readOnly:!1},e}(l.default.Component)}};
|
|
File without changes
|
|
File without changes
|
/package/dist/client/v2/assets/{index-d4fe6945.js.LICENSE.txt → index-40cd7568.js.LICENSE.txt}
RENAMED
|
File without changes
|