open-index/open-npm huggingface dataset:
npm package: @islacel/malle
Description: Make text elements malleable
Author: Nicolas CARPi @ Deltablot>
Latest version: 2.6.0

# malle

<p align="center">
  <img src="https://i.imgur.com/nvWVtu2.png" />
</p>


Edit in place library with **no dependencies** and small footprint.

![validate](https://github.com/deltablot/malle/workflows/validate/badge.svg)
[![npm version](https://badge.fury.io/js/@deltablot%2Fmalle.svg)](https://badge.fury.io/js/@deltablot%2Fmalle)
[![GitHub license](https://img.shields.io/github/license/deltablot/malle.svg)](https://github.com/deltablot/malle/blob/master/LICENSE)

## Description

`malle` allows you to listen to a particular event (e.g. click, hover) on an element (e.g. p, span) and transform that element into an input that will be processed by a function.

The event can be: click or hover.

The element can be a `p`, `div`, `span`, ...

The created input can be a normal input or a textarea.

The user provided function will typically POST to an endpoint to get some JSON back.

## Demo

Live demo: https://deltablot.github.io/malle/

## Installation

~~~bash
npm i @deltablot/malle
# or
yarn add @deltablot/malle
~~~

## Quickstart

This is a minimal example:

~~~javascript
import { Malle } from '@deltablot/malle';

// now create the malle
const malle = new Malle({
  // this is the function that will be called once user has finished entering text (press Enter or click outside)
  // it receives the new value, the original element, the event and the input element
  fun: (value, original, event, input) => {
    console.log(`New text: ${value}`);
    console.log(`Original element:`);
    console.log(original);
    // add here your code for POSTing the new value
    return myFunctionReturingAPromiseString();
  },
}).listen(); // directly start listening after object creation
~~~

In this example, when a user clicks on an element with `data-malleable='true'`, the function in the `fun` option will be called. The element will be replaced by a `form` containing the `input` and optionally action buttons (Submit, Cancel).

Head to the [Demo](https://deltablot.github.io/malle/) to see more examples.

See the [API Documentation](https://deltablot.github.io/malle/api) for usage and available options.

## Maintenance status

`malle` is currently **MAINTAINED** and used in production environments.

## Contributing

See [contributing documentation](./CONTRIBUTING.md).

## License

This software is open source and licensed under the [MIT License](./LICENSE).
npm package: @islacel/react-native-android-activity-lifecycle-listeners
Description: Retrieves information from Android's React Native main activity
Author: Victor Herrera
Latest version: 0.1.1

# @islacel/react-native-android-activity-lifecycle-listeners

Retrieves information from Android's React Native main activity

# API documentation

- [Documentation for the main branch](https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/@islacel/react-native-android-activity-lifecycle-listeners.md)
- [Documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/@islacel/react-native-android-activity-lifecycle-listeners/)

# Installation in managed Expo projects

For [managed](https://docs.expo.dev/versions/latest/introduction/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](#api-documentation). If you follow the link and there is no documentation available then this library is not yet usable within managed projects &mdash; it is likely to be included in an upcoming Expo SDK release.

# Installation in bare React Native projects

For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.

### Add the package to your npm dependencies

```
npm install @islacel/react-native-android-activity-lifecycle-listeners
```

### Configure for iOS

Run `npx pod-install` after installing the npm package.


### Configure for Android


No additional setup necessary.

# Contributing

Contributions are very welcome! Please refer to guidelines described in the [contributing guide]( https://github.com/expo/expo#contributing).