@codernote/record-tree 2.0.0 → 2.0.1

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.node-div[data-v-e4f27408]{display:flex;align-items:center;position:relative}.node-text[data-v-e4f27408]{margin-left:5px;flex:1;border:none;outline:none;word-break:break-all}.node-icon[data-v-e4f27408]{position:relative;width:17px;height:17px;border-radius:10px;background-color:#fff;cursor:pointer;margin-left:5px;align-self:flex-start;top:3px}.node-icon[data-v-e4f27408]:after{content:"";position:absolute;top:5px;left:5px;width:7px;height:7px;border-radius:10px;background-color:#eee}.node-icon[data-v-e4f27408]:hover{background-color:#ccc}.node-complex[data-v-e4f27408]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-e4f27408]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-e4f27408]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-e4f27408]{display:block}.node-image img[data-v-e4f27408]{outline:none}.node-audio[data-v-e4f27408]{width:300px}.node-audio audio[data-v-e4f27408]{width:300px;outline:none}.node-video video[data-v-e4f27408]{outline:none}.node-del[data-v-e4f27408]{cursor:pointer;display:none;width:15px;height:15px;position:absolute;top:-3px;right:-3px;background-color:#e6f7ff;background-size:100% 100%;border-radius:50%}.node-del[data-v-e4f27408]:before,.node-del[data-v-e4f27408]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-e4f27408]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-e4f27408]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-e4f27408]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-e4f27408]{flex:1}.node-file-left h6[data-v-e4f27408]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-e4f27408]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-e4f27408]{color:#52a770;font-size:14px}@keyframes blinkBorder-e4f27408{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-e4f27408]:focus{animation:blinkBorder-e4f27408 1s infinite}.fullscreen-handle[data-v-e4f27408]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-e4f27408]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.node-ul[data-v-37792e92]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-37792e92]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-37792e92] .sublevel .node-li{margin-left:15px}[data-v-37792e92] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-37792e92] .drag-over-center{background-color:#eee}[data-v-37792e92] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-37792e92]{display:none}[data-v-37792e92] .collapsed .node-icon:before{display:none}.tree-title[data-v-37792e92]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-37792e92] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-37792e92] .node-li.dragging .node-icon:before{display:none}[data-v-37792e92] .has-child>.node-div>.node-icon:before{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-37792e92] .has-child>.node-div>.node-icon:hover:before{background-color:#52a770}[data-v-07202bfc] .popper{transform:translate3d(0,22px,0)!important}.record-tree-popper-content{display:flex;flex-wrap:wrap;padding:10px;box-shadow:0 2px 12px #1d1c1c1f;border:1px solid rgba(29,28,28,.12);border-radius:5px;overflow:hidden;background:#fff;z-index:9999}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree-svg{display:inline-block;border-radius:9999px;color:#fff;cursor:pointer}.record-tree-title-bar{position:relative;display:flex;margin-bottom:3px}.record-tree-title{padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%}.record-tree-popper-reference{display:flex;position:absolute;top:0;left:0;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-placeholder{position:absolute;left:0;top:0;padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%;color:#999;pointer-events:none}.record-audio[data-v-c081bad5]{position:absolute;background:#fff;padding:20px;width:400px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.record-audio .recwave[data-v-c081bad5]{width:300px;height:40px}.record-audio .audio-item[data-v-c081bad5]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-c081bad5]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-c081bad5]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-c081bad5]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-c081bad5]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.record-audio .buttons .finish[data-v-c081bad5]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-c081bad5]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-c081bad5]{border:1px solid #eee}.record-audio .buttons .oper[data-v-c081bad5]{margin-right:10px}.record-audio .main[data-v-c081bad5]{display:flex;align-items:center}.record-audio .duration[data-v-c081bad5]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-c081bad5]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-c081bad5]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-c081bad5]{display:flex;width:100vw;position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);z-index:999;align-items:center}.record-audio-mobile .recwave[data-v-c081bad5]{flex:1;height:30px}.record-audio-mobile .oper[data-v-c081bad5]{margin-right:10px}.record-video[data-v-1d5cd230]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-1d5cd230]{width:300px}.buttons[data-v-1d5cd230]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-1d5cd230]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-1d5cd230]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-1d5cd230]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-1d5cd230]{border:1px solid #eee}.buttons .oper[data-v-1d5cd230]{margin-right:10px}.wrap[data-v-1d5cd230]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-1d5cd230]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-cb048d52]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;width:452px;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-cb048d52]{width:200px}.img-item[data-v-cb048d52]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-cb048d52]{width:200px}.record-content[data-v-cb048d52]{display:flex}.buttons[data-v-cb048d52]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-cb048d52]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-cb048d52]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-cb048d52]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-cb048d52]{border:1px solid #eee}.buttons .oper[data-v-cb048d52]{margin-right:10px}.wrap[data-v-cb048d52]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-cb048d52]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-tree-mobile .record-tree{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0}.record-tree-mobile .record-tree-options{padding:12px 0;display:flex;position:fixed}.record-tree-mobile .record-tree-option-item{flex:1;max-width:32px}.record-tree-mobile .node-file-wrap{width:200px}.record-tree-mobile .node-file-right{display:none}.record-tree-mobile .node-image img{width:auto;max-height:80px}.record-tree-mobile .node-audio,.record-tree-mobile .node-video{width:200px}.record-tree-mobile .node-audio audio{width:200px;outline:none}.record-tree-mobile .node-video video{width:200px;outline:none}.record-tree-container{position:relative;height:100%}.record-tree-main{padding-left:15px;overflow:scroll;flex:1}.record-tree{position:relative;padding-bottom:40px;display:flex;flex-direction:column;overflow:hidden;height:100%}.record-tree-options{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:#fff;border-top:1px dotted #ddd}.record-tree-option-left{display:flex;flex:1;padding-left:10px}.record-tree-option-right{padding-right:10px;font-size:14px}.record-tree-option-item{margin:0 5px;cursor:pointer;display:flex;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}img:-webkit-full-screen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}img:fullscreen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;-o-object-fit:contain;object-fit:contain}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.node-div[data-v-e4f27408]{display:flex;align-items:center;position:relative}.node-text[data-v-e4f27408]{margin-left:5px;flex:1;border:none;outline:none;word-break:break-all}.node-icon[data-v-e4f27408]{position:relative;width:17px;height:17px;border-radius:10px;background-color:#fff;cursor:pointer;margin-left:5px;align-self:flex-start;top:3px}.node-icon[data-v-e4f27408]:after{content:"";position:absolute;top:5px;left:5px;width:7px;height:7px;border-radius:10px;background-color:#eee}.node-icon[data-v-e4f27408]:hover{background-color:#ccc}.node-complex[data-v-e4f27408]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-e4f27408]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-e4f27408]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-e4f27408]{display:block}.node-image img[data-v-e4f27408]{outline:none}.node-audio[data-v-e4f27408]{width:300px}.node-audio audio[data-v-e4f27408]{width:300px;outline:none}.node-video video[data-v-e4f27408]{outline:none}.node-del[data-v-e4f27408]{cursor:pointer;display:none;width:15px;height:15px;position:absolute;top:-3px;right:-3px;background-color:#e6f7ff;background-size:100% 100%;border-radius:50%}.node-del[data-v-e4f27408]:before,.node-del[data-v-e4f27408]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-e4f27408]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-e4f27408]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-e4f27408]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-e4f27408]{flex:1}.node-file-left h6[data-v-e4f27408]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-e4f27408]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-e4f27408]{color:#52a770;font-size:14px}@keyframes blinkBorder-e4f27408{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-e4f27408]:focus{animation:blinkBorder-e4f27408 1s infinite}.fullscreen-handle[data-v-e4f27408]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-e4f27408]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.node-ul[data-v-37792e92]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-37792e92]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-37792e92] .sublevel .node-li{margin-left:15px}[data-v-37792e92] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-37792e92] .drag-over-center{background-color:#eee}[data-v-37792e92] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-37792e92]{display:none}[data-v-37792e92] .collapsed .node-icon:before{display:none}.tree-title[data-v-37792e92]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-37792e92] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-37792e92] .node-li.dragging .node-icon:before{display:none}[data-v-37792e92] .has-child>.node-div>.node-icon:before{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-37792e92] .has-child>.node-div>.node-icon:hover:before{background-color:#52a770}[data-v-07202bfc] .popper{transform:translate3d(0,22px,0)!important}.record-tree-popper-content{display:flex;flex-wrap:wrap;padding:10px;box-shadow:0 2px 12px #1d1c1c1f;border:1px solid rgba(29,28,28,.12);border-radius:5px;overflow:hidden;background:#fff;z-index:9999}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree-svg{display:inline-block;border-radius:9999px;color:#fff;cursor:pointer}.record-tree-title-bar{position:relative;display:flex;margin-bottom:3px}.record-tree-title{padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%}.record-tree-popper-reference{display:flex;position:absolute;top:0;left:0;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-placeholder{position:absolute;left:0;top:0;padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%;color:#999;pointer-events:none}.record-audio[data-v-9be5ddd6]{position:absolute;background:#fff;padding:20px;width:400px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.record-audio .recwave[data-v-9be5ddd6]{width:300px;height:40px}.record-audio .audio-item[data-v-9be5ddd6]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-9be5ddd6]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-9be5ddd6]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-9be5ddd6]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-9be5ddd6]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.record-audio .buttons .finish[data-v-9be5ddd6]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-9be5ddd6]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-9be5ddd6]{border:1px solid #eee}.record-audio .buttons .oper[data-v-9be5ddd6]{margin-right:10px}.record-audio .main[data-v-9be5ddd6]{display:flex;align-items:center}.record-audio .duration[data-v-9be5ddd6]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-9be5ddd6]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-9be5ddd6]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-9be5ddd6]{display:flex;width:100vw;position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);z-index:999;align-items:center}.record-audio-mobile .recwave[data-v-9be5ddd6]{flex:1;height:30px}.record-audio-mobile .oper[data-v-9be5ddd6]{margin-right:10px}.record-video[data-v-be255be7]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-be255be7]{width:300px}.buttons[data-v-be255be7]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-be255be7]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-be255be7]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-be255be7]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-be255be7]{border:1px solid #eee}.buttons .oper[data-v-be255be7]{margin-right:10px}.wrap[data-v-be255be7]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-be255be7]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-d1a4de11]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;width:452px;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-d1a4de11]{width:200px}.img-item[data-v-d1a4de11]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-d1a4de11]{width:200px}.record-content[data-v-d1a4de11]{display:flex}.buttons[data-v-d1a4de11]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-d1a4de11]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-d1a4de11]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-d1a4de11]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-d1a4de11]{border:1px solid #eee}.buttons .oper[data-v-d1a4de11]{margin-right:10px}.wrap[data-v-d1a4de11]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-d1a4de11]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-tree-mobile .record-tree{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0}.record-tree-mobile .record-tree-options{padding:12px 0;display:flex;position:fixed}.record-tree-mobile .record-tree-option-item{flex:1;max-width:32px}.record-tree-mobile .node-file-wrap{width:200px}.record-tree-mobile .node-file-right{display:none}.record-tree-mobile .node-image img{width:auto;max-height:80px}.record-tree-mobile .node-audio,.record-tree-mobile .node-video{width:200px}.record-tree-mobile .node-audio audio{width:200px;outline:none}.record-tree-mobile .node-video video{width:200px;outline:none}.record-tree-container{position:relative;height:100%}.record-tree-main{padding-left:15px;overflow:scroll;flex:1}.record-tree{position:relative;padding-bottom:40px;display:flex;flex-direction:column;overflow:hidden;height:100%}.record-tree-options{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:#fff;border-top:1px dotted #ddd}.record-tree-option-left{display:flex;flex:1;padding-left:10px}.record-tree-option-right{padding-right:10px;font-size:14px}.record-tree-option-item{margin:0 5px;cursor:pointer;display:flex;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}img:-webkit-full-screen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}img:fullscreen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;-o-object-fit:contain;object-fit:contain}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
2
  import { formatBytes as rr, truncateString as ar, uuid as Ot, detectDeviceType as q0, byNameFindIcon as ir, icons as nr, getImageSize as sr, getVideoSize as or, resizeResource as lr, parseMimeType as ur, oss as dr } from "@codernote/utils";
3
3
  import Jt from "vue-inline-svg";
4
4
  import { resolveComponent as Bt, openBlock as $e, createElementBlock as at, createElementVNode as Ze, withModifiers as St, normalizeClass as Vt, createCommentVNode as Tt, toDisplayString as i0, createVNode as Ct, pushScopeId as G0, popScopeId as W0, Fragment as x0, renderList as S0, createBlock as Ht, withCtx as u0, renderSlot as H0, createSlots as cr, normalizeStyle as Gt, withKeys as fr } from "vue";
@@ -10846,7 +10846,7 @@ const Ba = {
10846
10846
  }
10847
10847
  );
