You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
1.8 KiB
1 line
1.8 KiB
{"ast":null,"code":"export default function isSelectionValid() {\n var selection = window.getSelection();\n var string = selection.toString();\n var anchorNode = selection.anchorNode;\n var focusNode = selection.focusNode;\n var isTextNode = anchorNode && anchorNode.nodeType === window.Node.TEXT_NODE || focusNode && focusNode.nodeType === window.Node.TEXT_NODE;\n return string.length >= 1 && string !== '\\n' && isTextNode;\n}","map":{"version":3,"names":["isSelectionValid","selection","window","getSelection","string","toString","anchorNode","focusNode","isTextNode","nodeType","Node","TEXT_NODE","length"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/node_modules/react-native-web/dist/modules/isSelectionValid/index.js"],"sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher\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 */\nexport default function isSelectionValid() {\n var selection = window.getSelection();\n var string = selection.toString();\n var anchorNode = selection.anchorNode;\n var focusNode = selection.focusNode;\n var isTextNode = anchorNode && anchorNode.nodeType === window.Node.TEXT_NODE || focusNode && focusNode.nodeType === window.Node.TEXT_NODE;\n return string.length >= 1 && string !== '\\n' && isTextNode;\n}"],"mappings":"AAQA,eAAe,SAASA,gBAAgB,GAAG;EACzC,IAAIC,SAAS,GAAGC,MAAM,CAACC,YAAY,EAAE;EACrC,IAAIC,MAAM,GAAGH,SAAS,CAACI,QAAQ,EAAE;EACjC,IAAIC,UAAU,GAAGL,SAAS,CAACK,UAAU;EACrC,IAAIC,SAAS,GAAGN,SAAS,CAACM,SAAS;EACnC,IAAIC,UAAU,GAAGF,UAAU,IAAIA,UAAU,CAACG,QAAQ,KAAKP,MAAM,CAACQ,IAAI,CAACC,SAAS,IAAIJ,SAAS,IAAIA,SAAS,CAACE,QAAQ,KAAKP,MAAM,CAACQ,IAAI,CAACC,SAAS;EACzI,OAAOP,MAAM,CAACQ,MAAM,IAAI,CAAC,IAAIR,MAAM,KAAK,IAAI,IAAII,UAAU;AAC5D"},"metadata":{},"sourceType":"module"} |