UNPKG

text-editor-studio-ts

Version:

A powerful mobile-responsive rich text editor built with Lexical and React

1 lines 1.96 kB
{"version":3,"file":"LexicalCollaborationContext.prod-BKKUeelU.cjs","sources":["../node_modules/.pnpm/@lexical+react@0.30.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_yjs@13.6.24/node_modules/@lexical/react/LexicalCollaborationContext.prod.mjs"],"sourcesContent":["/**\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\nimport{createContext as r,useContext as g}from\"react\";const o=[[\"Cat\",\"rgb(125, 50, 0)\"],[\"Dog\",\"rgb(100, 0, 0)\"],[\"Rabbit\",\"rgb(150, 0, 0)\"],[\"Frog\",\"rgb(200, 0, 0)\"],[\"Fox\",\"rgb(200, 75, 0)\"],[\"Hedgehog\",\"rgb(0, 75, 0)\"],[\"Pigeon\",\"rgb(0, 125, 0)\"],[\"Squirrel\",\"rgb(75, 100, 0)\"],[\"Bear\",\"rgb(125, 100, 0)\"],[\"Tiger\",\"rgb(0, 0, 150)\"],[\"Leopard\",\"rgb(0, 0, 200)\"],[\"Zebra\",\"rgb(0, 0, 250)\"],[\"Wolf\",\"rgb(0, 100, 150)\"],[\"Owl\",\"rgb(0, 100, 100)\"],[\"Gull\",\"rgb(100, 0, 100)\"],[\"Squid\",\"rgb(150, 0, 150)\"]],b=o[Math.floor(Math.random()*o.length)],e=r({clientID:0,color:b[1],isCollabActive:!1,name:b[0],yjsDocMap:new Map});function l(r,o){const b=g(e);return null!=r&&(b.name=r),null!=o&&(b.color=o),b}export{e as CollaborationContext,l as useCollaborationContext};\n"],"names":["o","b","Math","floor","random","length","e","r","clientID","color","isCollabActive","name","yjsDocMap","Map","g","useContext"],"mappings":"sCAQ4DA,EAAE,CAAC,CAAC,MAAM,mBAAmB,CAAC,MAAM,kBAAkB,CAAC,SAAS,kBAAkB,CAAC,OAAO,kBAAkB,CAAC,MAAM,mBAAmB,CAAC,WAAW,iBAAiB,CAAC,SAAS,kBAAkB,CAAC,WAAW,mBAAmB,CAAC,OAAO,oBAAoB,CAAC,QAAQ,kBAAkB,CAAC,UAAU,kBAAkB,CAAC,QAAQ,kBAAkB,CAAC,OAAO,oBAAoB,CAAC,MAAM,oBAAoB,CAAC,OAAO,oBAAoB,CAAC,QAAQ,qBAAqBC,EAAED,EAAEE,KAAKC,MAAMD,KAAKE,SAASJ,EAAEK,SAASC,EAAEC,EAAAA,cAAE,CAACC,SAAS,EAAEC,MAAMR,EAAE,GAAGS,gBAAe,EAAGC,KAAKV,EAAE,GAAGW,UAAc,IAAAC,gBAAM,SAAWN,EAAEP,GAAgEC,OAArDa,EAACC,WAACT,EAAoD","x_google_ignoreList":[0]}