10848
10848
  },
10849
- destroyed() {
10849
+ unmounted() {
10850
10850
  this.rec.close(), this.rec = null, this.text = "";
10851
10851
  },
10852
10852
  data: function() {
@@ -10904,7 +10904,7 @@ const Ba = {
10904
10904
  });
10905
10905
  }
10906
10906
  }
10907
- }, $0 = (i) => (G0("data-v-c081bad5"), i = i(), W0(), i), ka = {
10907
+ }, $0 = (i) => (G0("data-v-9be5ddd6"), i = i(), W0(), i), ka = {
10908
10908
  key: 0,
10909
10909
  class: "record-audio-mobile"
10910
10910
  }, Ea = /* @__PURE__ */ $0(() => /* @__PURE__ */ Ze("div", { class: "recwave" }, null, -1)), La = {
@@ -11018,7 +11018,7 @@ function Pa(i, a, p, g, P, f) {
11018
11018
  })
11019
11019
  ], 4);
11020
11020
  }
11021
- const Ua = /* @__PURE__ */ jt(Ba, [["render", Pa], ["__scopeId", "data-v-c081bad5"]]);
11021
+ const Ua = /* @__PURE__ */ jt(Ba, [["render", Pa], ["__scopeId", "data-v-9be5ddd6"]]);
11022
11022
  var er = { exports: {} };
