solid-ctrl-flow 1.0.29 → 1.0.30

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/index.d.ts CHANGED
@@ -157,11 +157,6 @@ export declare const Debug: {
157
157
  read: Accessor<boolean>;
158
158
  };
159
159
 
160
- /** Component that gives you the owner {@link Document} */
161
- export declare function Doc(props: {
162
- ref: Ref<Document>;
163
- }): Text;
164
-
165
160
  /** Informations about a {@link Source} component */
166
161
  declare type Info = {
167
162
  /** Order of the current source if there are many */
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { untrack, createMemo, splitProps, createContext, getOwner, runWithOwner, createEffect, on, createResource, createComponent, useContext, createRoot, createRenderEffect, onCleanup, Match, mergeProps, For, Show, onMount } from "solid-js";
1
+ import { untrack, createMemo, splitProps, createContext, getOwner, runWithOwner, createEffect, on, createResource, createComponent, useContext, createRoot, createRenderEffect, onCleanup, Match, mergeProps, For, Show } from "solid-js";
2
2
  import { createMutable } from "solid-js/store";
3
3
  function untrackCall(f, ...args) {
4
4
  return untrack(() => f.apply(this, args));
@@ -187,15 +187,9 @@ function Joint(props) {
187
187
  });
188
188
  }
189
189
  const Debug = createOption(false, true, "debug-scope");
190
- function Doc(props) {
191
- const node = document.createTextNode("");
192
- onMount(() => (refCall(props.ref, node.ownerDocument), node.remove()));
193
- return node;
194
- }
195
190
  export {
196
191
  Case,
197
192
  Debug,
198
- Doc,
199
193
  When,
200
194
  bind,
201
195
  bindTwoWay,
package/dist/index.umd.js CHANGED
@@ -189,14 +189,8 @@
189
189
  });
190
190
  }
191
191
  const Debug = createOption(false, true, "debug-scope");
192
- function Doc(props) {
193
- const node = document.createTextNode("");
194
- solidJs.onMount(() => (refCall(props.ref, node.ownerDocument), node.remove()));
195
- return node;
196
- }
197
192
  exports2.Case = Case;
198
193
  exports2.Debug = Debug;
199
- exports2.Doc = Doc;
200
194
  exports2.When = When;
201
195
  exports2.bind = bind;
202
196
  exports2.bindTwoWay = bindTwoWay;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solid-ctrl-flow",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "Control flow components for solid-js",
5
5
  "author": "AFatNiBBa",
6
6
  "license": "ISC",
package/readMe.md CHANGED
@@ -47,15 +47,6 @@ return <>
47
47
  </>
48
48
  ```
49
49
 
50
- ### `Doc`
51
- Gives back the current document
52
- ```tsx
53
- var doc: Document;
54
- return <>
55
- <Doc ref={doc} />
56
- </>
57
- ```
58
-
59
50
  ### `createExtractor()`
60
51
  Creates a context for components that may need to be out of their parent in certain conditions.
61
52
  If you have this component