11023
11023
  (function(i) {
11024
11024
  /**
@@ -13600,7 +13600,7 @@ const qa = {
13600
13600
  width: "100vw"
13601
13601
  };
13602
13602
  },
13603
- destroyed() {
13603
+ unmounted() {
13604
13604
  var i;
13605
13605
  this.stream.stop(), (i = this.recorder) == null || i.destroy(), this.stream = null, this.recorder = null;
13606
13606
  },
@@ -13692,7 +13692,7 @@ function Ya(i, a, p, g, P, f) {
13692
13692
  })
13693
13693
  ], 4);
13694
13694
  }
13695
- const Xa = /* @__PURE__ */ jt(qa, [["render", Ya], ["__scopeId", "data-v-1d5cd230"]]), Ka = {
13695
+ const Xa = /* @__PURE__ */ jt(qa, [["render", Ya], ["__scopeId", "data-v-be255be7"]]), Ka = {
13696
13696
  components: { InlineSvg: Jt },
13697
13697
  props: {
13698
13698
  responsive: {
@@ -13707,7 +13707,7 @@ const Xa = /* @__PURE__ */ jt(qa, [["render", Ya], ["__scopeId", "data-v-1d5cd23
13707
13707
  this.$refs.video && (this.$refs.video.srcObject = this.stream);
13708
13708
  });
13709
13709
  },
13710
- destroyed() {
13710
+ unmounted() {
13711
13711
  var i;
13712
13712
  (i = this.stream) == null || i.stop(), this.stream = null;
13713
13713
  },
@@ -13807,7 +13807,7 @@ function ai(i, a, p, g, P, f) {
13807
13807
  })
13808
13808
  ], 4);
13809
13809
  }
13810
- const ii = /* @__PURE__ */ jt(Ka, [["render", ai], ["__scopeId", "data-v-cb048d52"]]), z0 = "KEY_PENDING_NODES", ni = {
13810
+ const ii = /* @__PURE__ */ jt(Ka, [["render", ai], ["__scopeId", "data-v-d1a4de11"]]), z0 = "KEY_PENDING_NODES", ni = {
13811
13811
  name: "recordTree",
13812
13812
  components: {
13813
13813
  InlineSvg: Jt,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codernote/record-tree",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {